GoConqr has a new look! Let us know what you think.

Quiz

Conditionals

Code Ramp 5 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (5)

  1. 1A [blank_start]boolean[blank_end] expression can evaluate to one of two values: a true or a false.
    1. Aboolean
  2. 2Which of the following are examples of comparison operators?
    1. A>=
    2. B===
    3. C>>
    4. D<
  3. 3Which of the following is the logical operator meaning `OR`?
    1. A!==
    2. B||
    3. C<>
    4. D!
  4. 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.
    1. ATrue
    2. BFalse
  5. 5What are some style best practices when it comes to if/else statements?
    1. AWrapping your condition in parentheses
    2. BIndenting the body of your if/else statement (the stuff between the {})
    3. CEnding your if/else statement with a semicolon
    4. 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
toefl
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?