Databases MCQs set 3 for HEC USAT-CS (Computer Science) computer science — 20 solved questions.
Q1. Which database security measure involves controlling access to data based on user identity?
Answer: Authorization
Explanation: Authorization involves controlling access to data based on user identity, ensuring that users can only access data they are permitted to.
Q2. What is the term for a database that is optimized for storing and querying graph data?
Answer: Graph database
Explanation: Graph database is optimized for storing and querying graph data, which represents complex relationships between data entities.
Q3. Which database concept involves storing data in a column-oriented format?
Answer: Column-oriented storage
Explanation: Column-oriented storage involves storing data in a column-oriented format, which can improve query performance for certain types of queries.
Q4. What is the term for a database that is designed for storing and managing time-stamped data?
Answer: Time-series database
Explanation: Time-series database is designed for storing and managing time-stamped data, often used in monitoring and logging applications.
Q5. Which database recovery technique involves periodically saving the state of the database?
Answer: Checkpointing
Explanation: Checkpointing involves periodically saving the state of the database, which can improve recovery time in case of a failure.
Q6. Which SQL command is used to modify existing data in a database?
Answer: UPDATE
Explanation: UPDATE command is used to modify existing data in a database by specifying the columns and values to be updated.
Q7. What is the term for a database that is designed for storing and managing data in a cloud-based environment?
Answer: Cloud database
Explanation: Cloud database is designed for storing and managing data in a cloud-based environment, often providing scalability and flexibility.
Q8. Which database security measure involves encrypting data to protect it from unauthorized access?
Answer: Encryption
Explanation: Encryption involves encrypting data to protect it from unauthorized access, ensuring that even if data is accessed, it cannot be read without decryption.
Q9. Which database model represents data as a collection of tables with well-defined schemas?
Answer: Relational
Explanation: Relational databases organize data into tables with defined relationships, making it easier to manage and query data.
Q10. Which SQL clause is used to filter records based on a condition?
Answer: WHERE
Explanation: The WHERE clause filters records based on a specified condition, narrowing down the result set.
Q11. What is the result of a SQL query with a GROUP BY clause?
Answer: Multiple rows grouped by a column
Explanation: GROUP BY groups rows with the same value in the specified column, enabling aggregation and analysis.
Q12. Which database concept ensures that data remains consistent across transactions?
Answer: Consistency
Explanation: Consistency ensures that the database remains in a valid state, even after multiple transactions, by enforcing data integrity constraints.
Q13. Which database recovery technique involves restoring from a backup and reapplying transactions?
Answer: Rollforward
Explanation: Rollforward recovery reapplies transactions from the log to the restored backup, ensuring data consistency.
Q14. What is the term for a database that is not dependent on a specific database management system?
Answer: Platform-independent database
Explanation: A platform-independent database can be migrated or used across different DBMS without significant modifications.
Q15. Which data modeling technique represents data as entities and relationships?
Answer: Entity-Relationship modeling
Explanation: Entity-Relationship modeling visually represents data entities, attributes, and relationships, facilitating database design.
Q16. What is the term for a database that is optimized for analytical workloads?
Answer: OLAP
Explanation: OLAP databases are designed for fast querying and analysis, typically using aggregated data.
Q17. Which database feature ensures that concurrent transactions do not interfere with each other?
Answer: Isolation
Explanation: Isolation ensures that concurrent transactions are executed independently, preventing data inconsistencies. NET computer science MCQs often test this core concept.
Q18. What is the term for a column or set of columns that uniquely identifies a record?
Answer: Primary key
Explanation: A primary key uniquely identifies each record in a table, ensuring data integrity and preventing duplicates.
Q19. Which SQL statement is used to modify existing data in a database?
Answer: UPDATE
Explanation: The UPDATE statement modifies existing data in a database, allowing for changes to be made to records.
Q20. Which database concept involves storing data in a compressed format?
Answer: Data compression
Explanation: Data compression reduces storage requirements by representing data in a more compact form.