ExamVeda
Login
Home
71
The default storage engine used is . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
Solution:
EXAMPLE: This option is incorrect. EXAMPLE is not a default storage engine in MySQL. It is merely an example storage engine provided for testing and educational purposes.
ARCHIVE: This option is incorrect. While ARCHIVE is a storage engine in MySQL, it is not the default storage engine used when one is not explicitly specified.
MyISAM: This is the correct option. In most MySQL installations, the default storage engine used when a storage engine is not specified explicitly is MyISAM. However, it's important to note that this may vary depending on the MySQL version and configuration.
NDB: This option is incorrect. NDB (MySQL Cluster) is another storage engine provided by MySQL, but it is not the default storage engine used when one is not specified.

Therefore, the default storage engine used in MySQL is Option C: MyISAM.
72
The number of values that can be returned from a given stored function is . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
Solution:
0: This option is incorrect. Stored functions in MySQL are designed to return a single value. Therefore, the number of values returned cannot be zero.
1: This is the correct option. Stored functions in MySQL can return exactly one value. This value can be of any supported data type.
2: This option is incorrect. Stored functions in MySQL cannot return multiple values directly. They are limited to returning a single value.
3: This option is incorrect. Stored functions in MySQL cannot return multiple values directly. They are limited to returning a single value.

Therefore, the number of values that can be returned from a given stored function in MySQL is Option B: 1.
73
A synonym for CHARACTER SET is . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
Solution:
CSET: This option is incorrect. "CSET" is not a common synonym for "CHARACTER SET" in MySQL terminology.
CHSET: This option is incorrect. "CHSET" is not a common synonym for "CHARACTER SET" in MySQL terminology.
CHARSET: This is the correct option. "CHARSET" is commonly used as a synonym for "CHARACTER SET" in MySQL. It is used when specifying the character encoding for text data.
CHCSET: This option is incorrect. "CHCSET" is not a recognized synonym for "CHARACTER SET" in MySQL terminology.

Therefore, a synonym for "CHARACTER SET" in MySQL is Option C: CHARSET.
74
The IN, OUT and INOUT keywords do not apply to stored functions.
Discuss
Answer & Solution
Answer: Option B
Solution:
In MySQL, the IN, OUT, and INOUT keywords are used to specify parameter modes in stored procedures and functions. We need to determine whether these keywords apply to stored functions.

The correct option is Option B: False.
75
To perform consistency checks on a MyISAM table the statement is . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
Solution:
CHECK TABLE: This is the correct option. The CHECK TABLE statement in MySQL is used to perform consistency checks on tables. When applied to a MyISAM table, it checks for errors in the table's structure and data integrity.
REPAIR TABLE: This option is incorrect. The REPAIR TABLE statement is used to repair corrupted MyISAM tables. While it can fix issues identified by the CHECK TABLE statement, it is not specifically for performing consistency checks.
ANALYZE TABLE: This option is incorrect. The ANALYZE TABLE statement is used to analyze and update table statistics for query optimization purposes. It is not primarily used for performing consistency checks.
OPTIMIZE TABLE: This option is incorrect. The OPTIMIZE TABLE statement is used to defragment tables and reclaim wasted space. It is not primarily used for performing consistency checks.

Therefore, to perform consistency checks on a MyISAM table, the statement to use is Option A: CHECK TABLE.
76
The character that the MySQL client program recognizes as a statement delimiter is . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
Solution:
: → This option is incorrect. The colon (:) character is not recognized as a statement delimiter by the MySQL client program. It's not a standard delimiter in MySQL.
. → This option is incorrect. The period (.) character is not recognized as a statement delimiter by the MySQL client program. It's typically used as a separator in schema-qualified object names, such as database_name.table_name.
; → This is the correct option. The semicolon (;) character is universally recognized as the statement delimiter in MySQL. It signifies the end of an SQL statement and is required to execute statements correctly.
, → This option is incorrect. The comma (,) character is not recognized as a statement delimiter by the MySQL client program. It's used to separate values in a list or columns in a SELECT statement's column list.

Therefore, the character recognized by the MySQL client program as a statement delimiter is Option C: ;.
77
Which system variable controls the size of the table cache?
Discuss
Answer & Solution
Answer: Option A
Solution:
table_cache: This is the correct option. The table_cache system variable in MySQL controls the size of the table cache. It determines the maximum number of open tables that MySQL keeps cached in memory for quick access.
cache_table: This option is incorrect. "cache_table" is not a recognized system variable in MySQL for controlling the size of the table cache.
open_cache: This option is incorrect. "open_cache" is not a recognized system variable in MySQL for controlling the size of the table cache.
cache_open: This option is incorrect. "cache_open" is not a recognized system variable in MySQL for controlling the size of the table cache.

Therefore, the system variable that controls the size of the table cache in MySQL is Option A: table_cache.
78
The embedded server library containing the MySQL server linkable into applications is . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
Solution:
libmysqla: This option is incorrect. "libmysqla" is not the embedded server library containing the MySQL server linkable into applications. It does not correspond to a recognized library name in MySQL.
libmysqlb: This option is incorrect. "libmysqlb" is not the embedded server library containing the MySQL server linkable into applications. It does not correspond to a recognized library name in MySQL.
libmysqlc: This option is incorrect. "libmysqlc" is not the embedded server library containing the MySQL server linkable into applications. It does not correspond to a recognized library name in MySQL.
libmysqld: This is the correct option. The libmysqld library contains the MySQL server code that can be linked directly into applications to embed the MySQL server functionality. Applications using this library can run MySQL server tasks within their own process space.

Therefore, the embedded server library containing the MySQL server linkable into applications is Option D: libmysqld.
79
How many of the following return rows?
SELECT, SHOW, DESCRIBE
Discuss
Answer & Solution
Answer: Option C
Solution:
SELECT: This statement is used to retrieve data from one or more tables in a database. It returns rows containing the selected data based on the specified conditions. Therefore, SELECT returns rows.
SHOW: This statement is used to display various information about databases, tables, columns, indexes, and more. Depending on the context, SHOW can return rows containing information about the specified object. For example, SHOW TABLES returns a list of tables in the current database. Therefore, SHOW can return rows.
DESCRIBE: This statement is used to display information about the structure of a table, such as column names, types, and properties. It does not return rows of data from the table itself; instead, it returns metadata about the table's structure. Therefore, DESCRIBE does not return rows.

Therefore, out of the provided statements, SELECT and SHOW return rows, while DESCRIBE does not. Thus, the number of statements that return rows is Option C: 2.
80
Which of these modes is a composite server mode?
Discuss
Answer & Solution
Answer: Option C
Solution:
COMPOSITE: This option is incorrect. "COMPOSITE" is not a recognized server mode in MySQL.
COMPOSITE_MODE: This option is incorrect. "COMPOSITE_MODE" is not a recognized server mode in MySQL.
COMPOSITE_SERVER: This is the correct option. "COMPOSITE_SERVER" refers to a composite server mode in MySQL. In this mode, the server supports a combination of features from different server modes, allowing for flexibility in configuration and behavior. It is a composite mode as it combines characteristics of other server modes.
ANSI: This option is incorrect. "ANSI" typically refers to a SQL standard, but it is not a server mode in MySQL.

Therefore, the composite server mode among the options provided is Option C: COMPOSITE_SERVER.