Search Header Logo

SUBROUTINES Pseudocode

Authored by Andrew Duckworth

Computers

10th Grade

Used 1+ times

SUBROUTINES Pseudocode
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

In CIE Pseudocode we should always.. (pick one or more answers)

Write command words in capitals

Use DEFINE for every variable used

Include comments

Ensure that all subroutines are shown at the end of the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the back arrow ← in pseudocode?

It means replace the variable with the new variable

It means use the previous value of the variable

It means assign to the variable

It means check that the variable value is valid

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Pseudocode how can we create a subroutine procedure called drawSquare that will take a size input as a parameter?

SUBROUTINE drawSquare(size: REAL):

SUBROUTINE drawSquare():

INPUT size (REAL)

PROCEDURE drawSquare():

INPUT size (REAL)

PROCEDURE drawSquare(size:REAL):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which are true about DEFINE statements in pseudocode?

They give the data type of the variable

They can occur anywhere in the program, provided it is before the variable is used

They have the same purpose as def statements in Python

Any variables used in the program or subroutine must be first shown with a DEFINE statement

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these statements are true?

Subroutines can use variables that are not used in the rest of the progtram

Subroutines can only use variables that are defined at the start of the program

Suboutines in pseudocode may use parameters

Subroutines may return a value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function subroutine in pseudocode can be written as

FUNCTION CountChar():

SUBROUTINE CountChar():

FUNCTION CountChar:

SUBROUTINE CountChar:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functions and Procedures are the same

Yes

No, procedures cannot use parameters

No, procedures cannot use a RETURN statement

No, functions cannot use parameters

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?