Get premium membership and access revision papers, questions with answers as well as video lessons.

Comp 007: Applications Programming Question Paper

Comp 007: Applications Programming 

Course:Certificate In Computer Science

Institution: Chuka University question papers

Exam Year:2013





CHUKA

UNIVERSITY

UNIVERSITY EXAMINATIONS
EXAMINATIONS FOR THE AWARD OF CERTIFICATE IN COMPUTER SCIENCE
COMP 007: APPLICATIONS PROGRAMMING
STREAMS: CERT COMP. SCIE TIME: 2 HOURS
DAY/DATE: MONDAY 22/4/2013 11.30 AM – 1.30 PM
INSTRUCTIONS:

Do not write on the question paper
Switch off any electronic gadget (phones or IPod).

SECTION A – Compulsory (30 Marks)

Question One

(a) Briefly describe the following parts of an visual basic application project [6 Marks]
(i) Forms
(ii) Controls
(iii) Properties

(b) Visual Basic is said to be event-driven. Briefly explain why ? [3 Marks]

(c) Indentify and explain any three data types in Visual Basic. [6 Marks]

(d) Using the Hungarian notation, declare three variables each of a different data type giving an initial value in each. [6 Marks]

(e) Discuss the lifetime of a variable in reference to module scope variables. [3 Marks]

(f) Differentiate between the Do-while and the Do-Loop-Until loop structures. [2 Marks]
(g) Write an algorithm to test the mark of a student. If the mark is more than 47, increase the mark by 2.5%, otherwise decrease the mark by 5.7%. Displays the new mark. [4 Marks]
SECTION B

Question Two (20 Marks)

(a) Briefly explain the steps in program planning. [12 Marks]

(b) Using any control structure, write a program that examines the score entered by the user in text box and grades it as follows:



Score Grade Remark
0 - 40 D Failed
40 – 60 C Failed
50 - 70 B Failed
Above 70 A Failed

The program should then display a message on a label with the grade and remark e.g. “you passed, your grade is A” [8 Marks]
Question Three (20 Marks)

(a) Briefly explain the different types of errors one can encounter in a VB program giving examples where possible. [6 Marks]

(b) A program captures the salary of an employee in a text box and determines whether the employee should pay tax of 16% or not and displays the net salary in a label. An employee should pay tax if the salary is greater than 5,000. [14 Marks]

(a) Write a pseudocode to solve the problem
(b) Draw a flowchart for the resulting program.

Question Four (20 Marks)

(a) Define the following terms. [6 Marks]
(i) Program
(ii) Variable
(iii) Syntax


(b) The variable person contains a code of A for adult or a C for child while the variable member contains a TRUE or FALSE to indicate if a person is a member of a club or not. The club is having a fun day and the entrance fee is determined as follows: An adult member pays sh.250 and a child member pays sh.180. A non –member pays 50% more than a member. Store the entrance fee in the variable called fee. [14 Marks]

(i) Solve the problem above using Nested if statements
(ii) Rewrite the program using select case structure.

Question Five (20 Marks)

(a) List and explain the functions of any six visual basic controls. [12 Marks]

(b) What is a programming language? [2 Marks]

(c) Discuss the traits often considered important for what constitutes a programming language. [6 Marks]

---------------------------------------------------------------------------------------------------------------------






More Question Papers


Popular Exams



Return to Question Papers