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 8 Question 48 Discussion

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

Consider the following code.

Which of the following will occur if the user's response is 25?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Bettye
28 days ago
Wait, is this a trick question? What if the user's response is actually 'twenty-five'? Better go with the safe bet, B.
upvoted 0 times
...
Denise
1 months ago
Haha, I bet the person who wrote this question is a real stickler for syntax. But I'm confident C is the way to go.
upvoted 0 times
Kandis
22 days ago
I agree, C seems like the correct option here.
upvoted 0 times
...
...
Elvera
1 months ago
Oh, I was tempted to go with D, but the question clearly states the user's response is 25, so B must be the right answer.
upvoted 0 times
Nan
9 days ago
Definitely, the code will display the message about not being old enough to rent a car.
upvoted 0 times
...
Brandon
23 days ago
I was also considering D, but now I see that B makes more sense.
upvoted 0 times
...
Marshall
1 months ago
Yeah, I agree. The user's response is 25, so it will display that message.
upvoted 0 times
...
Brittani
1 months ago
I think you're right, B seems to be the correct answer.
upvoted 0 times
...
...
Allene
1 months ago
Hmm, I think the answer is C. The conditional operator should work correctly with the age check.
upvoted 0 times
...
Eun
2 months ago
But if the user's response is 25, the condition will be true and the statement 'You are old enough to rent a car from our car rental agency' will be displayed.
upvoted 0 times
...
Sanda
2 months ago
I disagree, I believe the correct answer is C.
upvoted 0 times
...
Eun
2 months ago
I think the correct answer is B.
upvoted 0 times
...

Save Cancel