Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1801 The relational algebra operation SELECT (sigma) is used to:
A
Choose columns from a table
B
Choose rows that satisfy a condition
C
Combine two tables
D
Rename a table
Explanation
SELECT filters a relation horizontally, keeping only rows that meet the condition.
Last verified on 27-11-2026
1802 The relational algebra operation PROJECT (pi) is used to:
A
Choose rows by condition
B
Join two tables
C
Choose specified columns and remove duplicates
D
Delete a table
Explanation
PROJECT filters a relation vertically, keeping only named columns.
Last verified on 27-11-2026
1803 A JOIN operation in a relational database:
A
Deletes rows
B
Splits a table into two
C
Creates a backup
D
Combines rows from two or more tables based on a related column
Explanation
A JOIN matches rows from related tables on a common key value.
Last verified on 27-11-2026
1804 The UNION operation combines:
A
Rows from two compatible relations into one set without duplicates
B
Columns from two tables
C
Two databases into one file
D
A table with its index
Explanation
UNION merges rows from union-compatible relations and drops duplicate rows.
Last verified on 27-11-2026
1805 An atomic value in a relational table means the value:
A
Can be split into smaller meaningful parts
B
Cannot be divided into smaller meaningful parts, such as a single date or number
C
Is always a number
D
Is always null
Explanation
Atomic values, such as one date, are indivisible in the relational model.
Last verified on 27-11-2026
1806 Which constraint prevents a foreign key from referring to a non-existent record?
A
Entity integrity
B
Domain constraint
C
Referential integrity
D
Null constraint
Explanation
Referential integrity requires every foreign key to match an existing primary key.
Last verified on 27-11-2026
1807 If a Student table has StudentID as primary key and an Enrolment table has StudentID as foreign key, deleting a student who has enrolments without a rule would:
A
Automatically update all marks
B
Have no effect
C
Create a new student
D
Violate referential integrity by leaving orphan enrolment rows
Explanation
Deleting the parent leaves child rows pointing to a student who no longer exists.
Last verified on 27-11-2026
1808 If a new student is admitted, the database operation is to:
A
Add a new column
B
Add a new table
C
Change the schema
D
Insert a new row into the Student table
Explanation
A new entity instance is added as a new row, not a new column or table.
Last verified on 27-11-2026
1809 A many-to-many relationship, such as students and courses, is usually implemented by:
A
Storing all data in one table only
B
Using a single foreign key
C
Ignoring the relationship
D
Creating a junction (linking) table with foreign keys to both tables
Explanation
A linking table, such as Enrolment, holds one foreign key to each side.
Last verified on 27-11-2026
1810 A relation in the relational model is:
A
A table with rows and columns where each row is unique and each cell holds an atomic value
B
A tree of parent-child records
C
A file with no structure
D
A graph of nodes
Explanation
A relation is a table with unique rows and single values in each cell.
Last verified on 27-11-2026