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
(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.
(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.
(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).
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
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).
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).
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.
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).
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).
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.
| PlayerId | PlayerName | Game | Type | AadharNo |
|---|---|---|---|---|
| P01 | Becker | Tennis | Indoor | 333444657 |
| P02 | Robin | Tennis | Indoor | 192900877 |
| P03 | Sunetra | Football | Outdoor | 214567432 |
| P04 | Rakhi | Cricket | Outdoor | 111231896 |
(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).
| PlayerId | PlayerName | Game | Type | AadharNo |
|---|---|---|---|---|
| P01 | Becker | Tennis | Indoor | 333444657 |
| P02 | Robin | Tennis | Indoor | 192900877 |
| P03 | Sunetra | Football | Outdoor | 214567432 |
| P04 | Rakhi | Cricket | Outdoor | 111231896 |
(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.
| PlayerId | PlayerName | Game | Type | AadharNo |
|---|---|---|---|---|
| P01 | Becker | Tennis | Indoor | 333444657 |
| P02 | Robin | Tennis | Indoor | 192900877 |
| P03 | Sunetra | Football | Outdoor | 214567432 |
| P04 | Rakhi | Cricket | Outdoor | 111231896 |
(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.
| PlayerId | PlayerName | Game | Type | AadharNo |
|---|---|---|---|---|
| P01 | Becker | Tennis | Indoor | 333444657 |
| P02 | Robin | Tennis | Indoor | 192900877 |
| P03 | Sunetra | Football | Outdoor | 214567432 |
| P04 | Rakhi | Cricket | Outdoor | 111231896 |
(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.
| PlayerId | PlayerName | Game | Type | AadharNo |
|---|---|---|---|---|
| P01 | Becker | Tennis | Indoor | 333444657 |
| P02 | Robin | Tennis | Indoor | 192900877 |
| P03 | Sunetra | Football | Outdoor | 214567432 |
| P04 | Rakhi | Cricket | Outdoor | 111231896 |
(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.
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).
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.
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.
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.
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.
Free study material for Computer Science
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
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.
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.
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.
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.
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.