11.3 Structured Programming Cambridge iAS 9618

Quiz
•
Computers
•
11th Grade
•
Hard

Stephen Ling-Winston
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a procedure in programming?
To define a block of code that performs a specific task.
To store data in a variable.
To execute code based on conditions.
To define a variable in a program.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about the use of procedures?
Procedures are used to avoid repeating code by modularizing tasks.
Procedures must always return a value.
Procedures are used for data storage.
Procedures cannot have parameters.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid reason for using a procedure in algorithm construction?
To break down complex tasks into smaller, reusable blocks of code.
To perform a single operation repeatedly without conditions.
To store data in an array for future use.
To run a block of code based on a fixed condition.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a parameter in a procedure?
A variable passed into a procedure to provide input values.
A block of code that executes a specific task.
A fixed value used in a condition.
A return value from a function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between passing a parameter by reference and by value?
Passing by reference allows the procedure to modify the argument, while passing by value sends a copy of the argument.
Passing by reference sends a copy of the argument, while passing by value directly modifies the original argument.
Passing by reference and passing by value are identical in effect.
Passing by reference is used only for arrays, while passing by value is for primitive types.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary use of a function in structured programming?
To compute and return a value that can be used in expressions.
To perform a task that does not require a return value.
To store a set of related data in a variable.
To execute a block of code repeatedly until a condition is met.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where is a function typically used in an algorithm?
In an expression, where the function's return value is used.
In the main body of a program, to control loops.
In a conditional structure to define the outcome.
To organize code into reusable blocks without needing a return value.
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Parameters and Return Review

Quiz
•
9th - 12th Grade
15 questions
AP CSP Algorithms & Programming (College Board Style)

Quiz
•
9th - 12th Grade
20 questions
AP CSP Exam Review

Quiz
•
9th - 12th Grade
15 questions
Spreadsheets

Quiz
•
1st - 12th Grade
18 questions
Program B: Level 1

Quiz
•
10th - 12th Grade
15 questions
CICS Test 2 Review

Quiz
•
9th - 12th Grade
20 questions
Excel Vocabulary and Screen Parts

Quiz
•
8th - 12th Grade
23 questions
Linear Search Algorithm

Quiz
•
11th 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