Subprograms (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is a subprogram?
What is a subprogram?
A self-contained sequence of instructions
What is the key difference between functions and procedures?
What is the key difference between functions and procedures?
Functions return values, procedures don't
Is print() a function or a procedure?
Is print() a function or a procedure?
Procedure
What are arguments?
What are arguments?
Actual values sent to a subprogram
What makes built-in subprograms special?
What makes built-in subprograms special?
Available everywhere without setup
What data type does input() always return?
What data type does input() always return?
String
What data type does len() return?
What data type does len() return?
Integer
What keyword is used to access library subprograms?
What keyword is used to access library subprograms?
import
What does random.randint(1, 6) do?
What does random.randint(1, 6) do?
Gets random number between 1 and 6
What does math.floor(4.7) return?
What does math.floor(4.7) return?
4
What does math.ceil(4.2) return?
What does math.ceil(4.2) return?
5
How do you write dot notation for library subprograms?
How do you write dot notation for library subprograms?
library.subprogram
