exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 220 discussion

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

Evaluate these commands which execute successfully:



Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence? (Choose two.)

  • A. Sequence ORD_SEQ is guaranteed not to generate duplicate numbers.
  • B. Sequence ORD_SEQ cycles back to 1 after every 5000 numbers and can cycle 20 times.
  • C. Column ORD_NO gets the next number from sequence and ORD_SEQ whenever a row is inserted into ORD_ITEMS and no explicit value is given for ORD_NO.
  • D. If sequence ORD_SEQ is dropped then the default value for column ORD_NO will be NULL for rows inserted into ORD_ITEMS.
  • E. Any user inserting rows into table ORD_ITEMS must have been granted access to sequence ORD_SEQ.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
yaya32
6 months ago
C for sure, then I am unsure D or E
upvoted 1 times
...
zangado
7 months, 1 week ago
E is correct only if we assume that user doesn't insert ord_no explicitly. If he does than he doesn't need the select privilege on the sequence. In my oppinion only C is correct.
upvoted 1 times
ogi33
2 months, 1 week ago
• During table creation, the sequence must exist and you must have select privilege on it for it to be used as a column default. • The users performing inserts against the table must have select privilege on the sequence, as well as insert privilege on the table.
upvoted 1 times
...
...
jm9999
9 months, 3 weeks ago
Selected Answer: CE
Cannot be A because of 'cycle' specification.
upvoted 1 times
...
Shrimathi
11 months, 3 weeks ago
would be A,E. we can insert ord_no explicitly.
upvoted 2 times
x33
8 months, 3 weeks ago
A is wrong. in the sequence code there is cycle. it means once it has reach the maxvalue start all over from 1. i.e duplicate.
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