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?
Line 1
Line 2
Line 3
Line 4
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.