Home »
SQL »
SQL MCQs
MCQ | SQL – Basics (Set 1)
SQL Basics MCQ: This section contains the Multiple-Choice Questions & Answers on SQL Basics (Set 1).
Submitted by Anushree Goswami, on August 15, 2021
SQL Basics MCQs (Set 1)
1. What does SQL is used to perform operations on?
- Update Records
- Insert Records
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
SQL (Structured Query Language) is used to update, insert, delete, create, modify, and maintain the records stored in the database.
Discuss this Question
2. What does SQL stand for?
- SQL stands for Sample Query Language
- SQL stands for Structured Query List
- SQL stands for Structured Query Language
- SQL stands for Sample Query List
Answer: C) SQL stands for Structured Query Language
Explanation:
SQL is the short form of Structured Query Language.
Discuss this Question
3. What does this SQL database language design to?
- Maintain the data in hierarchal database management systems.
- Maintain the data in relational database management systems.
- Maintain the data in network database management systems.
- Maintain the data in object-oriented database management systems.
Answer: B) Maintain the data in relational database management systems
Explanation:
SQL database language is designed to maintain the data in relational database management systems.
Discuss this Question
4. SQL became the standard of?
- ASCII
- ANSI
- ISO
- Both B and C
Answer: D) Both B and C
Explanation:
SQL became the standard of ANSI and ISO in the year 1986 and 1987 respectively.
Discuss this Question
5. Which statement is not true about SQL?
- Using SQL in relational databases is all about inserting, updating, and deleting data.
- Sample data can also be described with the aid of this tool.
- It helps develop relational database functions, events, and views.
- A SQL user can also set restrictions and permissions for a table column, a view, and a stored procedure.
Answer: B) Sample data can also be described with the aid of this tool
Explanation:
Structured data can also be described with the aid of this tool.
Discuss this Question
6. SQL contains which component in its process?
- Optimization Engines
- SQL Query Engines
- Query Dispatchers
- All of the above
Answer: D) All of the above
Explanation:
The SQL query process consists of components such as Optimization Engines, SQL Query Engines, and Query Dispatchers, etc.
Discuss this Question
7. Determine the correct SQL command?
- CREATE
- UPDATE
- DELETE
- All of the above
Answer: D) All of the above
Explanation:
Commonly used SQL commands are CREATE, UPDATE, and DELETE, etc.
Discuss this Question
8. What is the work of CREATE command?
- Using this command, you can remove or erase recorded information from a database table.
- It enables you to create new databases, tables, table views, and other objects using this command.
- Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in single rows, we can insert records in multiple rows as well.
- A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE clause with this command is also possible.
Answer: B) It enables you to create new databases, tables, table views, and other objects using this command
Explanation:
INSERT command enables you to create new databases, tables, table views, and other objects.
Discuss this Question
9. What is the work of UPDATE command?
- A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE clause with this command is also possible.
- Using this command, you can remove or erase recorded information from a database table.
- Database data can be updated or changed using this command.
- It enables you to create new databases, tables, table views, and other objects using this command.
Answer: C) Database data can be updated or changed using this command
Explanation:
Using UPDATE command, Database data can be updated or changed.
Discuss this Question
10. What is the work of DELETE command?
- A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE clause with this command is also possible.
- Database data can be updated or changed using this command.
- Database objects such as tables, table views, and other objects can be deleted using this command.
- Using this command, you can remove or erase recorded information from a database table.
Answer: D) Using this command, you can remove or erase recorded information from a database table
Explanation:
Using DELETE command, you can remove or erase recorded information from a database table.
Discuss this Question
11. What is the work of SELECT command?
- Database objects such as tables, table views, and other objects can be deleted using this command.
- Database objects such as tables, table views, and other objects can be deleted using this command.
- One or more rows from one or more tables of the database can be accessed with this command. Using the WHERE clause with this command is also possible.
- It enables you to create new databases, tables, table views, and other objects using this command.
Answer: C) One or more rows from one or more tables of the database can be accessed with this command. Using the WHERE clause with this command is also possible
Explanation:
Using the SELECT command, one or more rows from one or more tables of the database can be accessed. Using the WHERE clause with this command is also possible.
Discuss this Question
12. What is the work of DROP command?
- Using this command, you can remove or erase recorded information from a database table.
- Database objects such as tables, table views, and other objects can be deleted using this command.
- One or more rows from one or more tables of the database can be accessed with this command. Using the WHERE clause with this command is also possible.
- It enables you to create new databases, tables, table views, and other objects using this command.
Answer: B) Database objects such as tables, table views, and other objects can be deleted using this command
Explanation:
Using the DROP command, Database objects such as tables, table views, and other objects can be deleted.
Discuss this Question
13. What is the work of INSERT command?
- Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in single rows, we can insert records in multiple rows as well.
- Database objects such as tables, table views, and other objects can be deleted using this command.
- One or more rows from one or more tables of the database can be accessed with this command. Using the WHERE clause with this command is also possible.
- It enables you to create new databases, tables, table views, and other objects using this command.
Answer: A) Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in single rows, we can insert records in multiple rows as well
Explanation:
Using the INSERT command, inserting records or data into the database tables is accomplished. In addition to inserting records in single rows, we can insert records in multiple rows as well.
Discuss this Question
14. Which statement is not true?
- SQL is rational whereas No-SQL is non-rational.
- SQL follows BASE Model whereas No-SQL follows ACID Model.
- SQL database are vertically scalable whereas No-SQL database are horizontally scalable.
- No-SQL databases are preferable to store hierarchical data in comparison SQL databases.
Answer: B) SQL follows BASE Model whereas No-SQL follows ACID Model
Explanation:
SQL follows ACID Model whereas No-SQL follows BASE Model.
Discuss this Question
15. Which statement is true about the SQL?
- SQL databases are vertically scalable.
- SQL follows BASE Model.
- SQL database cannot handle complex queries.
- SQL database does not require object-relational mapping.
Answer: A) SQL databases are vertically scalable
Explanation:
SQL is vertically scalable. SQL follows the ACID Model. SQL database can easily handle complex queries. SQL database does require object-relational mapping.
Discuss this Question
16. Which statement is true about the No-SQL?
- No-SQL follows ACID Model.
- No-SQL does require object-relational mapping.
- Dynamic schemas for unstructured data are used in No-SQL databases.
- No-SQL databases are not preferable for storage of hierarchal data.
Answer: C) Dynamic schemas for unstructured data are used in No-SQL databases
Explanation:
Dynamic schemas for unstructured data are used in No-SQL databases. No-SQL follows BASE Model. No-SQL does not require object-relational mapping. No-SQL databases are preferable for the storage of hierarchal data.
Discuss this Question
17. SQL has the advantage of?
- SQL require a lot of programming.
- SQL provides High-Speed Query Processing.
- SQL follows the standard languages of ANSI and ISO.
- SQL is easily portable.
Answer: A) SQL require a lot of programming
Explanation:
SQL does not required programming.
Discuss this Question
18. SQL has the disadvantage of?
- SQL is cheap.
- SQL interface is simple.
- Both A and B.
- None of the above.
Answer: D) None of the above
Explanation:
SQL has the disadvantage that it is costly and its interface is complex.
Discuss this Question
19. What is meant by Partial Database Control?
- Business rules are hidden.
- Users or professionals can't have the full control over the database.
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
SQL has the disadvantage of Partial Database Control which means that the business rules are hidden and the users or professionals can't have full control over the database.
Discuss this Question
20. What is meant by 'SQL is an interactive language'?
- Learning and understanding SQL is easy
- It can also be used for communicating with the database.
- In a few seconds, complex queries can also be answered using this language.
- All of the above
Answer: D) All of the above
Explanation:
SQL is an interactive language – it means that learning and understanding SQL is easy, it can also be used for communicating with the database and In a few seconds, complex queries can also be answered using this language.
Discuss this Question