Home
Current Affairs January 2024

What is the correct answer?

4

What is the difference between nvarchar and ntext?

A. nvarchar is fixed and ntext is variable.

B. nvarchar is variable and ntext is fixed.

C. nvarchar can be of the maximum size upto 4000 characters and ntext can be of the maximum size upto 2GB of the text data.

D. nvarchar can be of the maximum size upto 4000 characters and ntext can be of the maximum size upto 1GB of the text data.

Correct Answer :

C. nvarchar can be of the maximum size upto 4000 characters and ntext can be of the maximum size upto 2GB of the text data.


nvarchar can be of the maximum size upto 4000 characters and ntext can be of the maximum size upto 2GB of the text data.

Related Questions

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

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

Full form of DCL is -

A. Data Control Language

B. Data Commit Language

C. Data Common Language

D. Data Concatenate Language

What is the correct answer?

4

SET Operators are used to

A. Compile the results from two queries

B. Compile the results from three queries

C. Compile the results from four queries

D. Compile the results from five queries

What is the correct answer?

4

BETWEEN operator is used with which SQL Statements

A. SELECT

B. DELETE

C. INSERT

D. All of the above

What is the correct answer?

4

Which of the following is TRUE about SQL Concatenate?

A. It is also possible to combine more than two strings into one string.

B. Two columns of the table may be used to store the strings that are to be combined, or they may just be stored individually without being stored into the table.

C. When the concatenated strings are stored in separate columns of a table, they are stored in the column in which they were initially stored.

D. All of the above

What is the correct answer?

4

Which of the following statement is FALSE?

A. A Primary Key cannot be NULL

B. A Foreign Key cannot be NULL

C. A Primary Key cannot be Duplicate

D. A Foreign Key can be Duplicate

What is the correct answer?

4

Full form of TCL is -

A. Transaction Common Language

B. Transaction Commit Language

C. Transaction Concatenate Language

D. Transaction Control Language

What is the correct answer?

4

SQL DELETE can be used to delete,

A. Rows

B. Database

C. View

D. All of the above

What is the correct answer?

4

Difference between GRAND & REVOKE command is/are?

A. The GRANT command can be used to grant a user access to databases and tables whereas The REVOKE command can be used to revoke all access privileges already assigned to the user.

B. The REVOKE command can be used to grant a user access to databases and tables whereas The GRANT command can be used to revoke all access privileges already assigned to the user.

C. A transaction can be rolled back to its last saved state.

D. None of the above

What is the correct answer?

4

What is the difference between DELETE and TRUNCATE statements?

A. DELETE statement free up the space kept in check by the table whereas TRUNCATE statement does not free up the space kept in check by the table.

B. DELETE statement does not free up the space kept in check by the table whereas TRUNCATE statement free up the space kept in check by the table.

C. DELETE statement only deletes rows from the table whereas TRUNCATE statement can only delete columns from the table.

D. DELETE statement only deletes columns from the table whereas TRUNCATE statement can only delete rows from the table.

What is the correct answer?

4

Which of the following is TRUE about SQL Auto Increment?

A. It increments the unique number automatically.

B. It decrements the unique number automatically.

C. It keeps the unique number constant

D. None of the above

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

What does COUNT() function returns?

A. Average value

B. Largest value

C. Smallest value

D. Number of rows

What is the correct answer?

4

What is the work of DROP command?

A. Using this command, you can remove or erase recorded information from a database table.

B. Database objects such as tables, table views, and other objects can be deleted using this command.

C. One or more rows from one or more tables of the database can be accessed with this command. Using the WHERE clause with this command is also possible.

D. It enables you to create new databases, tables, table views, and other objects using this command.

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

Using the SQL first() function, one can return the ____ value of the selected column.

A. First

B. Second

C. Third

D. Last

What is the correct answer?

4

Which of the following is not the SQL Comparison Operator?

A. SQL Equal Operator (=)

B. SQL Less Than Operator (<)

C. SQL Greater Than Operator (>)

D. All of the above

What is the correct answer?

4

In order to manage or store the data in the database, WEB SQL Database is used which is a

A. Web site

B. Web page

C. Web browser

D. None of the above

What is the correct answer?

4

All other columns other than the column which is termed as Primary Key, are known as

A. Unique Keys

B. Alternate Keys

C. Composite Keys

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

Which function returns the largest value of the column?

A. MIN()

B. MAX()

C. LARGE()

D. AVG()

What is the correct answer?

4

Primary keys can be contained in a table only ____?

A. Once

B. Twice

C. Thrice

D. None of the above

What is the correct answer?

4

In order to execute a query in Web SQL, which function is used?

A. open()

B. translate()

C. transaction()

D. execute()

What is the correct answer?

4

Using a WHERE clause in a SQL query is used to specify SQL reserved words and characters, known as ____?

A. Operators

B. Data Types

C. Numbers

D. Syntax

What is the correct answer?

4

We can use literal in the CONCAT function. What does literal refer to?

A. Number

B. Character

C. Date

D. All of the above

What is the correct answer?

4

Which of the following is not MySQL Numeric Data Type?

A. BIT(Size)

B. CHAR(Size)

C. INTEGER(Size)

D. INT(Size)

What is the correct answer?

4

SQL has the disadvantage of?

A. SQL is cheap.

B. SQL interface is simple.

C. Both A and B.

D. None of the above.

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.