Anda di halaman 1dari 25

SNR SONS COLLEGE (An Autonomous Institution)

DEPT. OF FINANCE AND COMPUTER APPLICATIONS

II M.Sc. FCA VISUAL BASIC QUESTION BANK UNIT I SECTION A Choose the correct answer 1. VB was developed from _______________ ? a. Visual Fox Pro a. Windows 3.1 b. Basic c. Visual Base c. Win-NT d. None d. Both b & c 2. VB-6.0 can run in ______________ O.S.? b. Win-95 &98 3. IDE stand for ____________ ? a. Integrated Design Environment c. Integrated Design Environment 4. MDI stands for ____________ ? a. Main Document Interface c. Major Document Interface a. 2 a. Store the data c. Provide the connection to the Data base a. F4 a. 16,00,000 b. F5 b. 1,67,77,215 b. 3 b. Multiple Document Interface d. None c. 4 d. More b. Display the Data d. Display the Data c. F6 c. 1,67,77,216 d. F7 d. None b. Integrated Document Environment d. Both b & c

5. How many modules available in VB Programming ? 6. Data control is used for ______________ ?

7. What will be the shortcut key to display code window? 8. How many number of colors can be set by using Hexa Decimal code? 9. Cint function is used for ________________ ? a. Correct an Integer c. Both a & B a. /* & */ b. Single Quote b. Convert to an Integer d. None c. Double Quote d. None

10. What will be the Comment Line statement in VB?

Match The Following 11 i) Text box ii) Label box iii) Frame iv) Data control 12 i) Option Button ii) Check box iii) Combo box iv) Data Control a) Validate event b) Drag drop event c) Click event d)Change event a) Value Property b) Caption Property c) Database name Property d) Text Property

13 i) Object Linking and embedding- a) To hold the current drive ii) Drive list box iii) Dir list box iv) File List box - b) To the current directory in the selected drive - c) To files in the selected drive and directory - d) Other application with the form module

14 i) Cut ii) Copy iii) Paste iv) Run 15 i) New Project ii) Open Project iii) Save Form iv) Exit

a) F5 b)Ctrl +X c)Ctrl +C d)Ctrl +V a) Ctrl +O b) Ctrl +N c) Alt + Q 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

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?

UNIT - II
SECTION A Choose the correct answer 1. 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 b. Decreasing the size of the control d. None b. Cant use the control e. None b. Lost Focus d. None b. 3 b. 30 b. 34 b. 1 b. Label Box c. 4 c. 39 c. 39 c. 2 c. Dialog Box b. Align the Control d. None d. None d. None d. None d. all the above d. None 2. Resizing the control means _________. a. Increasing the size of the control c. both a & b 3. What is the use of locking controls? a. Cant delete the controls c. Cant move the control a. Got Focus c. Get Focus a. 2 a. 29 a. 24 a. 0 a. Text Box

4. User moving the mouse focus away from that button

5. Image controls Border Style property has _________ values. 6. How many properties can be set for a Text Boxes using properties window? 7. How many number of properties available for label control? 8. The alignment property for a label have the values are __________. 9. Message Boxes display information in the form of ______________. 10. The Grid control is used to ________________ ? a. Draw a line on the form c. Both a & b

Match The Following 11 i) 0 Value ii) 1 Value iii) 2 Value iv) 3 Value 12 i) Border Style ii) Back Style iii) Auto Size iv) Word Wrap - a) Both Horizontal and Vertical Scroll Bar - b) Vertical Scroll bars - c) Default value of text box scroll bar - d) Horizontals Scroll bars - a) The Vertical direction to encompass - b) Direction to encompass the text place - c) The Label is transparent or opaque - d) The same two possible values as text box

13 i)Value 16 ii) Value 32 iii) Value 48 iv)Value 64 14 i)Form resize event ii)Form activate event iii)Form got focus event iv)Form point event

- a) Display warning message icon - b) Display Information message icon - c) Display Critical message icon - d) Warning query icon - a) The user moves the focus to it - b) The size and position of any objects on your form - c) To redraw the information on the form - d) Use the event for a form rarely

15 i)Integer ii)Long Integer iii)String iv)Double precision

- a)# - b) $ - c) % - d) &

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 : 2. Explain : 3. Explain : 4. Explain : 5. Explain : A. Command buttons The Tool Box in VB. 99-100 any four command button properties. 110-111 The image controls. Pg no 117-118 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 B. Label box. 122

UNIT III
SECTION A Choose the correct answer 1. What is the use of the control structure? a. to control the user c. to control the system a. If.. Then execution/ a. Pause a. +ve value b. Break b. ve value c. Ctrl + Break c. both a & b d. None d. None 4. For Next loop can have the step value as __________. 5. GOTO statement is a ____________ . a. Conditional jump a. 2 a. List No a. 10 a. 1 a. Remove b. 3 b. List Item b. 12 b. 0 b. Delete b. Un conditional jump c. 4 c. List Index c. 14 c. 1 c. Clear c. Condition d. None d. None d. None d. 20 d. 2 d. All the above 6. ________ types of combo boxes available in V.B. 7. _________ property used to give the index number of the highlighted item. 8. How many events can be respond by list boxes? 9. Default value for Cols and Row property in Flex Grid control is ________ ? 10. _____________ method is used to remove all the item on the list ? b. If.Then.. Else b. to control the execution d. None c. For Next d. None

2. Select. . Case control structure is an alternate statement of ________ ? 3. What is the command used to stop the control for an infinite number of

Match The Following 11 i) VB Form code ii) VB AppWindows iii)VB Apptask manger iv) VB Form MDIFORM - a) An MDI Child form is closing - b) The manger to closing the applications - c) Windows is ending - d) The unload statement is invoked from code

12 i) IF ii) For iii)Do iv) Select 13 i) Enter cell ii)sel change iii)Leave cell iv) Compare cell region 14 i)Fill style ii)High light iii)Clip iv)Colsel,Rowsel

a) New b) End if c) End select d) Until Loop

- a) Is triggered right before the action - b) The parameter in order - c) The click inside in cell - d)Activated the selected -a)The string expression -b) Automatically fills all cells -c) To determine the size of the current selection -d)Give the user a visual due

15 i)List count ii)Multi Select iii)List box event iv)Combo box events

- a) More then one item from the list - b) Index property starts at zero - c) The change event - d) Respond to 12 events

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

UNIT- IV
SECTION A Choose the correct answer 1. Ltrim & R trim removes ___________ from the left end & the right. a. a character a. U case a. Length a. Display Date a. Display Date a. Rounded a. Square 8. Csc (x) = ________ ? a. Ycos(x) a. Net profit value a. 1 b. 1/Sin(x) c. 1/Tan(x) c. Both c. 3 d. None d. None d. 4 9. NPV stands for ___________ b. Net Present value b. 2 10. How many types of procedures are available in V.B.? b. spaces b. L case b. Len b. Display time b. Display time b. New b. Square Root c. special character c. convert c. both a & b d. None d. None d. None d. None d. None 2. _________ function converts all the characters in a string to be capital letters. 3. _________ function is used to find the length of the string. 4. What is the use of Now function? c. Display date & Time c. Display date & Time c. Both a & b c. Sign 5. What is the use of Time function ? 6. ________ function is called Round function. d. None d. None 7. Sqr. Function is used to for finding ________ value.

Match The Following 11 i) Trig ( ) ii) ABS( ) iii)SQR iv) Exp a) The absolute value b) Radians =degrees / 180 c) The base for natural logarithms d) Square root of the number expression

12 i)Cosh(x) ii)Sinh (x) iii)Log10(x) iv) Cot(x) 13 i)Fix function ii)Hex function iii)Int function iv) IMPT 14 i)SLN ii)Tax iii)Pmt iv)Rate 15 i)Rnd ii)Str iii)Mid iv)Now

a) 1/ Tan (x) b) log (x)/log(10) c) Exp(x) exp(-x))/2 d) (Exp(x) + Exp(-x))/2 a) Interest paid over time b) Finds the greatest integer c) The hex equivalent d) Returns the integer part of a number a) Tangent of an angle in radians b) Finds the greatest integer c) Interest rate per paid for an annuity d) Pay out for annuity a) Finds or removes character from a string b) Returns the current time and date c) Returns the string equivalent of a number 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 ____________.

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-257 2. Explain in detail : Financial functions with examples.291-293 3. Explain in detail : Passing by Reference & Passing by Value methods. 327331 4. What is procedures? Explain its types and its uses. 5. Explain : Trigonometric functions in detail. 287

UNIT V
SECTION A Choose the correct answer 1. How many properties available for a from control? a. 30 a. only one option a. Caption a. 2 a. Show the time c. Both a. Printing a file c. Show print dialog box a. Give the file name only c. Both a. Image c. Image list a. Min & Max a. 4 b. 31 b. Two options b. Label b. 5 c. 32 c. More c. Value c. 10 d. 40 d. None d. None d. None 2. Using option (Radio) button, the user can select __________ . 3. __________ property used for selecting the option button. 4. _________ special properties available for scroll bars. 5. Timer Control used for _________. b. Give the time interval for events d. None b. Printing a Picture d. None b. Gives the file name & full path d. None b. Group of images d. None b. Low & High b. 5 c. Start & Stop c. 6 d. None d. None

6. Show print method is used to _________.

7. File name property of common dialog box is used for __________ ?

8. Image list control is used to store __________

9. __________ property is used to give the range of values in the progress bar? 10. In V.B. Menu contains up to ______________ levels.

Match The Following 11 i)Ivwicon ii)Ivwsmallicon iii)Ivwlist iv)Ivwreport 12 i)Icons ii)Smallicons iii)Subitems iv)Selected 13 i)Sbrtext ii)Sbr caps iii)Sbrnum iv)Sbrins 14 i)Name text box ii) Next button iii)Insert button iv)Delete button a) Small size icon and a label b) Items are arrange vertically c)Items are arrange horizontally d)Sized icon and label a) Icon associated with the list item object b) Sets the index c) The listitem was selected d) The string representing the data

- a) Display the letters ins - b) Display the letters number - c) Text property - d) Display the letters caps a)Alt + N b) Alt + M c) Alt+ T d) Alt + I

15 i)Click left mouse button ii)Double click left mouse button iii)Click right mouse button iv)Press tab key

a) Moves to the text control b) Pops up a context sensitive c) Performs the action 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 ___________ .

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-546 4. Explain in detail : Microsoft Common Control 6.0. 522-534 5. Prepare a VB application for Student Result Generation.

QUESTION BANK KEYS UNIT I Section A 1. b)Basic 2. 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

Choose the Correct Answer 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

Matching the Following d c a b 11 )

Fill in the blanks 16 ) 40 17) 12 18) Stretch 19) Right

d c b a 12 )

20) 0,1,2,3

c d a b 13)

b a d c 14 )

d c a b 15)

UNIT _ II Section A

UNIT III Section - A Choose the Correct Answer 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 13 c d a b 12 b a d c 11 Matching the Following d c b a Fill in the blanks 16 )Sorted 17) Element 18) 255 19) Columns 20) array Item data

c 14 15

UNIT IV Section - A Choose the Correct Answer Matching the Following Fill in the blanks

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 13 12 11

16) Compare to strings 17)Internal Return 18)Random generate 19)Returns the month from the given date Rate of

number

20)Date specific

to

which

a has

interval

been added b 14 15 a d c

UNIT V Section - A Choose the Correct Answer 1. 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 box 7. b) Gives the file name & full path 8. b) Group of images 9. a) Min & Max 10. c) 6 14 15 b a d c 13 d c a b 12 b a d c Matching the Following d 11 c b a Fill in the blanks 16)xyz 17)Radio 18)Showing the Font choice Dialog box 19)Optional marks 20)Media interface control Tick

[07MFC305]

S.N.R SONS COLLEGE ( Autonomous ) Dept.Of Finance And Computer Applications (VISUAL BASIC)
SEMSTER : III Time : 3 hours Answer all the questions Choose the best answer 1. VB was developed from _______________ ? a. Visual Fox Pro a. Windows 3.1 a. Cant delete the controls c. Cant move the control a. Got Focus a. +ve value b. Basic c. Visual Base c. Win-NT d. None d. Both b & c 2. VB-6.0 can run in ______________ O.S.? b. Win-95 &98 3. What is the use of locking controls? b. Cant use the control e. None d. None d. None CLASS : II M.COM(FCA) Max Marks : 75 Section A (20 *1 =20)

4. User moving the mouse focus away from that button b. Lost Focus c. Get Focus b. ve value 5. For Next loop can have the step value as __________. c. both a & b 6. GOTO statement is a ____________ . a. Conditional jump a. Net profit value a. 1 b. Un conditional jump b. Net Present value b. 2 c. Condition d. None c. Both c. 3 d. None c. Start & Stop d. None d. None d. 4 7. NPV stands for ___________ 8. How many types of procedures are available in V.B.? 9. Image list control is used to store __________ a. Image b. Group of images c. Image list a. Min & Max b. Low & High 10. __________ property is used to give the range of values in the progress bar?

Match The Following 11 i) Text box ii) Label box iii) Frame iv) Data control 12 i) Option Button ii) Check box iii) Combo box iv) Data Control 13 i)Integer ii)Long Integer iii)String iv)Double precision 14 i) IF ii) For iii)Do iv) Select

- a)# - b) $ - c) % - d) & -

a) Validate event b) Drag drop event c) Click event d)Change event a) Value Property b) Caption Property c) Database name Property d) Text Property

a) New b) End if c) End select d) Until Loop

15 i) Enter cell ii)sel change iii)Leave cell iv) Compare cell region

- a) Is triggered right before the action - b) The parameter in order - c) The click inside in cell - d)Activated the selected

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

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. 23 a) Explain : Do . While Loop. b) Explain : GOTO statement with example. 24 a) Explain : Now, Date & Time function. b) Explain : FV, PV function. 25 a) Explain : Scroll Bars in VB. 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? b) Explain VB IDE in detail? 27) a) Explain in detail : V.B. Event Procedures. 28) a) Explain : Select .. Case statement in V.B. (or) (or) b)Explain in detail : The format function in V.B. with examples. 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. (or) (or) (or) (or) b). Explain : any four command button properties

(or)

Anda mungkin juga menyukai