University of Mumbai 2006 B.Sc Information Technology TY IT- Visual Basic - Question Paper
Bsc info Technology
Subject -- Visual Basic
Sem V
Year 2006 May
Marks -- 100
Q one is compulsory
From Q two to Q seven attempt any four ques.
-1006- Vf* MK-6567
U-142 : 1(H06-pr 5
Con. 1389-06.
-1006- Vf* MK-6567
(3 Hours) [ Total Marks : 100
N.B. (1) Question No. 1 is compulsory.
(2) Solve any four questions from Question Nos. 2 to 7.
Q.l Explain the tasks performed by Close statement of data file. [06]
Write difference between function procedure and sub procedure. [06]
List of employees is available in listbox. Write an application to add [08]
Selected or all records from listbox to textbox (assume multi line property of textbox is true).
Q.2 Explain the role of immediate window while debugging VB Project. [06]
What is common dialog control? Explain it in detail. [06]
c) Create a project to find sum of numbers from l to current value of [08] horizontal scrollbar. Also, display the total numbers divisible by 3 and numbers divisible by 4 in the range from 1 to current value of scrollbar on the label control.
Q.3 What are variables and constants? What are the naming rules for variables? [06] b Explain the pretest and posttest forms of do/loop. [06]
c) Create an application that accepts main string in textbox txtmainstr, and [08] substring in textbox txtsubstr. Find out how many times substring occurs in mainstring, also state its position in mainstring.
Q.4 a Write and Explain how to create new Class and Object for the newly [06] Created Class.
b Explain how to use if statements with Option buttor .s and Check boxes. [06] c> Explain Procedural Language, Object Oriented Language and Event Driven [08] Language in detail.
Q.5 a Explain the use of Call Statement. [05]
How to use VB Compiler to Compile, Debug and Run Program? [05]
<?> Consider employee table contains three fields employee code, name and [10] address. Display employee details in textboxes. Use navigation controls like next, previous, last, first and Add, Delete, Edit, 'Savd buttons.
Also, display current record number.
Q.64
b>
c>
Give difference between declaring a variable in General declaration Section [06] of standard code module and Declaring variable in form module What is the purpose of following statements and when are they used? [06]
i) On Error Goto 0
ii) On Error Resume Next
iii) On Error Goto Mychoice
iv) OnError Resume Create an application to calculate total amount on purchase of Chocolate by [08] customer. Chocolates are available in two packs of different make. Following are the rates of chocolate.
Packs/Make |
Cadbury |
Nestley |
Ferrero Rocher |
Kitkat |
20 grn |
10 Rs |
8 Rs. |
20 Rs. |
7 Rs. |
50 gm |
25 Rs. |
16 Rs. |
50 Rs. |
13 Rs. |
Use option button to select pack and make of chocolate.
Q.7 A Point out error in following Code
Public Sub MyProcedure () as Integer MyForm.BackColoF=Red' lblName.Text=Bharat txtAddress=New Delhi
End Sub > _
A How to pass variables to the procedure? Explain wj.th example. luoj
A Explain following properties of listbox control l08J
j) Listindex ii/ Itemdata
iiiListcount iv) Selcount
Attachment: |
Earning: Approval pending. |