Code Ramp
Test por , creado hace más de 1 año

Test sobre Conditionals, creado por Code Ramp el 12/04/2018.

475
0
0
Code Ramp
Creado por Code Ramp hace más de 6 años
Cerrar

Conditionals

Pregunta 1 de 5

1

Rellena el espacio en blanco para completar el texto.

A expression can evaluate to one of two values: a true or a false.

Explicación

Pregunta 2 de 5

1

Which of the following are examples of comparison operators?

Selecciona una o más de las siguientes respuestas posibles:

  • >=

  • ===

  • >>

  • <

Explicación

Pregunta 3 de 5

1

Which of the following is the logical operator meaning `OR`?

Selecciona una de las siguientes respuestas posibles:

  • !==

  • ||

  • <>

  • !

Explicación

Pregunta 4 de 5

1

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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 5 de 5

1

What are some style best practices when it comes to if/else statements?

Selecciona una o más de las siguientes respuestas posibles:

  • 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

Explicación