SUBROUTINES Pseudocode

SUBROUTINES Pseudocode

10th Grade

25 Qs

quiz-placeholder

Similar activities

QUIZZ PD 5-10-2020

QUIZZ PD 5-10-2020

10th Grade

20 Qs

OCR GCSE Subroutines

OCR GCSE Subroutines

10th Grade

20 Qs

AQA GCSE Computer Science - 3.2.11 Structured programming

AQA GCSE Computer Science - 3.2.11 Structured programming

8th - 10th Grade

20 Qs

Latuhan ASAJ kelas 9 Informatika

Latuhan ASAJ kelas 9 Informatika

9th - 12th Grade

25 Qs

Ulangan Harian Kelas XE9-E11

Ulangan Harian Kelas XE9-E11

10th Grade

20 Qs

PH ALGORITMA PEMOGRAMAN

PH ALGORITMA PEMOGRAMAN

10th Grade

20 Qs

PSEUDOCODE

PSEUDOCODE

10th Grade

20 Qs

MID INFORMATIKA X

MID INFORMATIKA X

10th Grade

20 Qs

SUBROUTINES Pseudocode

SUBROUTINES Pseudocode

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Andrew Duckworth

Used 1+ times

FREE Resource

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

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?