Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
21 An online shop takes a full backup on Sunday and differential backups daily. To restore to Wednesday, what is needed?
Explanation
A differential contains all changes since the full backup, so only the latest differential is needed.
Last verified on 27-11-2026
22 Which index choice is best for a column used in range searches on OrderDate?
Explanation
B-tree indexes support range and sorted access efficiently, unlike hash indexes.
Last verified on 27-11-2026
23 Which index choice is best for exact-match lookups on a large user ID column?
Explanation
Both hash and B-tree support fast equality lookups on high-cardinality IDs.
Last verified on 27-11-2026
24 A table has 1 million rows and a query filters on Status with only 3 values. What is the likely effect of a B-tree index on Status?
Explanation
Low selectivity means most rows match, so scanning may be as fast as using the index.
Last verified on 27-11-2026
25 What is the best validation for a Pakistani CNIC field in a database?
Explanation
A format check enforces the expected CNIC pattern before storage.
Last verified on 27-11-2026
26 Which data type would you use to store a JSON document in a modern relational database?
Explanation
Modern databases offer a JSON type that validates and can query document content.
Last verified on 27-11-2026
27 A data file has columns Name, Age and City separated by commas and a header row. What format is this?
Explanation
Comma-separated values with a header row describe a CSV file.
Last verified on 27-11-2026
28 A data file has <customers><customer><name>Ali</name></customer></customers>. What format is this?
Explanation
Angle-bracket tags with nested elements are XML.
Last verified on 27-11-2026
29 A data file has {“customers”: [{“name”: “Ali”}]}. What format is this?
Explanation
Curly braces, quoted keys and square-bracket arrays are JSON syntax.
Last verified on 27-11-2026
30 Which combination best protects a database against both accidental deletion and disk failure?
Explanation
Off-site backups plus tested restores cover deletion, corruption and media failure.
Last verified on 27-11-2026