Basic SQL Commands Quiz - CBSE Class 10 Computer Science
Free practice quiz: Basic SQL Commands (CBSE Class 10 Computer Science). 18 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
This CBSE Class 10 Computer Science practice quiz has 18 multiple-choice questions on Basic SQL Commands, and 18 of them come with an explanation. Try the 5 sample questions below (tap an option to check yourself), then play the full quiz online. No sign-up needed.
Start quiz: 18 questions, freeSample questions
Which SQL command is used to retrieve data from a database?
Show answer
Answer: A. SELECT
The SELECT command is used to retrieve data from a database. It allows you to specify which columns of data you want to display.
How do you update a single column in SQL?
Show answer
Answer: A. UPDATE table_name SET column=value WHERE condition;
The UPDATE command is used in SQL to change existing data. The SET clause specifies the column to change and the WHERE clause specifies which rows should be updated.
What does the COUNT() function do?
Show answer
Answer: A. Counts the number of rows
The COUNT() function is used to count the number of rows returned by a query.
Which command is used to change the structure of a table?
Show answer
Answer: A. ALTER TABLE
The ALTER TABLE command is used to add, delete, or modify columns in an existing table.
Which command is used to remove a table and the data within it permanently?
Show answer
Answer: A. DROP TABLE
The DROP TABLE command permanently removes a table, along with all of its data, from the database.
More questions in this quiz
Answers and explanations are in the full quiz.
- What does the SQL command 'INSERT' do?
- Which clause is used with SELECT to filter the records?
- What is the function of the ORDER BY clause in SQL?
- What is a primary key?
- Which SQL function is used to find the highest value in a column?
- How can you rename a column in a result set?
- What does the SQL DISTINCT keyword do?
- Which SQL statement is used to modify data in a database?
- How do you select unique values from a column in SQL?
- Which SQL keyword is used to set a condition for the grouped results in a SELECT statement?
- In SQL, which clause can be used to specify the number of records to return?
- What is a foreign key?
- Which SQL clause is used to combine rows from two or more tables, based on a related column between them?
More quizzes
Browse all Database Concepts quizzes