Search Header Logo

GCSE Unit 2 Prep - pseudocode

Authored by Andrew Dawson

Computers

10th Grade

Used 4+ times

GCSE Unit 2 Prep - pseudocode
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used to declare subroutines?

DECLARE

FUNCTION

SUB

PROCEDURE

Answer explanation

The correct answer is declare. In pseudocode, the "declare" statement is used to declare a subroutine, which is a named block of code that performs a specific task. Subroutines are used to break down complex problems into smaller, more manageable parts.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used to call a subroutine?

RUN

GOTO

CALL

EXECUTE

Answer explanation

The correct answer is CALL. In pseudocode, the "CALL" statement is used to call or invoke a subroutine. This allows the program to execute the code within the subroutine and perform the specific task it was designed for. e.g.

CALL AddTwoNumbers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used to declare and use an array?

myarray[99]

set myarray[99]

declare myarray[99]

myarray{99}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used to produce literal outputs?

PRINT

OUTPUT

DISPLAY

SHOW

Answer explanation

The correct answer is OUTPUT. In pseudocode, the "OUTPUT" statement is commonly used to produce literal outputs. It allows the program to display text or values on the output device, such as the console or screen. e.g.

OUTPUT "Hello"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used to define a variable name?

myVariable

DEFINE myVariable

DECLARE myVariable

NAME myVariable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used to define the data type of a variable?

myvariable IS integer

myvariable = integer

myvariable == integer

integer IS myvariable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode statement is used for assignment?

SET counter = 0

ASSIGN counter = 0

counter = 0

STORE counter = 0

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?