Small Basic Quiz 06 - Input & Math
Welcome to another Small Basic quiz! Leave comments with any questions or requests for hints!
- List the two methods you use to get information from the keyboard. What is the difference between these two methods?
- A flashing __________ shows that the computer is waiting for the user to type something on the keyboard.
- The Read() method does not return until you press the ______ key.
- A ______ is a message that is used to tell the user what to input.
- Explain the difference between rounding and truncation.
- Write a Small Basic statement that returns a random number between 10 and 20, inclusive.
- Explain what happens when a statement like this is used in a program:
ans = TextWindow.ReadNumber()
What’s wrong with this program? Fix it and try it out!
TextWindow.Write("What is your name? ")
ans = TextWindow.ReadNumber()
TextWindow.WriteLine("You are very gentle " + ans)
Go to https://blogs.msdn.com/SmallBasic to download Small Basic for free and learn all about it!
Have a Small and Basic day!
- Ninja Ed
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