Skip to content

Course home

Boolean operations in a programming language

Boolean operations in a programming language

EasyMedium
123456789101112131415161718
Question 18

Where is a logical operator first used in the algorithm in Figure 1?

Figure 1

1      val ← USERINPUT
2      total ← val + 10
3      IF total >= 50 AND total < 100 THEN
4          OUTPUT "Normal"
5      ELSEIF total >= 100 THEN
6          OUTPUT "High"
7      ELSE
8          OUTPUT "Low"
9      ENDIF
A

Line number 2

B

Line number 3

C

Line number 5

D

Line number 6

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