• Save
Com Ed 6 Prelim
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Com Ed 6 Prelim

on

  • 260 views

Programming with C++

Programming with C++

Statistics

Views

Total Views
260
Views on SlideShare
260
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Com Ed 6 Prelim Document Transcript

  • 1. JOJI ILAGAN CAREER CENTER FOUNDATION, INC. COLLEGE OF BUSINESS AND TOURISM Gov. Chavez St., Davao CityCom Ed 6 – Programming with C++PRELIM EXAMINATION JEFF REY A. COMIDOY2nd Sem. SY 2012-2013 Instructor75 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 three2. 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 three3. A pictorial representation of algorithm. a. Algorithm b. Flowchart c. Pseudo code d. None of the three4. 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 three5. Programs structured by using only these three logic structures are called… a. Algorithm b. Flowchart c. Pseudo code d. None of the three6. 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 three7. 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 three8. 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 three9. Technique of writing a program with sequence, selection and iteration logic is called… a. Algorithm b. Flowchart c. Pseudo code d. None of the three10. Which of the following are the representation of algorithm: a. As programs b. As flowcharts c. As pseudo code d. All of the three11. 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 three12. is a flowchart symbol of… a. Terminal b. Input/Output c. Processing d. Decision13. is a flowchart symbol of… a. Terminal b. Input/Output c. Processing d. Decision14. is a flowchart symbol of… a. Terminal b. Connectors c. Flowlines d. Decision15. is a flowchart symbol of… a. Terminal b. Connectors c. Flowlines d. Decision II. Write an Algorithm and Flowchart on the following problem: (15 pts each for algorithm and 15 pts each for flowchart) 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. 3. 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. 4. 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 salar y 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.