You are on page 1of 2

Roll No. Total No.

of Pages: 02
Total No. of Questions: 07

B.Sc. (IT) (Sem. – 6)


VISUAL BASIC PROGRAMMING
M Code: 12533
Subject Code: BS-306
Paper ID: [B0423]
Time: 3 Hrs. Max. Marks: 60

INSTRUCTIONS TO CANDIDATES:
1. SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
2. SECTION-B contains SIX questions carrying TEN marks each and students have to
attempt any FOUR questions.

SECTION A

o m
.r c
1. a) How to declare a pubic variable in VB? Give syntax and example.

b) Differentiate between event driven approach and procedure driven approach.

e
c) Differentiate between text box and label box.

p o m
.r c
d) Give syntax and example of if-Then block.

p a
e) How an array is declared in VB?

r
f) Differentiate between method and event.

b p e
a
g) What is the use of object browser?

rp
h) Differentiate between SDI and MDI applications.

i) Which controls cannot be placed in MDI?

j) Differentiate between OLE DB and ADO. b

M-12533 Page 1 of 2
SECTION B

2. What is array? What are the various types of arrays in VB? What is the use of preserve and
redim statements in arrays?

3. What are the various loops available in VB?

4. What is the use of MsgBox in VB? What are the various options available while using
MsgBox in VB?

5. What are the various types of errors in VB? How errors can be handled using error handlers.
Give suitable example.

6. Suppose you have a database table EMP (id, name, age, email) in MS-Access. Discuss the
following using ADO

a) Connecting to the database

b) Insert a record into the table

o m
.r c
c) Display records on a form

7. What is meant by string? Discuss string handling inbuilt functions: insert, mid, left, right
with suitable example.

p e o m
p a .r c
b r p e
a
b rp

M-12533 Page 2 of 2

You might also like