Code Ramp
Quiz von , erstellt am more than 1 year ago

Quiz am Conditionals, erstellt von Code Ramp am 12/04/2018.

475
0
0
Code Ramp
Erstellt von Code Ramp vor mehr als 6 Jahre
Schließen

Conditionals

Frage 1 von 5

1

Fülle die Lücke, um den Text zu vervollständigen

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

Erklärung

Frage 2 von 5

1

Which of the following are examples of comparison operators?

Wähle eine oder mehr der folgenden:

  • >=

  • ===

  • >>

  • <

Erklärung

Frage 3 von 5

1

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

Wähle eine der folgenden:

  • !==

  • ||

  • <>

  • !

Erklärung

Frage 4 von 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.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 5 von 5

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung