dbms mcqs
dbms mcqs
19. Which clause in SQL is used to restrict the rows returned by a query?
a) WHERE
b) ORDER BY
c) HAVING
d) GROUP BY
Answer: a) WHERE
23. What does the ACID property stand for in the context of database
transactions?
a) Atomicity, Consistency, Isolation, Durability
b) Atomicity, Concurrency, Integrity, Durability
c) Accuracy, Consistency, Isolation, Durability
d) None of the above
Answer: a) Atomicity, Consistency, Isolation, Durability
27. What type of join returns all records when there is a match in either the left
or right table?
a) Inner Join
b) Left Join
c) Right Join
d) Full Outer Join
Answer: d) Full Outer Join
29. Which SQL function is used to calculate the total sum of a numeric column?
a) COUNT()
b) AVG()
c) SUM()
d) MIN()
Answer: c) SUM()
34. Which of the following SQL clauses is used to sort the result set in SQL?
a) ORDER BY
b) HAVING
c) WHERE
d) GROUP BY
Answer: a) ORDER BY
35. Which of the following is the most common type of DBMS model used
today?
a) Relational
b) Network
c) Hierarchical
d) Object-Oriented
Answer: a) Relational
36. Which of the following operations can be performed using a transaction in
DBMS?
a) COMMIT
b) ROLLBACK
c) SAVEPOINT
d) All of the above
Answer: d) All of the above
48. Which SQL keyword is used to prevent duplicate records in a query result?
a) DISTINCT
b) UNIQUE
c) NO_DUPLICATE
d) NONE
Answer: a) DISTINCT