Quiz
Conditionals
This quiz has question types that open in the usual player.
Questions in this quiz (5)
1A [blank_start]boolean[blank_end] expression can evaluate to one of two values: a true or a false.
- Aboolean
2Which of the following are examples of comparison operators?
- A>=
- B===
- C>>
- D<
3Which of the following is the logical operator meaning `OR`?
- A!==
- B||
- C<>
- D!
4If you want to include a catchall block of code that would run anytime your `if` condition did not pass, you would use an `else if` block.
- ATrue
- BFalse
5What are some style best practices when it comes to if/else statements?
- AWrapping your condition in parentheses
- BIndenting the body of your if/else statement (the stuff between the {})
- CEnding your if/else statement with a semicolon
- DPutting your whole if/else statement on one line
Information
- Description
- Quiz on Conditionals, created by Code Ramp on 12/04/2018.
- Author
- Code Ramp
- Language
- English
- Views
- 513
- Tags
- Rating
- No ratings yet Rate this quiz