The quiz questions are designed to test your knowledge of the material covered in this hour . The answers to the questions follow.
What is the difference between a command and a function?
Both commands and functions can perform various actions, but a function always returns some sort of value.
If you created a variable and placed "7" inside it, what type of variable would it be?
It could be either a string with one character, the digit 7, or it could be an integer with the number 7. Because the question placed quotes around the "7", it is more likely that it is referring to a string.
Name four important parts of a loop.
A loop has a start point, an end point, a condition test, and some contents.
Should good programmers be able to write bug-free code?
Even a good programmer will have some bugs in her program when it is first complete. However, a good programmer will also test the code and use debugging techniques to eliminate these bugs before finishing.