Beruflich Dokumente
Kultur Dokumente
I.
II.
III.
IV.
2. When making the process of problem analysis, there are three items is needed. Choose the
correct answer.
(CLO 1)
Input
A.
I, II and III
Process
B.
I, II and IV
Problem
C.
II, III and IV
Output
D.
All answers above
3.
A.
B.
A.
B.
4. A set of step-by-step instructions that directs a computer to perform a specific task and to
produce the required results. The statement refers to :(CLO 1)
Program
C.
Programming
Programmer
D.
Algorithm
5. Which of the following uses 0s and 1s to represent instructions? (CLO 1)
A. Machine LanguageC.
C.
3rd Generation Language
B. Assembly Language
D.
Natural Language
6. There are three types of language translators. Which of the following is not a programming
language interpreter? (CLO 1)
A. Assembler
C.
Interpreter
B. Compiler
D.
Converter
7.
A.
B.
Choose the third phase in Software Development Life Cycle (SDLC). (CLO 2)
Program Design
C.
Testing and Debugging
Program Coding
D.
Problem analysis
8.
9.
THEORY TEST 1
A.
B.
10.
11.
There are programs that will get two numbers from user and calculate the total of two numbers.
Choose the correct input. (CLO 2)
A. Two number
C.
num1
B. num1, num2
D.
num1, num2, total
12.
13. Choose the best output for ATM machine transaction system. (CLO 2)
Choose language
C.
Print receipt
Enter pin number
D.
Enter amount of money to withdraw
14.
You are asked to solve the equation of y = (5x+6) +z. Given the value of x = 7 and the value of
z = 4. Choose the best output. (CLO 3)
A. Value of y
C.
Value of x
B. Value of z
D.
Value of x and value of z
15.
16.
17.
(CLO 2)
A. Width = 28
B. Floor = 28
18.
19.
C.
D.
Area = 28
Length = 28
(CLO 2)
C.
weekly_wage, hours_worked
D.
hours_rate, name_of_employee
(CLO 2)
THEORY TEST 1
A.
B.
20.
hourly_rate
hours_worked
weekly_wage
name_of_employee
Based of the following algorithm below, what will be the value of hamster1 and hamster2 if
given Total=27, hamster3=5, hamster4=7 and hamster5=9. (CLO 3)
1.
2.
3.
A.
B.
C.
D.
6
5
C.
D.
4
3
Programming
________________________________________________________
________________________________________________________
[4 marks]
b)
Explain hardware device below and give one example for each device.(CLO 1)
i.
Input device : ____________________________________________
____________________________________________
ii.
iii.
QUESTION 2
THEORY TEST 1
a)
This table below is a symbol and function in flow chart. Fill in the blank with the correct
answer.
(CLO 2)
Symbol
Function
process
condition
[6 marks]
b)
Prepare the problem analysis (input, process and output) for the following problem
statements. (CLO 2)
i. Calculate the price of an item after discount. Assume the discount sales is
30%.
_________________________________________________________
_________________________________________________________
_________________________________________________________
[4 marks]
ii. Change the time to second. Assume 1 hour = 60 minutes
_________________________________________________________
_________________________________________________________
_________________________________________________________
[3 marks]
c)
Hamdi and his family were planning for a family vacation during this school holiday. He was
decided to took the family package costs RM699 which have a great offer 15% off. Count
how much Hamdi need to pay for the vacation. Develop the pseudo code and flow chart for
the following problem. (CLO 3)
[7 marks]