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 4 Question 69 Discussion

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

Consider the following code:

What change should be made to ensure that it correctly displays the value of name in all uppercase letters?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Annelle
26 days ago
I'm cracking up at the typo in Option D. 'sting' instead of 'string'? Somebody needs to proofread these exam questions!
upvoted 0 times
Kati
9 days ago
User 2: I know right, they really need to proofread these questions better.
upvoted 0 times
...
Monroe
19 days ago
User 1: Option D is hilarious, 'sting' instead of 'string'!
upvoted 0 times
...
...
Alana
1 months ago
Option C looks promising, but I'm not sure if document.write() is the best way to display the value. Might be better to use innerHTML or textContent.
upvoted 0 times
Rashad
2 days ago
Option C looks promising, but I'm not sure if document.write() is the best way to display the value. Might be better to use innerHTML or textContent.
upvoted 0 times
...
Marlon
20 days ago
B) Line 2 should be changed to name .prototype . toUpperCase () ;
upvoted 0 times
...
Lynette
26 days ago
A) Line 2 should be changed to name = name . toUpperCase () ;
upvoted 0 times
...
...
Meghan
1 months ago
Haha, Option B is clearly a joke. Why would we need to call toUpperCase() on the prototype? That's just silly.
upvoted 0 times
Selma
7 days ago
Kimberlie: I think so too, calling toUpperCase() directly on the string variable makes more sense.
upvoted 0 times
...
Yesenia
9 days ago
User 3: Option A seems like the correct answer to me.
upvoted 0 times
...
Kimberlie
18 days ago
User 2: Yeah, it's definitely not the right choice.
upvoted 0 times
...
Tasia
22 days ago
User 1: I agree, Option B doesn't make any sense.
upvoted 0 times
...
...
Alecia
2 months ago
I think Option D is the way to go. We need to create a new String object to ensure the name is properly defined.
upvoted 0 times
Sena
9 days ago
User 2: Line 1 should be changed to var name = new String(\'Jaccb\').
upvoted 0 times
...
Micah
26 days ago
User 1: I think Option D is the way to go. We need to create a new String object to ensure the name is properly defined.
upvoted 0 times
...
...
Tanja
2 months ago
Option A is the correct answer. We need to call the toUpperCase() method on the name variable to convert it to uppercase.
upvoted 0 times
...
Daisy
2 months ago
I'm not sure, but I think the answer might be C.
upvoted 0 times
...
Lyndia
2 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Marsha
2 months ago
I think the answer is A.
upvoted 0 times
...

Save Cancel