Small Basic Quiz 13 - Getting Loopy
First, we'll start with the questions:
- What are the two types of loops that Small Basic supports?
- What do you call the statements in the loop that are enclosed between the While and EndWhile keywords?
- Which loop should you use when you don’t know the number of repetitions in advance?
- When the While loop checks the condition, if the condition is true, what happens?
- What happens if the condition isn’t true?
- What does a sentinel value signal?
- 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!
- 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.
- 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!
- Not the For loop, which runs a specific number of times.
Comments
- Anonymous
January 31, 2016
Computers Today (part 1 of 6) blogs.msdn.com/.../computers-today.aspx ..... CS SPOTLIGHT: Girls in computer programming... why it matters!!! blogs.msdn.com/.../cs-spotlight-girls-in-computer-programming-why-it-matters.aspx ... Computational Thinking - Videos & Papers by Jeannette Wing blogs.msdn.com/.../computational-thinking-videos-amp-papers-by-jeannette-wing.aspx