0% found this document useful (0 votes)
54 views

Part One - 40 Part Two - 60

This document provides instructions for a programming exam through Visual Basic. It notes that the exam has two parts, with Part One consisting of multiple choice and true/false questions to be answered on a tear-off answer sheet, and Part Two involving longer answer questions to be answered in a supplied book. It provides details on the structure, time limits and marks for each part. The first part then lists 10 multiple choice questions on Visual Basic topics, 10 true/false statements, and 10 matching questions. The second part lists 4 longer answer questions on topics like event-driven programming, loops, and the Visual Basic integrated development environment.

Uploaded by

triveni pal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Part One - 40 Part Two - 60

This document provides instructions for a programming exam through Visual Basic. It notes that the exam has two parts, with Part One consisting of multiple choice and true/false questions to be answered on a tear-off answer sheet, and Part Two involving longer answer questions to be answered in a supplied book. It provides details on the structure, time limits and marks for each part. The first part then lists 10 multiple choice questions on Visual Basic topics, 10 true/false statements, and 10 matching questions. The second part lists 4 longer answer questions on topics like event-driven programming, loops, and the Visual Basic integrated development environment.

Uploaded by

triveni pal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

M4.

2-R3: PROGRAMMING THROUGH VISUAL BASIC


NOTE:
1.

There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions
and PART TWO contains FIVE questions.

2.

PART ONE is to be answered in the TEAR-OFF ANSWER SHEET only, attached to


the question paper, as per the instructions contained therein. PART ONE is NOT to
be answered in the answer book.

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)

In Break Mode where can you change the value of variables?


The Watch window
The Locals window
The Immediate window
The Call Stack
When you require write a VB code to enter and commit the new records to the
database, which one of the following command of the controls RecordSet is not
required?
ADDNew
Update
Delete
None of the above

1.10. When variables are passed by reference (ByRef) to a SUB program,


A) only the memory addresses of the variables are passed.
B) a value of a variable is passed.
C) a copy of the variable is passed.
D) none of the above

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)

2.1 A time control is not visible at runtime.


2.2 ListBoxes provide two property arrays into which you can place data: List and ItemData.
2.3 MsgBox() display a dialog box that always contain OK and Cancel command buttons.
2.4 Win32 API is a set of functions which can be used without the VB applications.
2.5 The lowest TabIndex setting is always 1.
2.6 The scroll bar controls use the Scroll and Change events to monitor the movement of the
scroll box along the scroll bar.
2.7 A LostFocus event procedure is primarily used for verification and validation updates.
2.8 A pop-up menu is a menu that is displayed over a form, independent of the menu bar.
2.9 If you load an MDI child window without having loaded its associated MDI Frame, the MDI
frame is not loaded automatically.
2.10 Exit statement allows you to exit prematurely from a block of statements in a control
structure, from a loop, or even from a procedure.
3. Match words and phrases in column X with the closest related meaning/
word(s)/phrase(s) in column Y. Enter your selection in the tear-off answer sheet
attached to the question paper, following instructions therein.
(1 x 10)
X

3.1

Property

A.

Present a set of choices to the user

3.2

ScaleMode

B.

DAO object

3.3

InputBox

C.

A logical set of records.

3.4

ComboBox

D.

The ActiveX control projects

3.5

Option buttons

E.

Sets the coordinates for plotting points.

3.6

DBEngine

F.

function to display messages.

3.7

Recordset

G.

function to get information from the user.

3.8

OCX file

H.

control combines the features of a text box and a list box.

3.9

Redim

I.

Static Array

3.10

PSet

J.

is a characteristic of an object, such as size, caption, or


color.

K.

is the property defines the units of the coordinate system of


the object.

L.

Dynamic Array

M.

Sets the color of an individual pixel.

N.

VB projects executable file

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

unless the Form is closed.


4.8 The ________ control is used to display images.
4.9 The ________ dialog box function is used to display the output.
4.10 The ________ property indicates where in the database the data will be found.

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.

c) Common Dialog control.


d) Scroll Bar control.
e) Windows API functions.
(3x5)

M4.2-R3

Page 5 of 5

July, 2007

You might also like