wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Problem-solving and Program Design Concepts

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is an algorithm?

a)

A series of random steps to solve a problem

b)

A step-by-step procedure to solve a problem

c)

A list of all data types in programming

d)

A type of data used to store numbers

2.

What is pseudocode?

a)

A programming language used to write algorithms

b)

A detailed flowchart

c)

A simplified, informal way of representing an algorithm

d)

A method to debug programs

3.

Which of the following is an example of a char data type?

a)

Hello World

b)

3.14

c)

A

d)

True

4.

Which data type would you use to store the number 3.14?

a)

char

b)

string

c)

float

d)

boolean

5.

What is the main difference between a variable and a constant?

a)

A variable cannot be changed after initialization, while a constant can.

b)

A constant can be changed, but a variable cannot.

c)

A variable can store only text, while a constant can store any data type.

d)

A variable can be changed, while a constant cannot.

6.

Which of the following is a valid example of a string data type?

a)

3.14

b)

'A'

c)

"Grade 11"

d)

True

7.

What type of data does the boolean data type represent?

a)

Numeric values

b)

Decimal numbers

c)

True or False values

d)

Characters and letters

8.

What does the double data type represent?

a)

A decimal number with a higher precision than float

b)

A character

c)

A sequence of characters

d)

A boolean value

9.

Which of the following statements is TRUE about the boolean data type?

a)

It can hold any numeric value.

b)

It can only store two values: True or False.

c)

It is used to store a sequence of characters.

d)

It is used to store decimal numbers.

10.

Which of the following data types is used to represent a single character like 'A' or '9'?

a)

string

b)

char

c)

float

d)

integer