11.3 Structured Programming Cambridge iAS 9618

11.3 Structured Programming Cambridge iAS 9618

11th Grade

20 Qs

quiz-placeholder

Similar activities

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

Chapter 3: Storage devices and media (Part 2):

Chapter 3: Storage devices and media (Part 2):

10th - 11th Grade

15 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Technology trends

Technology trends

7th - 12th Grade

15 Qs

Trắc nghiệm excel - 1

Trắc nghiệm excel - 1

KG - University

20 Qs

11.3 Structured Programming Cambridge iAS 9618

11.3 Structured Programming Cambridge iAS 9618

Assessment

Quiz

Computers

11th Grade

Practice Problem

Easy

Created by

Stephen Ling-Winston

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?