Reference no: EM1355319
Q1) Choose the multiple choice answer and provide an explanation:
Suppose that input consists of a file of teachers. You are told to write a program to list all English, math, and science teachers. Each teacher can teach only one subject. Further suppose the following percentages in the input file:
¦ 10 percent are science teachers.
¦ 20 percent are math teachers.
¦ 25 percent are English teachers.
¦ 45 percent are teachers who teach subjects other than math, science, and English.
In what order should the conditions be tested? (5.9)
a. English, science, math.
b. English, math, science.
c. Science, English, math.
d. Science, math, English.
e. Math, English, science.
f. Math, science, English.
g. The order does not matter.