Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pseudocode and Flowcharts

Total questions: 21

Worksheet time: 12mins

Name
Class
Date
1.

Which tools used to plan computer programs is a pictorial representation of program steps?

a)

assembly

b)

debugging

c)

flowchart

d)

psuedocode

2.

Which tool used to plan computer programs is an English-like representation of the program steps?

a)

debugging

b)

flowchart

c)

assembly

d)

psuedocode

3.

When a piece of code runs unintentionally forever it is known as

a)

An infinite loop

b)

A long loop

c)

A broken loop

d)

A for loop

4.

A condition is

a)

a statement that is either True or False

b)

a string

c)

an integer

d)

a list

5.

What is a CHAR datatype?

a)

A datatype that can hold any single character.

b)

A datatype that can hold only numbers.

c)

A datatype that can be ignored.

d)

A datatype that can fit 7.

6.

IF statement is a ___________________________ statement?

a)

Assignment

b)

Sequence

c)

Selection

d)

Loop

e)

Honestly , I don't know

7.

Will the following loop run?

a)

Yes

b)

No

8.

"A conditional statement to deal with many possible outcomes" describes which pseudocode programming statement?

a)

FOR...TO...NEXT

b)

IF...THEN...ELSE...END IF

c)

WHILE...DO...ENDWHILE

d)

REPEAT...UNTIL

e)

CASE...OF...OTHERWISE...ENDCASE

9.
Which of the following is the definition of a comment?
a)
A container which is used to store values such as the number of attempts a person tries to log on to a network.
b)
A language that is similar to a real programming language, but is easier for humans to understand although it doesn’t actually run on a computer. It can easily be converted to a regular programming language.
c)
A value that cannot be altered by the program during normal execution: the value stays the same. 
d)
Messages to explain to others, and often to remind yourself, what the code is intended to do. 
10.
Which of the following is the definition of pseudocode?
a)
A container which is used to store values such as the number of attempts a person tries to log on to a network.
b)
A language that is similar to a real programming language, but is easier for humans to understand although it doesn’t actually run on a computer. It can easily be converted to a regular programming language.
c)
A value that cannot be altered by the program during normal execution: the value stays the same. 
d)
Messages to explain to others, and often to remind yourself, what the code is intended to do. 
11.
An identifier is the ‘name’ given to a variable. For example: 
distanceToSchool = 10
Which part is the identifier?
a)
10
b)
=
c)
distanceToSchool
12.
When variable identifiers are compound words snake case and camel case can be used. Which variable identifier below is using camel case?
a)
yourName=input("What is your name? ")
b)
yourname=input("What is your name? ")
c)
YOURNAME=input("What is your name? ")
d)
your_name=input("What is your name? ")
13.
Which of the following assignment statements is assigning a number .
a)
myAge = 21
b)
myAge = "21"
14.
Which of the following assignment statements is assigning text.
a)
myName = "David"
b)
myAge = 21
15.
A constant is a value that cannot be altered by the program during normal execution: the value stays the same. 
a)
True
b)
False
16.
When writing pseudocode it is a good idea to add comments to explain to others, and often to remind yourself, what the code is intended to do. 
To separate these comments from the actual code, what character(s) are used?
a)
:
b)
//
c)
()
d)
#
17.

If a grade of 98 was inputted, what would be the output?

a)

Passed

b)

Failed

c)

Else

18.

Fill in the first blank

a)

Larger

b)

IF

c)

THEN

d)

WHILE

19.

Fill in the blank

a)

OUTPUT

b)

ENDIF

c)

THEN

d)

INPUT

20.

This program is meant display the phrase "Coding is cool" multiple times.


Fill in the blank.

a)

INPUT

b)

WHILE

c)

OUTPUT

d)

LOOP

21.

What happens when the grade counter reaches 10.


Remember: <= means less than or equal to

a)

We add 1 to the grade counter

b)

The while loop keeps going

c)

We output out the average

d)

We end the while loop