MKU UNIVERSITY
SCHOOL OF COMPUTING
BIT 3102 EVENT DRIVEN PROGRAMMING
CAT
Question One
i. What are bugs and explain two types of bugs in VB.net language. [4 marks]
ii. Explain the concept of CLR,objects and namescapes as used in VB.net application.
[3 marks]
iii. Explain the difference between option explicit and option strict. [2 marks]
iv. Write a console application that uses a for loop to generate numbers between 5 and
100. [3 marks]
v. Explain the concept of inheritance in vb.net application. [2 marks]
vi. Write a program that uses a looping structure to generate even numbers between 10
and 20. [3 marks]
vii. Write a program that uses a for..next loop to generate the 10 terms in the following
series 2,4,6,8…and the program should compute the mean of the numbers. [3 marks]
Question Two
i. Write a console application program that will request a user for his name, three
different integers the program should display the sum of the numbers and name of the
user in the screen. [3 marks]
ii. Write a window application program that will be used to accept three floating point
numbers,the program should print the smallest number amongst the three numbers on
a label named lblsmaller. [4 marks]
iii. Write a syntax for declaring a 2 dimensional array in VB.Net language. [2 marks]
iv. Write a program code that will be used to create a listbox named lstItems on the
screen. [3 marks]
v. Write a simple windows application program that uses an array structure to store 10
odd integer numbers entered though the keyboard, the program should compute the
sum and mean of the numbers stored.sketch a GUI. [5 marks]
HINT: the numbers are captured using an input box function.
vi. Using a syntax ,explain the difference between inputbox and messagebox function.
[3 marks]