Rewrite line 2 from the algorithm in Figure 1 without using the NOT operator.
The algorithm must still have the same functionality.
Figure 1
1 score ← USERINPUT
2 IF NOT(score < 40) AND score < 100 THEN
3 OUTPUT "Valid Pass"
4 ELSEIF score < 40 AND score >= 0 THEN
5 OUTPUT "Fail"
6 ELSE
7 OUTPUT "Out of bounds"
8 ENDIF
19 exam-style questions on AQA GCSE Computer Science Boolean operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.