Class XII(SQL Viva Quiz)

Class XII(SQL Viva Quiz)

12th Grade

15 Qs

quiz-placeholder

Similar activities

Structured Query Language Quiz

Structured Query Language Quiz

12th Grade

15 Qs

Learning SQL

Learning SQL

11th - 12th Grade

15 Qs

SQL Quiz

SQL Quiz

12th Grade

18 Qs

Join-2

Join-2

12th Grade

13 Qs

Databases - Logic Operators

Databases - Logic Operators

3rd - 12th Grade

10 Qs

SQL- Join, Group by, having

SQL- Join, Group by, having

9th - 12th Grade

10 Qs

Web-based Development

Web-based Development

5th Grade - University

15 Qs

SQL 1

SQL 1

11th - 12th Grade

15 Qs

Class XII(SQL Viva Quiz)

Class XII(SQL Viva Quiz)

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Ansara Banu

Used 7+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL function is used to count the number of rows in a SQL query?

COUNT()

NUMBER()

SUM()

COUNT(*)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following SQL clauses is used to DELETE tuples from a database table?

DELETE

REMOVE

DROP

CLEAR

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default

ASC

DESC

There is no default value

None of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a”?

SELECT * FROM Persons WHERE FirstName=’a’

SELECT * FROM Persons WHERE FirstName LIKE ‘a%’

SELECT * FROM Persons WHERE FirstName LIKE ‘%a’

SELECT * FROM Persons WHERE FirstName=’%a%’

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ALTER TABLE clause do?

The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints

The SQL ALTER TABLE clause is used to insert data into database table

THE SQL ALTER TABLE deletes data from database table

The SQL ALTER TABLE clause is used to delete a database table

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?

UPDATE Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

MODIFY Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

MODIFY Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

UPDATE Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SQL query to find all the cities whose humidity is 95.

SELECT city WHERE humidity = 95

SELECT city FROM weather WHERE humidity = 95

SELECT humidity = 89 FROM weather

SELECT city FROM weather

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?