Home
Current Affairs January 2024

What is the correct answer?

4

How MySQL determines which one to use, FLOAT or DOUBLE, using the p parameter?

A. If p comes between 0 to 25, data type becomes FLOAT(). If p comes between 26 to 54, data type becomes DOUBLE().

B. If p comes between 26 to 54, data type becomes FLOAT(). If p comes between 0 to 25, data type becomes DOUBLE().

C. If p comes between 25 to 53, data type becomes FLOAT(). If p comes between 0 to 24, data type becomes DOUBLE().

D. If p comes between 0 to 24, data type becomes FLOAT(). If p comes between 25 to 53, data type becomes DOUBLE().

Correct Answer :

D. If p comes between 0 to 24, data type becomes FLOAT(). If p comes between 25 to 53, data type becomes DOUBLE().


MySQL determines to use FLOAT or DOUBLE using the p parameter. If p comes between 0 to 24, the data type becomes FLOAT(). If p comes between 25 to 53, the data type becomes DOUBLE().

Related Questions

What is the correct answer?

4

Which of the following statement is correct?

A. Comparison Operator has higher precedence than Conjuction Operator.

B. Identity Operator has higher precedence than Multiplication Operator.

C. Both A and B

D. None of the above

What is the correct answer?

4

Which of the following states the correct situation in which Indexes should not be used in SQL?

A. When the table is small, it is possible to avoid using SQL indexes.

B. Updates need to be made frequently to the table.

C. When there are a lot of NULL values in a column, indexed should not be used.

D. All of the above

What is the correct answer?

4

Select the correct statement which will return all the rows from the Table and then also deletes the Table_Add table?

A. SELECT * FROM Table; DROP TABLE Table_Add

B. SELECT * WHERE Table; DROP TABLE Table_Add

C. SELECT * FROM Table; DELETE TABLE Table_Add

D. SELECT * WHERE Table; DELETE TABLE Table_Add

What is the correct answer?

4

The SQL Modulus Operator returns the,

A. Quotient

B. Percentage

C. Sum

D. Reminder

What is the correct answer?

4

Select the correct syntax of SELECT TOP clause?

A. SELECT TOP name

B. SELECT TOP column

C. SELECT TOP FROM

D. SELECT TOP Number

What is the correct answer?

4

Description allows the Script to load the

A. Owner of the script

B. Script name

C. Script Editor

D. All of the above

What is the correct answer?

4

What is the difference between UNION & UNION ALL operators?

A. Combining the results of two select statements will be done using UNION whereas combined records from both queries are returned by UNION ALL operator.

B. Combining the results of two select statements will be done using UNION ALL whereas combined records from both queries are returned by UNION operator.

C. After performing the UNION operation, duplicate rows will not be removed whereas after performing the UNION ALL operation, duplicate rows will be removed.

D. None of the above

What is the correct answer?

4

When the table is dropped:

A. Table structure is dropped

B. Integrity constraints are dropped

C. Relationship is dropped

D. All of the above

What is the correct answer?

4

Which command will remove the records from the table, but not affect the structure of the table?

A. REMOVE

B. DELETE

C. DROP

D. TRUNCATE

What is the correct answer?

4

What does AVG() function returns?

A. First value of the column

B. Last value of the column

C. Sum of rows of the table

D. Average value of the column

What is the correct answer?

4

Select the function which is not the Scalar Function(s)?

A. UCASE()

B. LEN()

C. SUM()

D. NOW()

What is the correct answer?

4

Which statement is true about the SQL?

A. SQL databases are vertically scalable.

B. SQL follows BASE Model.

C. SQL database cannot handle complex queries.

D. SQL database does not require object-relational mapping.

What is the correct answer?

4

What does UCASE() function do?

A. Converts database field to uppercase

B. Converts database field to lowercase

C. Returns the length of the text field

D. Returns the current date and time

What is the correct answer?

4

What does the COMMIT Statement do?

A. The data specified in this table or view is reported in this SQL statement.

B. Changes made in the SQL database transaction are permanently saved using this SQL statement.

C. Specify the columns of the table in this SQL statement to return distinct values.

D. By running this SQL statement, the transaction will be undone and the operations not yet saved to the SQL database will be undone.

What is the correct answer?

4

SQL indexes speed up the execution time of which statement(s)?

A. SELECT

B. WHERE

C. Both A and B

D. None of the above

What is the correct answer?

4

What does this SQL database language design to?

A. Maintain the data in hierarchal database management systems.

B. Maintain the data in relational database management systems.

C. Maintain the data in network database management systems.

D. Maintain the data in object-oriented database management systems.

What is the correct answer?

4

Temporary variables use ____ resources than table variables.

A. More

B. Less

C. Equal

D. None of the above

What is the correct answer?

4

Select the correct statement.

A. TRUNCATE TABLE is faster than DELETE TABLE statement.

B. TRUNCATE TABLE uses fewer resources than DELETE TABLE statement.

C. Both A) and B)

D. None of the above

What is the correct answer?

4

The table records can be retrieved using which command?

A. RETRIEVE

B. SELECT

C. CREATE

D. ALTER

What is the correct answer?

4

Select the correct rule of SQL EXCEPT.

A. There must be the same number of columns in each table and the same order in every select statement.

B. It is desirable that the columns have similar or compatible data types.

C. Both SELECT statements must have the same fields in their respective columns.

D. All of the above

What is the correct answer?

4

What does the following statement do?

A. Finds any values that start with a

B. Finds any values that start with a%

C. Finds any values that contains only two characters starting with a

D. All of the above

What is the correct answer?

4

Which of the following is NOT the SQL Arithmetic Operator?

A. Addition

B. Subtraction

C. Unary

D. Modulus

What is the correct answer?

4

The character(s) which are used independently or in conjunction with SQL Like Operator:

A. %

B. _

C. Both A. and B.

D. None of the above

What is the correct answer?

4

What is the difference between HAVING and WHERE clause?

A. HAVING clause is used in column operation whereas WHERE clause is used in row operation.

B. HAVING clause is post-filter whereas WHERE clause is pre-filter.

C. HAVING clause filters the groups whereas WHERE clauses filter the single record of the table.

D. All of the above

What is the correct answer?

4

____ integrity is achieved by using a foreign key.

A. Referential Integrity

B. Domain Integrity

C. User-defined Integrity

D. Entity Integrity

What is the correct answer?

4

____ and ____constraints form the core of the PRIMARY KEY constraint.

A. NOT NULL , CHECK

B. NOT NULL , DEFAULT

C. NOT NULL , FOREIGN KEY

D. NOT NULL , UNIQUE

What is the correct answer?

4

To delete table definition and all data from the table, which statement is used?

A. DELETE

B. DROP

C. ALTER

D. None of the above

What is the correct answer?

4

What will be the output of the below SQL statement?

A. 25

B. 26

C. 25.65

D. 25.00

What is the correct answer?

4

Which of the following is not MySQL String Data Type?

A. TEXT(Size)

B. TINYTEXT

C. MEDIUMTEXT

D. LARGETEXT

What is the correct answer?

4

With which of the following statement(s) can the SQL sub queries be used?

A. SELECT

B. UPDATE

C. INSERT

D. All of the above