SQL Quiz

SQL Quiz

University

15 Qs

quiz-placeholder

Similar activities

SQL Basics

SQL Basics

University

20 Qs

JDBC

JDBC

University

20 Qs

DBMS LAB QUIZ

DBMS LAB QUIZ

University

15 Qs

Triggers

Triggers

University

20 Qs

QUIZ AZIK

QUIZ AZIK

University

20 Qs

Exception handling -oracle plsql

Exception handling -oracle plsql

University

15 Qs

DBMS QUIZ-1

DBMS QUIZ-1

University

20 Qs

DATABASE

DATABASE

University

20 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Binod Paudyal

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the CREATE TABLE command in SQL?

To create a new table in the database

To update an existing table in the database

To delete a table from the database

To retrieve data from a table in the database

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Explain the difference between the ALTER TABLE and DROP TABLE commands in SQL.

The ALTER TABLE command is used to add a new column to a table, while the DROP TABLE command is used to rename a table.

The ALTER TABLE command is used to create a new table, while the DROP TABLE command is used to update the data in a table.

The ALTER TABLE command is used to modify an existing table, while the DROP TABLE command is used to delete an entire table.

The ALTER TABLE command is used to delete an entire table, while the DROP TABLE command is used to modify an existing table.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How is the CONSTRAINT keyword used in SQL DDL commands?

It is used to perform arithmetic operations on the data in a table.

It is used to create a new database in SQL.

It is used to retrieve data from a table in SQL.

It is used to define rules or restrictions for the data in a table.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the role of the INSERT command in SQL DML?

To delete existing rows of data from a table

To create a new table in the database

To add new rows of data into a table

To update existing rows of data in a table

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Describe the UPDATE command and provide an example of its usage.

MODIFY table_name SET column1 = value1, column2 = value2 WHERE condition;

CHANGE table_name SET column1 = value1, column2 = value2 WHERE condition;

UPDATE table_name SET column1 = value1, column2 = value2 WHERE condition;

UPDATE table_name SET column1 = value1, column2 = value2 WHERE condition;

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the significance of the DELETE command in SQL DML?

It is used to remove one or more rows from a table.

It is used to retrieve data from a table

It is used to create a new table

It is used to update the data in a table

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the SELECT statement in SQL DQL?

To insert data into a database

To delete data from a database

To update data in a database

To retrieve data from a database.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?