Upload
tomson-sam
View
216
Download
0
Embed Size (px)
Citation preview
8/3/2019 Snr Sons College Vb Cor Qb
1/25
SNR SONS COLLEGE(An Autonomous Institution)
DEPT. OF FINANCE AND COMPUTER APPLICATIONS
II M.Sc. FCA
VISUAL BASICQUESTION BANK
UNIT ISECTION A
Choose the correct answer1. VB was developed from _______________ ?
a. Visual Fox Pro b. Basic c. Visual Base d. None
2. VB-6.0 can run in ______________ O.S.?
a. Windows 3.1 b. Win-95 &98 c. Win-NT d. Both b & c
3. IDE stand for ____________ ?a. Integrated Design Environment b. Integrated Document Environment
c. Integrated Design Environment d. Both b & c
4. MDI stands for ____________ ?
a. Main Document Interface b. Multiple Document Interface
c. Major Document Interface d. None
5. How many modules available in VB Programming ?
a. 2 b. 3 c. 4 d. More
6. Data control is used for ______________ ?
a. Store the data b. Display the Data
c. Provide the connection to the Data base d. Display the Data
7. What will be the shortcut key to display code window?
a. F4 b. F5 c. F6 d. F7
8. How many number of colors can be set by using Hexa Decimal code?
a. 16,00,000 b. 1,67,77,215 c. 1,67,77,216 d. None
9. Cint function is used for ________________ ?
a. Correct an Integer b. Convert to an Integer
c. Both a & B d. None
10. What will be the Comment Line statement in VB?
a. /* & */ b. Single Quote c. Double Quote d. None
8/3/2019 Snr Sons College Vb Cor Qb
2/25
Match The Following
11 i) Text box - a) Validate eventii) Label box - b) Drag drop event
iii) Frame - c) Click eventiv) Data control - d)Change event
12 i) Option Button - a) Value Propertyii) Check box - b) Caption Propertyiii) Combo box - c) Database name Propertyiv) Data Control - d) Text Property
13 i) Object Linking and embedding- a) To hold the current drive
ii) Drive list box - b) To the current directory in the selected driveiii) Dir list box - c) To files in the selected drive and directoryiv) File List box - d) Other application with the form module
14 i) Cut - a) F5ii) Copy - b)Ctrl +X
iii) Paste - c)Ctrl +Civ) Run - d)Ctrl +V
15 i) New Project - a) Ctrl +Oii) Open Project - b) Ctrl +Niii) Save Form - c) Alt + Qiv) Exit - d) Ctrl + S
Filling the blanks :
16 VB is easier to ____________ .
17 Integer data type range between _______ & ______.
18 End Statement is used for __________ .
19 The procedure box is also called __________.
20 VB 6.0 requires atleast of _________ hard disk capacity
8/3/2019 Snr Sons College Vb Cor Qb
3/25
Section B
1.Explain in detail about file menu? Pg 48-51
2. Explain in detail about view menu? Pg 54
3. Write a program for form_click event? Pg 85
4. Explain about form menu?
5. Explain scope of variables in V.B.? Pg no 165
Section C
1. Explain in detail about code Window in VB? Pg 138-143
2. Explain VB IDE in detail?
3. Explain common form properties in VB? Pg 73-75
4. Explain data types in VB? 155 - 158
5. What is meant by procedure? Explain its types?
8/3/2019 Snr Sons College Vb Cor Qb
4/25
UNIT - II
SECTION A
Choose the correct answer1. What is the use of timer control?
a. To display the system time b. To give time interval to execute some events
c. To calculate time d. None
2. Resizing the control means _________.
a. Increasing the size of the control b. Decreasing the size of the control
c. both a & b d. None
3. What is the use of locking controls?
a. Cant delete the controls b. Cant use the control
c. Cant move the control e. None
4. User moving the mouse focus away from that button
a. Got Focus b. Lost Focus
c. Get Focus d. None
5. Image controls Border Style property has _________ values.
a. 2 b. 3 c. 4 d. None
6. How many properties can be set for a Text Boxes using properties window?
a. 29 b. 30 c. 39 d. None
7. How many number of properties available for label control?
a. 24 b. 34 c. 39 d. None
8. The alignment property for a label have the values are __________.
a. 0 b. 1 c. 2 d. all the above
9. Message Boxes display information in the form of ______________.
a. Text Box b. Label Box c. Dialog Box d. None
10. The Grid control is used to ________________ ?
a. Draw a line on the form b. Align the Control
c. Both a & b d. None
8/3/2019 Snr Sons College Vb Cor Qb
5/25
Match The Following
11 i) 0 Value - a) Both Horizontal and Vertical Scroll Bar
ii) 1 Value - b) Vertical Scroll barsiii) 2 Value - c) Default value of text box scroll bar iv) 3 Value - d) Horizontals Scroll bars
12 i) Border Style - a) The Vertical direction to encompassii) Back Style - b) Direction to encompass the text placeiii) Auto Size - c) The Label is transparent or opaqueiv) Word Wrap - d) The same two possible values as text box
13 i)Value 16 - a) Display warning message iconii) Value 32 - b) Display Information message iconiii) Value 48 - c) Display Critical message iconiv)Value 64 - d) Warning query icon
14 i)Form resize event - a) The user moves the focus to itii)Form activate event - b) The size and position of any objects on your formiii)Form got focus event - c) To redraw the information on the formiv)Form point event - d) Use the event for a form rarely
15 i)Integer - a)#ii)Long Integer - b) $iii)String - c) %iv)Double precision - d) &
8/3/2019 Snr Sons College Vb Cor Qb
6/25
Fill in the blanks
16. The controls Name cant be longer than _________ characters.
17. The command buttons can respond to __________ number of events
18. To adjust the size of the image _________ property is used.
19. The alignment property of a text box value has 1 the text is _________
aligned.
20. The Text scroll bars property have the following values are ________ .
Section B
1. Explain : A. Command buttons B. Label box. 122
2. Explain : The Tool Box in VB. 99-100
3. Explain : any four command button properties. 110-111
4. Explain : The image controls. Pg no 117-118
5. Explain : The Grid control. 128
Section C
1. Explain in detail : V.B. Event Procedures.
2. Explain in detail : The format function in V.B. with examples.
3. Explain in detail about Pictures Boxes and their properties. 206-207
4. Explain in detail about Rich Text Box and their properties 209-211
5. Explain in detail about the Message Box with example. 125-127
8/3/2019 Snr Sons College Vb Cor Qb
7/25
UNIT III
SECTION A
Choose the correct answer
1. What is the use of the control structure?
a. to control the user b. to control the execution
c. to control the system d. None
2. Select. . Case control structure is an alternate statement of ________ ?
a. If.. Then b. If.Then.. Else c. For Next d. None
3. What is the command used to stop the control for an infinite number of
execution/
a. Pause b. Break c. Ctrl + Break d. None
4. For Next loop can have the step value as __________.
a. +ve value b. ve value c. both a & b d. None
5. GOTO statement is a ____________ .
a. Conditional jump b. Un conditional jump c. Condition d. None
6. ________ types of combo boxes available in V.B.
a. 2 b. 3 c. 4 d. None
7. _________ property used to give the index number of the highlighted item.a. List No b. List Item c. List Index d. None
8. How many events can be respond by list boxes?
a. 10 b. 12 c. 14 d. 20
9. Default value for Cols and Row property in Flex Grid control is ________ ?
a. 1 b. 0 c. 1 d. 2
10. _____________ method is used to remove all the item on the list ?
a. Remove b. Delete c. Clear d. All the above
8/3/2019 Snr Sons College Vb Cor Qb
8/25
Match The Following
11 i) VB Form code - a) An MDI Child form is closingii) VB AppWindows - b) The manger to closing the applications
iii)VB Apptask manger - c) Windows is endingiv) VB Form MDIFORM - d) The unload statement is invoked from code
12 i) IF - a) Newii) For - b) End if iii)Do - c) End selectiv) Select - d) Until Loop
13 i) Enter cell - a) Is triggered right before the actionii)sel change - b) The parameter in order iii)Leave cell - c) The click inside in celliv) Compare cell - d)Activated the selected
region
14 i)Fill style -a)The string expressionii)High light -b) Automatically fills all cellsiii)Clip -c) To determine the size of the current selectioniv)Colsel,Rowsel -d)Give the user a visual due
15 i)List count - a) More then one item from the listii)Multi Select - b) Index property starts at zeroiii)List box event - c) The change eventiv)Combo box events - d) Respond to 12 events
8/3/2019 Snr Sons College Vb Cor Qb
9/25
Fill in the blanks
16___________ property is used to set to true for sorting items in listbox.
17 ach control in a control array is called the __________ .
18 How many elements we can add to a control array _________ .
19 The __________ property controls the columns in a list box.
20 Whenever we create a list/combo box, VB automatically creates a long
integer array called the ___________.
Section B
1. Explain : Determinate & Indeterminate Loop. 220-221 & 230-231
2. Explain : For . Next Loop. 225
3. Explain : Do . While Loop. 239
4. Explain : GOTO statement with example. 253-254
5. Explain : The properties of List & Combo boxes. 401- 405
Section C
1. Explain : Select .. Case statement in V.B. 249-251
2. Explain : If Then & Else . If statements with example.
3. Explain in detail about list and combo boxes. 398-400
4. Explain: the Flex Grid control with example. 410-411
5. Explain : Nested If Then statement with example. 252
8/3/2019 Snr Sons College Vb Cor Qb
10/25
UNIT- IV
SECTION A
Choose the correct answer
1. Ltrim & R trim removes ___________ from the left end & the right.
a. a character b. spaces c. special character d. None
2. _________ function converts all the characters in a string to be capital letters.
a. U case b. L case c. convert d. None
3. _________ function is used to find the length of the string.
a. Length b. Len c. both a & b d. None
4. What is the use of Now function?
a. Display Date b. Display time c. Display date & Time d. None
5. What is the use of Time function ?
a. Display Date b. Display time c. Display date & Time d. None
6. ________ function is called Round function.
a. Rounded b. New c. Both a & b d. None
7. Sqr. Function is used to for finding ________ value.
a. Square b. Square Root c. Sign d. None
8. Csc (x) = ________ ?
a. Ycos(x) b. 1/Sin(x) c. 1/Tan(x) d. None9. NPV stands for ___________
a. Net profit value b. Net Present value c. Both d. None
10. How many types of procedures are available in V.B.?
a. 1 b. 2 c. 3 d. 4
8/3/2019 Snr Sons College Vb Cor Qb
11/25
Match The Following
11 i) Trig ( ) - a) The absolute value
ii) ABS( ) - b) Radians =degrees / 180iii)SQR - c) The base for natural logarithmsiv) Exp - d) Square root of the number expression
12 i)Cosh(x) - a) 1/ Tan (x)ii)Sinh (x) - b) log (x)/log(10)iii)Log10(x) - c) Exp(x) exp(-x))/2iv) Cot(x) - d) (Exp(x) + Exp(-x))/2
13 i)Fix function - a) Interest paid over timeii)Hex function - b) Finds the greatest integer iii)Int function - c) The hex equivalentiv) IMPT - d) Returns the integer part of a number
14 i)SLN - a) Tangent of an angle in radiansii)Tax - b) Finds the greatest integer iii)Pmt - c) Interest rate per paid for an annuityiv)Rate - d) Pay out for annuity
15 i)Rnd - a) Finds or removes character from a stringii)Str - b) Returns the current time and dateiii)Mid - c) Returns the string equivalent of a number iv)Now - d) Calls the random number generator
Fill in the blanks
16 StrComp( ) function is used for ______________ .
17 Trim ( ) function is used for _________________ .
18 Rtrim ( ) function is used for ________________ .
19 ________ will be the output of Month() function
20 Date Add() function returns ____________.
8/3/2019 Snr Sons College Vb Cor Qb
12/25
Section B
1. Explain : Mid, Left and Right functions.2. Explain : The Round function. 285
3. Explain : Now, Date & Time function. 288-289
4. Explain : FV, PV function. 294-296
5. write down the steps to add procedure in our program.
Section C
1.
Explain in detail : string functions with examples. 256-2572. Explain in detail : Financial functions with examples.291-293
3. Explain in detail : Passing by Reference & Passing by Value methods. 327-
331
4. What is procedures? Explain its types and its uses.
5. Explain : Trigonometric functions in detail. 287
8/3/2019 Snr Sons College Vb Cor Qb
13/25
UNIT V
SECTION A
Choose the correct answer
1. How many properties available for a from control?a. 30 b. 31 c. 32 d. 40
2. Using option (Radio) button, the user can select __________ .
a. only one option b. Two options c. More d. None
3. __________ property used for selecting the option button.
a. Caption b. Label c. Value d. None
4. _________ special properties available for scroll bars.
a. 2 b. 5 c. 10 d. None
5. Timer Control used for _________.
a. Show the time b. Give the time interval for events
c. Both d. None
6. Show print method is used to _________.
a. Printing a file b. Printing a Picture
c. Show print dialog box d. None
7. File name property of common dialog box is used for __________ ?
a. Give the file name only b. Gives the file name & full path
c. Both d. None
8. Image list control is used to store __________
a. Image b. Group of images
c. Image list d. None
9. __________ property is used to give the range of values in the progress bar?
a. Min & Max b. Low & High c. Start & Stop d. None
10. In V.B. Menu contains up to ______________ levels.a. 4 b. 5 c. 6 d. None
8/3/2019 Snr Sons College Vb Cor Qb
14/25
Match The Following
11 i)Ivwicon - a) Small size icon and a label
ii)Ivwsmallicon - b) Items are arrange verticallyiii)Ivwlist - c)Items are arrange horizontallyiv)Ivwreport - d)Sized icon and label
12 i)Icons - a) Icon associated with the list item objectii)Smallicons - b) Sets the indexiii)Subitems - c) The listitem was selectediv)Selected - d) The string representing the data
13 i)Sbrtext - a) Display the letters ins
ii)Sbr caps - b) Display the letters number iii)Sbrnum - c) Text propertyiv)Sbrins - d) Display the letters caps
14 i)Name text box - a)Alt + Nii) Next button - b) Alt + Miii)Insert button - c) Alt+ Tiv)Delete button - d) Alt + I
15 i)Click left mouse button - a) Moves to the text controlii)Double click left mouse button - b) Pops up a context sensitiveiii)Click right mouse button - c) Performs the actioniv)Press tab key - d) Activates a control
Fill in the blanks
16 The Frame control icon with a bit of text ___________ at the top.
17 Option button is also called __________.
18 Common dialog boxs show font method is used for _________ .
19 Slider control is a little box with _____________ .
20 MCI stands for ___________ .
8/3/2019 Snr Sons College Vb Cor Qb
15/25
Section B
1. Explain : Check Boxes in VB. 503-504
2. Explain : Scroll Bars in VB. 505
3.Explain : Common Dialog Boxes.512
4. Explain : List view control in VB. 524-525
5. Explain : Progress Bar control. 526
Section C
1. Explain in detail : Timers & their Properties. 508-509
2. Explain in detail : Status Bar Control. 527-529
3.
Explain in detail : Menu Editor. 543-5464. Explain in detail : Microsoft Common Control 6.0. 522-534
5. Prepare a VB application for Student Result Generation.
8/3/2019 Snr Sons College Vb Cor Qb
16/25
QUESTION BANK KEYS
UNIT ISection A
1. b)Basic2. d)Both b & c
3. a)Integrated Development Environment
4. b) Multiple Document interface
5. b) 3
6. c) Provide the connection to the Data base
7. d) F7
8. c) 1,67,77,216
9. b)Convert to an Integer
10. b) Single Quote
11. d c b a
12. B a d c
13. B c d a
14. D a b c
15. B a d c
16. Debug
17. -32,768 & 32,767
18. Stop of the program execution
19. Proc box
20. 250 MB
8/3/2019 Snr Sons College Vb Cor Qb
17/25
UNIT _ IISection A
Choose the Correct Answer Matching the Following Fill in the blank
1. b) To give time interval to
execute some events
2. c ) Both a & b
3. c ) Cant move the control
4. b) Lost Focus
5. a) 2
6. c) 39
7. b) 34
8. d) All the above
9. c) Dialog box
10. b) Align the control
11 )
12 )
13)
14 )
15)
16 ) 40
17) 12
18) Stretch
19) Right
20) 0,1,2,3
d c a b
d c b a
c d a b
b a d c
d c a b
8/3/2019 Snr Sons College Vb Cor Qb
18/25
UNIT III
Section - A
Choose the Correct Answer Matching the Following Fill in the blank
1. b) To control the execution
2. b) If then else
3. c) Ctrl + Break
4. c) Both a & b
5. b) Un conditional jump
6. a) 2
7. c) List Index
8. b) 12
9. d) 2
10.c) Clear
11
12
13
16 )Sorted
17) Element
18) 255
19) Columns
20) Item
array
d c b a
b a d c
c d a b
8/3/2019 Snr Sons College Vb Cor Qb
19/25
14
15
UNIT IV
Section - A
Choose the Correct Answer Matching the Following Fill in the blanks
c a d b
8/3/2019 Snr Sons College Vb Cor Qb
20/25
1. b) Spaces
2. a) U case
3. b) Len
4. c) Display data & Time
5. b) Display time
6. b)New
7. b)Square Root
8. b)1/sin(x)
9. b) Net Present value
10. b) 2
11
12
13
14
15
16) Compare to string
17)Internal Rate
Return
18)Random num
generate
19)Returns the mo
from the given date
20)Date to which
specific interval
been added
b a d c
d c b a
b a d c
d c b a
8/3/2019 Snr Sons College Vb Cor Qb
21/25
UNIT V
Section - A
Choose the Correct Answer Matching the Following Fill in the blanks1. b) 31
2. a) Only one option
3. c) Value
4. b) 5
5. b) Give the time interval
for events
6. c) Show print dialog box7. b) Gives the file name &
full path
8. b) Group of images
9. a) Min & Max
10.c) 6
11
12
13
14
15
16)xyz
17)Radio
18)Showing the Fo
choice Dialog box
19)Optional T
marks
20)Media continterface
d c b a
b a d c
d c a b
b a d c
8/3/2019 Snr Sons College Vb Cor Qb
22/25
[07MFC305]
S.N.R SONS COLLEGE ( Autonomous )
Dept.Of Finance And Computer Applications(VISUAL BASIC)
SEMSTER : III CLASS : II M.COM(FCA)Time : 3 hours Max Marks : 75
Section A (20 *1 =20)
Answer all the questions
Choose the best answer
1. VB was developed from _______________ ?
a. Visual Fox Pro b. Basic c. Visual Base d. None2. VB-6.0 can run in ______________ O.S.?
a. Windows 3.1 b. Win-95 &98 c. Win-NT d. Both b & c
3. What is the use of locking controls?
a. Cant delete the controls b. Cant use the control
c. Cant move the control e. None
4. User moving the mouse focus away from that button
a. Got Focus b. Lost Focus c. Get Focus d. None
5. For Next loop can have the step value as __________.
a. +ve value b. ve value c. both a & b d. None
6. GOTO statement is a ____________ .
a. Conditional jump b. Un conditional jump c. Condition d. None
7. NPV stands for ___________
a. Net profit value b. Net Present value c. Both d. None
8. How many types of procedures are available in V.B.?
a. 1 b. 2 c. 3 d. 4
9. Image list control is used to store __________
a. Image b. Group of images c. Image list d. None
10. __________ property is used to give the range of values in the progress bar?
a. Min & Max b. Low & High c. Start & Stop d. None
8/3/2019 Snr Sons College Vb Cor Qb
23/25
Match The Following11 i) Text box - a) Validate event
ii) Label box - b) Drag drop event
iii) Frame - c) Click eventiv) Data control - d)Change event
12 i) Option Button - a) Value Propertyii) Check box - b) Caption Propertyiii) Combo box - c) Database name Propertyiv) Data Control - d) Text Property
13 i)Integer - a)#ii)Long Integer - b) $
iii)String - c) %iv)Double precision - d) &
14 i) IF - a) Newii) For - b) End if iii)Do - c) End selectiv) Select - d) Until Loop
15 i) Enter cell - a) Is triggered right before the actionii)sel change - b) The parameter in order iii)Leave cell - c) The click inside in celliv) Compare cell - d)Activated the selected
region
Fill in the blanks
16 StrComp( ) function is used for ______________ .
17 Trim ( ) function is used for _________________ .
18 Rtrim ( ) function is used for ________________ .
19 Rtrim ( ) function is used for ________________ .
20 ______ will be the output of Month() function
8/3/2019 Snr Sons College Vb Cor Qb
24/25
Section B ( 5 * 4 = 20)(Should not exceed 150 words)
Answer all the questions
21 a)Explain in detail about file menu? (or)
b) Explain in detail about view menu?
22 a) . Explain :The Tool Box in VB. (or)
b). Explain : any four command button properties
23 a) Explain : Do . While Loop. (or)
b) Explain : GOTO statement with example.
24 a) Explain : Now, Date & Time function. (or)
b) Explain : FV, PV function.25 a) Explain : Scroll Bars in VB. (or)
b)Explain : Common Dialog Boxes.
Section C ( 5 *7 = 35)(Should not exceed 300 words)
Answer all the questions
26) a) Explain in detail about code Window in VB? (or)
b) Explain VB IDE in detail?
27) a) Explain in detail : V.B. Event Procedures. (or)
b)Explain in detail : The format function in V.B. with examples.
28) a) Explain : Select .. Case statement in V.B. (or)
b) Explain : If Then & Else . If statements with example.
29) a) What is procedures? Explain its types and its uses. (or)
b)Explain : Trigonometric functions in detail.
30) a)Explain in detail : Financial functions with examples. (or)
b)Explain in detail : Passing by Reference & Passing by Value methods.
8/3/2019 Snr Sons College Vb Cor Qb
25/25