Solution - Po Leung Kuk Ngan Po Ling College

F.5 Computer and Information Technology (09-10)
WS Lee
p.1
Po Leung Kuk Ngan Po Ling College
Name: ____________________
Computer and Information Technology
Class: _________ (
)
Unit Test - Basic Programming Concepts
1. Which of the following types of files is not suitable for communicating between
different types of computers?
A. Text file
B. HTML file
C. mp3 file
D. Execution file
[Q3 2007 CE]
2. Which of the following procedures for developing a system requires user
participation?
A. Program debugging
B. Algorithm design
C. Program coding
D. Program testing
[Q26 2007 CE]
3. What does the following statement imply?
“There are Java compilers and Java interpreters to translate Java programs into
machine codes.”
A. Programs written in a high level language can be translated by more than
one kind of translator.
B. Interpreters translate programs with one statement only.
C. Machine codes are part of Java programs
D. Java compilers and Java interpreters must be used at the same time to
translate Java programs.
[Q27 2007 CE]
F.5 Computer and Information Technology (09-10)
WS Lee
4.
What is the purpose of the above flowchart?
A. Count the numbers between 1 and X.
B. Find (1+2+3+…+X)
C. Find (1+2+3+…+X)/X
D. Count the number of input values before -1 is entered.
[Q28 2007 CE]
5.
Low level language is suitable for developing
(1) a driver for a network card
(2) an application program for teaching arithmetic
(3) graphic animation for a web page
A. (1) only
B. (1) and (2) only
C. (2) and (3) only
D. (3) only
[Q29 2007 CE]
p.2
F.5 Computer and Information Technology (09-10)
WS Lee
p.3
6. In a theme park, the prices of the normal ticket and discount ticket are $100 and $50
respectively. Children who are 16 or below and adults who are 60 or above can enjoy
the discount tickets. What is the missing condition in the following algorithm for
calculating the ticket price?
if _________________
then ticket price = $50
else ticket price = $100
A. age <= 16 and age >= 60
B. age <=16 or age >= 60
C. 16 < age and age < 60
D. 16 <= age and age <= 60
[Q30 2007 CE]
7. COBOL, firstly created in 1959, is still in active use in some computer systems
because
A.
B.
C.
D.
it is a third generation programming language.
some COBOL programs which are running in computer systems stably
cannot be easily replaced.
it is more difficult to learn a fifth generation programming language than
to learn COBOL.
program codes of COBOL are shorter than those of a fifth generation
programming language.
[Q31 2007 CE]
8. Which of the following statements about programming languages is correct?
A. Programming languages are used to help us solve problems using a
computer.
B. System programs must be written in high level languages.
C. Application software must be written in fifth generation programming
languages.
D.
Programs written in low level languages can only be translated by
interpreters.
[Q32 2007 CE]
F.5 Computer and Information Technology (09-10)
WS Lee
p.4
9. What are the results of the following algorithm?
Y0
X1
YX
XX+Y+2
X Y
A.
4
1
B.
4
0
C.
3
0
D.
3
1
[Q33 2007 CE]
10. What is the difference between open source software and freeware?
A.
B.
C.
Open source software is not free.
The source code of open source software is not free
The source code of open source software can be modified and
redistributed.
D. Open source software can only be used within a certain short period of
time for trial.
[Q38 2007 CE]
1. D
D
3. A
4. D
5. A
6. B
7. B
8. A
9. A
10. C
F.5 Computer and Information Technology (09-10)
WS Lee
p.5
F.5 Computer and Information Technology (09-10)
[Q4 CE 2008 1B]
WS Lee
p.6
F.5 Computer and Information Technology (09-10)
WS Lee
p.7
F.5 Computer and Information Technology (09-10)
WS Lee
p.8
F.5 Computer and Information Technology (09-10)
[Q5 CE 2007 1B]
WS Lee
p.9
F.5 Computer and Information Technology (09-10)
WS Lee
p.10
CIT Syllabus:
Students should:

Understand the meaning of problem solving and appreciate the use of a systematic
approach to solve problems;

Be able to apply concepts of systematic problem solving to real life problems;

Be aware of a brief historical development of the programming languages and
understand the differences between a high level

programming language and a low level programming language;

Understand the differences among the different translators: the compiler, the interpreter
and the assembler;

Understand the meaning of an algorithm and a program flowchart;

Be able to identify the objectives of an algorithm from an examination of its program
flowchart;

Appreciate that there are different ways of solving the same problem, and be able to
make simple comparison among them;

Be able to trace the logical flow, identify the values of variables during execution and
debug logical errors in segments of a program flowchart, or other means of realising the
solution of a problem;

Be able to recognise the basic constructs of a computer program; and

Appreciate the importance of good programming habits, such as clear documentation,
use of meaningful variables, use of the modular approach, etc.
Additional Information
Problem solving procedures

The need for a systematic way of solving problems

Problem solving procedures: problem identification, problem analysis, designing an
algorithm, developing a solution, debugging and testing, documentation

Real life application of the problem solving procedures and some practical
considerations
Using a program flowchart to realise the algorithm

Different ways to solve the same problem and their brief comparison
Programming languages

Roles of a programming language in the realisation of an algorithm

Historical development of programming languages

High level and low level programming languages: their needs, characteristics and
examples

Functions of the different translators: compiler, interpreter and assembler
Programming concepts in using a high level programming language
F.5 Computer and Information Technology (09-10)
WS Lee
p.11

Input, output, assignment of values to variables

Using constructs such as branching and iteration structures

Tracing program flow: identifying values of variables and debugging logical errors