wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Grade 6 - Algorithms & Pseudocode

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

This data type consists of characters that can form words, phases, sentences, etc.

a)

STRING

b)

INTEGER

c)

CHAR

d)

REAL

2.

_____________ programming construct allows programmers to create storage for data (value).

a)

Control Structures

b)

Variables

c)

Selection Structures

d)

Logic Operators

3.

The value of variables cannot be changed.

a)
False
b)
True
4.

Which of this is a datatype?

a)

String

b)

variable

5.

Which of this is a valid variable name?

a)

111abc

b)

abc111

c)

abc 111

d)

abc111!

6.

Which of this pseudocode statement assigns a value to a variable?

a)

car <- bmw

b)

car is bmw

c)

car == bmw

d)

bmw -> car

7.

What is the difference between / and % operator?

a)

% operator gives the 'Quotient' from a division operation

AND

/ operator gives the 'Remainder' value from a division operation

b)

/ operator gives the 'Quotient' from a division operation

AND

% operator gives the 'Remainder' value from a division operation

c)

Both / and % operators are the same

8.

Which logical operator is this <=

a)
Less than
b)
Less than or equal to
c)
Greater than 
d)
Greater than or equal to 
9.

What data type would this be "555.78"?

a)

DATA

b)

STRING

c)

INTEGER

d)

REAL

10.

What data type would this be? "FALSE"

a)

BOOLEAN

b)

INTEGER

c)

REAL

d)

CHAR

11.

and, or, not are known as ______________ operators

a)

Arithmetic

b)

Relational

c)

Logical

d)

Joining

12.

A value stored in memory that cannot change while a program runs.

a)

Constant

b)

Variable

c)

Data type

d)

Assignment

13.

What data type is used for storing a single alphabetical or numerical value?

a)

Character

b)

String

c)

Integer

d)

Boolean

e)

Real

14.

A single instruction or step within a pseudocode / program.

a)

Algorithm

b)

Code

c)

Statement

d)

Variable

e)

Constant

15.

plus, minus, divide, modulus and multiplication are examples of which of these?

a)

Arithmetic Operators

b)

Relational Operators

c)

Boolean Operators

d)

Variables

e)

Constants

16.

What are the multiple way by which algorithms can be represented?

a)

Natural language, like English

b)

Visually, using flowcharts

c)

Actual executable code (for eg., Python program)

d)

All of these

17.

Before programmers write an algorithm using the actual code, programmers plan out their algorithms using pseudocode or a flowchart.

a)

True

b)

False

18.

The advantages of programmers writing a pseudocode or flowchart is because

a)

They’re easier to understand.

b)

They’re flexible.

c)

They’re less complex.

d)

All of these

19.

An ordered set of instructions that are used to carry out a task is an ________________

a)

Computer Scientist

b)

Algorithm

c)

None of these

d)

Process

20.

A diagram that represents an algorithm, work flow, or process, and uses geometric symbols connected by arrows to show the direction of the flow of action.

a)

Flowchart

b)

Algorithm

c)

Diagram

d)

Process