Freigeben über


Small Basic Quiz 13 - Getting Loopy

First, we'll start with the questions:

  1. What are the two types of loops that Small Basic supports?
  2. What do you call the statements in the loop that are enclosed between the While and EndWhile keywords?
  3. Which loop should you use when you don’t know the number of repetitions in advance?
  4. When the While loop checks the condition, if the condition is true, what happens?
  5. What happens if the condition isn’t true?
  6. What does a sentinel value signal?
  7. What kind of statement can you use to instantly exit a deeply nested loop?

  

Alright.

Take your best shot at answering and write out your answers!

 

Done?

 

Good, then let's get to the hints for each question!

 

  1. Small Basic is good For you. At least While you're learning how to code. Also, one of them is mentioned in #2 and #4.
  2. They're worth a while! It's the part of the loop that shares the same name as what's enclosed between the top of your head and the bottom of your feet!
  3.  Not the For loop, which runs a specific number of times.

Comments