Code Ramp
Quiz por , criado more than 1 year ago

Quiz sobre Conditionals, criado por Code Ramp em 12-04-2018.

475
0
0
Code Ramp
Criado por Code Ramp mais de 6 anos atrás
Fechar

Conditionals

Questão 1 de 5

1

Preencha o espaço em branco para completar o texto.

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

Explicação

Questão 2 de 5

1

Which of the following are examples of comparison operators?

Selecione uma ou mais das seguintes:

  • >=

  • ===

  • >>

  • <

Explicação

Questão 3 de 5

1

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

Selecione uma das seguintes:

  • !==

  • ||

  • <>

  • !

Explicação

Questão 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.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 5 de 5

1

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

Selecione uma ou mais das seguintes:

  • 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

Explicação