Font size
WorksheetsStage 7 – Computational Thinking & Programming Study Notes
Total questions: 96
Worksheet time: 48mins
What is a flowchart?
A visual way to represent the steps in an algorithm.
A type of programming language.
A mathematical equation.
A storage device.
Which flowchart symbol is used for Start/Stop?
Oval
Rectangle
Diamond
Parallelogram
Which flowchart symbol represents a process (calculation/action)?
Oval
Rectangle
Diamond
Connector
Which flowchart symbol is used for decision (Yes/No)?
Diamond
Oval
Parallelogram
Connector
Which flowchart symbol is used for input/output?
Parallelogram
Rectangle
Oval
Diamond
Which flowchart symbol is used to jump to another point?
Connector
Diamond
Rectangle
Oval
Fill in the blank: The rectangle symbol in a flowchart is used for _________
Process (calculation/action)
Input/Output
Decision
Connector
Fill in the blank: The diamond symbol in a flowchart is used for _________?
Decision (Yes/No)
Input/Output
Start/End
Process
Fill in the blank: The parallelogram symbol in a flowchart is used for _________
Input / Output
Decision making
Process
Connector
Fill in the blank: The connector symbol in a flowchart is used to _________
Jump to another point
Start the process
End the process
Display data
If a flowchart calculates area of a rectangle but uses 'Length × Length,' what should it be corrected to?
Length × Width
Length + Width
Width × Width
Length ÷ Width
What is the first step in creating an algorithm to find the largest of two numbers?
Start
Compare the numbers
Print the result
End
Which logical operator is used when both conditions must be true?
AND
OR
NOT
Which logical operator is used when at least one condition must be true?
AND
OR
NOT
Which logical operator reverses the condition?
AND
OR
NOT
In the example problem to find the largest of two numbers, what is the output if A > B?
A is larger
B is larger
A and B are equal
No output
Selection lets a program choose between actions based on what?
a condition
a variable name
the program's length
the color of the screen
Given the following flowchart logic: IF temperature > 37 THEN OUTPUT "Fever" ELSE OUTPUT "Normal" What will be the output if the temperature is 38?
Fever
Normal
Teen
Not Teen
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?
Teen
Not Teen
Fever
Normal
Complete the trace table for the flowchart logic: IF Age >= 13 AND Age <= 19 THEN OUTPUT "Teen" ELSE OUTPUT "Not Teen" Input: 10, Output: _______
Not Teen
Teen
Child
Adult
Complete the trace table for the flowchart logic: IF Age >= 13 AND Age <= 19 THEN OUTPUT "Teen" ELSE OUTPUT "Not Teen" Input: 19, Output: _______
Teen
Child
Adult
Senior
Pattern recognition in computational thinking means:
Identifying similarities or patterns in problems to make solving them easier
Memorizing solutions to specific problems
Ignoring differences between problems
Focusing only on the final answer without analyzing the process
What is a subroutine?
A small reusable algorithm inside a bigger program
A type of comparison operator
A sequence of numbers
A connector in a flowchart
Fill in the blank: Steps run one after another in a ________ construct.
sequence
loop
conditional
parallel
Which construct is used to choose based on a condition?
Sequence
Selection
Subroutine
Connector
What does the comparison operator '<' mean?
Greater than
Less than
Equal to
Not equal to
The operator '>' is true when x is ________ than 10.
bigger
smaller
equal
less
Which of the following is an example of using a subroutine in a main program?
A) Calculate total bill and call Discount()
B) Compare x < 10
C) Use IF/ELSE decisions
D) Use a connector
Which comparison operator is used to check if a value is less than or equal to another value in Python?
A) <=
B) >=
C) ==
D) !=
Which comparison operator would you use to check if x is not equal to 10?
==
!=
<=
=>
Fill in the blank: The operator '==' is used to check if two values are ______ in Python.
equal
added
multiplied
divided
Which operator would you use to check if x is greater than or equal to 10?
<=
B) >=
C) ==
D) !=
Which data type would you use to store whole numbers in Python?
Integer
Real (Float)
String
Fill in the blank: The data type used to store text or characters in Python is called ______.
String
Integer
Float
Boolean
Which of the following is an example of a Real (Float) data type in Python?
12
Hello
3.14
Grade A
The input() function in Python always returns a string.
True
False
What is a variable?
A variable stores data in memory.
A variable is a type of function.
A variable is a programming language.
A variable is a computer hardware component.
What is the value of 'score' after execution?
100
0
50
-1
Which of the following is a clear variable name?
x
totalMarks
a
temp
Match the arithmetic operator with its description:
Addition
+
Subtraction
-
Multiplication
*
Division
/
Modulus (remainder)
%
What is the result of 4 + 5?
9
7
10
12
What is the result of 9 - 2?
7
5
8
6
What is the result of 3 * 6?
18
12
21
24
What is the result of 8 / 2?
4
2
6
8
What is the result of 9 % 2?
1
0
2
9
What is a prototype?
A prototype is a test version of software to check design ideas.
A prototype is the final version of a software product.
A prototype is a type of hardware used in computers.
A prototype is a programming language.
Give an example of a prototype.
A simple quiz program tested before adding a scoreboard.
A finished product ready for sale.
A user manual for a software application.
A marketing brochure for a new app.
What should you evaluate when testing a prototype?
Usability, accuracy, feedback, and performance.
Color scheme, font style, and logo size only.
Marketing strategy and sales projections.
Company history and employee satisfaction.
List the five steps in problem solving as described in the worksheet.
1. Define problem 2. Design (flowchart/pseudocode) 3. Build (code) 4. Test 5. Evaluate
1. Identify solution 2. Code 3. Debug 4. Test 5. Document
1. Plan 2. Code 3. Test 4. Debug 5. Release
1. Define problem 2. Research 3. Code 4. Test 5. Maintain
What is the purpose of using Gantt charts or task lists in problem solving?
To manage time.
To increase costs.
To complicate the process.
To ignore deadlines.
According to the worksheet, what does a test plan list?
A test plan lists what to test, input values, and expected outputs.
A test plan lists only the software requirements.
A test plan lists the names of the developers involved.
A test plan lists the hardware specifications required.
In the test plan table, what is the expected output and result for input value 5?
Expected Output: Pass Result: ✔
Expected Output: Fail Result: ✖
Expected Output: Error Result: ✖
Expected Output: Pass Result: ✖
In the test plan table, what is the expected output and result for input value -1?
Expected Output: Error Result: ✔
Expected Output: 0 Result: ✖
Expected Output: 1 Result: ✖
Expected Output: -1 Result: ✖
What types of data should be included in a test plan according to the worksheet?
Normal, boundary, and invalid data.
Only valid data.
Only random data.
Only user input data.
Match the error type with its description and example:
Syntax Error
Wrong grammar or spelling
Logic Error
Wrong output due to wrong logic
Runtime Error
Error while running
What does debugging mean according to the worksheet?
Finding and fixing errors.
Writing new code.
Designing user interfaces.
Compiling programs.
Which of the following is NOT a technique for debugging listed in the worksheet?
Use print() statements to trace values
Use error messages to locate issues
Use an IDE debugger
Ignore errors and continue coding
What is the tip given for testing after debugging fixes?
Test after each fix — not all at once.
Test only after all fixes are complete.
Skip testing if the fix seems minor.
Test only the most recent fix.
Programs can control sensors and actuators.
True
False
Which of the following is an example of an input in a program?
A) LED light turns ON
B) Motion sensor detects movement
C) play_sound()
D) turn_on_LED()
In the given Python code: if motion == True and lightLevel < 30: turn_on_LED() play_sound() What happens if both conditions are met?
Only LED turns ON
Only sound plays
Both LED turns ON and sound plays
Nothing happens
Always label flowchart decisions with Yes/No.
True
False
What should you do before predicting outputs in a flowchart?
Label decisions
Trace sample inputs
Review truth tables
Debug for errors
Fill in the blank: Remember the difference between ________, selection, and subroutine.
sequence
iteration
recursion
function
For debugging, look for missing colons, indentation, or logical errors.
True
False
Review AND / OR / NOT truth tables for the exam.
True
False
What does the AND logic gate require for its condition to be true?
Only one condition must be true
Both conditions must be true
No conditions must be true
All conditions must be false
What does the OR logic gate require for its condition to be true?
Only one condition must be true
Both conditions must be true
One or more conditions must be true
All conditions must be false
What does the NOT logic gate do to a condition?
Makes it true
Reverses the condition
Ignores the condition
Doubles the condition
Fill in the blank: In flowcharts, the Decision symbol is represented by a _______.
diamond
rectangle
circle
parallelogram
Fill in the blank: In flowcharts, the Start/Stop symbol is represented by an _______.
oval
rectangle
diamond
parallelogram
Fill in the blank: In flowcharts, the Process symbol is represented by a _______.
rectangle
circle
diamond
parallelogram
Given the selection statement: IF temperature > 37 THEN OUTPUT "Fever" ELSE OUTPUT "Normal", what will be the output if the temperature is 36?
Normal
Fever
Error
36
Given the logic statement: IF (age > 12 AND age < 20) THEN "Teenager", what age range is considered a teenager according to this statement?
13 to 19
12 to 20
10 to 18
15 to 21
In Flowchart: What shape is used for decision making?
Rectangle
Diamond
Oval
Parallelogram
In a flowchart, True/False paths must be labeled.
True
False
Trace through the flowchart and determine the final output given certain inputs. What tool can you use to organize your work?
Pie chart
Trace table
Bar graph
Checklist
7CT.06 – Explain importance of pattern recognition Pattern recognition reduces _______ and helps create reusable subroutines.
repetition
complexity
speed
errors
Subroutines (procedures/functions) are _______ reusable sections of an algorithm.
smaller
larger
optional
temporary
Which construct is described as 'Steps follow one after another'?
Sequence
Selection
Loop
Condition
Which flowchart symbol represents a decision?
Oval
Diamond
Rectangle
Parallelogram
What does the AND operator require to return TRUE?
One condition true
Both conditions true
Any condition true
None true
Which of the following best represents selection?
A. Repeat steps
B. Follow steps in order
C. Choose path based on condition
What is the purpose of pattern recognition?
A. To decorate code
B. To identify repeated structures
Which statement is TRUE about subroutines?
They make code longer
They are reusable parts of a program
In a flowchart, what follows the Start symbol?
A. Decision
B. Process
If marks > 80 OR grade = 'A' THEN 'Excellent' → Which input outputs “Excellent”?
A. 75, A
B. 75, B
What is NOT operator used for?
Adding logic
Negating a condition
A subroutine is also known as:
Decision block
Procedure or function
What construct ensures every step runs once in order?
A. Sequence
B. Selection
C. Iteration
What is the correct output of the flowchart for input price = 120 after fixing the missing connector after the decision?
The total price is 120
The total price is 0
The total price is 240
The total price is 100
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 flowchart that inputs two numbers, checks if both are even using AND, and outputs “Both even” or “Not both even.”
A flowchart that inputs two numbers, checks if at least one is even, and outputs “At least one even” or “None even.”
A flowchart that inputs one number, checks if it is even, and outputs “Even” or “Odd.”
A flowchart that inputs two numbers, checks if both are odd, and outputs “Both odd” or “Not both odd.”
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?
Not Teen, Teen, Teen, Not Teen
Teen, Teen, Not Teen, Not Teen
Not Teen, Not Teen, Teen, Teen
Teen, Not Teen, Teen, Not Teen
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?
They all involve checking divisibility.
They all require addition.
They all use subtraction only.
They all ignore number properties.
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?
By using the logic for checking even numbers in both the even and multiples of 2 flowcharts
By creating separate logic for each flowchart
By ignoring the logic for even numbers
By using the logic for prime numbers in all three flowcharts
Which subroutine should be created and called in a main flowchart to print “Even” or “Odd” as described in Activity 5?
CheckEven
PrintNumber
IsOdd
MainSub
