Inte 211 - Desktop Application Programming
Inte 211 - Desktop Application Programming
UNIVERSITY EXAMINATIONS
MAIN CAMPUS
Instructions to candidates: Answer QUESTION ONE and any other TWO questions
Do not write on the answer sheet
Follow instructions that are given to the answer sheet
Page 1 of 4
ii) Project properties (4 marks)
d) What are ADO objects? Explain them. Provide a scenario using three of them to return data
from a database. (10 marks)
Required:
Suggest the probable data type and give a reason for your suggestion. (5 marks)
b) Using appropriate syntax explain the following iterative statements as used in VB.
As members of Kabarak University family, we purpose at all times and in all places, to set apart in
one’s heart, Jesus as Lord. (1 Peter 3:15)
Page 2 of 4
i. Radio button and checkbox (3 marks)
b) Write a Visual Basic program to compute frequency and area using the following
formulas.
i. (5 marks)
ii. (5 marks)
a) Consider the Visual Basic program below & answer the questions that follow
Private sub cmdCompute_Click ()
Dim x As Integer
X=1
Do While x=<10
If x<6 And x<>2
Print x*3
X=x+1
Loop
End Sub
Write down the output produced by this program (4 marks)
As members of Kabarak University family, we purpose at all times and in all places, to set apart in
one’s heart, Jesus as Lord. (1 Peter 3:15)
Page 3 of 4
b) Explain briefly the TWO main types of constants found in Visual Basic (4 marks)
c) Write a program that will return the sum of all odd numbers between 1 and 100
(4 marks)
d) Explain the THREE steps involved in creating a VB6 program (6 marks)
e) Write code using Visual Studio 2013 to change the background color of a form to
Yellow (2 marks)
c) Using the Do----While loop write a program to print the decimal numbers 1-9 on the
form. Make use of print command (6 marks)
As members of Kabarak University family, we purpose at all times and in all places, to set apart in
one’s heart, Jesus as Lord. (1 Peter 3:15)
Page 4 of 4