pencil-icon
Build your own quiz

Computers

Image

KA JS Loops

145
plays

5 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Which of these is not a type of loop in JavaScript?
    while
    for
    repeat
  • 2. Multiple Choice
    30 seconds
    1 pt
    Which of these expressions is NOT a valid way to add 1 to a variable in JavaScript?
    x++
    x += 1
    x = x + 1
    x+
  • 3. Multiple Choice
    30 seconds
    1 pt
    Let's say you have an x variable that starts as 0. If you want your while loop to stop once the x variable equals 400, what condition would you use?
    x < 400
    x > 400
    x == 400
    x >= 400
  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?