ExamVeda
Login
Home
31
Which table in INFORMATION_SCHEMA stores information about storage engines and server plugins?
Discuss
Answer & Solution
Answer: Option A
Solution:
This question asks about where MySQL stores information about different storage engines and plugins.
Storage engines are responsible for how data is stored and retrieved.
Plugins are additional features that can be added to MySQL.
Let's break down the options:
Option A: ENGINES, PLUGINS
- ENGINES sounds like a good place for storage engine information.
- PLUGINS also seems like the right place for plugin data.
Option B: FILES, PLUGINS
- FILES is too broad and doesn't specifically relate to storage engines.
Option C: ENGINES, FILES
- Again, FILES is too general and doesn't focus on storage engines.
Option D: PLUGINS, STATISTICS
- STATISTICS is about data analysis, not storage engines or plugins.
Therefore, the most likely answer is Option A: ENGINES, PLUGINS.
This option makes the most sense because it directly relates to the information we're looking for.
32
Which of the following is used on Solaris?
Discuss
Answer & Solution
Answer: Option C
Solution:
This question asks about the software used on the Solaris operating system. Let's break down the options:
Option A: gcc - gcc is a very popular compiler used on various systems, including Linux, but it's not specifically tied to Solaris.
Option B: clang - Clang is another compiler, also used on many platforms, but not specifically designed for Solaris.
Option C: Sun Studio - This is the correct answer! Sun Studio is a suite of software tools developed by Oracle (formerly Sun Microsystems) specifically for developing applications on the Solaris operating system.
Option D: FreeBSD - FreeBSD is a Unix-like operating system, completely different from Solaris.
So, the answer is Option C: Sun Studio.
33
The slave stores the CHANGE MASTER parameters in the file . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
Solution:
This question is asking about the file where a MySQL slave server stores the settings for connecting to its master server. These settings are called CHANGE MASTER parameters and are used to establish and maintain the replication process.

The correct answer is Option A: slave.info.

Here's a breakdown:
* slave.info: This file is located on the slave server and stores the CHANGE MASTER parameters. These parameters include information like the master's hostname, port number, username, password, and the specific replication settings.

* Option B, C, and D are incorrect. They don't represent files that store CHANGE MASTER parameters on a slave server.

So, the slave server uses the slave.info file to keep track of the master's information and replication settings.
34
How many of the following attributes are allowed only for numeric types?
UNSIGNED, ZEROFILL, CHARACTER SET, COLLATE
Discuss
Answer & Solution
Answer: Option B
Solution:
This question is asking about special features in MySQL that can be applied to different data types. Let's break it down:
Data Types: Data types tell MySQL what kind of information you're storing. For example, "INT" is for whole numbers, "VARCHAR" is for text, and "DECIMAL" is for numbers with decimal points.
Attributes: These are like extra settings that modify the way data is stored.
The Question:
We need to identify which attributes are ONLY used with numeric data types (like INT, DECIMAL).
Let's look at the attributes:
UNSIGNED: This attribute prevents a numeric column from storing negative values. This is specifically for numbers. (This is allowed only for numeric types)
ZEROFILL: This attribute automatically pads numbers with zeros to the left if they are shorter than the column's defined length. This is also specifically for numbers. (This is allowed only for numeric types)
CHARACTER SET: This attribute defines which character encoding is used for storing text data. This is for text (like VARCHAR) and has nothing to do with numbers.
COLLATE: This attribute defines how text data is sorted and compared. Again, this is for text and not numbers.
The Answer:
Only UNSIGNED and ZEROFILL are allowed for numeric data types. So the answer is Option B: 2.
35
The REAL type is synonym for . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
Solution:
This question is about data types in MySQL. Data types tell the database what kind of information we're storing.

The REAL data type is used for storing decimal numbers (numbers with a decimal point).

Let's look at the options:

Option A: FLOAT - FLOAT is also used for storing decimal numbers, and it's a synonym for REAL.

Option B: INT - INT is used for storing whole numbers (integers).

Option C: DOUBLE - DOUBLE is another data type for storing decimal numbers, but it allows for larger and more precise values than REAL.

Option D: BIT - BIT is used for storing single bits of data, either 0 or 1.

Therefore, the correct answer is Option A: FLOAT. REAL and FLOAT are essentially the same data type in MySQL. They both store decimal numbers.
36
The operator that compares sounds is . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
Solution:
This question asks about how MySQL compares sounds.
Imagine you have a database with names, and you want to find all names that sound similar to "John".
We need a special operator for this.
Let's look at the options:
* Option A: MATCH SOUNDS - This doesn't exist in MySQL. * Option B: CHECK SOUNDS - This doesn't exist in MySQL. * Option C: SOUNDS LIKE - This is the correct answer! It lets you compare sounds. * Option D: SOUNDS SIMILAR - This doesn't exist in MySQL. So, the answer is Option C: SOUNDS LIKE.
37
In a single table (with 10 columns) join query the number of values needed to examine per column is . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
Solution:
This question is about how MySQL joins data from different tables. Imagine you have a table with 10 columns, like a spreadsheet with 10 columns.
When you use a JOIN query, MySQL needs to look at each value in a column of one table to see if it matches a value in a column of another table.
Since we're dealing with a single table, MySQL doesn't need to compare values across different tables. It's like comparing values within the same spreadsheet.
Therefore, MySQL only needs to examine one value per column to complete the join.
So the correct answer is Option A: 1.
38
The program that performs logical backups is . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
Solution:
This question is asking about a program that helps you create backups of your MySQL database. A backup is like a copy of your data, so you can recover it if something happens to the original.

Let's look at the options:
Option A: mysqlimport - This is used to import data into a MySQL database, not for creating backups.
Option B: mysqldump - This is the correct answer! It's the tool specifically designed to create logical backups of your MySQL database.
Option C: myslqpit - This option doesn't exist.
Option D: mysqllogic - This option doesn't exist.
So, the answer is Option B: mysqldump.
39
The value of recently generated sequence number can be obtained by . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
Solution:
This question is asking about how to get the most recent sequence number generated in a MySQL database. Let's break it down:
Sequence Number: This refers to a unique number that's automatically assigned to each new entry in a table. Think of it like a running counter.
MySQL: This is the specific database system we're working with.
Now, let's look at the options:
Option A: LAST_INSERT_ID() This is the correct answer. It's a built-in function in MySQL that gives you the last sequence number generated by an INSERT statement.
Option B: LATEST_INSERT_ID() This option is incorrect. There is no function called LATEST_INSERT_ID() in MySQL.
Option C: INITIAL_INSERT_ID() This option is incorrect. There is no function called INITIAL_INSERT_ID() in MySQL. This function would be useful if you want to know what the initial value of the sequence number was.
Option D: INSERT_ID() This option is also correct. It's another built-in function that does the same thing as LAST_INSERT_ID(). They both return the latest auto-generated sequence number.
So, the best answer is Option A: LAST_INSERT_ID() or Option D: INSERT_ID(). They are essentially the same function. Remember that the value these functions return is specific to your current connection to the MySQL database.
40
What does 'C' stand for in the ACID property of transactions?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board