What is a subroutine in programming?
GCSE Computer Science Paper 2: Topic 2.2

Interactive Video
•
Computers
•
10th Grade
•
Medium

Matthew Kelsall
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A specific type of variable
A named block of code designed to perform a specific task
A user interface element
A type of data structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a procedure and a function?
A procedure returns a value, while a function does not
A procedure can use parameters, but a function cannot
A function returns a value, while a procedure does not
A function can only be called once
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variable is accessible only within the subprogram it is declared in?
Parameter
External variable
Global variable
Local variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it important to use sensible naming conventions in programming?
To comply with legal requirements
To reduce memory usage
To increase processing speed
To enhance code readability and maintainability
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of indentation in programming?
To enhance the visual appeal of the code
To indicate the start of a new function
To show the hierarchy of code blocks
To increase the execution speed of the program
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does indexing in an array refer to?
Increasing the size of the array
Deleting an element from the array
Accessing an element using its position
Changing the value of an element
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'for' loop in array processing typically do?
It reduces the size of the array
It accesses each element of the array sequentially
It shuffles the elements randomly
It deletes elements from the array
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Reshaping & vStack&hstack( )

Quiz
•
9th Grade - University
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
8 questions
Numpy Revision Test

Quiz
•
10th Grade
16 questions
C Programming Factorial Quiz

Quiz
•
10th Grade
12 questions
Arrays Intro

Quiz
•
9th - 12th Grade
12 questions
Javascript Arrays

Quiz
•
9th - 12th Grade
10 questions
python

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University