DBMS QUIZ

DBMS QUIZ

12th Grade

20 Qs

quiz-placeholder

Similar activities

SQL

SQL

12th Grade

20 Qs

SQL Queries

SQL Queries

12th Grade

25 Qs

CFT SQL Final Practice

CFT SQL Final Practice

12th Grade

25 Qs

SQL

SQL

11th - 12th Grade

15 Qs

Understanding Inner Joins in SQL

Understanding Inner Joins in SQL

9th Grade - University

20 Qs

TestOut CompTIA ITF Databases 20 Questions

TestOut CompTIA ITF Databases 20 Questions

10th - 12th Grade

20 Qs

BAZY ACCESS, SQL

BAZY ACCESS, SQL

12th Grade

22 Qs

If,elif,loop

If,elif,loop

11th - 12th Grade

24 Qs

DBMS QUIZ

DBMS QUIZ

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Priyaadharshini M

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to remove a specific record from a table in SQL?

DELETE

UPDATE

INSERT

SELECT

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command undo all the updates performed by the SQL in the transaction?

ROLLBACK

COMMIT

TRUNCATE

DELETE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The FROM SQL clause is used to …

specify what table we are selecting or deleting data FROM

specify range for search condition

specify search condition

None of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What SQL query is used to retrieve the average age of employees?

SELECT AVG(Age) FROM Employees

SELECT AVERAGE(Age) FROM Employees

SELECT SUM(Age)/COUNT(*) FROM Employees

SELECT AGE(AVG) FROM Employees

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you mean by one-to-many relationships?

One class may have many teachers

One teacher can have many classes

Many classes may have many teachers

Many teachers may have many classes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A sample database table named "Employees" with columns "ID," "Name," "Age," and "Department" is created with some data inserted. What SQL query is used to retrieve all columns from the Employees table?

SELECT * FROM Employees;

SELECT Name, Age, Department FROM Employees;

SELECT ID, Name, Age, Department FROM Employees;

SELECT Employees;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the error in "ALTER TABLE Students DROP COLUMN DateOfBirth date;"

ALTER TABLE

DROP COLUMN

DateOfBirth

date

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?