# Quiz #3

This quiz deals mostly with questions from chapters #1, #2,and #3 in the text, from the handouts I assigned and from class room notes and examples. If the answer on a T/F is False, please correct or explain.

Question #1: What are the three basic things that a programing language has to support?

Question #2: You want to code a routine where code must be GI and amtOne must be greater than 500 to process and write. Write the pseudocode. You then want to change the routine to test for either code of A or amntOne greater than 500. Write the pseudocode for that. Now explain the differences.

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 must always be true and in addition either condB OR condC must be true.

Question #3: 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 #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 ans = amt + 20 the = is called ___________________.

Question #7: If you want to compare two things for equality, how would you write the statement in JavaScript.

Question #8: In the statement totAmt = parseFloat(totAmt) + parseFloat(amt) if the totAmt contains the value 12 and amt contains the value 17 before the statement is executed, what will totAmt be after the statement is executed.

Question #9: What are the three things that you have to include when writing a loop to make it successful.

Question #10: Write the pseudocode to do the following: State has to be equal to MA and in addition either amt is greater than 50000 or year is greater than 2010. If the criteria is met write the message MEETS CRITERIA, otherwise write the message DOES NOT MEET CRITERIA.