Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1751 Which clause filters rows before they are returned by a SELECT?
Explanation
WHERE filters individual rows using a condition, before grouping or sorting takes place.
Last verified on 27-11-2026
1752 Which operator tests for equality in a WHERE clause?
Explanation
In SQL, a single equals sign tests equality; double equals is not standard SQL.
Last verified on 27-11-2026
1753 Which statement finds employees in the Lahore department?
Explanation
WHERE with an equality test on City returns only rows for Lahore; text values use single quotes.
Last verified on 27-11-2026
1754 Which SQL data type is best for storing a person’s name of variable length?
Explanation
VARCHAR stores variable-length text efficiently, unlike fixed-length CHAR which pads short values.
Last verified on 27-11-2026
1755 Which INSERT statement will fail if StudentID is a primary key and 101 already exists?
Explanation
A primary key must be unique, so inserting a duplicate key value 101 violates the constraint and fails.
Last verified on 27-11-2026
1756 Which data type is most suitable for storing a salary with decimals?
Explanation
DECIMAL stores exact numeric values with a fixed number of decimal places, which suits money amounts.
Last verified on 27-11-2026
1757 What is the effect of UPDATE with SET Salary = Salary * 1.10?
Explanation
Multiplying Salary by 1.10 raises each affected salary by 10 percent of its current value.
Last verified on 27-11-2026
1758 Which statement creates an index on a column to speed up searches?
Explanation
CREATE INDEX builds an index structure that helps the DBMS find rows faster on the indexed column.
Last verified on 27-11-2026
1759 Which DML operation is used to remove a single identified row?
Explanation
A DELETE with WHERE on a unique primary key value removes exactly that one row.
Last verified on 27-11-2026
1760 Which DDL statement changes the data type of an existing column?
Explanation
In standard SQL, ALTER TABLE with MODIFY COLUMN (or ALTER COLUMN in some systems) changes a column definition.
Last verified on 27-11-2026