Home
Current Affairs January 2024

What is the correct answer?

4

Select the correct syntax for Multi-line Comments.

A. //*Line1

B. Line2*//

C. /*Line1

D. Line2/*

Correct Answer :

D. Line2/*


The multi-line comment starts with /* and ends with */

Related Questions

What is the correct answer?

4

When SELECT statements used to create Views contain ____ clauses, the views cannot be updated.

A. JOIN

B. HAVING

C. GROUP BY

D. All 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

In order to update one table using another table and join condition, which statement is used.

A. SQL UPDATE INTO

B. SQL UPDATE JOIN

C. SQL JOIN

D. SQL JOIN UPDATE

What is the correct answer?

4

In LIKE clause, to represent a zero, a character, or a number of characters ___ is used.

A. /

B. _

C. *

D. %

What is the correct answer?

4

A database does not need to be created in ____. A direct table creation option is provided in ____.

A. MySQL

B. Oracle

C. Both A and B

D. None of the above

What is the correct answer?

4

In order to assign a random name to a column or table, which SQL SELECT Clause is used?

A. FROM

B. WHERE

C. HAVING

D. AS

What is the correct answer?

4

Global Temp Variable is used with which sign?

A. ###

B. ####

C. #

D. ##

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

Which one is not the OPTIONAL Clause in SELECT statement?

A. WHERE

B. ORDER BY

C. HAVE

D. HAVING

What is the correct answer?

4

When an expression includes ___ SQL operator(s), the sequence in which they are evaluated is known as the SQL operator's precedence.

A. 0

B. 1

C. Multiple

D. NULL

What is the correct answer?

4

Which statement is TRUE about the ORDER BY Clause?

A. In order to return the rows in a specific order, ORDER BY Clause is used.

B. In order to group the rows, ORDER BY Clause is used.

C. In order to select the defined groups, ORDER BY Clause is used.

D. None of the above

What is the correct answer?

4

SQL has the advantage of?

A. SQL require a lot of programming.

B. SQL provides High-Speed Query Processing.

C. SQL follows the standard languages of ANSI and ISO.

D. SQL is easily portable.

What is the correct answer?

4

In order to join N tables, minimum number of join statements required is

A. N

B. N-1

C. N-2

D. N+1

What is the correct answer?

4

Using the ___ statement, a database can be renamed.

A. SQL CREATE DATABASE

B. SQL RENAME DATABASE

C. SQL DROP DATABASE

D. SQL SELECT DATABASE

What is the correct answer?

4

Which of the following clause cannot be used in SQL sub queries?

A. GROUP BY

B. ORDER BY

C. DELETE

D. FROM

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

Which of the following statement is TRUE about DISTINCT Clause?

A. Returns only Distinct values.

B. Only on the single column, it operates.

C. It can be used with the aggregates such as COUNT, AVG, etc.

D. All of the above

What is the correct answer?

4

Which of the following is/are transaction control commands in SQL?

A. Commit

B. Rollback

C. Both A. and B.

D. None of the above

What is the correct answer?

4

How can we prevent SQL Injection attack?

A. We should pre-define the input type, input field and length of the user data to validate the input for the user authentication.

B. Access privileges should be restricted for the users

C. Administrator accounts should not be used.

D. All of the above

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

If multiple columns are used as Primary Key, it is known as

A. Unique

B. Composite

C. Foreign

D. None of the above

What is the correct answer?

4

Which of the following is/are Scalar function(s)?

A. UCASE()

B. MID()

C. ROUND()

D. All of the above

What is the correct answer?

4

Which syntax is correct for RENAME DATABASE in MySQL?

A. RENAME old_database_name TO new_database_name;

B. RENAME DATABASE old_database_name TO new_database_name;

C. ALTER old_database_name MODIFY NAME = new_database_name;

D. ALTER DATABASE old_database_name MODIFY NAME = new_database_name;

What is the correct answer?

4

What does the ROLLBACK Statement do?

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

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

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

D. An index is created in a SQL database table with this SQL statement.

What is the correct answer?

4

SQL CREATE DATABASE is used to,

A. Create a table

B. Create a database

C. Create a column

D. Create a row

What is the correct answer?

4

Foreign key is a field in a table that is _______ key in another table?

A. Primary

B. Unique

C. Composite

D. None of the above

What is the correct answer?

4

Which of the following keyword is used to delete the Join?

A. DELETE

B. ON

C. WHERE

D. All of the above

What is the correct answer?

4

What is the functionality of UCASE function?

A. To change the case of the string to lowercase characters.

B. To change the case of the string to uppercase characters.

C. To change the case of the string to numeric characters.

D. To change the case of the string to symbolic characters.

What is the correct answer?

4

To add a Primary Key constraint after table is created, which clause is used?

A. UPDATE

B. ADD

C. ALTER

D. JOIN

What is the correct answer?

4

What does the following statement do?

A. Finds any values that start with a and ends with o

B. Finds any values whose first character is a and third character is o

C. Both A. and B.

D. None of the above