Student Profile Sample - We help schools to connect the data they have, with ...
Â
Com Ed 6 Prelim
1. JOJIILAGAN CAREER CENTER FOUNDATION, INC.
COLLEGE OF BUSINESS AND TOURISM
Gov. Chavez St., Davao City
Com Ed 6 – Programming with C++
PRELIM EXAMINATION JEFF REY A. COMIDOY
2nd Sem. SY 2012-2013 Instructor
75 Items
I. Choose the letter of the correct answer.
1. The purpose of program planning is
a. Write a correct program b. Logic (instruction sequence) c. Ensure correct program sequence d. All of the three
2. Refers to the logic of a program and a step by step description of how to arrive at the solution of a given problem…
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
3. A pictorial representation of algorithm.
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
4. A program logic is written in an ordinary natural language using a structure that resembles computer instruction.
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
5. Programs structured by using only these three logic structures are called…
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
6. It is a logic program with a characteristic that each and every instruction should be precise and unambiguous.
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
7. It is a logic program that uses symbols that have standardized meanings to denote different types of instructions..
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
8. It is a logic program which means an imitation or false and the instructions were written in a programming language.
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
9. Technique of writing a program with sequence, selection and iteration logic is called…
a. Algorithm b. Flowchart c. Pseudo code d. None of the three
10. Which of the following are the representation of algorithm:
a. As programs b. As flowcharts c. As pseudo code d. All of the three
11. When an algorithm is represented in the form of a programming language, it becomes a…
a. Program b. Flowcharts c. Pseudo code d. All of the three
12. is a flowchart symbol of…
a. Terminal b. Input/Output c. Processing d. Decision
13. is a flowchart symbol of…
a. Terminal b. Input/Output c. Processing d. Decision
14. is a flowchart symbol of…
a. Terminal b. Connectors c. Flowlines d. Decision
15. is a flowchart symbol of…
a. Terminal b. Connectors c. Flowlines d. Decision
II. Write an Algorithm on the following problem: (15 pts each)
1. Ask the user two numbers and add the two numbers. Show the total. Then asks another two numbers and show the division of
two numbers. Then asks another two numbers and show the difference of two numbers. Then asks another two numbers and
show the multiplication of two numbers.
2. There are 50 students in a class who appeared in their final examination. Their mark sheets have been given to you. The division
column of the mark sheet contains the division (First, Second, Third or Fail) obtained by the student. Write an algorithm to
calculate and print the total number of students who passed in First Division.
III. Write a Flowchart on the problems of test II. (15 pts each)
1. A student appears in an examination, which consists of total 10 subjects, each subject having maximum marks of 100. The roll
number of the student, his/her name, and the marks obtained by him/her in various subjects are supplied as input data. Draw a
flowchart for the algorithm to calculate the percentage marks obtained by the student in this examination and them to print it
along with his/her roll number and name.
2. There are 100 employees in an organization. The organization wants to distribute annual bonus to the employees based on their
performance. The performance of the employees is recorded their annual appraisal forms. Every employee’s appraisal form
contains his/her basic salary and the grade of his/her performance during the year. The grade is of three categories (A:
outstanding performance; B: good performance; C: average performance) It has been decided that the bonus of an employee will
be 100% of the basic salary for outstanding performance, 70% of the basic salary for good performance, 40% of the basic salary
for average performance, and zero for all other cases. Write an algorithm to calculate and print the total bonus amount to be
distributed by the organization.