wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Topical Test 2- Approach in problem solving

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is IPO stands for?

a)

Input, Product, Output

b)

In, Process, Out

c)

Input, Process, Output

2.

Look at the picture and identify the Output.

a)

Oven

b)

Cake

c)

Eggs

d)

Milk

3.

A program that will accept student’s mark. If the mark is greater than 40, print the message “PASS”.

Identify process.

a)

message "PASS"

b)

determine the appropriate message based on mark

c)

determine the mark based on the respective message

d)

student's mark

4.

A program that will accept student’s mark. If the mark is greater than 40, print the message “PASS”.

Identify input.

a)

message "PASS"

b)

determine the appropriate message based on mark

c)

student's mark

5.

If an employee works more than 40 hours a week, compute his overtime pay which is half of his salary.

Identify output

a)

hour

b)

overtime pay

c)

week

d)

salary

6.

If an employee works more than 40 hours a week, compute his overtime pay which is half of his salary.

Identify process

a)

determine calculate overtime pay based on hour and salary

b)

calculate overtime pay based on employee

c)

determine overtime pay based on week

d)

determine and calculate overtime pay based on overtime pay

7.

If a student’s mark is greater than 40, print the message “PASS”. Otherwise, print the message “FAIL”.

Identify input

a)

students

b)

mark

c)

40

8.

A program that will accept two numbers from user. Display a message “First number is bigger” if first number is bigger than second number. Otherwise display a message “Second number is bigger”.

Which of the following are input

a)

two numbers

b)

number 1, number 2

c)

respective number 1

d)

respective number 2

9.

Create a program to calculate the price after 10% discount.

Which answer is the process of the problem given?

a)

calculate the price before discount

b)

calculate the price to pay

c)

calculate the discount

d)

calculate the total price and discount

10.

Calculate and display the overtime pay received by an employee. Overtime rate is RM5 per hour.

Which answer is the input to the problem given?

a)

hour

b)

overtime pay

c)

hour,

overtime pay

11.

State the first step in Problem Solving.

a)

Documentation

b)

Design Solution

c)

Problem Analysis

d)

Testing

e)

Implementation

12.

State the fourth step in Problem Solving.

a)

Documentation

b)

Design Solution

c)

Problem Analysis

d)

Testing

e)

Implementation

13.

A government tax of 6% will be added to the price of a set of meal bought at restaurant McJ. Calculate total price that Zul has to pay for a set of meal.


Identify process.

a)

total price for a set of meal

b)

calculate total price for a set of meal

c)

total price = price of a set of meal + (0.06 x price of a set of meal)

d)

0.06 government tax

14.

A program will read two numbers and print their total and average.


Which of the answer below are output for the program.

a)

average and total of two numbers

b)

number 1

c)

number 2

d)

calculate total and average of two numbers

15.

Athirah sells computer brand A which is RM1000 per unit and computer brand B which is RM2000 per unit. She will be given 10% commission for her total sales. Calculate total sales she will get.

Identify input.

a)

total sales

b)

quantity brand A, quantity brand B

c)

calculate total sales

d)

10 % commission

16.

Choose 3 types of error.

a)

Syntax error

b)

Logic error

c)

Run time error

d)

Coding error

17.

Print the squares of 10 numbers entered by user.

Identify the process

a)

Calculate 10 squares

b)

Determine squares based on number

c)

Repeat number and calculate squares

d)

Repeat number and calculate squares for 10 times

18.

Calculate BMI for 21 students.

Identify input

a)

BMI

b)

21 students

c)

Height and Weight

19.

The program will calculate average for a few integers entered by users. The user should key in 0 to terminate the process.

Choose the suitable control structure.

a)

Selection

b)

Counter controlled

c)

Sequence

d)

Sentinel controlled

20.

Calculate the average of a few student height. The value -1 for height indicates the end of input.

Identify the process

a)

Determine and calculate the average based on height

b)

Repeat height and calculate average for -1 times

c)

Repeat height and calculate average until height = -1

d)

Calculate average based on height for many times