ITPEC IP October 2018 Question 18
An examination is conducted, and the results of the examination are grouped into four grades “Excellent,” “Good,” “Passed,” and “Not passed,” based on the scores by using spreadsheet software. To show the results of grouping in column C, an expression is entered in cell C1 and then copied to cells C2 through C35. Which of the following is the appropriate expression to be entered into cell C1? Here, the procedure for grouping is as shown below.
Explanation
IF (B1 ≥ 10, ‘Excellent’, IF (B1 ≥ 0, ‘Good’, IF (B1 < −10, ‘Not passed’, ‘Passed’))) — B1 is the score minus the average, so each grade is a range of B1.
The grades in (4) as ranges of B1:
The expression tests B1 ≥ 10 first, then B1 ≥ 0, then B1 < −10; what is left, −10 to just below 0, is Passed. At the boundaries: exactly 10 above the average is Excellent, exactly the average is Good, and exactly 10 below is Passed.
Answer (d)
Why not others:
- •(a) — the labels are scrambled: a score more than 10 above the average gets ‘Passed’, one just above it ‘Not passed’, and one far below ‘Excellent’
- •(b) — B1 > 10 puts a score exactly 10 above the average in Good, and the last two labels are swapped: scores more than 10 below get ‘Passed’, while scores at or just below the average get ‘Not passed’
- •(c) — B1 > 0 for Good lets a score exactly equal to the average fall through to ‘Passed’; “equal to or above the average” needs B1 ≥ 0
Key rule: In a nested IF each test sees only the values the earlier tests rejected; check every boundary value (here 10, 0 and −10) against the wording “or more”, “or less” and “less than”.
Software · AI-written, may contain errors
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.