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

CIW Exam 1D0-735 Topic 9 Question 41 Discussion

Actual exam question for CIW's 1D0-735 exam
Question #: 41
Topic #: 9
[All 1D0-735 Questions]

Consider the following two code segments:

Which of the following is true about these code segments?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Reid
1 months ago
I'm feeling a bit loopy after looking at these code segments. But I'm going to go with B, the code in Segment 2 will execute one time. Why? Because I have a hunch the universe is just playing a cruel joke on us all.
upvoted 0 times
Gerardo
2 days ago
I'm not so sure about that. I have a feeling both segments might not execute at all.
upvoted 0 times
...
Leigha
15 days ago
I think you're onto something with that hunch. Segment 2 does look like it will execute just once.
upvoted 0 times
...
...
Nickie
1 months ago
This is a tough one, but I'm leaning towards C. The code in both segments just doesn't seem to want to play nice. Maybe we should bribe the compiler with some extra coffee to make it behave. *sips coffee*
upvoted 0 times
Jettie
1 days ago
I'm not so sure about C. I think the code in Segment 1 will execute at least once.
upvoted 0 times
...
Raymon
2 days ago
I think you might be onto something with C. Those code segments do look a bit tricky.
upvoted 0 times
...
Louann
3 days ago
Good idea, let's give it a shot and see if we can figure it out.
upvoted 0 times
...
Deonna
8 days ago
Hmm, I see your point. Maybe we should try running both segments to see what happens.
upvoted 0 times
...
Virgina
16 days ago
I'm not so sure, I believe the code in Segment 2 will execute one time.
upvoted 0 times
...
Linette
1 months ago
I think the code in Segment 1 will execute one time.
upvoted 0 times
...
...
Margurite
1 months ago
Ah, the age-old question of infinite loops. I'm going to have to go with A on this one. Might as well just embrace the chaos, right? Though I'm secretly hoping the code in Segment 2 will somehow defy the laws of programming and execute one time.
upvoted 0 times
...
Kristin
2 months ago
But Segment 1 will execute one time because the loop condition will eventually be false.
upvoted 0 times
...
Elli
2 months ago
Okay, let's see here. I'm pretty sure the code in Segment 1 will execute one time, so I'm going with D. Though I do have a soft spot for the infinite loop option. It's like a never-ending party, but with more debugging involved.
upvoted 0 times
Anabel
1 months ago
Yeah, D seems like the correct choice. Let's go with that.
upvoted 0 times
...
Cecilia
1 months ago
I think you're right, Segment 1 will execute once. D sounds good to me.
upvoted 0 times
...
...
Eric
2 months ago
Hmm, looks like a tricky one. I'm guessing the answer is B, the code in Segment 2 will execute one time. Gotta love those infinite loops, am I right? *wink wink*
upvoted 0 times
...
Delila
2 months ago
I disagree, I believe the answer is A.
upvoted 0 times
...
Kristin
2 months ago
I think the answer is D.
upvoted 0 times
...

Save Cancel