Part One - 40 Part Two - 60
Part One - 40 Part Two - 60
There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions
and PART TWO contains FIVE questions.
2.
Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO
will be supplied at the table when the answer sheet for PART ONE is returned.
However, candidates, who complete PART ONE earlier than one hour, can collect the
answer book for PART TWO immediately after handing over the answer sheet for
PART ONE.
TOTAL TIME: 3 HOURS
TOTAL MARKS: 100
(PART ONE 40; PART TWO 60)
3.
PART ONE
(Answer all the questions)
1.
1.1.
A)
B)
C)
D)
Each question below gives a multiple choice of answers. Choose the most
appropriate one and enter in the tear-off answer sheet attached to the question
paper, following instructions therein.
(1 x 10)
Where you write Visual Basic code for your application?
Form Layout Window
The Code Editor Window
The Project Explorer Window
Form designer
1.2.
Which of the following is not a property of a TextBox?
A) List count
B) Multiline
C) Scroll Bar
D) Max Length
1.3.
Which of the following is not a Visual Basic object?
A) Command Button
B) Form
C) Project
D) Text Box
1.4.
The statement: image1.Move X, Y is used to:
A) Move the image1 so that its upper-left corner has the X,Y coordinate
B) Move the image1 so that its center has the X,Y coordinate
C) Move the image1 so that its upper-right corner has the X,Y coordinate
D) Not a valid statement.
When is the Form_MouseDown() event procedure executed?
A) When the user clicks the mouse on the Exit button.
B) When a mouse button is pressed inside a free area of the form
C) When function key is pressed inside a free area of the form.
D) When the mouse moves inside a free area of the form.
1.5.
M4.2-R3
Page 1 of 5
July, 2007
1.6.
The InputBox() function :
A) used to display message
B) returns a string data
C) returns a numeric value
D) returns no value
1.7.
The KeyPress event occurs:
A) When you press any key.
B) When you press any function key.
C) When you press any non-ASCII key.
D) When you press an ASCII key.
1.8.
A)
B)
C)
D)
1.9.
A)
B)
C)
D)
M4.2-R3
Page 2 of 5
July, 2007
2.
Each statement below is either TRUE or FALSE. Choose the most appropriate one
and ENTER in the tear-off sheet attached to the question paper, following
instructions therein.
(1 x 10)
3.1
Property
A.
3.2
ScaleMode
B.
DAO object
3.3
InputBox
C.
3.4
ComboBox
D.
3.5
Option buttons
E.
3.6
DBEngine
F.
3.7
Recordset
G.
3.8
OCX file
H.
3.9
Redim
I.
Static Array
3.10
PSet
J.
K.
L.
Dynamic Array
M.
N.
M4.2-R3
Page 3 of 5
July, 2007
4.
Each statement below has a blank space to fit one of the word(s) or phrase(s) in
the list below. Enter your choice in the tear-off answer sheet attached to the
question paper, following instructions therein.
(1 x 10)
A.
SetText
B.
event handler
C.
PictureBox
D.
TextBox
E.
MsgBox
F.
ListCount
G.
Modeless
H.
Name
I.
Modal
J.
Dynamic Array
K.
DataBaseName
L.
RecordSource
M.
WindowState
N.
Separator Bar
O.
Control Array
4.1 The number of elements in the ListBox is maintained by VB via the ________ property.
4.2 You can change the size of the form by setting the ________ property of the form.
4.3 ________ is a horizontal line used to separate menu items.
4.4 ________ is a group of controls that share the same name and type.
4.5 ________ copies text onto the Clipboard.
4.6 The combination of the controls name and the events name is unique and is the name of
the ________.
4.7 ________ Form takes total control of the application and wont let the applications proceed
M4.2-R3
Page 4 of 5
July, 2007
PART TWO
(Answer any FOUR questions)
5.
a)
b)
c)
What do you understand by event-driven programming in VB? Write down a few events
of a VB form.
What are the decision structures in VB? Describe Do While loop structure with an
example.
What is IDE (Integrated Development Environment) of VB? Write down five major
elements of VB IDE.
(5+5+5)
6.
a) How do you center a Form?
b)
What does Option Explicit refer to?
c)
What is the difference between the Enabled property and the Visible property of a
menu control?
d)
Write code that displays a dialog box with the title ERROR, the message Disk error!,
an OK button, and an exclamation point icon.
e)
Write code to places "Germany," "India," "France," and "USA" into a list box named
List1.
(3x5)
7.
a)
b)
8.
a)
c)
9.
What is a Combo box? When to use a Combo Box instead of a List Box? What are the
Style Properties of Combo Box? Which property on a Combo Box do you set with a
column name, prior to setting the DataSource, to display data in the combo box?
What is ADO? What are its objects?
(8+7)
How to create Option Button groups?
b)
An important characteristic of a graphic object is its color. You can use
the RGB() fuction or QBColor() fuction to specify the color of objects.
Explain how these two functions are different.
What is a menu control array? How do you create a menu control array for the Edit
menu controls Cut, Copy, and Paste (mnuEditItem) in the Menu Editor?
(4+4+7)
Describe any three of the following:
a) MDI Applications.
b) Image control and Picture control.
M4.2-R3
Page 5 of 5
July, 2007