Conditionals

Descrição

Quiz sobre Conditionals, criado por Code Ramp em 12-04-2018.
Code Ramp
Quiz por Code Ramp, atualizado more than 1 year ago
Code Ramp
Criado por Code Ramp mais de 6 anos atrás
475
0

Resumo de Recurso

Questão 1

Questão
A [blank_start]boolean[blank_end] expression can evaluate to one of two values: a true or a false.
Responda
  • boolean

Questão 2

Questão
Which of the following are examples of comparison operators?
Responda
  • >=
  • ===
  • >>
  • <

Questão 3

Questão
Which of the following is the logical operator meaning `OR`?
Responda
  • !==
  • ||
  • <>
  • !

Questão 4

Questão
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.
Responda
  • True
  • False

Questão 5

Questão
What are some style best practices when it comes to if/else statements?
Responda
  • 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

Semelhante

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