wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Understanding Algorithms and Variables in Programming

Total questions: 1

Worksheet time: 12mins

Name
Class
Date

1-10.

Answer the questions below after watching the video

1.

What is the primary focus of the video tutorial?

a)

Developing personal projects using pseudocode

b)

Mastering programming languages

c)

Understanding how to read and interpret algorithms

d)

Learning to write complex algorithms

2.

What operation is performed after subtracting 2 from the input number in the simple algorithm?

a)

Adding 5

b)

Multiplying by 4

c)

Dividing by 2

d)

Subtracting 10

3.

What is the output when the input number is 3 in the simple algorithm?

a)

12

b)

3

c)

4

d)

1

4.

What does the algorithm do when the input number is 7?

a)

Outputs 28

b)

Outputs 5

c)

Outputs 7

d)

Outputs 20

5.

What is the purpose of a conditional statement in programming?

a)

To repeat a block of code multiple times

b)

To stop the program execution

c)

To declare variables

d)

To decide the flow of execution based on a condition

6.

What happens if the 'value' after computation is greater than 500?

a)

Prints 'too big'

b)

Stops the algorithm

c)

Prints the value

d)

None of the above

7.

What is the output when the initial value is 300?

a)

300

b)

400

c)

100

d)

200

8.

What does the algorithm output when the initial value is 700?

a)

800

b)

700

c)

Too big

d)

600

9.

If the value is exactly 500 after computation, what does the algorithm output?

a)

Too big

b)

1000

c)

None of the above

d)

500

10.

What is the result of the algorithm when the input value is adjusted to 600?

a)

500

b)

Too big

c)

600

d)

700