Quiz: Controlling Logical Flow

Try this self-check quiz to test your knowledge!

Which operator indicates "OR" in a conditional?

|| && !== The || symbol indicates "OR" in a conditional.

Which are valid comparison operators in a conditional assertion?

== === != @@ ==, ===, and != are valid comparison operators.

What are the three parts of a standard for loop declaration?

Initializer Formatter Exit Condition Final Expression The three parts of a for loop declaration are: Initializer, Exit Condition, Final Expression.

What is the preferred way to loop through an Array?

for loop while loop list loop for ... of loop The for ... of loop is preferred for iterating through an Array.

True or False: Conditionals can be nested?

true false True: Conditionals can be nested.

Visit Quiz Online

The quiz on this page has been removed from your PDF or ebook format. You may take the quiz by visiting this book online.

results matching ""

    No results matching ""