Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

P.O.

Box 200-60500, Marsabit


Mobile No: 0741-243-816
Email: northhorrtvc@gmail.com
Website: https://northhorrtti.ac.ke/

COURSE: DIPLOMA MOD 2

EXAM: END OF TERM 2 EXAMS

SERIES: JANUARY-MARCH 2024

SUBJECT: VISUAL BASIC PROGRAMMING

DURATION: 2 HOURS

TRAINER: MR UMURO

INSTRUCTION

1. Attempt all questions


2. Irregularities of any kind is unacceptable and will not be tolerated
3. Switch off your mobile phones and any other electronic gadgets.

WISHING YOU ALL THE BEST IN YOUR EXAMS


1. Explain the following terms as used in Visual Basic. (10mks)
i. Visual programming
ii. IDE
iii. Properties
iv. Method
v. Events
2. Give five advantages of using Visual Programming. (10mks)
3. Highlight the difference between a tool bar and tool box as used in Visual Basic
programming. (4mks)
4. The following are controls found in a tool box. Explain the function of each control.(10mks)
i. Button
ii. TextBox
iii. Label
iv. ListBox
v. ComboBox
5. Diffrentiate between form designer window and code editor window. (4mks)
6. The message box shown below is generated when the user clicks a login button when the
user provides the username “spongebob” and the password “54321”. Write the correct
coding procedure to implement this. (12mks)
Remember that there are two labels (username and password) as well as two TextBox
(TextBox1 and TextBox2).

7. Visual Basic is an example of Event driven programming paradigm. Explain any other five
programming paradigm. (10mks)
8. Visual Basic IDE is made up of a number of components. List any five components. (10mks)

You might also like