Oracle 1z0-071 Exam Practice Questions (P. 2)
- Full Access (272 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Which two are true? (Choose two.)
- ACONCAT joins two character strings together.Most Voted
- BCONCAT joins two or more character strings together.
- CFLOOR returns the largest positive integer less than or equal to a specified number.
- DINSTR finds the offset within a character string, starting from position 0.
- EINSTR finds the offset within a string of a single character only.
- FFLOOR returns the largest integer less than or equal to a specified number.Most Voted
Correct Answer:
AF
AF

Understanding the functionality of CONCAT and FLOOR is crucial for database operations. CONCAT specifically combines exactly two strings, which validates option A. Regarding FLOOR, the function's purpose is to return the largest integer that is less than or equal to the specified number. This includes handling both positive and negative numbers. Applying FLOOR to -1.4 results in -2, perfectly aligning with its definition and confirming option F as correct. Thus, the correct pair for the question are options A and F, supporting string operations and numeric rounding respectively in SQL.
send
light_mode
delete
Question #7
Examine these SQL statements which execute successfully:

Which two statements are true after execution? (Choose two.)

Which two statements are true after execution? (Choose two.)
- AThe primary key constraint will be enabled and IMMEDIATE.Most Voted
- BThe foreign key constraint will be enabled and DEFERRED.
- CThe primary key constraint will be enabled and DEFERRED.
- DThe foreign key constraint will be disabled.Most Voted
- EThe foreign key constraint will be enabled and IMMEDIATE.
Correct Answer:
AD
AD
send
light_mode
delete
Question #8
Examine this SQL statement:

Which two are true? (Choose two.)

Which two are true? (Choose two.)
- AAll existing rows in the ORDERS table are updated.Most Voted
- BThe subquery is executed before the UPDATE statement is executed.
- CThe subquery is not a correlated subquery.
- DThe subquery is executed for every updated row in the ORDERS table.Most Voted
- EThe UPDATE statement executes successfully even if the subquery selects multiple rows.
Correct Answer:
AB
AB
send
light_mode
delete
Question #9
Which two statements are true about TRUNCATE and DELETE? (Choose two.)
- ADELETE can use a WHERE clause to determine which row(s) should be removed.
- BTRUNCATE can use a WHERE clause to determine which row(s) should be removed.
- CTRUNCATE leaves any indexes on the table in an UNUSABLE state.
- DThe result of a TRUNCATE can be undone by issuing a ROLLBACK.
- EThe result of a DELETE can be undone by issuing a ROLLBACK.
Correct Answer:
AE
AE

Regarding DELETE and TRUNCATE statements, it's key to recognize their fundamental differences. Firstly, DELETE allows for selective removal of rows using a WHERE clause, offering a high level of control over what gets deleted. Furthermore, since DELETE is a DML operation, its actions are logged, allowing changes to be reversed with a ROLLBACK. On the other hand, TRUNCATE is a DDL operation that quickly removes all rows from a table but doesn't log individual row deletions, thus a ROLLBACK can't undo its effect. This distinction is crucial for deciding between TRUNCATE and DELETE based on the need for precision or efficiency.
send
light_mode
delete
Question #10
The STORES table has a column START_DATE of data type DATE, containing the date the row was inserted.
You only want to display details of rows where START_DATE is within the last 25 months.
Which WHERE clause can be used?
You only want to display details of rows where START_DATE is within the last 25 months.
Which WHERE clause can be used?
- AWHERE TO_NUMBER(start_date - SYSDATE) <= 25
- BWHERE MONTHS_BETWEEN(start_date, SYSDATE) <= 25
- CWHERE MONTHS_BETWEEN(SYSDATE, start_date) <= 25Most Voted
- DWHERE ADD_MONTHS(start_date, 25) <= SYSDATE
Correct Answer:
C
C

Correct use of the `MONTHS_BETWEEN` function in Oracle SQL requires understanding that it returns the number of months between two dates where the first date is later than the second. In this scenario, `MONTHS_BETWEEN(SYSDATE, start_date)` is used, ensuring it shows the number of months since the `start_date` up to the current date, `SYSDATE`. By stipulating that this result must be 25 or fewer months, we are effectively filtering the records to include only those rows where `start_date` is within the last 25 months, corroborating with the scenario where the data was added relatively recently.
send
light_mode
delete
All Pages