Skip to content

Course home

Subprograms

Subprograms

EasyMedium
123456789101112131415161718192021222324252627282930
Question 3

A programmer writes the following section of program code:

username = input("Enter your name: ")
user_age = input("Enter your age: ")
years_left = 100 - int(user_age)
print(username + ", you will be 100 in " + str(years_left) + " years!")

Identify one built-in subprogram used in this code.

[1]
Markscheme

Subprograms Questions

  1. IGCSE
  2. /Computer Science
  3. /Subprograms

33 exam-style questions on Edexcel IGCSE Computer Science Subprograms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank