This quiz deals mostly with questions from chapters #1, #2,and #3 in the text and from class room notes and examples. If the answer on a T/F is False, please correct or explain.
Question #1: What are three abilities a language needs to have to be considered a programming language.?
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: 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 #4: 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 #5: 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.
Question #6: In the pseudocode statement or programming statement rslt = rslt + amt the = is called ___________________.
Question #8: In the statement totAmt = amt1 + amt2 if the amt1 contains the value 17 and amt2 contains the value 24 before the statement is executed, what will totAmt be after the statement is executed. Give me two answers. The first answer is when the browser is convinced it should do a calculation __________________ and the second one is when the browser does not thing it should do a calculation ___________.
Question #9: A statement that gets the first input value in the program or if you are reading a file, the first record in the file is called a ____________________.
Question #10: Errors because you used the language wrong such as right instead of write are called __________________errors. Errors such as adding when you meant to multiply are called __________________ errors.