11.3 Structured Programming Cambridge iAS 9618

11.3 Structured Programming Cambridge iAS 9618

11th Grade

20 Qs

quiz-placeholder

Similar activities

Unit 5 Test Review

Unit 5 Test Review

9th - 12th Grade

23 Qs

Quarter 3 Final Exam: Functions and Parameters

Quarter 3 Final Exam: Functions and Parameters

9th - 12th Grade

20 Qs

Excel functions and formulas assessment

Excel functions and formulas assessment

9th - 11th Grade

25 Qs

Algorithms - python (GCSE)

Algorithms - python (GCSE)

10th - 12th Grade

25 Qs

Subroutines - Procedures & Functions

Subroutines - Procedures & Functions

9th - 12th Grade

20 Qs

Topic 1: Keywords

Topic 1: Keywords

10th - 11th Grade

19 Qs

Functions in C++

Functions in C++

11th Grade

20 Qs

AGAD: UNIT 4_C# & UNITY

AGAD: UNIT 4_C# & UNITY

9th - 12th Grade

24 Qs

11.3 Structured Programming Cambridge iAS 9618

11.3 Structured Programming Cambridge iAS 9618

Assessment

Quiz

Computers

11th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?