wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CH. 2 - Concept of Comp. Problem Solving - Review

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a constant in programming?

a)

A value that changes frequently during execution

b)

A fixed value that does not change during execution

c)

A memory location that stores temporary values

d)

A special type of variable that can store multiple values

2.

Which of the following is NOT a rule for naming variables?

a)

The name must start with a letter

b)

Spaces can be used within the name

c)

The name should represent the variable’s purpose

d)

Symbols like dashes (-) should be avoided

3.

Which of the following is a numeric data type?

a)

"Hello"

b)

123.45

c)

True

d)

#&$%&

4.

Which data type is used for logical decision-making?

a)

Character

b)

Numeric

c)

Boolean

d)

String

5.

Which of the following is an example of a function?

a)

length(string)

b)

string + string

c)

a > b

d)

= (equal sign)

6.

Which of these is NOT a type of function?

a)

Mathematical

b)

Statistical

c)

Physical

d)

Utility

7.

Which of the following is a relational operator?

a)

+

b)

&&

c)

>=

d)

%

8.

What happens to a variable’s value when a new value is assigned to it?

a)

The new value is added to the previous one

b)

The previous value is erased and replaced with the new value

c)

Both values are stored together in memory

d)

The computer creates a new variable for the new value

9.

What does the term "hierarchy of operations" refer to in programming?

a)

The way memory is allocated for variables

b)

The order in which operators are executed in an expression

c)

The way functions are defined in a program

d)

The organization of data types in a system

10.

Which of the following is an example of a statistical function?

a)

sqrt(x)

b)

length("Hello")

c)

max(10,20)

d)

abs(-5)