11.3 Structured Programming Cambridge iAS 9618
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Stephen Ling-Winston
Used 1+ times
FREE Resource
Enhance your content in a minute
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
16 questions
Se liga - 1 - 6° anos
Quiz
•
6th Grade - University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
21 questions
Google : ¡A trabajar!
Quiz
•
10th - 11th Grade
20 questions
2324tx6
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
20 questions
Network topologies
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
