Bit 2105: Application Programming 1 Question Paper

Bit 2105: Application Programming 1 

Course:Bachelor Of Science In Information Technology

Institution: Jomo Kenyatta University Of Agriculture And Technology question papers

Exam Year:2012



JOMO KENYATTA UNIVERSITY OF AGRICULTURE AND TECHNOLOGY

UNIVERSITY EXAMINATIONS 2012/2013

STAGE ONE SEMESTER THREE EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY

BIT 2105: APPLICATION PROGRAMMING 1

DATE: NOVEMBER 2012 TIME: 2 HOURS

INSTRUCTIONS: ANSWER QUESTION ONE AND ANY OTHER TWO QUESTIONS
TOTAL MARKS: 70


QUESTION ONE

(a) Write the form of a simplest type of sub procedure [3 marks]
(b) Write a program that allows the users to specify two numbers and then adds, subtracts, or multiplies them when the user clicks on appropriate command button. The output should give the type of arithmetic performed and the result. [5 marks]
(c) Describe, with the aid of a diagram, the problem solving process [4 marks]
(d) List THREE distinct states of visual Basic IDE [3 marks]
(e) Describe the following items of standard visual basic project;
(i)Forms [2 marks]
(ii)Modules [2 marks]
(iii)Global items [2 marks
(f) Explain the following parts of visual basic IDE
(i)Form designers [2 marks]
(ii)Code windows [2 marks]
(g) Write the general forms of the validate event procedure [3 marks]
(h) Write a code that declares the constant PI as of type single [2 marks]

QUESTION TWO

Many programmers plan their programs using a sequence of steps, referred to as the program
Development cycle. Discuss the program development cycle. [20 marks]



QUESTIONS THREE

(a) Describe the following THREE different editions of visual basic
(i)Learning Edition [5 marks]
(ii)Professional edition [5 marks]
(iii)Enterprise edition [5 marks]
(b) State THREE steps of writing a VB program [3 marks]
(c) List two primary types of data that can be processed by visual basic [2 marks]

QUESTION FOUR

Write the pseudo code and flowchart for:
(i) Processing data from a file [10 marks]
(ii) For……next loop [10 marks]

QUESTION FIVE

Explain, using relevant visual basic code, the following visual basic devices
(i)Sub procedures [10 marks]
(ii)Function procedures [10 marks






More Question Papers


Popular Exams


Mid Term Exams

End Term 1 Exams

End Term 3 Exams

Opener Exams

Full Set Exams



Return to Question Papers