Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 13

The variable payload is assigned a value.

payload = "temp8105"

Complete the table to show the sequence of outputs when each statement executes.

The first output has been completed for you.

StatementOutput
print(payload.length)8
print(payload.upper)
print(payload.left(4))
print(int(payload.right(4)) * 5)
[3]
Markscheme

Programming fundamentals Questions

  1. GCSE
  2. /Computer Science
  3. /Programming fundamentals

95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank