logic and design study guide for final

2498 Words10 Pages
CIS 121 Logic & Design Study Guide For Final Exam 1 . The two broadest types of data are ____________ . a. internal and external b. volatile and constant c. text and numeric d. permanent and temporary 2 . The following pseudocode is an example of ____. if conditionA is true then do stepE else do stepB do stepC do stepD endif Choose one answer. a. nesting b. stacking c. a posttest d. a pretest 3 . Adding 1 to a variable is also called _____ it. a. digesting b. resetting c. decrementing d. incrementing 4 . When a program or module uses another module, you can refer to the main program as the ____ program. a. director b. calling…show more content…
if-then-else b. do-while c. do-until d. while 30 . ____ errors are detected by a compiler. a. Logic b. Syntax c. Input d. Process CIS 121 Logic and Design Study Guide for Final Exam Multiple Choice 1. Another name for a loop structure is ____. a. execution c. iteration b. selection d. case 2. Suppose a movie theater manager says, “Provide a discount to patrons who are under 13 years old and those who are over 64 years old; otherwise, charge the full price.” Which statement will implement this logic correctly? a. if patronAge < 13 AND patronAge > 64 then price = discountPrice else price = fullPrice endif b. if patronAge > 13 AND patronAge < 64 then price = discountPrice else price = fullPrice endif c. if patronAge < 13 OR patronAge > 64 then price = discountPrice else price = fullPrice endif d. if patronAge > 13 OR patronAge < 64 then price = discountPrice else price = fullPrice endif 3. The statement that best describes the following pseudocode is: ____. if conditionA is true then do stepE else do stepB if conditionF is true then while conditionI is true do stepJ endwhile else do stepG endif do stepD endif a. A decision is nested in a sequence b. A decision is nested in a loop c. A loop is nested in a decision that is nested in another decision d. A sequence is nested inside a
Get Access