Workshop
The quiz questions are designed to test your knowledge of the material covered in this hour. The answers to the questions follow.
Quiz
-
What is the difference between a command and a function?
-
If you created a variable and placed "7" inside it, what type of variable would it be?
-
Name four important parts of a loop.
-
Should good programmers be able to write bug-free code?
Quiz Answers
-
Both commands and functions can perform various actions, but a function always returns some sort of value.
-
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.
-
A loop has a start point, an end point, a condition test, and some contents.
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.