ExamVeda
Login
Home
1
Which keyword is used for sorting the data in ascending order in Mysql?
Discuss
Answer & Solution
Answer: Option B
Solution:
This question is about how to arrange data in a table from smallest to largest in MySQL.

Think of it like sorting your toys by size – you want the smallest ones first, then the bigger ones.

Here's how the options relate to the question:

Option A: DESC - This keyword is for *descending* order, meaning it sorts from largest to smallest.
Option B: ASC - This is the correct answer! It stands for *ascending*, which means sorting from smallest to largest.
Option C: ALTER - This is used to change the structure of a table, not for sorting data.
Option D: MODIFY - Similar to ALTER, this is used for modifying the table's structure, not sorting data.

So, if you want to see your data in order from smallest to largest, you'd use the ASC keyword.
2
Which of the following statements is/are correct with respect to "VIEW"?
Discuss
Answer & Solution
Answer: Option D
Solution:
In the world of databases, a VIEW is like a special window into your data. It's not a table itself, but a saved query that lets you see data in a specific way.
Let's break down the options:
Option A: "VIEW" is a query that stored in the data dictionary
This is TRUE. The data dictionary holds all the definitions about your database, and a VIEW is essentially a saved query stored within it.
Option B: There is no data associated with "VIEW"
This is TRUE as well. A VIEW doesn't store data itself. It just provides a customized way to access data from real tables.
Option C: "VIEW" creates virtual tables in Database
This is also TRUE. You can think of a VIEW as a temporary, virtual table that presents data based on your query.
Option D: All of the mentioned
Since options A, B, and C are all correct, option D is also TRUE.
So, the answer is Option D.
3
Which disk data does FILES table in INFORMATION_SCHEMA store?
Discuss
Answer & Solution
Answer: Option A
Solution:
This question asks about the FILES table in INFORMATION_SCHEMA, a special database in MySQL.
INFORMATION_SCHEMA holds information about your database, like table structures and data types.
The FILES table specifically stores information about the physical files on your disk that your database uses.
So, what kind of disk data does it store?
The answer is None of the above.
The options provided (NDB, NBD, NBK, NCD) are not relevant to the data stored in the FILES table.
Instead, the FILES table will have information like:
* File name
* File size
* File location
* File type (e.g., data file, log file)
This helps you understand how your database is physically structured on your hard drive.
4
The TRIGGER privilege is used for the table to be able to create and drop triggers for it.
Discuss
Answer & Solution
Answer: Option A
Solution:
This question is about privileges in MySQL, which are like permissions that control what users can do with the database.
Triggers are special commands that automatically run when certain events happen in a table, like when a new row is added or deleted.
The TRIGGER privilege gives a user the power to create and delete triggers for a specific table.
So, the answer is Option A: True.
5
What performs administrative operations?
Discuss
Answer & Solution
Answer: Option B
Solution:
This question is asking about which command in MySQL is used to perform administrative tasks.
Let's break down the options:
Option A: mysqldump - This command is used for backing up your MySQL database, not for general administration.
Option B: mysqladmin - This is the correct answer! mysqladmin is the command used for performing various administrative operations in MySQL.
Option C: mysqlimport - This command is used to import data into a MySQL database, not for administration.
Option D: mysqlexport - This command is used to export data from a MySQL database, not for administration.
So, the answer is Option B: mysqladmin.
6
The hub of a MySQL installation is . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
Solution:
This question is asking about the core component of a MySQL database system. Think of it like the heart of the system.

Out of the options given, mysqld is the heart of MySQL. Here's why:

* mysqld is the MySQL server daemon. This means it's the program that runs in the background and handles all the requests to the database.
* When you connect to a MySQL database, you are actually connecting to mysqld.
* The other options (mysqla, mysqlb, mysqlc) are not real components of MySQL.

So the correct answer is Option D: mysqld.
7
Which variable checks for the availability of SSL support?
Discuss
Answer & Solution
Answer: Option A
Solution:
This question asks about a variable in MySQL that tells us whether the database server supports SSL (Secure Sockets Layer) for secure connections. SSL is like a lock on your internet connection, ensuring that data sent between your computer and the database is encrypted and protected.

Out of the given options, the correct answer is:
Option A: have_ssl

The variable 'have_ssl' is used to check if MySQL has been compiled with SSL support. If the value of 'have_ssl' is 1, it means that SSL is available.

Let's break down why the other options are incorrect:
Option B: has_ssl, Option C: avail_ssl, and Option D: ssl_avail are not standard MySQL variables. MySQL doesn't use these names to check for SSL availability.
8
SHOW DATABASES lists the databases in the server to which you are connected.
Discuss
Answer & Solution
Answer: Option A
Solution:
This question is about the MySQL command SHOW DATABASES.
The command SHOW DATABASES is used to see all the databases that are available on the server you are currently connected to.
So, the answer is True.
Option A is the correct answer.
9
Which case does InnoDB store database names in?
Discuss
Answer & Solution
Answer: Option A
Solution:
This question asks about how InnoDB, a popular storage engine in MySQL, handles database names.

Think of it like this: When you create a database, you give it a name. InnoDB needs to store this name internally to keep track of things. But does it store the name exactly as you typed it, or does it make any changes?

Let's look at the options:
Option A: lower: This means InnoDB would convert your database name to lowercase, no matter what you typed. For example, if you named your database "MyDatabase," InnoDB would store it as "mydatabase."
Option B: upper: This means InnoDB would convert your database name to uppercase. So, "MyDatabase" would become "MYDATABASE."
Option C: mixed: This means InnoDB would keep your database name exactly as you typed it, including any mix of uppercase and lowercase letters. "MyDatabase" would remain "MyDatabase."
Option D: random: This is unlikely. There's no reason for a database system to randomly change the case of your database names.

So, which option is correct? The answer is Option C: mixed. InnoDB stores database names exactly as you enter them, respecting the case of the letters.
10
What is the log in which data changes received from a replication master server are written?
Discuss
Answer & Solution
Answer: Option D
Solution:
This question is about how MySQL manages data replication. Replication is like copying information from one database server (the master) to another (the slave).

Think of it like making a copy of a file on your computer. When you change the original file, you have to update the copy. In MySQL, the slave server needs to know about any changes made on the master server.

So, the question is asking: where does the slave server store the information about the changes it needs to apply?

Here's the breakdown of the options:

Option A: error log: This log records any errors that happen in MySQL, but not changes in the data.

Option B: general query log: This log tracks all the queries executed by the server, but it doesn't focus specifically on replication changes.

Option C: binary log: This log is where the master server records all the changes to the database. The slave server reads this log to learn about the updates. This is a crucial part of replication.

Option D: relay log: This log is where the slave server stores the information it reads from the master's binary log. The slave uses this information to apply the changes to its own database.

Therefore, the answer is Option D: relay log.