Self-Test Questions in PHP Language For Beginners Part 12


1. Which type of PHP loop is not entered unless an expression evaluates to TRUE, and then continues looping until the expression is FALSE?
2. Are curly braces required around loop statements?
3. With which type of loop is at least one iteration guaranteed to occur?
4. With which type of loop can you initialize variables, test for conditions, and modify variables after each iteration, all in a single statement?
5. Which character separates the three sections of a for() loop?
6. How can you include additional variable initializations and post-iteration assignments in a for() loop?
7. With which keyword can you cease execution of a loop, and move program flow to the following statement after the loop?
8. How can you break out of the current loop as well as another loop that contains it?
9. With which keyword can you skip the current iteration of a loop, and move onto the next iteration?
10. While in a loop, how can you drop out of the loop and skip an iteration in the enclosing loop structure?

Self-Test Questions in PHP Language For Beginners Part 12

No comments:

Post a Comment