You are on page 1of 2

Republic of the Philippines

SAMAR STATE UNIVERSITY


College of Engineering
Catbalogan City, Samar

Date of
Subject /Code: Computer Fundamentals and Programming / ES7
Exam:
Date
Student Name:
Checked:
Student I.D. No: Score:

Signature: Item:

Instructor: Engr. Maynard R. Dalemit Equivalent:


EXAMINATION: □ Quiz □ Summative □ Mid -Term □ Final -Term
Test: (A) Analyze the questions carefully and shade the letter’s circle that represents your best answer.
Choose your best
No. Problem(s) / Question(s): answer
A B C D E
What is the native language directly understood by the computer’s central
processing unit or CPU?
1 ⃝ ⃝ ⃝ ⃝ ⃝
a. Binary language c. Machine language e. compiler
b. Programming language d. signal
What is a control structure where a series of statements will be executed one after
another?
2 ⃝ ⃝ ⃝ ⃝ ⃝
a. Sequence c. Repetition e. none of the above
b. Selection d. Goto statements
What is a programming method that stores a fixed-size sequential collection of
elements of the same type?
3 ⃝ ⃝ ⃝ ⃝ ⃝
a. Repetition c. Variable e. Database
b. Array d. Identifier
What is a control structure that uses a repetitive process of statement execution
while certain conditions are met?
4 ⃝ ⃝ ⃝ ⃝ ⃝
a. Goto Statement c. Looping e. Jump
b. Selection d. Sequence
What is the difference between flowchart and pseudocode?
a. Pictorial representation and English-like representation of the logic
b. symbols and code’s syntax
5 c. flow of program and steps of program ⃝ ⃝ ⃝ ⃝ ⃝
d. they do not have differences
e. Pictorial representation and code’s syntax

In the following pseudocode, what percentage raise will an employee in


Department 8 receive?
If department < 5 then
Raise = 100
Else
if department < 14 then
raise = 250
6 ⃝ ⃝ ⃝ ⃝ ⃝
Else
if department < 9 then
raise = 375
Endif
Endif
Endif

SAMAR STATE UNIVERSITY, Barangay.Guidapunan, Arteche Blvd.Catbalogan City, 6700, Tel. No. (055) 251-2139, URL:http://www.ssu.edu.ph/
Republic of the Philippines
SAMAR STATE UNIVERSITY
College of Engineering
Catbalogan City, Samar

a. 100 b. 250 c. 375 d. 275 e. impossible to tell

What is the basis of the “if statement” to process the statement or expression?
7 a. Value c. condition e. process ⃝ ⃝ ⃝ ⃝ ⃝
b. Variable d. initialization
In what case the looping process stop in iteration structure?
a. if it still satisfy the condition
b. if it still has a value
8 ⃝ ⃝ ⃝ ⃝ ⃝
c. if the incrimination is missing
d. if the expression is not satisfied
e. none of the above
In the following pseudocode, how many times is “Hello” printed?
P=2
q=4
while p < q
print “Hello”
r=1
while r < q
print “Hello”
r=r+1
9 ⃝ ⃝ ⃝ ⃝ ⃝
endwhile
p=p+1
endwhile

a. Zero
b. Four
c. Six
d. eight
e. none of the above
What is the format used in naming variable?
10 a. Cammel casing c. Carmel Casing e. None of the above ⃝ ⃝ ⃝ ⃝ ⃝
b. Camrel Casing d. Carrel Casing
Test Practical Exam. Follow the instruction and requirements from the given problem
B. below.(20 points)
Assume you have a bank account that compounds interest on a yearly basis. In
other words, if you deposit $100 for two years at 4% interest, at the end of 1 year
you will have $104. At the end of 2 years, you will have the $104 plus 4% of that, or
$108.16. Create the logic for a program that would (1) read in records containing a
1 deposit amount, a term in years, and an interest rate, and (2) for each record, print
the running total balance for each year of the term.

a. Design the flowchart of the program.


b. Write the source code of the program.
***
“Giving up is the only sure way to fail.”
- Gena Showalter

Prepared by:

ENGR. MAYNARD R. DALEMIT


Instructor
SAMAR STATE UNIVERSITY, Barangay.Guidapunan, Arteche Blvd.Catbalogan City, 6700, Tel. No. (055) 251-2139, URL:http://www.ssu.edu.ph/

You might also like