How To Exam?

a knowledge trading engine...


University of Pune 2006 B.C.A Computer Application VISUAL BASIC - Question Paper

Sunday, 21 April 2013 08:35Web

[2996]-402
B.C.A. (Semester-IV) Examination, 2006
VISUAL BASIC
Time: three Hours] [Max. marks: 80
Instructions:
(1) All ques. are compulsory.
(2) Figures to the right indicate full marks.
(3) State your assumptions clearly.

Q1) Check whether the subsequent part of code is accurate. provide the output and suitable explanation for the statement: (Any Four) [20]

(a) Dim Str as String
Str = “Bachelor of computer application”
Str = mid (str, 6, 12)
Print strconv (str, vbuppercase)

(b) Dim Var
Var = DateAdd (“d”, 10, #10/03/2004#)
Print var
Print format (var, “dddd, mmm, yyyy”)

(c) n1 = 0
n2 = 5
do
n1 = n1 + 1
n2 = n2 – 1
Print n1, n2
loop while n1 < n2

(d) 1st subject.clear
For counter = 0 to 5
1stsubject.listindex = counter
1stnewsubject.Addition (1stsubject.Text)
Next counter

(e) Dim j As Single
j = - 8.9
Print Abs (Int (j))
Print Abs (Fix (j))


Q2) discuss the subsequent property settings: (Any Five) [10]

(a) Place a picture in command button.
(b) Property used to resize your tag control according to your caption.
(c) To allow users to enter Multiple Lines in a textbox but not more than 25 characters.
(d) Add elements in a listbox and the element should be placed always in the second position.
(e) Property used to mask characters of password.
(f) Property to add “My Picture” as a pop-up text for a picture box.
(g) Property used to have a short cut key to access a command button.

Q3) Draw an interface and code for the subsequent. Also provide the property settings for the improper controls: [15]
Use a textbook, that accepts text.
Use a command button named ‘Font’.
When the user clicks on the command button, the current form gets enlarged and displays a frame consisting of –
(1) Three combo boxes for selecting font, size and style respectively.
(2) Two check boxes for giving an effect of strikethrough and underline respectively.
(3) Two command buttons named ‘OK’ and ‘Cancel’ respectively.
When the user clicks on ‘OK’ button, the form should again shrink back to its original size and the text should be displayed according to the attributes opted by the user.

OR
Q3) draw an interface and code for the identical with interface having a form object, a common dialog box and a command button (for invoking the open dialog box).
(1) The default file kind and filtering should be set to picture files i.e. bmp, gif etc.
(2) The default directory should be set to “d:\”.
(3) Invoke the open dialog box.
(4) Select a particular filename and when the “OK” button is clicked, then the opted filename should be displayed in a message box and if the cancel button is clicked then an fault should be generated. [15]


Q4) ans the subsequent in brief: (Any Four) [20]

(a) Explain the concept of event-driven programming with reference to VB.
(b) Explain the subsequent methods of a form with syntax:
i. Shoe Method
ii. Hide
iii. Unload
(c) Differentiate ranging from Message Box and Input Box.
(d) Write a function that takes two numbers as parameters and returns the minimum of the two.
(e) Explain the properties: path and filename of filelistbox with syntax.
(f) Explain the datatypes in VB.

Q5) Write short notes on: (Any Three) [15]

(a) Three Tier Architecture
(b) Arrays in VB
(c) Scope and Lifetime of Variables
(d) Error Handling in VB
(e) Loop structures in VB





( 2 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Pune 2006 B.C.A Computer Application VISUAL BASIC - Question Paper