Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Oracle Discussions
Exam 1Z0-149 Topic 4 Question 29 Discussion
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?
A
It must explicitly be declared.
B
It can be modified in the body of the loop.
C
It cannot be NULL.
D
It is accessible outside the body of the loop.
Show Suggested Answer
Hide Answer
Suggested Answer:
C
by
Lili
at
Jun 20, 2024, 02:24 AM
Limited Time Offer
25%
Off
Get Premium 1Z0-149 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
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
...
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
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
Nicholle
5 months agoThersa
5 months agoGregoria
5 months agoErick
5 months agoCarisa
5 months agoMarvel
4 months agoMarvel
5 months agoFatima
6 months agoKeneth
5 months agoAdelle
5 months agoAmie
6 months agoTennie
6 months agoJarvis
5 months agoShad
5 months agoLezlie
5 months ago