SQL Basics Quiz - CBSE Class 10 ICT
Free practice quiz: SQL Basics (CBSE Class 10 ICT). 19 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 19 questions freeSample questions
Which SQL keyword is used to retrieve data from a database?
- FETCH
- GET
- SELECT
- DISPLAY
Show answer
Answer: C. SELECT
The SELECT keyword is used in SQL to fetch data from a database. It is the most commonly used keyword for querying data.
Which SQL statement is used to delete records from a table?
- DROP
- REMOVE
- DELETE
- CLEAR
Show answer
Answer: C. DELETE
The DELETE statement is used to remove existing records from a table in SQL.
Which SQL function will return the number of records in a table?
- SUM()
- COUNT()
- TOTAL()
- NUMBER()
Show answer
Answer: B. COUNT()
The COUNT() function in SQL returns the number of rows that match a specified criteria.
Which keyword is used to change the structure of an existing database table?
- ALTER
- MODIFY
- CHANGE
- UPDATE
Show answer
Answer: A. ALTER
The ALTER TABLE statement is used to modify the structure of an existing table, such as adding or deleting columns.
Which SQL constraint is used to ensure unique values in a column?
- PRIMARY KEY
- FOREIGN KEY
- UNIQUE
- DEFAULT
Show answer
Answer: C. UNIQUE
The UNIQUE constraint ensures that all values in a column are different from each other.