CBSE Class 12 Computer Science Database Concepts MCQs Set 01

Multiple Choice Questions (MCQs) for Class 12 Computer Science: Database Concepts

Access targeted multiple-choice questions for Database Concepts designed to align with the latest CBSE academic syllabus for Class 12 Computer Science. These objective practice sets help students evaluate their conceptual understanding and improve exam readiness.

Practice Database Concepts MCQs for Class 12 Computer Science

View or download the dedicated Database Concepts MCQ resource below. Practicing these 50 objective questions regularly builds familiarity with standard exam patterns and helps secure higher marks in final Computer Science evaluations.

Multiple Choice Questions

Question 1: A relational database is a collection of
(a) Attributes
(b) Tables
(c) Records
(d) Fields
Show Answer & Explanation

Answer: (b) Tables

Explanation:

  • A relational database stores data in tables.
  • So it is a collection of tables.
  • So the answer is (b) Tables.
Question 2: ____________ refers to the attribute that can uniquely identify tuples within the relation.
(a) Foreign key
(b) Consolidate key
(c) Alternate Key
(d) Primary key
Show Answer & Explanation

Answer: (d) Primary key

Explanation:

  • A primary key has a unique value for every row.
  • So it can identify each tuple on its own.
  • So the answer is (d) Primary key.
Question 3: An Alternate key can be defined as
(a) An attribute which is a primary key
(b) An attribute which is not a primary key
(c) A candidate key
(d) None of these
Show Answer & Explanation

Answer: (b) An attribute which is not a primary key

Explanation:

  • A table may have several candidate keys.
  • The one chosen as primary key is the primary key; the others are alternate keys.
  • So an alternate key is an attribute that is not the primary key.
  • So the answer is (b).
Question 4: Consider a table with following structure: Employee(Emp_id, Emp_name, Dept, Desig, basic) In this table which attribute can be used as a primary key?
(a) Emp_id
(b) Emp_name
(c) Dept
(d) Desig
Show Answer & Explanation

Answer: (a) Emp_id

Explanation:

  • A primary key must be different for every row.
  • Emp_id is unique for each employee, but names, departments and designations can repeat.
  • So the answer is (a) Emp_id.
Question 5: An attribute whose value is derived from the primary key of some other table.
(a) Primary key
(b) Foreign key
(c) Alternate key
(d) None of these
Show Answer & Explanation

Answer: (b) Foreign key

Explanation:

  • A foreign key takes its values from the primary key of another table.
  • It links the two tables.
  • So the answer is (b) Foreign key.
Question 6: Each table comprises of ______ and ________ .
(a) rows, columns
(b) data, information
(c) database, table
(d) None of these
Show Answer & Explanation

Answer: (a) rows, columns

Explanation:

  • A table is made of rows and columns.
  • Rows hold records and columns hold attributes.
  • So the answer is (a) rows, columns.
Question 7: How many rules were laid down by E.F Codd?
(a) 10
(b) 11
(c) 12
(d) 13
Show Answer & Explanation

Answer: (c) 12

Explanation:

  • E.F. Codd gave rules for a relational database.
  • They are known as Codd's 12 rules.
  • So the answer is (c) 12.
Question 8: DBMS stands for
(a) Database Microsoft System
(b) Database Migration System
(c) Database Management System
(d) None of the above
Show Answer & Explanation

Answer: (c) Database Management System

Explanation:

  • DBMS is short for Database Management System.
  • It is software to create and manage databases.
  • So the answer is (c) Database Management System.
Question 9: If we delete an attribute of a table
(a) degree increases
(b) cardinality increases
(c) degree and cardinality increase
(d) degree decreases
Show Answer & Explanation

Answer: (d) degree decreases

Explanation:

  • An attribute is a column, and the number of columns is the degree.
  • Deleting a column reduces the degree by one.
  • The number of rows (cardinality) does not change.
  • So the answer is (d) degree decreases.
Question 10: A table can have ………… primary key(s).
(a) 1
(b) 2
(c) 3
(d) multiple
Show Answer & Explanation

Answer: (a) 1

Explanation:

  • A table can have only one primary key.
  • That key may be made of one or more columns.
  • So the answer is (a) 1.
Question 11: Software that is used to create , manipulate , maintain a relational database management system is called
(a) documentation software
(b) spreadsheet software
(c) RDBMS
(d) designing software
Show Answer & Explanation

Answer: (c) RDBMS

Explanation:

  • Software that creates and maintains relational databases is an RDBMS.
  • MySQL and Oracle are examples.
  • So the answer is (c) RDBMS.
Question 12: Which of the following component of database system consists of various secondary storage devices on which data is stored?
(a) Hardware
(b) User
(c) Data
(d) Software
Show Answer & Explanation

Answer: (a) Hardware

Explanation:

  • Data is stored on devices like hard disks.
  • These devices are the hardware of a database system.
  • So the answer is (a) Hardware.
Question 13: A field of a table is termed as __________.
(a) Row
(b) Attribute
(c) Key
(d) Tuple
Show Answer & Explanation

Answer: (b) Attribute

Explanation:

  • A field is a column of a table.
  • A column is also called an attribute.
  • So the answer is (b) Attribute.
Question 14: A RDBMS must comply with at least _______ rules.
(a) 4
(b) 5
(c) 6
(d) 7
Show Answer & Explanation

Answer: (c) 6

Explanation:

  • A system is called an RDBMS if it follows a minimum number of Codd's rules.
  • That minimum is taken as 6 rules.
  • So the answer is (c) 6.
Question 15: A tuple in RDBMS is referred to _________ of a table.
(a) Record
(b) Field
(c) Table
(d) Key
Show Answer & Explanation

Answer: (a) Record

Explanation:

  • A tuple is a row of a table.
  • A row is also called a record.
  • So the answer is (a) Record.
Question 16: Assertion (A): INSERT command is an SQL command.
Reason (R): NOT NULL constraint ensures that a column cannot have a NULL value.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Show Answer & Explanation

Answer: (b) Both A and R are true and R is not the correct explanation for A.

Explanation:

  • INSERT adds rows and is an SQL command, so A is true.
  • NOT NULL stops a column from holding NULL, so R is true.
  • R has nothing to do with A, so it does not explain A.
  • So the answer is (b).
Question 17: Assertion (A): The data in a table once added can be modified later.
Reason (R): ALTER TABLE command is used to modify table structure.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Show Answer & Explanation

Answer: (b) Both A and R are true and R is not the correct explanation for A.

Explanation:

  • Data can be changed later with UPDATE, so A is true.
  • ALTER TABLE changes the table structure, so R is true.
  • But R does not explain why data can be modified.
  • So the answer is (b).
Question 18: Assertion (A): UNIQUE constraint holds same value for the column.
Reason (R): There can be multiple UNIQUE constraints.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Show Answer & Explanation

Answer: (d) A is false but R is true.

Explanation:

  • A UNIQUE constraint does not allow the same value twice in a column, so A is false.
  • A table can have many UNIQUE constraints, so R is true.
  • So the answer is (d) A is false but R is true.
Question 19: Assertion (A): In hierarchical model, searching for a record is very time consuming.
Reason (R): The data is organised in a tree structure
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Show Answer & Explanation

Answer: (a) Both A and R are true and R is the correct explanation for A.

Explanation:

  • In a hierarchical model, data is kept in a tree.
  • To find a record we must go down the tree step by step, which takes time.
  • So R explains A.
  • So the answer is (a).
Question 20: Assertion (A): The columns that are not PRIMARY should have FOREIGN KEY constraint.
Reason (R): Referential integrity is ensured through FOREIGN KEY.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Show Answer & Explanation

Answer: (a) Both A and R are true and R is the correct explanation for A.

Explanation:

  • A FOREIGN KEY links a column to the primary key of another table.
  • It keeps the data of the two tables consistent, so R is true.
  • R explains why such a constraint is used with A.
  • So the answer is (a).
Question 21: Assertion (A): Indexes can be created at the time of table creation.
Reason (R): By default indexes are in descending order.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Show Answer & Explanation

Answer: (c) A is true but R is false.

Explanation:

  • Indexes can be made while creating a table, so A is true.
  • By default an index is in ascending order, not descending, so R is false.
  • So the answer is (c) A is true but R is false.
Question 22: Anita's table Players:
PlayerIdPlayerNameGameTypeAadharNo
P01BeckerTennisIndoor333444657
P02RobinTennisIndoor192900877
P03SunetraFootballOutdoor214567432
P04RakhiCricketOutdoor111231896
Which column(s) can act as candidate key?
(a) Only PlayerId
(b) Only AadharNo
(c) Both (a) and (b)
(d) Type
Show Answer & Explanation

Answer: (c) Both (a) and (b)

Explanation:

  • A candidate key can identify each row uniquely.
  • PlayerId and AadharNo are both different for every player.
  • So the answer is (c) Both (a) and (b).
Question 23: Anita's table Players:
PlayerIdPlayerNameGameTypeAadharNo
P01BeckerTennisIndoor333444657
P02RobinTennisIndoor192900877
P03SunetraFootballOutdoor214567432
P04RakhiCricketOutdoor111231896
What is the degree of the table?
(a) 1
(b) 2
(c) 3
(d) 5
Show Answer & Explanation

Answer: (d) 5

Explanation:

  • Degree is the number of columns.
  • The table has 5 columns: PlayerId, PlayerName, Game, Type, AadharNo.
  • So the answer is (d) 5.
Question 24: Anita's table Players:
PlayerIdPlayerNameGameTypeAadharNo
P01BeckerTennisIndoor333444657
P02RobinTennisIndoor192900877
P03SunetraFootballOutdoor214567432
P04RakhiCricketOutdoor111231896
Which column can she make the primary key?
(a) PlayerId
(b) PlayerName
(c) Game
(d) Type
Show Answer & Explanation

Answer: (a) PlayerId

Explanation:

  • PlayerId is unique for every player.
  • PlayerName, Game and Type can repeat.
  • So the answer is (a) PlayerId.
Question 25: Anita's table Players:
PlayerIdPlayerNameGameTypeAadharNo
P01BeckerTennisIndoor333444657
P02RobinTennisIndoor192900877
P03SunetraFootballOutdoor214567432
P04RakhiCricketOutdoor111231896
What will be the cardinality of the table, if two columns are added to the table?
(a) 7
(b) 6
(c) 4
(d) None of these
Show Answer & Explanation

Answer: (c) 4

Explanation:

  • Cardinality is the number of rows.
  • The table has 4 rows, and adding columns does not change it.
  • So the answer is (c) 4.
Question 26: Anita's table Players:
PlayerIdPlayerNameGameTypeAadharNo
P01BeckerTennisIndoor333444657
P02RobinTennisIndoor192900877
P03SunetraFootballOutdoor214567432
P04RakhiCricketOutdoor111231896
Which column is the foreign key in the table?
(a) PlayerName
(b) Type
(c) Game
(d) None of these
Show Answer & Explanation

Answer: (d) None of these

Explanation:

  • A foreign key refers to the primary key of another table.
  • No column here refers to another table.
  • So the answer is (d) None of these.
Question 27: Consider the following SQL command:
CREATE TABLE MEMBER
( MEM_ID INTEGER NOT NULL,
NAME CHAR(15) NOT NULL,
DATE_JOIN DATE,
SEX CHAR(1) CHECK (SEX= 'M' OR SEX = 'F'),
ADDRESS VARCHAR(100) NOT NULL,
PH_NO CHAR(15),
PRIMARY KEY (MEM_NO),
INDEX MEM_IDX (DATE_JOIN)
);
The INDEX command in above example will
(a) Create an index on field DATE_JOIN
(b) Create an index namely MEM_IDX
(c) Both (a) and (b)
(d) None of the above
Show Answer & Explanation

Answer: (c) Both (a) and (b)

Explanation:

  • INDEX MEM_IDX (DATE_JOIN) names the index MEM_IDX.
  • It creates that index on the column DATE_JOIN.
  • So the answer is (c) Both (a) and (b).
Question 28: Consider the following SQL command:
CREATE TABLE MEMBER
( MEM_ID INTEGER NOT NULL,
NAME CHAR(15) NOT NULL,
DATE_JOIN DATE,
SEX CHAR(1) CHECK (SEX= 'M' OR SEX = 'F'),
ADDRESS VARCHAR(100) NOT NULL,
PH_NO CHAR(15),
PRIMARY KEY (MEM_NO),
INDEX MEM_IDX (DATE_JOIN)
);
NOT NULL ensures that
(a) Column cannot have blank value
(b) Column will not accept any value
(c) Column has a fixed value
(d) Column has a unique value
Show Answer & Explanation

Answer: (a) Column cannot have blank value

Explanation:

  • NOT NULL means the column must always have a value.
  • So it cannot be left blank (NULL).
  • So the answer is (a) Column cannot have blank value.
Question 29: Consider the following SQL command:
CREATE TABLE MEMBER
( MEM_ID INTEGER NOT NULL,
NAME CHAR(15) NOT NULL,
DATE_JOIN DATE,
SEX CHAR(1) CHECK (SEX= 'M' OR SEX = 'F'),
ADDRESS VARCHAR(100) NOT NULL,
PH_NO CHAR(15),
PRIMARY KEY (MEM_NO),
INDEX MEM_IDX (DATE_JOIN)
);
The ______ constraint ensures that the value entered specifies a certain condition.
(a) NOT NULL
(b) NULL
(c) CHECK
(d) All of these
Show Answer & Explanation

Answer: (c) CHECK

Explanation:

  • The CHECK constraint tests a condition on the value entered.
  • Example: SEX = 'M' OR SEX = 'F'.
  • So the answer is (c) CHECK.
Question 30: Consider the following SQL command:
CREATE TABLE MEMBER
( MEM_ID INTEGER NOT NULL,
NAME CHAR(15) NOT NULL,
DATE_JOIN DATE,
SEX CHAR(1) CHECK (SEX= 'M' OR SEX = 'F'),
ADDRESS VARCHAR(100) NOT NULL,
PH_NO CHAR(15),
PRIMARY KEY (MEM_NO),
INDEX MEM_IDX (DATE_JOIN)
);
By default format of date entered is
(a) DD-MM-YY
(b) MM-DD-YY
(c) YYYY-MM-DD
(d) DD-MM-YYYY
Show Answer & Explanation

Answer: (c) YYYY-MM-DD

Explanation:

  • MySQL keeps a date as year-month-day.
  • So the default format is YYYY-MM-DD.
  • So the answer is (c) YYYY-MM-DD.
Question 31: Consider the following SQL command:
CREATE TABLE MEMBER
( MEM_ID INTEGER NOT NULL,
NAME CHAR(15) NOT NULL,
DATE_JOIN DATE,
SEX CHAR(1) CHECK (SEX= 'M' OR SEX = 'F'),
ADDRESS VARCHAR(100) NOT NULL,
PH_NO CHAR(15),
PRIMARY KEY (MEM_NO),
INDEX MEM_IDX (DATE_JOIN)
);
PRIMAY KEY in above example ensures that
(a) MEM_ID is entered primarily
(b) MEM_ID will hold a uniquely identified value
(c) MEM_ID will not remain blank
(d) All of these
Show Answer & Explanation

Answer: (d) All of these

Explanation:

  • A primary key makes the value unique for every row.
  • It also cannot be NULL, so it cannot stay blank.
  • So all the three statements are true.
  • So the answer is (d) All of these.

Practice MCQs for Class 12 Computer Science Database Concepts

About Database Concepts MCQs for Class 12 Computer Science

Test your conceptual understanding of Database Concepts with these targeted multiple-choice questions. Designed in alignment with the latest CBSE curriculum for Class 12 Computer Science, these problem sets build accuracy and prepare students for objective exams.

How to Verify Your MCQ Answers

Cross-reference your completed choices with comprehensive NCERT solutions for Class 12 Computer Science to ensure absolute clarity across all sub-topics in this chapter.

Enhance Speed with Online MCQ Tests

Follow up your worksheet practice by attempting the interactive online Computer Science MCQ test for this chapter to evaluate your execution speed. All platform resources are free to access.

FAQs

Where can I access latest CBSE Class 12 Computer Science Database Concepts MCQs Set 01?

You can get most exhaustive CBSE Class 12 Computer Science Database Concepts MCQs Set 01 for free on StudiesToday.com. These MCQs for Class 12 Computer Science are updated for the 2026-27 academic session as per CBSE examination standards.

Are Assertion-Reasoning and Case-Study MCQs included in the Computer Science Class 12 material?

Yes, our CBSE Class 12 Computer Science Database Concepts MCQs Set 01 include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the CBSE paper is now competency-based.

How do practicing Computer Science MCQs help in scoring full marks in Class 12 exams?

By solving our CBSE Class 12 Computer Science Database Concepts MCQs Set 01, Class 12 students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the Computer Science.

Do you provide answers and explanations for CBSE Class 12 Computer Science Database Concepts MCQs Set 01?

Yes, Computer Science MCQs for Class 12 have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused CBSE exams.

Can I practice these Computer Science Class 12 MCQs online?

Yes, you can also access online interactive tests for CBSE Class 12 Computer Science Database Concepts MCQs Set 01 on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.