Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

SQL Bit Bank

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

1. What does SQL is used to perform operations on?

A. Update Records
B. Insert Records
C. Both A and B
D. None of the above

Answer: C) Both A and B

Explanation:

SQL (Structured Query Language) is used to update, insert, delete, create, modify, and maintain the table records stored in the
database.

2. What does SQL stand for?

A. SQL stands for Sample Query Language


B. SQL stands for Structured Query List
C. SQL stands for Structured Query Language
D. SQL stands for Sample Query List

Answer: C) SQL stands for Structured Query Language

Explanation:

SQL is the short form of Structured Query Language.

3. 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.

Answer: B) Maintain the data in relational database management systems

Explanation:

SQL database language is designed to maintain the data in relational database management systems.

4. SQL became the standard of?

A. ASCII
B. ANSI
C. ISO
D. Both B and C

Answer: D) Both B and C

Explanation:

SQL became the standard of ANSI and ISO in the year 1986 and 1987 respectively.

5. Which statement is not true about SQL?

A. Using SQL in relational databases is all about inserting, updating, and deleting data.
B. Sample data can also be described with the aid of this tool.
C. It helps develop relational database functions, events, and views.
D. A SQL user can also set restrictions and permissions for a table column, a view, and a stored procedure.

Answer: B) Sample data can also be described with the aid of this tool

Explanation:

Structured data can also be described with the aid of this tool.

6. SQL contains which component in its process?

A. Optimization Engines
B. SQL Query Engines
C. Query Dispatchers
D. All of the above

Answer: D) All of the above

Explanation:

The SQL query process consists of components such as Optimization Engines, SQL Query Engines, and Query Dispatchers, etc.

7. Determine the correct SQL command?

A. CREATE
B. UPDATE
C. DELETE
D. All of the above

Answer: D) All of the above

Explanation:

Commonly used SQL commands are CREATE, UPDATE, and DELETE, etc.

8. What is the work of CREATE command?

A. Using this command, you can remove or erase recorded information from a database table.
B. It enables you to create new databases, tables, table views, and other objects using this command.
C. Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in
single rows, we can insert records in multiple rows as well.
D. A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE
clause with this command is also possible.

Answer: B) It enables you to create new databases, tables, table views, and other objects using this command

Explanation:

INSERT command enables you to create new databases, tables, table views, and other objects.

9. What is the work of UPDATE command?

A. A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE
clause with this command is also possible.
B. Using this command, you can remove or erase recorded information from a database table.
C. Database data can be updated or changed using this command.
D. It enables you to create new databases, tables, table views, and other objects using this command.

Answer: C) Database data can be updated or changed using this command


Explanation:

Using UPDATE command, Database data can be updated or changed.

10. What is the work of DELETE command?

A. A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE
clause with this command is also possible.
B. Database data can be updated or changed using this command.
C. Database objects such as tables, table views, and other objects can be deleted using this command.
D. Using this command, you can remove or erase recorded information from a database table.

Answer: D) Using this command, you can remove or erase recorded information from a database table

Explanation:

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

11. What is the work of SELECT command?

A. Database objects such as tables, table views, and other objects can be deleted using this command.
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.

Answer: 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

Explanation:

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

12. 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.

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

Explanation:

Using the DROP command, Database objects such as tables, table views, and other objects can be deleted.

13. What is the work of INSERT command?

A. Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in
single rows, we can insert records in multiple rows as well.
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.

Answer: A) Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in
single rows, we can insert records in multiple rows as well
Explanation:

Using the INSERT command, inserting records or data into the database tables is accomplished. In addition to inserting records in
single rows, we can insert records in multiple rows as well.

1.Structured Query Language is ____?

A. Case-sensitive
B. Not case-sensitive

Answer: B) Not case-sensitive

Explanation:

Syntax of the Structured Query Language is not case-sensitive.

2. Which of the following statement is true?

A. SQL statements are used for most operations in a database.


B. Relational algebra and tuple relationship calculus are needed for SQL syntax.
C. All of the above
D. None of the above

Answer: C) All of the above

Explanation:

SQL statements are used for most operations in a database and Relational algebra and tuple relationship calculus are needed for
SQL syntax.

3. Which of the following is not an SQL Statement?

A. SELECT Statement
B. UPDATE Statement
C. TRUNCATE TABLE Statement
D. FROM Statement

Answer: D) FROM Statement

Explanation:

SQL Statements are SELECT, UPDATE, TRUNCATE TABLE.

4. What does the SELECT Statement do?

A. Data is read from the SQL database by this statement and displayed to the database user.
B. The stored data in the SQL database is changed or modified by this SQL statement.
C. By deleting the stored data, this SQL statement deletes the database.
D. A new table in SQL is created using this SQL statement.

Answer: A) Data is read from the SQL database by this statement and displayed to the database user

Explanation:

Using SELECT Statement, Data is read from the SQL database and displayed to the database user.
5. What does the UPDATE Statement do?

A. By deleting the stored data, this SQL statement deletes the database.
B. A new table in SQL is created using this SQL statement.
C. The stored data in the SQL database is changed or modified by this SQL statement.
D. Columns in the SQL database can be created, deleted, or modified with this SQL statement.

Answer: C) The stored data in the SQL database is changed or modified by this SQL statement

Explanation:

The stored data in the SQL database is changed or modified by UPDATE SQL statement.

7. What does the DELETE Statement do?

A. A new table in SQL is created using this SQL statement.


B. By deleting the stored data, this SQL statement deletes the database.
C. Columns in the SQL database can be created, deleted, or modified with this SQL statement.
D. By executing this SQL statement, you remove the table and all the information that it contains, including the structure,
views, permissions, and triggers.

Answer: B) By deleting the stored data, this SQL statement deletes the database

Explanation:

By deleting the stored data, DELETE SQL statement deletes the database.

8. What does the CREATE TABLE Statement do?

A. The stored data in the SQL database is changed or modified by this SQL statement.
B. By deleting the stored data, this SQL statement deletes the database.
C. A new table in SQL is created using this SQL statement.
D. Columns in the SQL database can be created, deleted, or modified with this SQL statement.

Answer: C) A new table in SQL is created using this SQL statement

Explanation:

A new table in SQL is created using CREATE TABLE SQL statement.

9. What does the ALTER TABLE Statement do?

A. By deleting the stored data, this SQL statement deletes the database.
B. Columns in the SQL database can be created, deleted, or modified with this SQL statement.
C. A new table in SQL is created using this SQL statement.
D. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.

Answer: B) Columns in the SQL database can be created, deleted, or modified with this SQL statement

Explanation:

Columns in the SQL database can be created, deleted, or modified with ALTER TABLE SQL statement.

10. What does the DROP TABLE Statement do?

A. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.
B. A new table in SQL is created using this SQL statement.
C. Columns in the SQL database can be created, deleted, or modified with this SQL statement.
D. A new database will be created through this SQL statement.

Answer: A) The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement

Explanation:

The table, its structure, views, permissions, and triggers will also be deleted or removed with DROP TABLE SQL statement.

13. What does the INSERT INTO Statement do?

A. In this SQL statement, the data or records are inserted into an existing database table. One query statement can insert
multiple records simultaneously using this statement.
B. A new database will be created through this SQL statement.
C. In the database management system, this SQL statement deletes the existing database, together with all the database
tables and views.
D. By executing this SQL statement, all records in the SQL database will be deleted.

Answer: A) In this SQL statement, the data or records are inserted into an existing database table. One query statement can insert
multiple records simultaneously using this statement

Explanation:

In INSERT INTO SQL statement, the data or records are inserted into an existing database table. One query statement can insert
multiple records simultaneously using this statement.

14. What does the TRUNCATE TABLE Statement do?

A. In the database management system, this SQL statement deletes the existing database, together with all the database
tables and views.
B. In this SQL statement, the data or records are inserted into an existing database table. One query statement can insert
multiple records simultaneously using this statement.
C. By executing this SQL statement, all records in the SQL database will be deleted.
D. The data specified in this table or view is reported in this SQL statement.

Answer: C) By executing this SQL statement, all records in the SQL database will be deleted

Explanation:

By executing TRUNCATE TABLE SQL statement, all records in the SQL database will be deleted.

You might also like