CBSE Class 12 Computer Science Database Concepts MCQs Set 02

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

Question 1: In files, there is a key associated with each record which is used to differentiate among different records. For every file, there is at least one set of keys that is unique. Such a key is called
(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.
Question 2: Which of the following is not a DBMS?
(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.
Question 3: The total number of rows in a table is called
(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.
Question 4: Which of the following is the drawback of DBMS?
(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.
Question 5: In a relational data model, a data structure that organises the information about a single topic into rows and columns is
(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.
Question 6: Tables can be linked by
(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.
Question 7: Raj wants to make EmpNo and PFNo columns of his table as the primary key. Is it possible?
(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.
Question 8: The total number of columns in a table is called
(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.
Question 9: The attributes which have all the properties of primary key
(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.
Question 10: Which of the following was the first network database?
(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.
Question 11: Which of the following are used in data definition?
(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.
Question 12: The design of the database is known as what?
(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.
Question 13: Assertion (A): A referential integrity is a system of rules of DBMS.
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).
Question 14: Assertion (A): The keyword DISTINCT is used with SELECT command.
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).
Question 15: Assertion (A): CHAR and VARCHAR both are used to store integer values.
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.
Question 16: Assertion (A): Recording of relationship implementation in network model is very complex since pointers are used.
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).
Question 17: Assertion (A): TCL stands for Transaction Control Language.
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.
Question 18: Assertion (A): Cartesian product is a Cross Join
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).
Question 19: Assertion (A): A database consists of a number of tables.
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.
Question 20: To add records in the table which of the following SQL statement is used?
(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.
Question 21: Which is the correct SQL statement to create the table?
(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).
Question 22: To add a new column exp_date in the existing table the statement is
(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).
Question 23: To create an index on name of spices in the existing table, the command is
(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).
Question 24: To view the table structure of the above created table the command is
(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).
Question 25: Consider the table STUDENT with following details.
STU_IDNAMESTREAMMARKSCLASS
1AdityaScience87.512A
2VikramCommerce88.712B
3AsthaHumanities76.812C
4VarshaScience79.512A
5KanishkaScience77.912A
6AnandCommerce86.712B
View all records other than ‘12A’ class
(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.
Question 26: Command to select all Science students from the table STUDENT
(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).
Question 27: Modify the marks of Aastha as 85.5
(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).
Question 28: Add a record of new student ‘Geeta’ of ‘Commerce’ stream in class ‘12B’ and her marks is ‘78.9’.
(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).
Question 29: Delete records that belongs to ‘Humanities’ stream
(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).
Question 30: Mr. Sharma is a new user of database systems. He has created a table storing the details of staff in his office. He is confused about some of the terms related to tables and databases. Help him solving his confusions.
StaffIdStaffNameDeptSalaryPF AcNo
1Mrs. FernandesAccts19500UP/1108
2Mr. DasSales45000WB/6777
3Ms. SunitaIT65000CH/0097
4Mr. RoyAccts25000WB/4567
An attribute which can uniquely identify tuples of the table but is not defined as primary key of the table is called
(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.
Question 31: What is the cardinality of the table?
StaffIdStaffNameDeptSalaryPF AcNo
1Mrs. FernandesAccts19500UP/1108
2Mr. DasSales45000WB/6777
3Ms. SunitaIT65000CH/0097
4Mr. RoyAccts25000WB/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.
Question 32: The vertical set storing the departments under the heading 'Dept' is called
(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.
Question 33: A tuple carries
(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).
Question 34: Can 'StaffName' column serve as primary key?
(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).

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

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

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.

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 02 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 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.

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

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 02 on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.