Sei sulla pagina 1di 4

THEORY TEST 1

PART A : OBJECTIVE (20 marks)


Instructions: This section consists of TWENTY (20) objective type of questions. Answer ALL the
questions in the answer booklet.
1. Which of the following is NOT computer system component? (CLO 1)
A. Data
C.
System
B. Consumer
D.
Hardware

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.

_______ is a sequence of instructions to solve a problem, written in human language. Choose


the correct answer.
(CLO 2)
Flow Chart
C.
Algorithm
Pseudo code
D.
None of the answer above
3.

A.
B.

Below are the operation of computer EXCEPT (CLO 1)


A. Input
C.
Process
B. Control Unit
D.
Output

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.

Third Ganeration Language also called as _________.(CLO 1)


A.
Human language
C.
Very high level language
B.
Machine language
D.
High level language

9.

Which programming language does not require a translator? (CLO 1)


A. Human language
C.
Very high level language
B. Machine language
D.
High level language

THEORY TEST 1

A.
B.

10.

Which of the following non-example of the high-level programming language (3 rd generation)?


(CLO 1)
A. COBOL
C.
BASIC
B. FORTRAN
D.
SQL

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.

_______ is a sequence of instructions to solve a problem, written in human language. Choose


the correct answer.
(CLO 2)
A. Flow Chart
C.
Algorithm
B. Pseudo code
D.
None of the answer above

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.

Choose the best answer to define flow chart.


(CLO 2)
A. Step in flow chart must be implemented in a sequence.
B. It is a sequence of instruction to solve the problem.
C. It is a graphical representation of data, information and workflow.
D. It is a framework or flow that shows the steps in problem solving.

16.

What is the function of the symbol below in a flow chart? (CLO 2)


A.
Shows a selection process for two-way selection.
B.
Indicates the beginning and end points of an algorithm.
C.
Provides continuation of a logical path on another point in
the same page.
D.
Shows an input or an output operation.

17.

Refer to the statement below, what will be the output?

(CLO 2)

Calculate the floor area of the board room. The length


entered by user is 7 meters while the width is 4 meter

A. Width = 28
B. Floor = 28
18.

19.

C.
D.

Area = 28
Length = 28

Determine the weekly wage of an employee. He/she needs to


enter the working hours and the hourly rate.

What is the input based on the problem above?


A.
weekly_wage, hours_work
B.
hours_worked, hourly_rate

(CLO 2)
C.
weekly_wage, hours_worked
D.
hours_rate, name_of_employee

What is the output based on the problem above?

(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.

Get the price of hamster


hamster1==hamster2, hamster3, hamster4, hamster5
Calculate the total price
Total = hamster1+hamster2+hamster3+hamster4+hamster5
Display the total price

4
3

PART B : SUBJECTIVE (30 marks)


Answer ALL the questions.
QUESTION 1
a)
Describe each terminology below.(CLO 1)
i.
Programme
________________________________________________________
________________________________________________________
ii.

Programming
________________________________________________________
________________________________________________________
[4 marks]

b)

Explain hardware device below and give one example for each device.(CLO 1)
i.
Input device : ____________________________________________
____________________________________________
ii.

Output device : ____________________________________________


____________________________________________

iii.

Storage device : ____________________________________________


____________________________________________
[6 marks]

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

flow of activity / lines

[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]

Potrebbero piacerti anche