Oracle Database 23ai SQL Associate - 1Z1-171 Exam Practice Test
Question 1
What happens when the maximum value of a sequence is reached?
Correct Answer: B
Question 2
Which of the following SET operators combines results from two queries and removes duplicates?
Correct Answer: C
Question 3
Which SET operator returns rows from the first query that are not present in the second query?
Correct Answer: B
Question 4
Which SQL function can be used to replace NULL values with a specified value?
Correct Answer: B
Question 5
What does the UNION ALL operation do when selecting matching columns from different tables?
SELECT employee_id, salary FROM employees
UNION ALL
SELECT employee_id, bonus FROM bonuses;
SELECT employee_id, salary FROM employees
UNION ALL
SELECT employee_id, bonus FROM bonuses;
Correct Answer: B
Question 6
Which function is used to extract the year from a date in SQL?
Correct Answer: D
Question 7
What is the result of the following SQL query?
SELECT COALESCE(NULL, 100, 200) AS result FROM dual;
SELECT COALESCE(NULL, 100, 200) AS result FROM dual;
Correct Answer: C
Question 8
What happens if a privilege is revoked from a user who has granted the same privilege to others?
Correct Answer: A
Question 9
Which type of join retrieves only the rows with matching values in both tables?
Correct Answer: D
Question 10
Which of the following is a valid reason to create a synonym?
Correct Answer: C

