Samar State University: Republic of The Philippines
Samar State University: Republic of The Philippines
Date of
Subject /Code: Computer Fundamentals and Programming / ES7
Exam:
Date
Student Name:
Checked:
Student I.D. No: Score:
Signature: Item:
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
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.
Prepared by: