Download CBSE MCQs for Class 12 Computer Science: Database Concepts
Review structured MCQ sets for Class 12 Computer Science Database Concepts. Built according to official CBSE guidelines, these downloadable questions support daily revision and core concept reinforcement.
Chapter-wise Objective Questions: Database Concepts
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) unique key
(b) prime attribute
(c) index key
(d) primary key
Show Answer & Explanation
Answer: (d) primary key
Explanation:
- A key that is unique for every record identifies that record.
- In a table, the key chosen to do this is the primary key.
- So the answer is (d) primary key.
(a) MS-Word
(b) MySQL
(c) Oracle
(d) Microsoft SQL Server
Show Answer & Explanation
Answer: (a) MS-Word
Explanation:
- A DBMS is software that stores and manages databases.
- MySQL, Oracle and SQL Server are all DBMS software.
- MS-Word is a word processor.
- So the answer is (a) MS-Word.
(a) domain
(b) tuple
(c) field
(d) cardinality
Show Answer & Explanation
Answer: (d) cardinality
Explanation:
- Rows of a table are also called tuples.
- The number of rows is called the cardinality.
- So the answer is (d) cardinality.
(a) Improvement in data
(b) Backup and recovery
(c) Complexity
(d) Maintenance of data integrity
Show Answer & Explanation
Answer: (c) Complexity
Explanation:
- Improved data, backup and recovery, and data integrity are advantages of a DBMS.
- A DBMS is complex to design, set up and run.
- So the answer is (c) Complexity.
(a) block
(b) record
(c) tuple
(d) table
Show Answer & Explanation
Answer: (d) table
Explanation:
- In a relational model, data is kept in tables.
- A table has rows and columns for one topic.
- So the answer is (d) table.
(a) primary key
(b) candidate key
(c) alternate key
(d) foreign key
Show Answer & Explanation
Answer: (d) foreign key
Explanation:
- A foreign key in one table refers to the primary key of another table.
- This is how two tables are linked.
- So the answer is (d) foreign key.
(a) Yes
(b) No
(c) Yes, possible as a combination of columns
(d) None of the above
Show Answer & Explanation
Answer: (c) Yes, possible as a combination of columns
Explanation:
- A primary key can be made of more than one column.
- Such a key is called a composite primary key.
- So the answer is (c) Yes, possible as a combination of columns.
(a) cardinality
(b) degree
(c) spreadsheet
(d) relation
Show Answer & Explanation
Answer: (b) degree
Explanation:
- The number of columns (attributes) of a table is its degree.
- Cardinality is the number of rows.
- So the answer is (b) degree.
(a) Foreign key
(b) Alternate key
(c) Candidate key
(d) Both (a) and (c)
Show Answer & Explanation
Answer: (c) Candidate key
Explanation:
- Attributes that can act as the primary key are candidate keys.
- One of them is chosen as the primary key.
- So the answer is (c) Candidate key.
(a) SYSTEM 2000
(b) DBTG CODASYL
(c) SYSTEM CODASYL
(d) DBTG 2000
Show Answer & Explanation
Answer: (b) DBTG CODASYL
Explanation:
- The first network database model was developed by the DBTG of CODASYL.
- So the answer is (b) DBTG CODASYL.
(a) DML
(b) DDL
(c) TCL
(d) None of these
Show Answer & Explanation
Answer: (b) DDL
Explanation:
- DDL means Data Definition Language.
- It has commands like CREATE, ALTER and DROP.
- So the answer is (b) DDL.
(a) Attribute
(b) database schema
(c) obstruction
(d) database oriented
Show Answer & Explanation
Answer: (b) database schema
Explanation:
- The overall design or structure of a database is its schema.
- So the answer is (b) database schema.
Reason (R): It ensures that user don’t accidently delete or change related data.
(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 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:
- Referential integrity is a set of rules in a DBMS.
- These rules keep related data in linked tables safe from accidental change or deletion.
- So R explains A.
- So the answer is (a).
Reason (R): DISTINCT keyword eliminates duplicate rows.
(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 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:
- DISTINCT is written after SELECT.
- It removes duplicate rows from the result.
- So R explains why DISTINCT is used.
- So the answer is (a).
Reason (R): CHAR is fixed length and VARCHAR is of variable length.
(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 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:
- CHAR and VARCHAR store text (characters), not integers, so A is false.
- CHAR is fixed length and VARCHAR is variable length, so R is true.
- So the answer is (d) A is false but R is true.
Reason (R): DBTG codasyl was the first network database.
(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 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 correct explanation for A.
Explanation:
- In the network model, relationships use pointers, which makes them complex, so A is true.
- DBTG CODASYL was the first network database, so R is true.
- R does not explain why pointers make it complex.
- So the answer is (b).
Reason (R): These commands perform retrieval, insertion, deletion and modification etc. on databases.
(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 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:
- TCL means Transaction Control Language, so A is true.
- Retrieval, insertion, deletion and modification are done by DML commands, not TCL, so R is false.
- So the answer is (c) A is true but R is false.
Reason (R): An SQL Join query joins tables on condition basis.
(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 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 correct explanation for A.
Explanation:
- The Cartesian product of two tables is also called a cross join, so A is true.
- A join query combines tables on a condition, so R is true.
- R does not explain A.
- So the answer is (b).
Reason (R): Each table comprises of rows and records.
(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 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:
- A database holds a number of tables, so A is true.
- A table has rows and columns; a row is itself a record, so R is false.
- So the answer is (c) A is true but R is false.
(Case: Mr. Sumit Agarwal owns Ramdas Gopal das & Sons, a wholesale spice business. He wants a database to keep track of the spices in the shop and the spices bought by customers.)
(a) ADD
(b) SELECT
(c) INSERT
(d) INSERT INTO
Show Answer & Explanation
Answer: (d) INSERT INTO
Explanation:
- New rows are added with the INSERT INTO statement.
- INSERT alone is not a complete statement.
- So the answer is (d) INSERT INTO.
(a) CREATE TABLE spice(scode integer, sname char(25), price decimal, stock integer)
(b) CREATE spice(scode integer, sname char(25), price decimal, stock integer)
(c) CREATE TABLE spice(scode , sname , price, stock)
(d) SELECT TABLE spice(scode integer, sname char(25), price decimal, stock integer)
Show Answer & Explanation
Answer: (a) CREATE TABLE spice(scode integer, sname char(25), price decimal, stock integer)
Explanation:
- A table is made with CREATE TABLE, followed by each column and its data type.
- (b) misses TABLE, (c) has no data types, (d) uses SELECT.
- So the answer is (a).
(a) ALTER TABLE spice ADD (exp_date date)
(b) UPDATE TABLE spice ADD (exp_date date)
(c) MODIFY spice ADD (exp_date date)
(d) ALTER TABLE spice MODIFY (exp_date date)
Show Answer & Explanation
Answer: (a) ALTER TABLE spice ADD (exp_date date)
Explanation:
- The structure of a table is changed with ALTER TABLE.
- ADD adds a new column.
- So the answer is (a) ALTER TABLE spice ADD (exp_date date).
(a) ALTER TABLE spice ADD INDEX spice_idx (sname)
(b) CREATE INDEX spice_idx ON spice (sname)
(c) CREATE TABLE spice (INDEX spice_idx (sname))
(d) Both (a) and (b)
Show Answer & Explanation
Answer: (d) Both (a) and (b)
Explanation:
- An index can be added with ALTER TABLE ... ADD INDEX.
- It can also be made with CREATE INDEX ... ON table (column).
- Both (a) and (b) work.
- So the answer is (d).
(a) SELECT spice
(b) DESC spice
(c) DESCRIBE spice
(d) Both (b) and (c)
Show Answer & Explanation
Answer: (d) Both (b) and (c)
Explanation:
- DESC is the short form of DESCRIBE.
- Both show the structure of the table.
- So the answer is (d) Both (b) and (c).
| STU_ID | NAME | STREAM | MARKS | CLASS |
|---|---|---|---|---|
| 1 | Aditya | Science | 87.5 | 12A |
| 2 | Vikram | Commerce | 88.7 | 12B |
| 3 | Astha | Humanities | 76.8 | 12C |
| 4 | Varsha | Science | 79.5 | 12A |
| 5 | Kanishka | Science | 77.9 | 12A |
| 6 | Anand | Commerce | 86.7 | 12B |
(a) SELECT DISTINCT CLASS FROM STUDENT
(b) SELECT CLASS FROM STUDENT WHERE (CLASS NOT = ‘Science’)
(c) SELECT * FROM STUDENT WHERE CLASS NOT IN (‘Science’)
(d) None of these
Show Answer & Explanation
Answer: (d) None of these
Explanation:
- To leave out the class 12A we need CLASS NOT IN ('12A') or CLASS <> '12A'.
- (a) only lists the different classes and (b) uses NOT = which is not valid SQL.
- (c) tests CLASS against 'Science', which is a stream, so it returns all rows including 12A.
- So the answer is (d) None of these.
(a) SELECT * FROM STUDENT
(b) SELECT STREAM FROM STUDENT WHERE STREAM= ‘Science’
(c) SELECT * FROM STUDENT WHERE STREAM = ‘Science’
(d) SELECT NAME FROM STUDENT WHERE STREAM = ‘Science’
Show Answer & Explanation
Answer: (c) SELECT * FROM STUDENT WHERE STREAM = ‘Science’
Explanation:
- We need all details of students whose STREAM is Science.
- SELECT * gives all columns and WHERE STREAM = ‘Science’ filters the rows.
- So the answer is (c).
(a) ALTER TABLE STUDENT SET MARKS = 85.5 WHERE NAME = ‘Aastha’
(b) UPDATE STUDENT SET MARKS = 85.5 WHERE NAME=’Aastha’
(c) UPDATE TABLE STUDENT SET MARKS = 85.5 WHERE NAME=’Aastha’
(d) ALTER STUDENT SET MARKS=85.5 WHERE NAME = Aastha’
Show Answer & Explanation
Answer: (b) UPDATE STUDENT SET MARKS = 85.5 WHERE NAME=’Aastha’
Explanation:
- Existing values are changed with UPDATE table SET column = value WHERE condition.
- The word TABLE is not used after UPDATE.
- So the answer is (b).
(a) INSERT INTO STUDENT VALUES (‘Geeta’, ‘Commerce’, ‘12B’, 78.9)
(b) INSERT INTO STUDENT VALUES (7, ‘Geeta’, ‘Commerce’, ‘12B’, 78.9)
(c) INSERT INTO STUDENT VALUES (‘Geeta’, ‘Commerce’, 78.9, ‘12B’)
(d) INSERT INTO STUDENT VALUES (7, ‘Geeta’, ‘Commerce’, 78.9, ‘12B’)
Show Answer & Explanation
Answer: (d) INSERT INTO STUDENT VALUES (7, ‘Geeta’, ‘Commerce’, 78.9, ‘12B’)
Explanation:
- The table has 5 columns in the order STU_ID, NAME, STREAM, MARKS, CLASS.
- The new row must follow this order: 7, ‘Geeta’, ‘Commerce’, 78.9, ‘12B’.
- So the answer is (d).
(a) DELETE FROM STUDENT WHERE STREAM = ‘Humanities’
(b) DROP FROM STUDENT WHERE STREAM = ‘Humanities’
(c) DROP TABLE STUDENT WHERE STREAM = ‘Humanities’
(d) None of these
Show Answer & Explanation
Answer: (a) DELETE FROM STUDENT WHERE STREAM = ‘Humanities’
Explanation:
- Rows are removed with DELETE FROM table WHERE condition.
- DROP removes a whole table, not selected rows.
- So the answer is (a).
| StaffId | StaffName | Dept | Salary | PF AcNo |
|---|---|---|---|---|
| 1 | Mrs. Fernandes | Accts | 19500 | UP/1108 |
| 2 | Mr. Das | Sales | 45000 | WB/6777 |
| 3 | Ms. Sunita | IT | 65000 | CH/0097 |
| 4 | Mr. Roy | Accts | 25000 | WB/4567 |
(a) primary key
(b) alternate key
(c) foreign key
(d) None of these
Show Answer & Explanation
Answer: (b) alternate key
Explanation:
- Candidate keys can identify rows uniquely.
- The one chosen is the primary key; the others are alternate keys.
- So the answer is (b) alternate key.
| StaffId | StaffName | Dept | Salary | PF AcNo |
|---|---|---|---|---|
| 1 | Mrs. Fernandes | Accts | 19500 | UP/1108 |
| 2 | Mr. Das | Sales | 45000 | WB/6777 |
| 3 | Ms. Sunita | IT | 65000 | CH/0097 |
| 4 | Mr. Roy | Accts | 25000 | WB/4567 |
(a) 2
(b) 3
(c) 4
(d) 1
Show Answer & Explanation
Answer: (c) 4
Explanation:
- Cardinality is the number of rows.
- The Staff table has 4 rows (StaffId 1 to 4).
- So the answer is (c) 4.
(a) field
(b) attribute
(c) column
(d) All of these
Show Answer & Explanation
Answer: (d) All of these
Explanation:
- A vertical set of values in a table is a column.
- A column is also called a field or an attribute.
- So the answer is (d) All of these.
(a) a single value
(b) double values
(c) a row of multiple values as a record
(d) None of the above
Show Answer & Explanation
Answer: (c) a row of multiple values as a record
Explanation:
- A tuple is another name for a row.
- It holds one value for each column, as one record.
- So the answer is (c).
(a) No
(b) Yes, only if it stores non-blank and distinct names
(c) Yes, only if it stores only distinct names
(d) Yes
Show Answer & Explanation
Answer: (b) Yes, only if it stores non-blank and distinct names
Explanation:
- A primary key must be unique and cannot be NULL (blank).
- So StaffName can be the key only if every name is distinct and non-blank.
- So the answer is (b).
Free study material for Computer Science
Download Chapter MCQs: 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
Each question includes structured solution keys mapped directly to standard CBSE textbooks, helping students evaluate their reasoning and correct mistakes early in their revision.
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 02 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 02 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 02, 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 02 on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.