1. What is the basic PHP construct for testing whether an expression evaluates to TRUE?
2. Within which pair of characters must you enclose if() statements when there is more than one?
3. What statement can you use to take action if the result of an if() condition is FALSE?
4. When an if() expression evaluates to FALSE, how can you then test another expression?
5. How many if(), elseif(), and else statements can you use in a sequence of conditions?
6. In an if() … elseif() … else construct, what is a good rule of thumb to apply to how statements should be encapsulated with curly braces?
7. When there is more than one elseif() statement in a sequence of conditions, what can be a better construct to use instead of if() … elseif() … else?
8. Which keyword is used to test each individual condition in a switch() statement?
9. What keyword is used to signify the end of a sequence of statements following a case keyword?
10. In a switch() statement, which keyword is the equivalent of the else section, as used with an if() construct?
No comments:
Post a Comment