This quiz deals mostly with questions from chapter #3 in the text. If the answer on a T/F is False, please correct or explain.
Question #1: What are the three basic structures of a program?
Question #2: When you look at a flowchart you see yes and no as the two decisions. Lets say the question is is the month = October. If the answer is yes you want to display a message saying "the leaves are turning". If the answer is no you want to display a message saying "not October". Write this decision using pseudocode.
Question #3: True or False: A loop needs to have code that tells when to stop repeating the loop.
Question #4: True or False: Inside a loop you need to do something to change the condition that is being tested to determine whether to do the loop again. For example if ct is controlling the loop, you might say ct = ct + 1.
Question #5: When the programmer places a structure within another structure it is called ____________.
Question #6: Having one structure followed by another followed by another is called _______________.
Question #7: A statement that gets the first input value in the program is called a ____________________.
Question #8: The book discusses several reasons for using good structure when you write a program. These reasons are: _______________________________.
Question #9: Unstructured program code can be called ________________________.
Question #10: True of False: ANDs are evaluated before ORs which means that the expression condA AND condB OR condC will be evaluated as condA AND condB must both be true or just condC must be true.
Question #11: True or False: ANDs are evaluated before ORs which means that the expression condA AND condB OR condC will be evaluated as condA must always be true and in addition either condB OR condC must be true.
Question #12: True or False: ANDs are evaluated before ORs, but the order can be changed using parenthesis which means that the expression condA AND (condB OR condC) will be evaluated as condA must always be true and in addition either condB OR condC must be true.