Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 3

An algorithm designed to validate a network packet is shown below:

1  header_length ← packet.get_header_length()
2  payload_size ← packet.get_payload_length()
3  is_valid ← payload_size ≥ 0
4  total_bytes ← header_length + payload_size

Which line number contains a relational operator?

A

Line 1

B

Line 2

C

Line 3

D

Line 4

Markscheme

Relational operations in a programming language Questions

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

11 exam-style questions on AQA GCSE Computer Science Relational operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank