Font size
WorksheetsSC 025 Topical Test 3 - Design a Solution
Total questions: 13
Worksheet time: 8mins
Two (2) techniques that can be used to represent an algorithm
images and videos
texts and symbols
pseudocode and flowchart
2 keywords that are used to indicate INPUT in pseudocode
compute
get
show
read
What's missing from this part of a flowchart?
A line
An arrow
A diamond
What are the 2 rules for flowchart?
Has a start and a stop symbol
No need to draw arrowhead for flowline symbol
Label True or False for each selection flow
Use indentation to show the action part
Identify the suitable type of control structure for this problem statement :
Find the highest price among 100 given values and reduce it by 10%
Sequence
Selection
Repetition
Create a solution for program that will calculate and display the Body Mass Index (BMI) for a person. Find the input
BMI
height
weight
Start
______ radius
area = PI x radius x radius
______ area
Stop
Find the missing words.
Enter
Get
Read
Calculate
Input
A flowchart needs to represent the a situation whether the number key in by user is positive, negative or zero. This is an example of which of the algorithm constructs?
Single selection
Dual selection
Multiple selection
Create a program that will accept student’s mark. If the student mark is greater than 60, the message "LULUS" will display. Identify the correct answer for the output.
Read "LULUS"
Output LULUS
Display "LULUS"
Design an algorithm for a program that will count the number of even and odd. The process will continue until the user enters value 0.
Choose the best option for decision shape
number > 0
number != 0
number % 2 = 0
2 types of repetition control structures
sentinel-controlled
counter-controlled
sentinel-countered
counter-sentinel
The loop control variable is initialized before entering the loop.
True
False
Start
sum = 0
counter = 0
while (counter <= 10)
input number
sum = sum + number
counter = counter + 1
end while
display sum
Stop
How many times will the while loop body executed?
9
10
11
