Higher SDD - Subroutines

Quiz
•
Computers
•
10th Grade
•
Medium
Mr Fox
Used 19+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using subroutines in modular programming?
To make the program more complex
To make the program run faster
To increase the size of the program
To organize code into chunks that can be reused
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which subroutine returns a value?
Procedure
Function
Condition
Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword used to declare a function in Python?
define
function
func
def
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of formal parameters in subroutines?
They are the identifiers used to stand in for a value that will be passed when the subroutine is called
They are the actual values passed when the subroutine is called
They are the local scope variables
They are the global scope variables
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of using local scope variables in subroutines?
They can be changed accidentally
They are released from memory when no longer needed
They are visible to the entire program
They can interfere with other parts of the program
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which subroutine does not return any data?
Condition
Loop
Procedure
Function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword used to declare a procedure in Python?
def
procedure
function
proc
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
TLEQ3M1-5

Quiz
•
10th Grade
10 questions
Function evaluation

Quiz
•
10th - 12th Grade
10 questions
Python Subroutines Quiz

Quiz
•
10th Grade
10 questions
TLE QUIZ by G15

Quiz
•
10th Grade
10 questions
Understanding Decomposition in Computing

Quiz
•
10th Grade - University
6 questions
Classes and Objects | Starter Quiz | Oak National Academy

Quiz
•
10th Grade - University
12 questions
GCSE Computing Flash Quiz

Quiz
•
10th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade