Escolar Documentos
Profissional Documentos
Cultura Documentos
Date: 30/08/2011
Q 1:
1)
2)
3)
4)
Which of the following loops executes the code once and repeats it when a
condition is false and until it becomes true?
a) Do While-Loop
b) Do Until-Loop
c) Do-Loop-While
d) Do-Loop-Until
5)
6)
(10)
7)
8)
9)
What would the text in txtOutput read after the following code?
me.txtOutput.Text = 8+3*5
a) 55
b) 39
c) 23
d) 835
10)
Which control is the best choice when you want to get a yes/no answer from a
user?
a) Button
b) ListBox
c) CheckBox
d) ComboBox
Q 2:
Describe Object Browser. What is the difference between Step Into and Step Out
tools of code stepping in VBA?
(5)
Q 3:
Write the VBA code to create a macro that takes a number as input from the
user. Check if the number is less than or equal to 100 and greater than or equal
to 15. Print all the numbers between the input number and 11 using appropriate
loop. (for example, if input is 20, print 19 18 17 16 15 14 13 12)
(5)
Q 4:
1) What is the difference between a fixed array and dynamic array? Explain with
example
2) Explain Various Events of Form.
(3)
1) Write a program in VB to accept a number from the user and calculate its
square and square root.
2) How to add an item into the list box? Which methods are used to remove item
and to clear the list box?
(3)
Q 5:
(2)
(2)