Conditionals

Beschreibung

Quiz am Conditionals, erstellt von Code Ramp am 12/04/2018.
Code Ramp
Quiz von Code Ramp, aktualisiert more than 1 year ago
Code Ramp
Erstellt von Code Ramp vor mehr als 6 Jahre
479
0

Zusammenfassung der Ressource

Frage 1

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

Frage 2

Frage
Which of the following are examples of comparison operators?
Antworten
  • >=
  • ===
  • >>
  • <

Frage 3

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

Frage 4

Frage
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.
Antworten
  • True
  • False

Frage 5

Frage
What are some style best practices when it comes to if/else statements?
Antworten
  • 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
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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