Register|Login

Have a question? Click here to ask the community.

Quiz 15 – While Loop

| In: PHP Quizzes | 24,989 views



4 Responses to Quiz 15 – While Loop

Avatar

ers3

April 28th, 2015 at 11:55 am

For question 3, how do you derive the answer. My question is the code saying it will incrementally increase by one should the answer be 2.

Avatar

Robert Smith

April 28th, 2015 at 1:07 pm

No, the answer will be 6, since the while loop will continue to loop until the conditional statement evaluates to false. So the counter is incremented 5 times while the while loop is being executed. After the while loop is executed, the counter will be equal to 6.

Avatar

Gugu

May 28th, 2016 at 12:31 pm

I don’t understand question 4 and 5,do you mind explaining?

Avatar

mhmd

August 29th, 2016 at 7:33 am

in question 3 not only 1 answer is true

Comment Form

You must be logged in to post a comment.

Users Online

Users Online: 1 User

Most Users Ever Online: 137

Quiz Scores

Advertisments