exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 12 discussion

Actual exam question from Oracle's 1z0-071
Question #: 12
Topic #: 1
[All 1z0-071 Questions]

Examine this query:

Which two methods should you use to prevent prompting for a hire date value when this query is executed? (Choose two.)

  • A. Use the DEFINE command before executing the query.
  • B. Replace '&1' with '&&1' in the query.
  • C. Use the UNDEFINE command before executing the query.
  • D. Execute the SET VERIFY OFF command before executing the query.
  • E. Execute the SET VERIFY ON command before executing the query.
  • F. Store the query in a script and pass the substitution value to the script when executing it.
Show Suggested Answer Hide Answer
Suggested Answer: AF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ArslanAltaf
3 months ago
B cannot be an option because the question says "Prevent prompting of hire date value". && will still prompt it once.
upvoted 1 times
...
yanoolthecool
6 months, 3 weeks ago
Selected Answer: AB
Still cant get why F is the answer, it literally says 'pass a value', doesnt that translate to prompting the user? as for B, && does an implicit DEFINE on first value entered via the prompt, but if it was already defined then it will just use the value that was already defined, I say AB.
upvoted 1 times
yanoolthecool
6 months, 3 weeks ago
looking this up was a bit difficult, but GPT says as I say.
upvoted 1 times
...
...
winston
9 months ago
Why is B not correct?..and someone explain how o store a query in a script, i cant get the concept..
upvoted 1 times
Lee_jong_suk
7 months, 1 week ago
vi sql_script.sql select * from employees where employee_id = '&1'; to execute the file -> @sql_script.sql then it will prompt for value -> Enter value for 1:101 here you can enter whatever id you want. These are used to generate reports for debugging.
upvoted 2 times
...
...
Rik92
1 year, 1 month ago
AF are correct. B will promt once, but question asks for no prompting at all C. UNDIFINE is not a thing D/E Verify has nothing to do with prompting
upvoted 2 times
...
J4vi
1 year, 2 months ago
Selected Answer: AF
It's confusing, if you replace &1 with &&1 it would still be asking for the value every time you run the query, it doesn't make sense to me... but if you previously used DEFINE to define that variable, it wouldn't. That's why I think AF is more accurate
upvoted 2 times
...
tangerine141
1 year, 2 months ago
B. By replacing '&1' with '&&1' in the query, it creates a double-ampersand substitution variable which will remember the value of the variable throughout the session and will not prompt for a value every time it is used. F. By storing the query in a script and passing the substitution value to the script when executing it, you can provide a value for the variable before the query is executed. This prevents the query from prompting for a value when it is executed.
upvoted 3 times
...
Orxan_H
1 year, 3 months ago
Why not B?
upvoted 1 times
...
ninjax_m
1 year, 5 months ago
https://www.oreilly.com/library/view/oracle-sqlplus-the/1565925785/ch04s06.html#:~:text=The%20UNDEFINE%20command%20deletes%20a,it%20is%20no%20longer%20needed. The UNDEFINE command deletes a variable definition. If you have created a variable containing sensitive information, such as a password,...
upvoted 1 times
...
dexdinh91
1 year, 6 months ago
Selected Answer: AF
There is no UNDEFINE keyword
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago