Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
981 Which statement distinguishes a composite key from a simple key?
Explanation
The number of attributes is the defining difference between composite and simple keys.
Last verified on 27-11-2026
982 In Attendance(StudentID, ClassDate, Status), what is the most suitable composite primary key?
Explanation
One student has one attendance record per date, so the pair uniquely identifies a row.
Last verified on 27-11-2026
983 If a composite key has three columns, how many columns must match for two rows to be considered duplicates?
Explanation
Duplicate means the entire combination repeats; matching only part of the key is not a duplicate.
Last verified on 27-11-2026
984 Which of the following tables most needs a composite key?
Explanation
Enrollment is a many-to-many link with no single unique column, so a composite of the two IDs is natural.
Last verified on 27-11-2026
985 A composite key can also be:
Explanation
Any minimal set of attributes that uniquely identifies rows is a candidate key, whether simple or composite.
Last verified on 27-11-2026
986 Can a column that is part of a composite primary key contain NULL?
Explanation
Entity integrity forbids NULL in any part of a primary key, including a composite primary key.
Last verified on 27-11-2026
987 What is the minimum number of columns in a composite key?
Explanation
By definition a composite key is formed from two or more columns; a single-column key is a simple key.
Last verified on 27-11-2026
988 Which SQL clause creates a composite primary key on (StudentID, CourseID)?
Explanation
The PRIMARY KEY clause lists all participating columns in parentheses, making their combination the key.
Last verified on 27-11-2026
989 A table FlightBooking(FlightNo, Date, PassengerID) uses (FlightNo, Date, PassengerID) as its key. What type of key is this?
Explanation
Three columns together identify a booking, so the key is composite.
Last verified on 27-11-2026
990 If (DeptID, EmpNo) is a composite key, which insert would violate it?
Explanation
Uniqueness applies to the whole combination, so repeating both values together is a violation, while repeating one part is allowed.
Last verified on 27-11-2026