Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1=AND(B2>=0,B2<=100) | AUsing > and < excludes the boundary values 0 and 100, so valid marks of 0 or 100 are wrongly rejected. | |
| 2=IF(AND(B2>=1,B2<=10),"OK","Out of range") | BFlags a value in B2 as OK if it is from 1 to 10, otherwise shows the message Out of range | |
| 3Boundary values are allowed in a range check, so the test uses >= and <= rather than > and < | CReturns TRUE only when the value in B2 is between 0 and 100 inclusive, so it is a range check | |
| 4A range check can flag out-of-range data by wrapping the test in IF with a warning message | DThe second test uses >= instead of <=, so the maximum is never enforced and a value such as 150 passes while 50 fails. | |
| 5=AND(B2>=0,B2>=100) | E=IF(AND(B2>=0,B2<=100),"Valid","Check mark") | |
| 6=AND(B2>0,B2<100) | F=AND(B2>=0,B2<=100) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
=AND(B2>=0,B2<=100) — A range check formula. It returns TRUE only if the value in B2 is at least the minimum (0) and at most the maximum (100), so boundary values pass and anything outside is rejected.=AND(B2>=0,B2<=100)=AND(B2>=0,B2<=100)=AND(B2>=0,B2<=100)=IF(AND(B2>=0,B2<=100),"OK","Check")=IF(AND(B2>=0,B2<=100),"OK","Check")