Computer Science 101 Quiz 1 Name ______________________ ----- PLEASE ALSO WRITE YOUR NAME OF THE BACK OF THE PAPER ------ ----- PLEASE DO NOT FOLD THE PAPER ------ ----- You may leave when you finish ------ 1. Which of the following is NOT one of the three major classes of hardware components found in a computer system: a. processing elements b. programming elements c. storage elements d. communication elements 2. Which of the following is NOT part of the instruction set of the "human computer" discussed in class. a. halt b. sub c. jumpc d. start 3. The effect of the human computer instruction add 20,30,60 is to: a. store a 50 in box 60 b. store a 90 in box 20 c. store the sum of the values d. store the sum of the values found in boxes 20 and 30 in found in boxes 60 and 30 in box 50. box 20. 4. A compiler is a computer program whose typical mission is to: a. convert a assembly language code b. convert C language code to a high level language such as C to assembly language c. execute a program written in in assembly language. 5. The following program is designed to multiply integer values in box 100 and 101 and store the result in box 102. Box# 0 store 0,102 !initialize the sum 1 store 1,103 !initialize the incrementer 2 store 0,104 !initialize the counter 3 jumpc 100,eq,102,7 !Handle 0 multiplier 4 add 101,102,102 !add to the product 5 add 103,104,104 !increment the counter 6 jumpc 104,ne,101,4 !jump back to box 4 7 halt This program has an error that can be fixed by: a. changing box 2 to b. changing box 4 to store 1,104 add 100,101,102 c. changing box 6 to d. none of the above jumpc 104,ne,100,4