Considering the following code:
Var 1 ;
For (I = 1; I < 10; I ++)
What part of the code fragment initializes the counter variable?
Suggested Answer: C
Get Premium 1D0-735 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
25 comments · newest first
SO
Socorro
18 days ago
Yeah, C) is the clear choice here.
JA
Jaleesa
23 days ago
B) i < 10 just checks the condition.
BR
Brice
29 days ago
Right, A) doesn't initialize anything.
LE
Leah
1 month ago
I feel like A) i++ is just for incrementing.
BU
Bulah
1 month ago
Definitely C), it sets the starting point.
VE
Verdell
1 month ago
I'm not sure, but D) Var 1 seems wrong.
JO
Joaquin
2 months ago
Agreed, C) initializes the counter.
DO
Dolores
2 months ago
I think it's C) i = 1.
CH
Chauncey
2 months ago
C) is definitely the right choice!
CH
Chana
2 months ago
True, it's all about starting the loop correctly.
LO
Lou
2 months ago
D) Var 1 is just declaring, not initializing.
CH
Chauncey
3 months ago
Exactly! Initialization is crucial.
NO
Novella
3 months ago
A) just increments it, not initializes.
CH
Chana
3 months ago
But what about A) i ++?
CH
Chauncey
3 months ago
Yeah, that sets the starting point.
NO
Novella
3 months ago
I think it's C) i = 1.
CL
Clay
3 months ago
D is just a declaration, not an initializer!
KA
Kate
4 months ago
Wait, is it really that simple?
TA
Talia
4 months ago
I thought it might be A at first, but C makes more sense.
JA
Jarod
4 months ago
Totally agree, it's definitely C!
CI
Ciara
4 months ago
C) i = 1 initializes the counter.
LA
Lavonne
4 months ago
I keep mixing up the parts of the loop. I want to say option C is right, but I’m not completely confident. I should double-check my notes!
KA
Kaitlyn
6 months ago
I practiced a similar question before, and I think it was about the loop structure. I feel like option B might be important for the loop condition, not initialization.
FA
Fairy
6 months ago
I'm not entirely sure, but I remember something about initialization being the first assignment. So, maybe it's also related to option D?
DA
Dana
6 months ago
I think the counter variable is initialized in option C, where it says i = 1. That seems to be the starting point.