Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-149 Topic 4 Question 29 Discussion

Actual exam question for Oracle's 1Z0-149 exam
Question #: 29
Topic #: 4
[All 1Z0-149 Questions]

Which is true about counter variables in a FOR loop?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Nicholle
5 months ago
I think D) It is accessible outside the body of the loop is false, as the scope of the counter variable is limited to the loop.
upvoted 0 times
...
Thersa
5 months ago
I believe A) It must explicitly be declared is also true, as we need to initialize the counter variable.
upvoted 0 times
...
Gregoria
5 months ago
I agree with Erick, the counter variable can be changed within the loop.
upvoted 0 times
...
Erick
5 months ago
I think B) It can be modified in the body of the loop is true.
upvoted 0 times
...
Carisa
5 months ago
Haha, the counter variable is like my age - it's always changing in the loop, but I can never be NULL!
upvoted 0 times
Marvel
4 months ago
Yes, the counter variable can be modified in the body of the loop.
upvoted 0 times
...
Marvel
5 months ago
That's a good analogy! The counter variable definitely changes in the loop.
upvoted 0 times
...
...
Fatima
6 months ago
I think C is also true. The counter variable can't be NULL, it needs to have a valid value for the loop to work properly.
upvoted 0 times
Keneth
5 months ago
Yes, it needs to have a valid value for the loop to function correctly.
upvoted 0 times
...
Adelle
5 months ago
I agree, the counter variable cannot be NULL.
upvoted 0 times
...
...
Amie
6 months ago
I'd say A and D are true. The counter variable has to be declared explicitly, and it's accessible outside the loop too.
upvoted 0 times
...
Tennie
6 months ago
B is the correct answer. I've used counter variables in FOR loops many times, and I can definitely modify them in the loop body.
upvoted 0 times
Jarvis
5 months ago
I find it helpful that we can change the counter variable in the loop.
upvoted 0 times
...
Shad
5 months ago
Yes, it's convenient to be able to modify the counter variable within the loop.
upvoted 0 times
...
Lezlie
5 months ago
I agree, I always modify my counter variables in the loop body.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77