































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Here is the 120-question practice exam for the Oracle Database Certification, delivered in 6 batches of 20 questions. The content is aligned with the official exam objectives for the Oracle Database SQL (1Z0-071), Oracle Database Administration I (1Z0-082), and Oracle Database Program with PL/SQL (1Z0-149) certifications. MULTIPLE CHOICE. Batch 1: SQL Fundamentals — Retrieving, Restricting, and Sorting Data (Questions 1–20)
values in specified columns into summary rows, allowing aggregate functions (SUM, AVG, COUNT, etc.) to be applied to each group.
NULL. This is a fundamental concept of NULL handling in Oracle Database.
B. DEFINE employee_name := 'John' C. DEFINE employee_name AS 'John' D. DEFINE employee_name TO 'John' Answer: A Rationale: The DEFINE command in SQL*Plus is used to create a user- defined variable. The syntax is DEFINE variable_name = value (for strings, the value should be enclosed in quotes).
Answer: B Rationale: The LENGTH() function returns the number of characters in a string. For example, LENGTH('Hello') returns 5.
Answer: D Rationale: An INNER JOIN (or simply JOIN) returns only the rows that have matching values in both tables. Joining employees and departments on department_id returns employees with their corresponding department names.
Answer: D Rationale: The UNION operator returns all distinct rows from both queries, eliminating duplicates. UNION ALL returns all rows, including duplicates.
Answer: A Rationale: A subquery is a SELECT statement nested within another SQL statement (such as SELECT, INSERT, UPDATE, DELETE, or another subquery). Subqueries are used to return data that will be used by the main query.
WHERE clause specifies which rows to delete. The DROP statement is a DDL command used to remove an entire table structure.
B. To allow NULL values C. To create an index on the table D. To link two tables together Answer: A Rationale: A PRIMARY KEY constraint uniquely identifies each row in a table. It enforces both uniqueness and the NOT NULL constraint. A table can have only one primary key.
C. NEW INDEX index_name ON table_name (column_name); D. ADD INDEX index_name ON table_name (column_name); Answer: A Rationale: The CREATE INDEX statement is used to create an index on one or more columns of a table. Indexes can be unique or non-unique.
C. The data files D. The redo log files Answer: C Rationale: Data files are the physical files that store all the data in an Oracle Database. They are the primary storage component of the database. The buffer cache, shared pool, and redo logs are memory structures or files that support database operations.