exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 118 discussion

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

Which is true about the & and && prefixes with substitution variables? (Choose all that apply.)

  • A. Both & and && can prefix a substitution variable name in queries and DML statements.
  • B. An & prefix to an undefined substitution variable, which is referenced twice in the same query, will prompt for a value twice.
  • C. & can prefix a substitution variable name only in queries.
  • D. An && prefix to an undefined substitution variable, which is referenced multiple times in multiple queries, will prompt for a value once per query.
  • E. The && prefix will not prompt for a value even if the substitution variable is not previously defined in the session.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
yanoolthecool
7 months, 3 weeks ago
Selected Answer: AB
D is not correct because it will prompt the user once, and only once for all queries, not once for every query.
upvoted 1 times
...
mrcsp
12 months ago
D too select &&a, &&a from dual; select &&a from dual;
upvoted 2 times
Oraclestd24
10 months, 1 week ago
select &&a col1, &&a col2 from dual; select &&a col3 from dual; D can't be answer , because it says " will prompt for a value once per query." but that is not the case.
upvoted 1 times
...
...
lucemqy
1 year, 2 months ago
Selected Answer: AB
AB is correct https://docs.oracle.com/en/database/oracle/oracle-database/21/sqpug/using-substitution-variables-sqlplus.html#GUID-0BEEC1D7-876B-495C-9327-17037652D3D2
upvoted 1 times
...
WingL
1 year, 7 months ago
A.B correct. reference for B If a single ampersand prefix is used with an undefined variable, the value you enter at the prompt is not stored. Immediately after the value is substituted in the statement the variable is discarded and remains undefined. If the variable is referenced twice, even in the same statement, then you are prompted twice.
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