University Of Pune Question Paper
P. G. D. C. M. (Semester - I) Examination - 2010
VISUAL BASIC PROGRAMMING
(Old 2005 Pattern)
Time : 3 Hours] [Max. Marks : 80
Instructions :
(1) All questions are compulsory.
(2) All questions carry equal marks.
Q.1) Trace output and justify : (Any Four)
(a) Print Asc(“Alladin”)
(b) tmp = Mid(“Pride & Prejudice 4”, 18)
Print Sqr(tmp)
(c) Dim i&
Print VarType(i)
Print TypeName(i)
(d) i = #5/20/2007#
Print Day (i)
Print Month (i)
(e) Print Abs (-545.45)
Q.2) (A) Write any one important method and one important property of the
following controls : (Any Four)
(a) Commondialogbox Control
(b) Listbox
(c) Textbox
(d) Combobox
(e) Commandbutton
(B) Accept numbers in an inputbox from user. Add numbers in a ListBox,
now display in a messagebox the average of the given list and the
square of a selected number from the listbox.
Q.3) (A) On a form take a textbox, a label and optionbuttons, accept date and
time in the textbox. Now give the following options to user to display
in the label the following only weekday, year, hour, minute and
second.
(B) On a form take two textboxes, a label and two option buttons
depicting/captioned as Rectangle Area and Square Area.
Accept number in the textbox, on click of the appropriate option
button; display area of rectangle (input required in both textboxes)
or area of a square (input required in anyone textbox) in the label.
Q.4) Design interface which will have menu options FontEffects, Colour,
FontStyle and Help; a textbox.
(a) On click of the FontEffects menu, change font in the textbox to
Underline, Strikethrough and forecolour of textbox.
(b) On click of the colour menu, change backcolour of the textbox.
(c) Change font style of the text in the textbox.
(d) Invoke help for notepad.
Q.5) Write short notes : (Any Four)
(a) Dialogboxes - inputbox and msgbox
(b) Loops in VB
(c) Control Arrays
(d) Datatypes and Scope of Variables
(e) Any 2 Mathematical and 2 Date Functions
P. G. D. C. M. (Semester - I) Examination - 2010
VISUAL BASIC PROGRAMMING
(Old 2005 Pattern)
Time : 3 Hours] [Max. Marks : 80
Instructions :
(1) All questions are compulsory.
(2) All questions carry equal marks.
Q.1) Trace output and justify : (Any Four)
(a) Print Asc(“Alladin”)
(b) tmp = Mid(“Pride & Prejudice 4”, 18)
Print Sqr(tmp)
(c) Dim i&
Print VarType(i)
Print TypeName(i)
(d) i = #5/20/2007#
Print Day (i)
Print Month (i)
(e) Print Abs (-545.45)
Q.2) (A) Write any one important method and one important property of the
following controls : (Any Four)
(a) Commondialogbox Control
(b) Listbox
(c) Textbox
(d) Combobox
(e) Commandbutton
(B) Accept numbers in an inputbox from user. Add numbers in a ListBox,
now display in a messagebox the average of the given list and the
square of a selected number from the listbox.
Q.3) (A) On a form take a textbox, a label and optionbuttons, accept date and
time in the textbox. Now give the following options to user to display
in the label the following only weekday, year, hour, minute and
second.
(B) On a form take two textboxes, a label and two option buttons
depicting/captioned as Rectangle Area and Square Area.
Accept number in the textbox, on click of the appropriate option
button; display area of rectangle (input required in both textboxes)
or area of a square (input required in anyone textbox) in the label.
Q.4) Design interface which will have menu options FontEffects, Colour,
FontStyle and Help; a textbox.
(a) On click of the FontEffects menu, change font in the textbox to
Underline, Strikethrough and forecolour of textbox.
(b) On click of the colour menu, change backcolour of the textbox.
(c) Change font style of the text in the textbox.
(d) Invoke help for notepad.
Q.5) Write short notes : (Any Four)
(a) Dialogboxes - inputbox and msgbox
(b) Loops in VB
(c) Control Arrays
(d) Datatypes and Scope of Variables
(e) Any 2 Mathematical and 2 Date Functions
0 comments:
Pen down your valuable important comments below