
136. OCR A Level (H046-H446) SLR23 – 2.2 Functions & procedures

Quiz
•
Computers
•
11th Grade
•
Hard

James Cole
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is modularity in programming?
The practice of writing code in a single, large block
The concept of breaking a large program into smaller chunks
The process of writing code without errors
A method of passing parameters by value
Answer explanation
Modularity in programming refers to the concept of breaking a large program into smaller, manageable chunks, making the code more organized and easier to maintain.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a function and a procedure?
A procedure returns a value, while a function does not
A function returns a value, while a procedure does not
A function can only take one parameter, while a procedure can take multiple
There is no difference between a function and a procedure
Answer explanation
A function returns a value, while a procedure does not
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does parameter passing by value mean?
A copy of the variable is passed to the subroutine
A pointer to the original variable is passed
The value is passed by reference
The original variable is directly modified
Answer explanation
Parameter passing by value means a copy of the variable is passed to the subroutine, not the original variable itself.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does parameter passing by reference mean?
A pointer to the original variable is passed
The original variable cannot be modified
The value is passed by value
A copy of the variable is passed to the subroutine
Answer explanation
Parameter passing by reference means a pointer to the original variable is passed, allowing modifications to the original variable within the subroutine.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it a good idea to develop code in a modular way?
It requires more memory
It prevents the code from being executed
It allows for code to be reused in different parts of a program
It makes the code harder to understand
Answer explanation
Developing code in a modular way allows for code to be reused in different parts of a program, increasing efficiency and reducing redundancy.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of passing a parameter by reference and modifying it?
The original variable is unaffected
The copy of the variable is modified
The original variable is modified
A new variable is created
Answer explanation
The original variable is modified
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a common way to output text to a console in C#?
print()
System.out.println()
echo()
Console.WriteLine()
Answer explanation
The correct way to output text to a console in C# is by using Console.WriteLine().
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Round-1 Technical Aptitude

Quiz
•
11th Grade - Professi...
10 questions
Python Workshop Week 1 Review

Quiz
•
9th - 12th Grade
12 questions
Programming - Output

Quiz
•
KG - 12th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
10 questions
Edexcel Algorithm Key Terminology

Quiz
•
10th - 12th Grade
18 questions
Coding review

Quiz
•
11th Grade
10 questions
Conditionals - codeHS mod4

Quiz
•
9th - 12th Grade
10 questions
AP Computer Science Principles - Unit 4: Variables, Conditionals

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade