DBMS Question Bank
DBMS Question Bank
2. Which of the following operators returns TRUE if any of the condi ons are true?
A) AND
B) OR
C) NOT
D) BETWEEN
Answer: B
B) UPDATE
C) SELECT
D) DELETE
Answer: A
B) LIKE
C) IN
D) BETWEEN
Answer: A
15. How do you permanently save data in a database a er adding or upda ng rows?
A) COMMIT
B) ROLLBACK
C) SAVE
D) EXIT
Answer: A
B) SELECT
C) INSERT
D) DELETE
Answer: B
B) LIKE
C) IN
D) IS NULL
Answer: B
26. What command is used to modify the structure of an exis ng table in SQL?
A) UPDATE
B) MODIFY
C) ALTER
D) INSERT
Answer: C
27. Which of the following operators is used to combine mul ple condi ons in a SELECT
query?
A) AND
B) !=
C) IN
D) ||
Answer: A
B) DROP
C) REMOVE
D) ALTER
Answer: B
34. Which of the following commands is used to modify the structure of an exis ng table?
A) ALTER
B) UPDATE
C) INSERT
D) SELECT
Answer: A
36. What SQL keyword is used to select records that match a specific pa ern?
A) IN
B) BETWEEN
C) LIKE
D) IS NULL
Answer: C
37. Which SQL command is used to remove specific rows from a table?
A) DROP
B) DELETE
C) ALTER
D) TRUNCATE
Answer: B
39. Which of the following operators is used to check if a value exists within a list of values?
A) BETWEEN
B) IN
C) LIKE
D) IS NULL
Answer: B
40. In which architecture level does the user directly interact with the DBMS?
A) Internal Level
B) External Level
C) Conceptual Level
D) Storage Level
Answer: B
41. Which of the following is a DML command in SQL?
A) CREATE
B) UPDATE
C) ALTER
D) DROP
Answer: B
B) OR
C) BETWEEN
D) INSERT
Answer: B
47. Which SQL func on is used to count the number of rows in a table?
A) COUNT()
B) SUM()
C) MAX()
D) AVG()
Answer: A
B) UPDATE
C) ALTER
D) MODIFY
Answer: C
51. Which of the following allows grouping of rows based on specific column values?
A) HAVING
B) WHERE
C) GROUP BY
D) ORDER BY
Answer: C
B) DELETE
C) UPDATE
D) ALTER
Answer: C
54. Which of the following constraints ensures that all records in a column are unique?
A) PRIMARY KEY
B) UNIQUE
C) FOREIGN KEY
D) NOT NULL
Answer: B
55. Which SQL operator is used to match a value to any value in a list?
A) LIKE
B) IN
C) BETWEEN
D) IS NULL
Answer: B