wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Stage 7 – Computational Thinking & Programming Study Notes

Total questions: 96

Worksheet time: 48mins

Name
Class
Date
1.

What is a flowchart?

a)

A visual way to represent the steps in an algorithm.

b)

A type of programming language.

c)

A mathematical equation.

d)

A storage device.

2.

Which flowchart symbol is used for Start/Stop?

a)

Oval

b)

Rectangle

c)

Diamond

d)

Parallelogram

3.

Which flowchart symbol represents a process (calculation/action)?

a)

Oval

b)

Rectangle

c)

Diamond

d)

Connector

4.

Which flowchart symbol is used for decision (Yes/No)?

a)

Diamond

b)

Oval

c)

Parallelogram

d)

Connector

5.

Which flowchart symbol is used for input/output?

a)

Parallelogram

b)

Rectangle

c)

Oval

d)

Diamond

6.

Which flowchart symbol is used to jump to another point?

a)

Connector

b)

Diamond

c)

Rectangle

d)

Oval

7.

Fill in the blank: The rectangle symbol in a flowchart is used for _________

a)

Process (calculation/action)

b)

Input/Output

c)

Decision

d)

Connector

8.

Fill in the blank: The diamond symbol in a flowchart is used for _________?

a)

Decision (Yes/No)

b)

Input/Output

c)

Start/End

d)

Process

9.

Fill in the blank: The parallelogram symbol in a flowchart is used for _________

a)

Input / Output

b)

Decision making

c)

Process

d)

Connector

10.

Fill in the blank: The connector symbol in a flowchart is used to _________

a)

Jump to another point

b)

Start the process

c)

End the process

d)

Display data

11.

If a flowchart calculates area of a rectangle but uses 'Length × Length,' what should it be corrected to?

a)

Length × Width

b)

Length + Width

c)

Width × Width

d)

Length ÷ Width

12.

What is the first step in creating an algorithm to find the largest of two numbers?

a)

Start

b)

Compare the numbers

c)

Print the result

d)

End

13.

Which logical operator is used when both conditions must be true?

a)

AND

b)

OR

c)

NOT

14.

Which logical operator is used when at least one condition must be true?

a)

AND

b)

OR

c)

NOT

15.

Which logical operator reverses the condition?

a)

AND

b)

OR

c)

NOT

16.

In the example problem to find the largest of two numbers, what is the output if A > B?

a)

A is larger

b)

B is larger

c)

A and B are equal

d)

No output

17.

Selection lets a program choose between actions based on what?

a)

a condition

b)

a variable name

c)

the program's length

d)

the color of the screen

18.

Given the following flowchart logic: IF temperature > 37 THEN OUTPUT "Fever" ELSE OUTPUT "Normal" What will be the output if the temperature is 38?

a)

Fever

b)

Normal

c)

Teen

d)

Not Teen

19.

Given the following flowchart logic: IF Age >= 13 AND Age <= 19 THEN OUTPUT "Teen" ELSE OUTPUT "Not Teen" What will be the output if the input age is 15?

a)

Teen

b)

Not Teen

c)

Fever

d)

Normal

20.

Complete the trace table for the flowchart logic: IF Age >= 13 AND Age <= 19 THEN OUTPUT "Teen" ELSE OUTPUT "Not Teen" Input: 10, Output: _______

a)

Not Teen

b)

Teen

c)

Child

d)

Adult

21.

Complete the trace table for the flowchart logic: IF Age >= 13 AND Age <= 19 THEN OUTPUT "Teen" ELSE OUTPUT "Not Teen" Input: 19, Output: _______

a)

Teen

b)

Child

c)

Adult

d)

Senior

22.

Pattern recognition in computational thinking means:

a)

Identifying similarities or patterns in problems to make solving them easier

b)

Memorizing solutions to specific problems

c)

Ignoring differences between problems

d)

Focusing only on the final answer without analyzing the process

23.

What is a subroutine?

a)

A small reusable algorithm inside a bigger program

b)

A type of comparison operator

c)

A sequence of numbers

d)

A connector in a flowchart

24.

Fill in the blank: Steps run one after another in a ________ construct.

a)

sequence

b)

loop

c)

conditional

d)

parallel

25.

Which construct is used to choose based on a condition?

a)

Sequence

b)

Selection

c)

Subroutine

d)

Connector

26.

What does the comparison operator '<' mean?

a)

Greater than

b)

Less than

c)

Equal to

d)

Not equal to

27.

The operator '>' is true when x is ________ than 10.

a)

bigger

b)

smaller

c)

equal

d)

less

28.

Which of the following is an example of using a subroutine in a main program?

a)

A) Calculate total bill and call Discount()

b)

B) Compare x < 10

c)

C) Use IF/ELSE decisions

d)

D) Use a connector

29.

Which comparison operator is used to check if a value is less than or equal to another value in Python?

a)

A) <=

b)

B) >=

c)

C) ==

d)

D) !=

30.

Which comparison operator would you use to check if x is not equal to 10?

a)

==

b)

!=

c)

<=

d)

=>

31.

Fill in the blank: The operator '==' is used to check if two values are ______ in Python.

a)

equal

b)

added

c)

multiplied

d)

divided

32.

Which operator would you use to check if x is greater than or equal to 10?

a)

<=

b)

B) >=

c)

C) ==

d)

D) !=

33.

Which data type would you use to store whole numbers in Python?

a)

Integer

b)

Real (Float)

c)

String

34.

Fill in the blank: The data type used to store text or characters in Python is called ______.

a)

String

b)

Integer

c)

Float

d)

Boolean

35.

Which of the following is an example of a Real (Float) data type in Python?

a)

12

b)

Hello

c)

3.14

d)

Grade A

36.

The input() function in Python always returns a string.

a)

True

b)

False

37.

What is a variable?

a)

A variable stores data in memory.

b)

A variable is a type of function.

c)

A variable is a programming language.

d)

A variable is a computer hardware component.

38.

What is the value of 'score' after execution?

a)

100

b)

0

c)

50

d)

-1

39.

Which of the following is a clear variable name?

a)

x

b)

totalMarks

c)

a

d)

temp

40.

Match the arithmetic operator with its description:

a)

Addition

1.

+

b)

Subtraction

2.

-

c)

Multiplication

3.

*

d)

Division

4.

/

e)

Modulus (remainder)

5.

%

41.

What is the result of 4 + 5?

a)

9

b)

7

c)

10

d)

12

42.

What is the result of 9 - 2?

a)

7

b)

5

c)

8

d)

6

43.

What is the result of 3 * 6?

a)

18

b)

12

c)

21

d)

24

44.

What is the result of 8 / 2?

a)

4

b)

2

c)

6

d)

8

45.

What is the result of 9 % 2?

a)

1

b)

0

c)

2

d)

9

46.

What is a prototype?

a)

A prototype is a test version of software to check design ideas.

b)

A prototype is the final version of a software product.

c)

A prototype is a type of hardware used in computers.

d)

A prototype is a programming language.

47.

Give an example of a prototype.

a)

A simple quiz program tested before adding a scoreboard.

b)

A finished product ready for sale.

c)

A user manual for a software application.

d)

A marketing brochure for a new app.

48.

What should you evaluate when testing a prototype?

a)

Usability, accuracy, feedback, and performance.

b)

Color scheme, font style, and logo size only.

c)

Marketing strategy and sales projections.

d)

Company history and employee satisfaction.

49.

List the five steps in problem solving as described in the worksheet.

a)

1. Define problem 2. Design (flowchart/pseudocode) 3. Build (code) 4. Test 5. Evaluate

b)

1. Identify solution 2. Code 3. Debug 4. Test 5. Document

c)

1. Plan 2. Code 3. Test 4. Debug 5. Release

d)

1. Define problem 2. Research 3. Code 4. Test 5. Maintain

50.

What is the purpose of using Gantt charts or task lists in problem solving?

a)

To manage time.

b)

To increase costs.

c)

To complicate the process.

d)

To ignore deadlines.

51.

According to the worksheet, what does a test plan list?

a)

A test plan lists what to test, input values, and expected outputs.

b)

A test plan lists only the software requirements.

c)

A test plan lists the names of the developers involved.

d)

A test plan lists the hardware specifications required.

52.

In the test plan table, what is the expected output and result for input value 5?

a)

Expected Output: Pass Result: ✔

b)

Expected Output: Fail Result: ✖

c)

Expected Output: Error Result: ✖

d)

Expected Output: Pass Result: ✖

53.

In the test plan table, what is the expected output and result for input value -1?

a)

Expected Output: Error Result: ✔

b)

Expected Output: 0 Result: ✖

c)

Expected Output: 1 Result: ✖

d)

Expected Output: -1 Result: ✖

54.

What types of data should be included in a test plan according to the worksheet?

a)

Normal, boundary, and invalid data.

b)

Only valid data.

c)

Only random data.

d)

Only user input data.

55.

Match the error type with its description and example:

a)

Syntax Error

1.

Wrong grammar or spelling

b)

Logic Error

2.

Wrong output due to wrong logic

c)

Runtime Error

3.

Error while running

56.

What does debugging mean according to the worksheet?

a)

Finding and fixing errors.

b)

Writing new code.

c)

Designing user interfaces.

d)

Compiling programs.

57.

Which of the following is NOT a technique for debugging listed in the worksheet?

a)

Use print() statements to trace values

b)

Use error messages to locate issues

c)

Use an IDE debugger

d)

Ignore errors and continue coding

58.

What is the tip given for testing after debugging fixes?

a)

Test after each fix — not all at once.

b)

Test only after all fixes are complete.

c)

Skip testing if the fix seems minor.

d)

Test only the most recent fix.

59.

Programs can control sensors and actuators.

a)

True

b)

False

60.

Which of the following is an example of an input in a program?

a)

A) LED light turns ON

b)

B) Motion sensor detects movement

c)

C) play_sound()

d)

D) turn_on_LED()

61.

In the given Python code: if motion == True and lightLevel < 30: turn_on_LED() play_sound() What happens if both conditions are met?

a)

Only LED turns ON

b)

Only sound plays

c)

Both LED turns ON and sound plays

d)

Nothing happens

62.

Always label flowchart decisions with Yes/No.

a)

True

b)

False

63.

What should you do before predicting outputs in a flowchart?

a)

Label decisions

b)

Trace sample inputs

c)

Review truth tables

d)

Debug for errors

64.

Fill in the blank: Remember the difference between ________, selection, and subroutine.

a)

sequence

b)

iteration

c)

recursion

d)

function

65.

For debugging, look for missing colons, indentation, or logical errors.

a)

True

b)

False

66.

Review AND / OR / NOT truth tables for the exam.

a)

True

b)

False

67.

What does the AND logic gate require for its condition to be true?

a)

Only one condition must be true

b)

Both conditions must be true

c)

No conditions must be true

d)

All conditions must be false

68.

What does the OR logic gate require for its condition to be true?

a)

Only one condition must be true

b)

Both conditions must be true

c)

One or more conditions must be true

d)

All conditions must be false

69.

What does the NOT logic gate do to a condition?

a)

Makes it true

b)

Reverses the condition

c)

Ignores the condition

d)

Doubles the condition

70.

Fill in the blank: In flowcharts, the Decision symbol is represented by a _______.

a)

diamond

b)

rectangle

c)

circle

d)

parallelogram

71.

Fill in the blank: In flowcharts, the Start/Stop symbol is represented by an _______.

a)

oval

b)

rectangle

c)

diamond

d)

parallelogram

72.

Fill in the blank: In flowcharts, the Process symbol is represented by a _______.

a)

rectangle

b)

circle

c)

diamond

d)

parallelogram

73.

Given the selection statement: IF temperature > 37 THEN OUTPUT "Fever" ELSE OUTPUT "Normal", what will be the output if the temperature is 36?

a)

Normal

b)

Fever

c)

Error

d)

36

74.

Given the logic statement: IF (age > 12 AND age < 20) THEN "Teenager", what age range is considered a teenager according to this statement?

a)

13 to 19

b)

12 to 20

c)

10 to 18

d)

15 to 21

75.

In Flowchart: What shape is used for decision making?

a)

Rectangle

b)

Diamond

c)

Oval

d)

Parallelogram

76.

In a flowchart, True/False paths must be labeled.

a)

True

b)

False

77.

Trace through the flowchart and determine the final output given certain inputs. What tool can you use to organize your work?

a)

Pie chart

b)

Trace table

c)

Bar graph

d)

Checklist

78.

7CT.06 – Explain importance of pattern recognition Pattern recognition reduces _______ and helps create reusable subroutines.

a)

repetition

b)

complexity

c)

speed

d)

errors

79.

Subroutines (procedures/functions) are _______ reusable sections of an algorithm.

a)

smaller

b)

larger

c)

optional

d)

temporary

80.

Which construct is described as 'Steps follow one after another'?

a)

Sequence

b)

Selection

c)

Loop

d)

Condition

81.

Which flowchart symbol represents a decision?

a)

Oval

b)

Diamond

c)

Rectangle

d)

Parallelogram

82.

What does the AND operator require to return TRUE?

a)

One condition true

b)

Both conditions true

c)

Any condition true

d)

None true

83.

Which of the following best represents selection?

a)

A. Repeat steps

b)

B. Follow steps in order

c)

C. Choose path based on condition

84.

What is the purpose of pattern recognition?

a)

A. To decorate code

b)

B. To identify repeated structures

85.

Which statement is TRUE about subroutines?

a)

They make code longer

b)

They are reusable parts of a program

86.

In a flowchart, what follows the Start symbol?

a)

A. Decision

b)

B. Process

87.

If marks > 80 OR grade = 'A' THEN 'Excellent' → Which input outputs “Excellent”?

a)

A. 75, A

b)

B. 75, B

88.

What is NOT operator used for?

a)

Adding logic

b)

Negating a condition

89.

A subroutine is also known as:

a)

Decision block

b)

Procedure or function

90.

What construct ensures every step runs once in order?

a)

A. Sequence

b)

B. Selection

c)

C. Iteration

91.

What is the correct output of the flowchart for input price = 120 after fixing the missing connector after the decision?

a)

The total price is 120

b)

The total price is 0

c)

The total price is 240

d)

The total price is 100

92.

Which flowchart correctly describes the process to input two numbers, check if both are even using AND, and output “Both even” or “Not both even.”?

a)

A flowchart that inputs two numbers, checks if both are even using AND, and outputs “Both even” or “Not both even.”

b)

A flowchart that inputs two numbers, checks if at least one is even, and outputs “At least one even” or “None even.”

c)

A flowchart that inputs one number, checks if it is even, and outputs “Even” or “Odd.”

d)

A flowchart that inputs two numbers, checks if both are odd, and outputs “Both odd” or “Not both odd.”

93.

Activity 3 – Predict the Output
Given:
Input Age
IF Age >= 13 AND Age <= 19 THEN
OUTPUT "Teen"
ELSE
OUTPUT "Not Teen"
END IF
Which of the following is the correct sequence of outputs for the inputs: 12, 15, 19, 21?

a)

Not Teen, Teen, Teen, Not Teen

b)

Teen, Teen, Not Teen, Not Teen

c)

Not Teen, Not Teen, Teen, Teen

d)

Teen, Not Teen, Teen, Not Teen

94.

Activity 4 – Identify Patterns
You are making three flowcharts that check for even numbers, prime numbers, and multiples of 2.
What pattern do you recognize?

a)

They all involve checking divisibility.

b)

They all require addition.

c)

They all use subtraction only.

d)

They all ignore number properties.

95.

Activity 4 – Identify Patterns
You are making three flowcharts that check for even numbers, prime numbers, and multiples of 2.
How can you reuse logic?

a)

By using the logic for checking even numbers in both the even and multiples of 2 flowcharts

b)

By creating separate logic for each flowchart

c)

By ignoring the logic for even numbers

d)

By using the logic for prime numbers in all three flowcharts

96.

Which subroutine should be created and called in a main flowchart to print “Even” or “Odd” as described in Activity 5?

a)

CheckEven

b)

PrintNumber

c)

IsOdd

d)

MainSub