1.Easy
GRANT and REVOKE belong to which part of SQL?
- AData Manipulation Language (DML)
- BData Control Language (DCL)
- CData Query Language (DQL)
- DData Definition Language (DDL)
2.Easy
What does a CROSS JOIN return?
- AOnly the rows that match on a shared key column
- BEvery combination of rows from the two tables
- CThe rows of the first table only
- DOnly rows that do not match
3.Easy
In a LIKE pattern, what does the % wildcard stand for?
- AAny sequence of zero or more characters
- BAny single digit
- CExactly one character in that position of the string
- DThe end of the string
4.Medium
Which ACID property means concurrent transactions do not see each other's unfinished changes?
- AAvailability
- BIsolation
- CDurability
- DAtomicity
5.Medium
What does ROLLBACK TO SAVEPOINT s1 do?
- AUndoes the whole transaction from the beginning
- BUndoes the changes made after savepoint s1, keeping the transaction open
- CDeletes the savepoint and all tables changed since then
- DEnds the transaction and commits everything
6.Medium
A view in SQL is:
- AA stored query that behaves like a virtual table
- BA screen in the database client for browsing tables
- CAn index type
- DA copy of a table on disk
7.Hard
When is a schedule of concurrent transactions called serializable?
- AWhen every transaction is given a serial number
- BWhen no transaction ever reads data
- CWhen the transactions run on one CPU only
- DWhen its effect is equivalent to some serial execution of the same transactions
8.Hard
R(A, B, C, D) has the functional dependencies A → B and C → D. What is the candidate key?
- A{A, C}
- B{C}
- C{B, D}
- D{A}
Answer key
- 1. B · Data Control Language (DCL)
- 2. B · Every combination of rows from the two tables
- 3. A · Any sequence of zero or more characters
- 4. B · Isolation
- 5. B · Undoes the changes made after savepoint s1, keeping the transaction open
- 6. A · A stored query that behaves like a virtual table
- 7. D · When its effect is equivalent to some serial execution of the same transactions
- 8. A · {A, C}
Full step-by-step solutions: practise this topic on examproblems.com.