Skip to content

Course home

Boolean operations in a programming language

Boolean operations in a programming language

EasyMedium
123456789101112131415161718
Question 7

Which of the following is a true statement about the algorithm in Figure 1?

Figure 1

1  score ← USERINPUT
2  IF score >= 50 AND score < 100 THEN
3      OUTPUT "Pass"
4  ELSE
5      OUTPUT "Fail"
6  ENDIF
A

This algorithm uses iteration.

B

This algorithm uses a Boolean operator.

C

This algorithm uses a nested selection construct.

D

This algorithm uses a subtraction operator.

Markscheme

Boolean operations in a programming language Questions

  1. GCSE
  2. /Computer Science
  3. /Boolean operations in a programming language

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.

Question bank