tables, attributes, tuples, and relations MCQs in DBMS

By: Prof. Dr. Fazal Rehman Shamil | Last updated: September 23, 2024

MCQs on Tables, Attributes, Tuples, and Relations in DBMS

  1. In a relational database, a table is also known as a:
    • A. Tuple
    • B. Relation
    • C. Attribute
    • D. Schema
    • Answer: B. Relation
  2. Which of the following best describes a tuple in a relational database?
    • A. A column in a table
    • B. A row in a table
    • C. A set of tables
    • D. A database schema
    • Answer: B. A row in a table
  3. In a relational database, an attribute is:
    • A. A row in a table
    • B. A column in a table
    • C. A set of rows
    • D. A table
    • Answer: B. A column in a table
  4. Which term is used to describe the set of all possible values an attribute can have?
    • A. Domain
    • B. Range
    • C. Tuple
    • D. Relation
    • Answer: A. Domain
  5. A relation in a relational database can be defined as:
    • A. A single column in a table
    • B. A collection of rows and columns in a table
    • C. A unique identifier for a row
    • D. A method to retrieve data
    • Answer: B. A collection of rows and columns in a table
  6. Which of the following is a key characteristic of a relation (table) in a relational database?
    • A. Each row is unique.
    • B. Each column has a unique name.
    • C. Columns can have different data types.
    • D. All of the above.
    • Answer: D. All of the above.
  7. In the context of a relational database, a primary key is:
    • A. A unique identifier for each row in a table.
    • B. A column that can have duplicate values.
    • C. A key used to link two tables.
    • D. A non-unique identifier.
    • Answer: A. A unique identifier for each row in a table.
  8. Which of the following is true about a foreign key in a relational database?
    • A. It must be unique within its table.
    • B. It is used to link tables together.
    • C. It cannot be null.
    • D. It is the same as a primary key.
    • Answer: B. It is used to link tables together.
  9. The degree of a relation refers to:
    • A. The number of rows in the relation.
    • B. The number of columns in the relation.
    • C. The number of tables in the database.
    • D. The number of keys in the relation.
    • Answer: B. The number of columns in the relation.
  10. The cardinality of a relation refers to:
    • A. The number of columns in the relation.
    • B. The number of rows in the relation.
    • C. The number of relations in the database.
    • D. The number of keys in the relation.
    • Answer: B. The number of rows in the relation.
  11. Which of the following best describes a composite key?
    • A. A key that uniquely identifies a row and is composed of multiple columns.
    • B. A key that links to a primary key in another table.
    • C. A key that can contain null values.
    • D. A key that is used for indexing.
    • Answer: A. A key that uniquely identifies a row and is composed of multiple columns.
  12. Which of the following SQL commands is used to create a new table in a database?
    • A. INSERT
    • B. UPDATE
    • C. CREATE TABLE
    • D. ALTER TABLE
    • Answer: C. CREATE TABLE
  13. What is the purpose of the NOT NULL constraint in a table column?
    • A. To ensure that all values in the column are unique.
    • B. To ensure that no two rows have the same value in the column.
    • C. To ensure that the column cannot contain null values.
    • D. To link the column to another table.
    • Answer: C. To ensure that the column cannot contain null values.
  14. Which SQL statement is used to modify an existing table structure, such as adding a new column?
    • A. CREATE TABLE
    • B. ALTER TABLE
    • C. DROP TABLE
    • D. SELECT
    • Answer: B. ALTER TABLE
  15. In a relational database, the term “schema” refers to:
    • A. The structure of the database, including tables, columns, and relationships.
    • B. A single table in the database.
    • C. A specific row in a table.
    • D. The data type of a column.
    • Answer: A. The structure of the database, including tables, columns, and relationships.
  16. Which of the following is an example of an attribute in a student database table?
    • A. StudentID
    • B. Students
    • C. Enrollment
    • D. Database
    • Answer: A. StudentID
  17. Which SQL keyword is used to retrieve data from a database table?
    • A. SELECT
    • B. UPDATE
    • C. DELETE
    • D. INSERT
    • Answer: A. SELECT
  18. Which of the following best describes the term “relation” in the context of a relational database?
    • A. A method for querying data.
    • B. A mathematical concept represented by a table.
    • C. A unique identifier for a row.
    • D. A column in a table.
    • Answer: B. A mathematical concept represented by a table.
  19. Which SQL command is used to remove a table from a database?
    • A. DELETE TABLE
    • B. REMOVE TABLE
    • C. DROP TABLE
    • D. ALTER TABLE
    • Answer: C. DROP TABLE
  20. In a relational database, a candidate key is:
    • A. A key that can uniquely identify a row but is not chosen as the primary key.
    • B. A key that cannot contain null values.
    • C. A key that is composed of multiple columns.
    • D. A key that links two tables together.
    • Answer: A. A key that can uniquely identify a row but is not chosen as the primary key.

 

More MCQs Of Database Systems

  1. Database Models MCQs in DBMS
    1. Hierarchical model MCQs in DBMS
    2. Network model MCQs in DBMS
    3. Relational model MCQs in DBMS
    4. Object-oriented model MCQs in DBMS
    5. NoSQL databases MCQs in DBMS
  2. Relational Database Model MCQs in DBMS
    1. tables, attributes, tuples, and relations MCQs in DBMS
    2. Primary keys and foreign keys MCQs in DBMS
    3. Integrity constraints MCQs in DBMS
  3. SQL (Structured Query Language) MCQs in DBMS
    1. Data Definition Language (DDL) MCQs in DBMS
    2. Data Manipulation Language (DML) MCQs in DBMS
    3. Data Control Language (DCL) MCQs in DBMS
    4. Transaction Control Language (TCL) MCQs in DBMS
    5. Advanced SQL queries and functions MCQs in DBMS
  4. Database Design MCQs in DBMS
    1. Entity-Relationship (ER) modeling MCQs in DBMS
    2. Extended ER modeling MCQs in DBMS
    3. Normalization and normal forms (1NF, 2NF, 3NF, BCNF) MCQs in DBMS
    4. Denormalization MCQs in DBMS
  5. Database Management System Architecture MCQs in DBMS
    1. Three-schema architecture (external, conceptual, internal) MCQs in DBMS
    2. Data independence MCQs in DBMS
    3. DBMS components and functions MCQs in DBMS
  6. Storage and File Structure MCQs in DBMS
    1. Data storage on physical media MCQs in DBMS
    2. File organization and access methods MCQs
    3. Indexing (B-trees, hash indexing) MCQs in DBMS
    4. RAID technology MCQs in DBMS
  7. Query Processing and Optimization MCQs in DBMS
  8. Database Transaction Management MCQs in DBMS
    1. ACID properties (Atomicity, Consistency, Isolation, Durability) MCQs in DBMS
    2. Transaction states and lifecycle MCQs in DBMS
    3. Concurrency control techniques (locking, timestamping, multiversion) MCQs in DBMS
    4. Deadlock detection and resolution MCQs in DBMS
  9. Database Security and Authorization MCQs in DBMS
    1. Authentication and authorization mechanisms MCQs in DBMS
    2. Data encryption techniques MCQs in DBMS
    3. Role-based access control MCQs in DBMS
    4. SQL injection prevention MCQs in DBMS
  10. Backup and Recovery MCQs in DBMS
    1. Backup types and strategies MCQs in DBMS
    2. Recovery techniques (log-based, shadow paging) MCQs in DBMS
    3. Disaster recovery planning MCQs in DBMS
  11. Distributed Databases MCQs in DBMS
    1. Distributed database architecture MCQs MCQs in DBMS
    2. Data fragmentation, replication, and allocation in DBMS
    3. Distributed query processing MCQs in DBMS
    4. Consistency models and protocols MCQs in DBMS
  1. SET 1: database design mcqs (database design mcqs )
  2. SET 2: database mcqs with answers pdf (database mcqs with answers pdf )
  3. SET 3: modern database management 12th edition mcqs (modern database management 12th edition mcqs)
  4. SET 4: database systems mcqs (database systems mcqs)
  5. SET 5: dbms mcqs (dbms mcqs )
  6. SET 6: dbms mcqs with answers (dbms mcqs with answers)
  7. SET 7: solved mcqs of dbms (solved mcqs of dbms)
  8. SET 8: dbms mcqs with answers pdf(dbms mcqs with answers pdf)
  9. SET 9: relational database management system mcqs(relational database management system mcqs)
  10. SET 10: solved mcqs of database management system(solved mcqs of database management system)
  11. SET 11: basic database mcqs pdf (basic database mcqs pdf)
  12. SET 12: relational database management system mcqs (relational database management system mcqs )
  13. SET 13: database mcqs online test (database mcqs online test)
  14. SET 14: database interview questions mcqs (database interview questions mcqs)
  15. SET 15: database developer mcqs (database developer mcqs)
  16. SET 16: database Repeated mcqs (database Repeated mcqs)
  17. SET 17: Database mcqs PPSC (Database mcqs PPSC)
  18. SET 18: Database mcqs FPSC (Database mcqs FPSC)
  19. SET 19: DBMS mcqs FPSC (DBMS mcqs FPSC)

New Arrival

Database interview questions