Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

PostgreSQL Exam PGCES-02 Topic 1 Question 78 Discussion

Actual exam question for PostgreSQL's PGCES-02 exam
Question #: 78
Topic #: 1
[All PGCES-02 Questions]

A sequence has the following definition: CREATE SEQUENCE seq1 CACHE 10 CYCLE; Select the value that is returned by executing the following SQL. SELECT nextval('seq1');

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

Lajuana
12 days ago
This question is a real sequence-buster! I'm tempted to say E) -10, just to see the look on the examiner's face.
upvoted 0 times
...
Ciara
13 days ago
I'm going to go with A) 0. Why not? Sequences can be a bit unpredictable sometimes, so 0 seems like a good answer to throw off the competition.
upvoted 0 times
...
Elly
16 days ago
Hmm, this is tricky. I'm leaning towards C) 10, because the CACHE 10 parameter means the sequence will pre-allocate 10 values at a time.
upvoted 0 times
Nydia
1 days ago
I think it's B) 1, because the sequence starts at 1 by default.
upvoted 0 times
...
...
Crissy
23 days ago
My guess is D) 11. Since the sequence is set to CYCLE, it will start over from the beginning once it reaches the maximum value, so the next call should return 11.
upvoted 0 times
...
Lacresha
2 months ago
I think the correct answer is B) 1. The CACHE 10 parameter means that the sequence will pre-allocate 10 values, so the first call to nextval() should return 1.
upvoted 0 times
Daren
1 months ago
I think it might be D) 11 because of the CYCLE option.
upvoted 0 times
...
Daren
1 months ago
I agree, the correct answer is B) 1.
upvoted 0 times
...
...
Julene
2 months ago
Hmm, that makes sense too. I guess we'll have to wait and see what the correct answer is.
upvoted 0 times
...
Jeanice
2 months ago
I disagree, I believe the answer is B) 1 because the sequence starts at 0 and the first value returned is 1.
upvoted 0 times
...
Julene
2 months ago
I think the answer is A) 0 because the sequence starts at 0 and cycles after reaching the maximum value.
upvoted 0 times
...

Save Cancel