Procedures (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 procedure in programming?
What is a procedure in programming?
A subprogram that performs a task
What is the key difference between procedures and functions?
What is the key difference between procedures and functions?
Procedures don't return values
Which keyword is used to create a procedure in Python?
Which keyword is used to create a procedure in Python?
def
What are parameters in a procedure?
What are parameters in a procedure?
Variables that receive values
What are arguments when calling a procedure?
What are arguments when calling a procedure?
Actual values sent to the procedure
How do you call a procedure named showMenu with argument typeMenu?
How do you call a procedure named showMenu with argument typeMenu?
showMenu(typeMenu)
Why is starting parameter names with 'p' considered good practice?
Why is starting parameter names with 'p' considered good practice?
Helps avoid confusion with other names
What happens when you call a procedure with an argument?
What happens when you call a procedure with an argument?
The argument value is copied to parameter
Which statement about return in procedures is correct?
Which statement about return in procedures is correct?
Procedures don't return values
What is a main benefit of using procedures?
What is a main benefit of using procedures?
Code reusability and organization
Which task is a practical application of procedures?
Which task is a practical application of procedures?
Displaying menus
In def showMenu(pType):, what is pType?
In def showMenu(pType):, what is pType?
A parameter
