wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pseudocode Practice Quiz

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Explain the use of 'input' and 'output' in pseudocode syntax.

a)

input represents data produced and output represents data received

b)

input represents received data and output represents produced data

c)

input represents data sent out and output represents data received

d)

input represents produced data and output represents received data

2.

Explain the concept of 'nested if-else' in pseudocode.

a)

Nested if-else is a loop within another loop.

b)

Nested if-else is used for printing multiple values at the same time.

c)

Nested if-else is a way to combine two different functions in pseudocode.

d)

Nested if-else is a conditional statement within another conditional statement. It allows for multiple conditions to be checked in a hierarchical manner.

3.

Explain the difference between 'while' and 'for' loops in pseudocode.

a)

The 'while' loop is used for iterating over arrays, while the 'for' loop is used for iterating over strings.

b)

The 'while' loop is used for counting iterations, while the 'for' loop is used for conditional statements.

c)

The 'while' loop is used when the number of iterations is not known beforehand, while the 'for' loop is used when the number of iterations is known.

d)

The 'while' loop is used for known number of iterations, while the 'for' loop is used for unknown number of iterations.

4.

Write pseudocode for a simple function in pseudocode.

a)

simpleFunction = () => {

b)

def simpleFunction():

c)

void simpleFunction()

d)

function simpleFunction() // Write your code here end function

5.

Explain the concept of 'passing parameters' in pseudocode functions.

a)

Passing parameters in pseudocode functions means providing output values when calling the function.

b)

Passing parameters in pseudocode functions is not necessary for the function to work properly.

c)

Passing parameters in pseudocode functions involves providing input values when calling the function, which are then used within the function to perform specific tasks.

d)

Passing parameters in pseudocode functions involves using the function name as the input value.

6.

List and explain the different data types used in pseudocode.

a)

apple, banana, orange, grape, watermelon

b)

dog, cat, bird, fish, rabbit

c)

integer, real, boolean, string, array

d)

red, blue, green, yellow, purple

7.

Explain the concept of 'type casting' in pseudocode data types.

a)

Type casting in pseudocode refers to the process of converting a variable from one data type to another.

b)

Type casting in pseudocode refers to the process of converting a variable from one data type to another by deleting the original data type

c)

Type casting in pseudocode refers to the process of converting a variable from one data type to another using a specific keyword

d)

Type casting in pseudocode refers to the process of converting a variable from one data type to another within the same category