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
20 questions
A-level Subroutine

Quiz
•
11th Grade
20 questions
C++ Chapter 6 Review - Functions

Quiz
•
10th Grade - University
20 questions
Excel - Formulas, Functions & Formatting

Quiz
•
10th - 12th Grade
20 questions
Very Basic Programming

Quiz
•
10th - 12th Grade
15 questions
Functions in Python

Quiz
•
9th - 12th Grade
20 questions
Javascript

Quiz
•
11th Grade
15 questions
Kuizi 15 - Web

Quiz
•
10th Grade - University
18 questions
Unit 4 Variables, Conditionals & Functions CS20-21

Quiz
•
9th - 12th 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
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

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

Quiz
•
9th - 12th Grade