Conditionals

Descripción

Test sobre Conditionals, creado por Code Ramp el 12/04/2018.
Code Ramp
Test por Code Ramp, actualizado hace más de 1 año
Code Ramp
Creado por Code Ramp hace más de 6 años
475
0

Resumen del Recurso

Pregunta 1

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

Pregunta 2

Pregunta
Which of the following are examples of comparison operators?
Respuesta
  • >=
  • ===
  • >>
  • <

Pregunta 3

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

Pregunta 4

Pregunta
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.
Respuesta
  • True
  • False

Pregunta 5

Pregunta
What are some style best practices when it comes to if/else statements?
Respuesta
  • 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
Mostrar resumen completo Ocultar resumen completo

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