
SUBROUTINES Pseudocode

Quiz
•
Computers
•
10th Grade
•
Medium
Andrew Duckworth
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In CIE Pseudocode we should always.. (pick one or more answers)
Write command words in capitals
Use DEFINE for every variable used
Include comments
Ensure that all subroutines are shown at the end of the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the back arrow ← in pseudocode?
It means replace the variable with the new variable
It means use the previous value of the variable
It means assign to the variable
It means check that the variable value is valid
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Pseudocode how can we create a subroutine procedure called drawSquare that will take a size input as a parameter?
SUBROUTINE drawSquare(size: REAL):
SUBROUTINE drawSquare():
INPUT size (REAL)
PROCEDURE drawSquare():
INPUT size (REAL)
PROCEDURE drawSquare(size:REAL):
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which are true about DEFINE statements in pseudocode?
They give the data type of the variable
They can occur anywhere in the program, provided it is before the variable is used
They have the same purpose as def statements in Python
Any variables used in the program or subroutine must be first shown with a DEFINE statement
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of these statements are true?
Subroutines can use variables that are not used in the rest of the progtram
Subroutines can only use variables that are defined at the start of the program
Suboutines in pseudocode may use parameters
Subroutines may return a value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function subroutine in pseudocode can be written as
FUNCTION CountChar():
SUBROUTINE CountChar():
FUNCTION CountChar:
SUBROUTINE CountChar:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Functions and Procedures are the same
Yes
No, procedures cannot use parameters
No, procedures cannot use a RETURN statement
No, functions cannot use parameters
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Pemograman Dasar X

Quiz
•
10th Grade
25 questions
Subroutines

Quiz
•
9th - 11th Grade
20 questions
GD2 - C++ 1.15 Quiz on Algorithms, Flowcharts & Pseudocode

Quiz
•
9th - 12th Grade
22 questions
BJC Unit 1 Practice Quizizz

Quiz
•
9th - 12th Grade
21 questions
G10 CS Validation & Verification

Quiz
•
10th Grade
20 questions
I sottoprogrammi in C

Quiz
•
10th - 12th Grade
26 questions
Basics of Pbasic

Quiz
•
10th - 12th Grade
25 questions
Defensive Design - GCSE Computer Science OCR

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade