Subprograms (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Subprograms
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is a subprogram?

A self-contained sequence of instructions

What is the key difference between functions and procedures?

Functions return values, procedures don't

Is print() a function or a procedure?

Procedure

What are arguments?

Actual values sent to a subprogram

What makes built-in subprograms special?

Available everywhere without setup

What data type does input() always return?

String

What data type does len() return?

Integer

What keyword is used to access library subprograms?

import

What does random.randint(1, 6) do?

Gets random number between 1 and 6

What does math.floor(4.7) return?

4

What does math.ceil(4.2) return?

5

How do you write dot notation for library subprograms?

library.subprogram

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.