Skip to content
TestMacher
Chapter 3 · Class 11 Informatics Practices

Database Concepts — Important Questions

33 questions With answers CBSE format

SUMMARY: This chapter introduces students to the fundamental concepts of databases and their management systems.
KEY TOPICS: database, DBMS, relational model, SQL, tables, primary key, foreign key, normalization, ER model, data integrity

Q1 1 Mark

Which of the following is a relational database management system?

AExcel
BMS Word
CMySQL
DNotepad
Check answerHide answer
Correct answer: Option 3 — MySQL
Q2 1 Mark

A primary key in a database table is:

AAlways a single column
BUnique and not null
CAlways a foreign key
DA column with duplicates
Check answerHide answer
Correct answer: Option 2 — Unique and not null
Q3 1 Mark

Which SQL command is used to retrieve data from a database?

AGET
BSELECT
CFETCH
DRETRIEVE
Check answerHide answer
Correct answer: Option 2 — SELECT
Q4 1 Mark

Which clause is used to filter rows in SQL?

AWHERE
BFILTER
CHAVING
DIF
Check answerHide answer
Correct answer: Option 1 — WHERE
Q5 1 Mark

A column in a relational database is called a/an:

ATuple
BAttribute
CRelation
DCardinality
Check answerHide answer
Correct answer: Option 2 — Attribute
Q6 3 Marks

Define database and database management system (DBMS).

Q7 3 Marks

Differentiate between primary key and foreign key.

Q8 3 Marks

Differentiate between DDL and DML SQL commands with examples.

Q9 3 Marks

Write a SQL query to display all rows from the table employee.

Q10 3 Marks

Define cardinality and degree of a relation.

Q11 6 Marks

Discuss any five SQL commands (CREATE INSERT SELECT UPDATE DELETE) with one example each.

Q12 6 Marks

Discuss various database keys (primary candidate alternate foreign composite) with examples.

Q13 6 Marks

Compare DBMS and traditional file system on five points.

Q14 6 Marks

Write SQL queries to: (a) create a table student (b) insert 3 rows (c) display students with marks > 80 (d) update marks of one student.

Q15 6 Marks

Discuss SQL aggregate functions COUNT SUM AVG MAX MIN with examples.

Q16 6 Marks

Differentiate between primary key and foreign key in tabular form.

Q17 1 Mark

Assertion (A): Primary key uniquely identifies each row.

Reason (R): It must be unique and not null.

Show explanationHide explanation
Correct answer: Option 1 — Both A and R are true, and R is the correct explanation of A.
Q18 1 Mark

Assertion (A): A foreign key creates a relationship between tables.

Reason (R): It refers to the primary key of another table.

Show explanationHide explanation
Correct answer: Option 1 — Both A and R are true, and R is the correct explanation of A.
Q19 1 Mark

Assertion (A): SELECT is a DQL command.

Reason (R): It retrieves data from one or more tables.

Show explanationHide explanation
Correct answer: Option 1 — Both A and R are true, and R is the correct explanation of A.
Q20 1 Mark

Assertion (A): DDL commands include CREATE ALTER and DROP.

Reason (R): They define and modify the structure of the database.

Show explanationHide explanation
Correct answer: Option 1 — Both A and R are true, and R is the correct explanation of A.
Q21 1 Mark

Assertion (A): A NULL value represents missing data.

Reason (R): It is different from zero or empty string.

Show explanationHide explanation
Correct answer: Option 1 — Both A and R are true, and R is the correct explanation of A.
Q22 1 Mark

Statement 1: A database is a collection of related data.

Statement 2: A DBMS is software to manage that data.

Show answerHide answer
Correct answer: Option 1 — Both statements are true.
Q23 1 Mark

Statement 1: Examples of DBMS include MySQL Oracle and SQL Server.

Statement 2: All support SQL as the standard query language.

Show answerHide answer
Correct answer: Option 1 — Both statements are true.
Q24 1 Mark

Statement 1: A row in a relational table is also called a tuple.

Statement 2: A column is also called an attribute.

Show answerHide answer
Correct answer: Option 1 — Both statements are true.
Q25 1 Mark

Statement 1: Cardinality of a relation is the number of tuples.

Statement 2: Degree is the number of attributes.

Show answerHide answer
Correct answer: Option 1 — Both statements are true.
Q26 1 Mark

Statement 1: SELECT DISTINCT removes duplicates from the result.

Statement 2: It returns unique values for the specified column(s).

Show answerHide answer
Correct answer: Option 1 — Both statements are true.
Q27 3 Marks
A school librarian wants a database to manage book records and borrowings. She decides on three tables — Book(book_id title author copies) Member(member_id name class) and BorrowRecord(borrow_id member_id book_id issue_date return_date). She must identify primary and foreign keys.
  1. book_id in the Book table is the:
    AComposite key
    BPrimary key
    CForeign key
    DCandidate key
  2. member_id in BorrowRecord referring to Member.member_id is a:
    APrimary key
    BForeign key
    CCandidate key
    DComposite key
  3. Identify all primary and foreign keys in the library database design.
Show answersHide answers
1. Option 2 — Primary key
2. Option 2 — Foreign key
3. Book.book_id is the primary key of Book. Member.member_id is the primary key of Member. BorrowRecord.borrow_id is its primary key. BorrowRecord.member_id and BorrowRecord.book_id are foreign keys referring to the primary keys of Member and Book respectively. This relational design avoids data redundancy and enforces referential integrity.
Q28 5 Marks

Match each database key with its definition.

KeyDefinition
Primary?
Candidate?
Alternate?
Foreign?
Composite?
Q29 6 Marks

For sample employee table compute each SQL aggregate result.

emp_idnamedeptsalary
1AnilIT50000
2BobbyHR40000
3ChitraHR35000
4GeetaIT60000
5HariSales40000
Q30 5 Marks

Match each SQL command type with its commands.

TypeCommands
DDL?
DML?
DQL?
DCL?
TCL?
Q31 3 Marks

Study the database keys table and answer:

KeyDefinitionExample
PrimaryUnique not nullroll_no
CandidateCould be primaryroll_no, email
AlternateCandidate not chosenemail
ForeignRefers to anotherdept_id in Employee
CompositeMulti-column(order_id, item_id)
  1. Which key uniquely identifies each row and cannot be NULL?
    APrimary
    BCandidate
    CAlternate
    DForeign
  2. Which key creates a relationship between two tables?
    APrimary
    BForeign
    CComposite
    DAlternate
  3. Explain different types of database keys with one example each.
Show answersHide answers
1. Option 1 — Primary
2. Option 2 — Foreign
3. A primary key uniquely identifies each row. A candidate key can serve as primary (multiple may exist). The alternate key is a candidate not chosen. A foreign key references the primary key of another table — basis of relationships between tables. A composite key uses two or more columns when no single column is unique.
Q32 3 Marks

Study the ER diagram of student-course relationship and answer:

Database Concepts figure
  1. Which is a relationship in the ER diagram?
    AStudent
    BCourse
    CEnrols
    Droll_no
  2. Entities in an ER diagram are represented by:
    ARectangle
    BDiamond
    CEllipse
    DCircle
  3. Explain the components of an ER diagram with the student-course example.
Show answersHide answers
1. Option 3 — Enrols
2. Option 1 — Rectangle
3. In ER diagrams entities are rectangles attributes are ellipses and relationships are diamonds. Cardinality (1:1 1:N M:N) is shown on the relationship lines. Primary keys are underlined. Student-Course is M:N because a student takes many courses and a course has many students.
Q33 3 Marks

Study the SQL JOIN Venn diagrams and answer:

Database Concepts figure
  1. Which JOIN returns only matching rows from both tables?
    AINNER JOIN
    BLEFT JOIN
    CFULL JOIN
    DCROSS JOIN
  2. Which JOIN returns all rows from the LEFT table plus matches from the right?
    AINNER
    BLEFT
    CRIGHT
    DFULL
  3. Differentiate between INNER LEFT and FULL JOINs with examples.
Show answersHide answers
1. Option 1 — INNER JOIN
2. Option 2 — LEFT
3. INNER JOIN returns only matching rows. LEFT JOIN returns all rows from left + matching from right (NULL for non-matches). RIGHT JOIN is the mirror. FULL JOIN returns all rows from both. CROSS JOIN returns Cartesian product. JOINs combine rows based on a related column.

Make a full Informatics Practices paper on Database Concepts.

Pick the question mix, set the marks, hit generate. You get a ready-to-print paper with an answer key.

Generate your paper — free