Conditionals

Description

Quiz on Conditionals, created by Code Ramp on 12/04/2018.
Code Ramp
Quiz by Code Ramp, updated more than 1 year ago
Code Ramp
Created by Code Ramp about 6 years ago
475
0

Resource summary

Question 1

Question
A [blank_start]boolean[blank_end] expression can evaluate to one of two values: a true or a false.
Answer
  • boolean

Question 2

Question
Which of the following are examples of comparison operators?
Answer
  • >=
  • ===
  • >>
  • <

Question 3

Question
Which of the following is the logical operator meaning `OR`?
Answer
  • !==
  • ||
  • <>
  • !

Question 4

Question
If 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.
Answer
  • True
  • False

Question 5

Question
What are some style best practices when it comes to if/else statements?
Answer
  • Wrapping your condition in parentheses
  • Indenting the body of your if/else statement (the stuff between the {})
  • Ending your if/else statement with a semicolon
  • Putting your whole if/else statement on one line
Show full summary Hide full summary

Similar

B1 Conditionals recap
Esther Alabart
Conditional Sentences Quiz .
Ricky Rutledge
CONDITIONAL SENTENCES
Amaia García
Conditionals
Luis Alcaraz
JavaScript Fundamentals
Andrew Watters
Second Conditional
Oscar Alonso Baquero Gutierrez
Conditionals
Maria Campos
Mixed conditionals (2nd & 3rd)
Jessica Viviana Toledo
Mixed conditionals
marcommtz17
If clauses conditionals Test
Evelina Gorobet
Chapter 2: If Then Statements and Converses
Lila del Risco