0% found this document useful (0 votes)
23 views

CS Test 1

Uploaded by

Kyaw Myint Naing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

CS Test 1

Uploaded by

Kyaw Myint Naing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer Science TEST 1

Name

Time : 1 hour
Answer all questions.

1. The following statement are TRUE or FALSE. [10]


(i) A solution to a problem with these characteristics is called an algorithm. Most problems
have more than one solution, so different algorithms can be created for the same problem. TRUE
(ii) Algorithms and programs are the same things. An algorithm is when that design is
implemented; a program is a detailed design for a solution. FALSE
(iii) The flow charts can be used to show an algorithm as a diagram. They provide a more
visual display. TRUE

(iv) An arithmetic operator is an operator that performs a calculation on two numbers. TRUE
(v) Variable is a ‘container’ used to store data. The data stored in a variable is referred to as a
value. TRUE

(vi) Consistency means that it must produce the same result each time it is run. TRUE
(vii) The constructs sequence, selection and iteration are the basic building blocks of
TRUE
algorithms.
FALSE
(viii) A person whose job it is to create new software is called digital creator.
(ix) The remainder after the division of one number by another is called quotient. TRUE
(x) Variables and constants are ‘containers’ for storing data. The value stored in a constant
FALSE
can change, whereas the value of a variable never changes.
2.(a) Match the flow chart symbols and related definitions. [5]

a b c d e

(i) Indicates an input or output c (iv) Shows the logical flow of the algorithm e

(ii) Indicates a process to be carried out b (v) Indicates a decision to be made d

(iii) Indicates the start or end of an algorithm a

(b) Produce a written description of an algorithm for making a cup of Kiwi juice. It should
start with placing some kiwi fruit in container and end with mixing the juice. For example,
the algorithm could start with ‘Place some kiwi fruit in blander’ and end with ‘stir’. [5]
3. Match the following terms with related statements explanatory notes. (Write only alphabet)

(a) iteration (b) condition (c) high-level programming language (d) identifier

(e) developer (f) logic (g) selection (h) Consistency (i) Efficiency [9]

(i) a construct that allows a choice to be made between different alternatives g


(ii) a unique name given to a variable or a constant. Using descriptive names for variables
makes code much easier to read d
(iii) a construct that means a process is repeated. An action is repeated until a condition is met
or a particular outcome is reached. It is often referred to as a ‘loop’ a
(iv) the principles and reasoning underlying the constructs and elements to be applied in
solving problems f
(v) a person whose job it is to create new software e

(vi) it must solve the problem in the shortest possible time, using as few computer resources
as possible. i

(vii) it must produce the same result each time it is run. h

(viii) a programming language that is similar to natural human language c

(ix) something that must happen before something else can happen b

4. A developer make a program for calculating the area of the trapezium. The software could
accept bases of the trapezium (parallel sides a and b) and height (the perpendicular distance
between a and b) from the users and the area of trapezium will display to the users. (Area of
the trapezium = ½ * ( a + b ) * height ) [21]

a. Write written description for that algorithm.


b. Draw flowchart for that algorithm.
c. Create pseudocode for that algorithm.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy