You are on page 1of 22

Visual Basic

UNIT-I
1. Rad stands for ______________
A. rapid action B. *rapid application development
C. rapid action programmed D. none
2. ______________ is an example of RAD
A. C B. C++ C. VC++ *D. VB
3. Visual basic is a programming language to develop programs on _____________
*A. Windows B. UNIX C. Linux D. none
4. VB stands as a _________ for databases like oracle, sql server
A. back end *B. Front end C. middle ware D. none
5. The appearance of users program is called ____________
*A. user interface B. object C. program D. none
6. The components of user interface are called ____________
A. objects B. controls C. components *D. a & b
7. An objects characteristics are called ____________
A. principles *B. properties C. commands D. none
8. Basic instructions are called ___________ in VB
A. requests B. response * C. commands D. none
9. A Visual Basic user interface consists of _________
A. forms B. objects *C. both D. none
10. ____________ is a window that appears on the screen.
A. control B. form * C. report D. none
11. All VB programs have ____________ forms
A. at least one * B. no C. more than one always D. minimum two
12. The items that appear on the form are called ___________
A. controls or objects * B. components C. files D. a & c
13. ___________ allows the user to give commands to the program
A. object * B. class C. function D. file
14. All the characteristics like the color, size, location of the object are described by the
____________ of the object
A. principles B. code C. properties * D. none
15. Does VB assign any default values as soon as the object is drawn on the screen?
A. True * B. False C. cannot say

16._________ occurs as soon as the user presses an object


A. control B. command C. event * D. none

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

17. An environment that provides the user with all the tools, code and interfaces is
defined as _________
A. IPE B. IDE * C. DECD D. none
18. ___________ edition of VB provides Active X controls
A. learning B. professional * C. enterprise D. none
19. ______________ edition contains visual source café and component manager
A. learning B. professional C. enterprise * D. none
20. ___________ template is used to create stand alone programs.
A. active x controls B. active x dll C. standard exe * D. addin

21. Active dll files contain programs designed to be used as building blocks for stand
alone programs, use __________ as a project type
A. active x control B. active x dll * C. standard exe D. addin
22. Active x controls use __________ as an template
A. active x control * B. active x dll C. standard exe D. addin
23. This project allows to create an addin program designed to work with VB user
interface.
A. active x controls B. active x dll C. standard exe D. addin *
24. ___________ can display a vb form within an internet web browser
A. active x control B. active x dll C. standard exe D. Active X Document exe *
25. ____________ creates file with OCX
A. active x control * B. active x dll C. standard exe D. addin
26. ______________ helps to create a stand alone program along with the user guide
A. active x controls B. active x dll * C. standard exe D. IIs *
27. An ____________ application is a visual basic application that lives on a web server
and responds to requests from the browser.
A. active x controls B. Active x dll
C. standard exe D. IIS *
28. IIS applications use _________ object model
A. active x control B. ASP * C. PHP D.JSP
29. DHTML uses the ____________ model
A. Active x controls B. dynamic HTML object model
C. Static HTML object model. D. none
30. DHTML applications are used for ____________
A. Internet B. intranet * C, both D. none
31. ____________ component is used to display icons of the objects or controls
A. Status Bar B. Tool Bar * C. Properties window D. Form
32. _____________ provides window to draw the objects to design a program
2

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

A. Status Bar B. Tool Bar C. Properties window D. Form *


33. ____________ enables to arrange the location as where the form can appear
A, Status Bar B. Tool Bar C. Properties window D. Form layout window *
34. This window displays the properties f the currently selected form or object
A. Status Bar B. Tool Bar C. Properties window * D. Form
35. This window lists the files that are contained in a file
A. Status Bar B. Project explorer * C. Properties window D. Form
36. This window enables you to debug your visual basic program
A. Status Bar B. Immediate * C. Properties window D. Form
37. When _____________ the window the cursor turns into a double headed arrow.
A. Moving B. Resizing * C. closing D. none
38. This command is used to exit the application.
A. Exit B. ALT+X C. ALT+Q * D. none
39. ______________ contains the tools to draw controls on the forms
A. Picture box B. Tool Box * C. Text Box D. Frame
40. _____________ provides a way to move and resize the form and the controls
A. Picture Box B. Pointer * C. Text Box D. Frame
41. This control displays the bitmaps, icons as well as it displays text for other controls.
A. Picture box * B. Tool Box C. Text Box D. Frame
42. This control displays text a user cannot interact with or modify
A. Picture box B. Label * C. Text Box D. Frame
43. This provides area to enter the text
A. Picture box B. Tool Box C. Text Box * D. Frame
44. This is a functional container fro controls
A. Picture box B. Tool Box C. Text Box D. Frame *
45. A control that embeds data into a visual basic application is
A. Data B. OLE * C. List Box D. Timer
46. Control that adds a straight line to the form
A. Line * B. OLE C. List Box D. Timer
47. This control adds a rectangle, square, ellipse.
A. Data B. Shape * C. List Box D. Timer
48. This executes the timer events at specified intervals
A. Data B. OLE C. List Box D. Timer *
49. Control allows to select directories
A. Data B. DirListBox * C. List Box D. Timer

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

50. Control allows to select directories


A. Data B. FileListBox * C. List Box D. Timer
51. Control allows to select valid disk drives
A. Data B. DriveListBox * C. List Box D. Timer
52. This displays the bitmaps, icons
A. image * B. DriveListBox C. List Box D. Timer
53. This control enables to get connected to an existing database and displays
information from it on forms
A. Data * B. DriveListBox C. List Box D. Timer
54. Command button and frame controls are examples of _______________ controls
A. Custom controls B. Standard Controls * C. Both D. none
55. These controls contain files with extensions VBX and OCX
A. Custom controls * B. Standard Controls C. Both D. None
56. Subprograms are called ____________ in VB
A. Custom controls B. Standard Controls C. event procedures * D. None
57. The user usable objects only contain the event procedures
A. true B. False C. Cannot say
58. All the objects on a form are stored in a list called _____________
A. Procedure list B. Object list * C. Both D. None
59. All the possible events that an object can invoke are placed in a list called _____
A. Procedure list * B. Object list C. Both D. None
60. Objects can be renamed at any instance
A. true B. False * C. cannot say
61. All the files are stored of the project with extension ________-
A. DLL B. OCC C. VBP * D. VPB
62. ___________ is used to run a chosen program.
A. F1 B. F10 C. F5 * D. F12
63. Visible property of object is ____________ by default
A. true B. False * C. cannot say
64. The caption of a button represents __________
A. frame B. property * C. window D. none
65. Clicking of the mouse on a button represents ___________
A. Event * B. property C.procedure D. none
66. FRM is used as extension for
A. Frame B. Object C. Form D. None
67. All the procedures in VB are _________ by default.
A. Private * B. Public C. protected D. none
4

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

68. End Sub is used to exit the procedure


A. true * B. false C. cannot say
69. The name property is used to hold the object of the command
A. true * B. false C. cannot say
70. Example of static control is ____________
A. Text box B. Label * C. List Box D. Check Box
71. ______________ command is used to open the code window
A F1 B.F2 C. F7 *D. F8
71. ________________ command is used to close the code window
A. F1 B. F2 C. F7 D. alt+Q *

72. End sub is used to exit the procedure


A. true * B. false C. cannot say
73. Visible property of object is ___________ by default
A. true B. False * C. cannot say
74. Enable property of object is ___________ by default
A. true * B. False C. Cannot say
75. This window lists the files that are contained in a file
A. Status Bar B. Project explorer * C. properties window D. Form

UNIT-II
1. Variables in VB are declared explicitly.
A. True B. Error C. False * D. cannot say
2. __________ statement is sued to declare a variable
A. var B. Dim * C. explicit D. none
3. To save debugging variables have to be declared
A. var B. Dim C. explicit D. none
4. Value of a procedure is ________ to the procedure.
A. Public B. Private C. local * D. non-local
5. This is used to declare it explicitly
A. var B. Dim C. Option * D. none
6. To declared a variable called result _________--
A. aver result B. dim result * C. both D. none
7. To make the variable available throught application ___________ is used
A. Public * B. Private C. local D. none
8. Declaring the variable as preserves its value even when procedure ends.
A. Public B. Private C. static * D. non-local

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

9. By default VB variables are of __________ type


A. variant * B. Dim C. Both D. None
10. At module level identifiers are available at __________ level
A. One B. two C. all * D. None
11. Module level variable are available to all procedures in that __________
A. Module * B. Class C. Function D. None
12. At __________ level there is no difference between private and dim
A. Module * B. class C. Function D. None
13. Code in VB is stored in __________ level
A. Module * B. Class C. Function D. None
14. An object data type contains __________- bytes
A. 1 B. 2 C. 3 D. 4 *
15. Date contains _________ bytes
A. 1 B. 2 C. 3 D. 8 *
16. Currency contains __________ bytes
A. 1 B. 2 C. 3 D. 8 *
17. _____________ contains form level declarations of general procedures
A. Form Module * B. Standard Module C. Class Module D. None
18. ___________ are containers for procedures and declarations
A, Form Module B. Standard Module * C. Class Module D. None
19. Fondation of object oriented programming
A. Form Module B. Standard Module C. Class Module * D. None
20. BAS is extension for ___________
A. Form Module B. Standard Module * C. Class Module D. None
21. CLS is extension for ________-
A. Form Module B. Standard Module C. Class Module * D. None
22. FRM is extension for ___________
A. Form Module * B. Standard Module C. Class Module D. None
23. ____________ keyword is used to create multiple copies of our objects
A. New * B. Delete C. Select D. None
24. ______________ returns a value
A. Function * B. Procedure C. Both D. None
25. _____________ does not returns a value
A. Function B. Procedure * C. Both D. None
26. _____________ procedure can return and assign values and set references
A. Property * B. Object C. both D. None

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

27. Each time procedure is called the functionality is executed


A. True * B. False C. Error D.Wrong question
28. In all modules procuders are ___________ by default
A. private B. public * C. local D. None
29. _____________ procedures remain idle till called upon
A. Event procedures * B. General Procedures
C. Control Procedures D. None
30. ______________ procedure tells application how to perform a specific task
A. Event procedures B. General Procedures * C. Control Procedure D. None
31. ___________ procedure combines controls actual name
A. Event procedures * B. General Procedures C. Control Procedure D. None
32. _____________ event procedure for a form combines the word form and event name
A. Event procedures * B. General Procedures C. Control Procedure D.
None
33. _______________ procedures can be used to create ready only properties
A. Propert procedures * B. General Procedures C. Control Procedure D.
None
34. _____________ procedure that sets a value of a property
A. set B. let * C. get D. fit
35. _______________ procedure that returns a value of a property
A. set B. let C. get * D. fit
36. _______________ procedure that sets reference to an object
A. set B. let * C. get D. fit
37. ______________ statement executes as long as specified number of times.
A. Do –loop * B. For C. While D. None
38. ______________ statement executes as long as condition Is true
A. Do-loop * B. For C.While D. None
39. To execute the statement for a specified number of times.
A. Do-loop B. For * C. While D. None
40. If Step is not set the increments defaults to ___________
A. 1 * B. 2 C. 3 D. 4
41. ________ is a set of sequentially indexed elements having same type of data
A. Array * B. Index C. Sequence D. None
42. ___________ is an object that contains a set of related objects
A. Array B. Index C. Sequence D. Collection *
43. To count the number of cont6rols Dim Ctrl as control
A. Error B. Bug C. True * D. False
44. Eachelement in index is refered as
A. Subscript * B. Index C. Sequence D. Collection

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

45. This is syntax for EXIT statement


A. End procedure B. End function C. exit D. All *
46. ___________ is an array of controls
A. Control Array * B. Control Index C. Control Sequence D. Collection
47. Dim no (1 to 10) as integer
A.10 B. 11 * C.39 D. 50
48. Dim i NO (10) as integer
A. 10 B. 11 * C. 12 D. 13
49. _________are arrays whose size is set at run-time
A. Static B. Dynamic arrays * C. both D. None
50. __________ is used with redim then earlier data can be retained
A. Static B. Preserve * C. both D. None
51. Preserve is used along with ________
A. Satic B. Redim * C. both D. None
52. Dimi No (1 to 3, 1 to 3) declares a ___________ dimensional array
A. 1 B. 2 * C. 3 D. 4
53. ________ statement transfers control to sub function or subprocedure
A. Preserver B. Call * C. Static D. none

54. Call keyword if used to call a procedure that requires arguments with the arguments
list be enclosed in _________
A. () * B. --- C. [] D. none
55. _______ function runs an executable program and returns a variant type
A. Shell * B. end C. exit D. sub
56. A program that includes OLE capabilities can communicate data to windows
application
A. OLE * B. Server C. Both D. None
57. Dim a as string declares a type as a__________
A. String variable * B. integer variable C. date variable D.
None
58. Text. Visible=false makes its visibility property
A. true B. false * C. enable D. disable
59. _________ control are used displays the number of items in the list.
A. List Box B. Check Box C. Both D. None
60. ________ control gives the number of sub-directories in the current directory
A. List Box B. Check Box C. DirListBox * D. None
61. _______ gives the number of drive connections
A. List Box B. Check Box C. Drive ListBox * D. None
62. Currently selected item’s index in the list is given by _______
A. List Index * B. Check Box C. Drive List Box D. None
8

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

63. ________ procedure uses the values of the three scrollbars


A. Event B. Docolor * C. General D. None
64. __________ method works to move the image control across the screen.
A. Move * B. Show C. Resize D. None
65. __________ is used to recalculate the color
A. Event B.Docolor * C.General D. None
66. Is used to create a simple animation
A. Event B. Image Control * C. General D. None
67. _________ event occurs when the scroll box is moved
A. change * B. Scroll C. both D. None
68. _______ does not occur after the scroll bar is clicked
A. change B. Scroll * C. both D. None
69. ________ are types of controls which operate independently from other controls
A. horizontal B. vertical C. both * D. none
70. __________ property corresponds to position in scrollbox
A. horizontal B. vertical C. value * D. none
71. A variant requires _________ bytes more than the array alone
A. 13 B. 12 * C. 10 D. 34
72. If the _________ function is executed the task id will be returned
A. Static B. Dynamic C. Key D. Shell *
73. ________ runs other programs asynchronously
A. Static B. Dynamic C. Key D. Shell *
74. When calling DLL procedure _______ is used with call
A. By Val B. By Ref C. Both * D. none
75. ________ is used to clear the contents of the list box
A. clear * B. static C. dynamic D. none
76. The function that defines the colors is _______
A. RGB () * B. BGR () C.VYBGR D. None
77. _______ this is used to add items in list
A. Add Item B. Delete Item C. Both D. None
78. __________ datatype contains 16 bytes
A. variant (characters) B. variant (numbers) C. both are same D.
none
79. __________ datatype contains 16 bytes
A. variant (characters) B. variant (numbers) C. both are same D. none
80. ________ return values
A. Function * B. Procedure C. both D. none
81. A variant requires _________ bytes more than the array alone
A. 13 B. 12 * C. 10 D. 34
9

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

82. If the __________ function is executed the task id will be returned


A. Static B. Dynamic C. Key D. Shell *
83. _________ runs other programs asynchronously.
A. Static B. Dynamic C. Key D. Shell *
84. _________ is used to recalculate the color
A. Event B. Docolor * C. General D. None
85. __________ is used to create a simple animation
A. Event B. Image control * C. General D. None

UNIT-III
MENUS
1. Menus can be created by using _________
A. Menu editor B. menu editor utility C. Menu Rename D. None
2. MDI stands for _______
A. Multiple document * B. single document C. both D. none
3. An application can have ________ mdi forms
A. B. C. D.

4. Difference between the types of data files that can be created are ________
A. B. C. D.

5. In order to access names in the files in secondary storage we use __________


A. B. C. D.

6. _______ are used to launch multiple documents from a main document


A. SDI B. MDI * C. both D. None
7. ________ allows to enter the title of the work
A. Caption * B. Index C. Enable D. Checked
8. ________ determines the controls position
A. Caption B. Negotiate Position C. Enable D. Checked
9. ________ specifies how the menu appears in the container form
A. Caption B. Negotiate Position * C. Enabled D. Checked
10. ________ enables u to have a check appear at the left of the menu item
A. Caption B. Negotiate Position C. Enabled D.Checked *
11. __________ allows to assign a numeric value for context id
A. Caption B. Help Context ID * C. Enabled D. Checked
12. This allows to select shortcut key for each command
A. Caption B. Short cut * C. Enabled D. Checked
13. _________ lets to enable the menu items

10

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

A. Caption B. Help Context ID C. Enabled * D. Checked


14. __________ allows the menu item to paper on the menu
A. Caption B. Visible C. Enabled D. Checked
15. ________ control determines if menu can list the open MDI child forms
A. Caption B. WindowList * C. Enabled D. Checked
16. This displays the currently selected line.
A. Menu List * B. Window List C. Enabled D. Checked
17. ________ deletes the currently selected line
A. select B. Remove C. delete * D. none
18. ________ moves selection to the next line.
A. select B. removes C. Next * D. none
19. _______ cancels all the changes
A. select B. remove C. Cancel D. none
20. ________ is a set f menu items on the same level that share the same name
A. select B. remove C. Menu control D. none
21. _______ gels the data from the clip board
A. get data () * B. getformat () C. setText () D. clear
22. _______ determines whether clipboard contains text or graphics
A. get data () B. getformat () * C. set Text () D. clear
23. Get the text from the clip board using ________
A. get data () B. get format () C. set Text () D. Get Text ()
24. Sets the graphics in the clipboard
A. get data () B. getformat () C. set text () * D. GetText ()
25. Deletes the contents of the clipboard
A. get data () B. getformat () C. setText () D. clear *
26. _______ cannot be chosen by the clipboard
A. Separator bars * B. inferior bars C. supervisor bars D. none
27. _______ run a menu item immediately when run
A. Short cut keys * B. Access keys C. normal keys D. none
28. _________ is used to specify the name of a menu control which appear in bold in the
pop-up-menu
A. short cut keys B. Access keys C. Bold Command * D. none
29. ________ dialog boxes appear whne we use the MsgBox and Input functions
A. pre-defined box * B. custom dialog – box C. common dialog box D. none
30. To define interface according to users choice
A. pre-defined box B. custom dialog-box * C. common dialog box D. none
31. Provides set of standard dialog boxes for opening and saving
11

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

A. pre-defined box B. custom dialog-box C. common dialog box * D. none


32. ________ invokes the windows help
A. Show Help * B. Show Printer C. Show open D. Short Font
33. _________ is used to minimize the window
A. 1 * B. 2 C. 3 D. 4
34. ___________ property is set to 1 to minimize
A. Window State Property * B. Window Activate Property
C. Both D. None
35. __________ is used to maximize the window
A. 1 B. 2* C. 3 D. 4
36. ________ is used to maximize the window
A. 1 B. 2 C. 3 * D. 4
37. QBCOLOR (8) gives __________ color
A. light-red B. light-blue C. cyan * D. gray
38. QBCOLOR (9) gives __________ color
A. light –red` B. light-blue * C. cyan D. gray
39. QBCOLOR (3) gives
A. light-red B. light-blue C. cyan * D. gray
40. QBCOLOR (5) gives ___________ color.
A. light-red B. light-blue C. cyan D. Meganta
41. QBCOLOR (6) gives _________ color
A. light-red B. light-blue C. cyan D. Yellow *
42. QBCOLOR (3) gives __________ color.
A. light-red B. light-blue C. cyan D. Red *
43. If the MDI from is not loaded when the ActiveForm property is access then
________ is encountered
A. error * B. no error C. flaw D. none
44. When a child form Is loaded its __________ is automatically loaded.
A. child form B. Main form C. parent form * D. none

45. __________ property is used to change the position of MDI child after you load it.
A. AutoShowChildren * B. AutoShowChild C. Both D. None
46. ___________ flag is useful when quitting an application
A. boolDirty * B. AutoShowChild C Both D. None
47. In __________ application menus are displays on MDI form rather than on the child
forms.
A. SDI B. MDI * C. both D. None
48. ________ menu displays the captions of all open child forms.
A. SDI B. Window Menu * C. both D. None

12

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

49. _________- arranges windows or icons within an MDI form object


A. Show B. Get C. Arrange D. None

UNIT-IV
1. A jet database use ___________ as extension
A. MBD B. MDB C. OCX D. None
2. In VB _________ is an add-inprogram
A. Visual Manager * B. Visual Data Manager
C. Visual Manager Data D. None
3. _______- can be used to create a jet database
A. Visual Manager B. Visual Data * C. Visual Manager Data D. None
4. Ms-Access uses ______ as its Data Manager component
A. jet Base B. jet Database * C. ODBC databases D. None
5. FoxPro uses ________ databases.
A. Jet Base B. jet Data Base C. ODBC databases D. ISMA *
6. ______ is a universal database connectivity
A. Jet Base B. Jet Database C. ODBC data base * D. ISMA
7, Sybase is example for ________
A. jet Base B. jet Database C. ODBC databases * D. ISMA
8. _________is used to retrieve data from databases
A. jet Base B. jet Database C. Data Control * D. ISMA
9. ________ uses only jet database engine
A. DAO * B. jet Database C. Data Control D. ISMA
10. To create and manipulate the components of a remote ODBC database systems
___________ is used.
A, RDO * B. Jet Database C. Data Control D. ISMA
11. RDO is supported by ________
A. WIN 95 B. Win 98 C. Win NT D. none
12. Microsoft remote Data object 2.0 object library must be referenced.
A. RDO * B. jet Database C. Data Control D. ISMA
13. ________ can be called directly form a VB application’
A. Jet Base B. Jet Database C. ODBC API D. ISMA API
14. _________ is suited for single system applications
A. RDO B. DAO * C. ADO D. ODBC
15. Relational databases can be accessed using _________
A. RDO * B. DAO C. ADO D. ODBC
16. __________ contains fewer objects but more properties and functions
A. RDO B. DAO C. ADO * D. ODBC
17. _________ property defines the type f database to open

13

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

A. Connect * B. Exclusive C. Read Only’ D. Record set


18. ________ determines whether data can be updated or not
A. Connect B. Exclusive C. Read Only * D. Record set
19. ___________ contains set of record returned by the data control
A. Connect B. Exclusive C. Read Only D. Record set *
20. Refreshes the Record set object
A. Connect B. Exclusive C. Read only D. Refresh *
21. ________ determines whether there can be exclusive use of the database
A. Connect B. Exclusive * C. Read only D. Record set
22. _________ is a set of records to which the data control refers.
A. Connect B. Exclusive’ C. Read only D. Record set *
23. _________ method is used to add a new record to the database
A. Add New * B. Exclusive C. Read only D. Record set
24. To save the current record to a database ________ method is used
A. Update Record * B. Exclusive C. Read Only D. Record set
25. ______ is a VB utility that generates simple database forms that use the data control.
A. Data Wizard B. Data Form Wizard C. Both D. None
26. To load the Data Form Wizard _________ command is used
A. Add-in Manager * B. Add-out Manager C. Both D. None
27. ________ indicates whether record will be saved or not
A. Data Wizard B. Data Form Wizard C. Both D. Save *
28. _______ is the top level database object corresponds to the jet database engine
A. DLE Engine B. DBE Engine * C. Both D. None
29. ________ acts as a container for open databases.
A. Workspace object * B. Workplace object C. Both D. None
30. __________ corresponds to a jet native or external database
A. Workspace object B. Database Object * C. Both D. None
UNIT-V
1. ________ has the file name with extension OCX
A. Active X Controls * B. Active X Control Code
C. Active X Control component D. None
2. Active X control based on ______
A. SER B. OLE* C. VAR D. None
3. _______ file is compiled as a part of application executable file
A. INF B.CTL * C. CNF D. None
4. _________ must be installed before using as a server.

14

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

A. Active X server * B. Active X Cleint C. both D. none


5. _________ is an in-process serves
A. DLL * B. EXE C. Both D. None
6. _________ is an out-process server
A. DLL B. EXE * C. Both D. None
7. __________ process gets stored in its own memory_____ is an in-process serves
A. In B. Out * C. both D. none
8. _______ is example for Active X document
A. Microsoft IE * B. Netscape C. Opera D. None

9. ________ can be loaded onto web browsers like IE


A. Active X Controls B. Active X Control Code C. Active X Document *
D. None

10. _______ cannot be placed on a user document


A. OLE Control B. OLE Container Control * C. both D. None

11. _______ creates both VB document file and is server.


A. Compiling B. Execution C. Linking D. End

UNIT-VI

1. _______ keyword is used to return to the location in the program that caused the error
A. Resume Next B. Resume * C. Resume Label D. None

2. This is used to move the line immediately following the one that cause error.
A. Resume Next * B. Resume C.Resume Label D. None

3. This is used to continue execution from a specified location within the routine.
A. Resume next B. Resume C. Resume Label * D. None

4. To exit from the subroutine that caused error ______ is used


A. Resume Next B. Resume C. Resume Label D. Exit sub or exit function *

5. Erros caused by problems with devices are called ________


A. General Files B. Physical media Errors * C. Program Code Error D.
Database Erros

6. Errors in programs like divide by zero are called ________


A. General Files B. Physical media Errors
C. program Code Error * D. Database Erros

7. Errors that occur during database operations are ________


15

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

A. General Files B. Physical media Errors C. Program Code Error D.


Database Errors *

8. Errors encountered when U open, read or write simple files


A. General Files * B. Physical media Errors
C. Program Code Error D. Database Errors

9. Bad filename of number generates _____ error code


A. 51 B. 52 * C. 53 D. 54

10. Bad file mode generates _________ error code


A. 51 B. 52 C. 53 D. 54 *

11. Bad record Length generates _________ error code


A. 51 B. 52 C. 53 D. 59 *

12. File not found generates ______ error code


A. 51 B. 52 C. 53 * D. 54

13. File already open generates _______ error code


A. 51 B. 55 * C. 53 D. 54

14. File already exists generates _________ error code


A. 51 B. 58 * C. 53 D. 54

15. Disk full generates _______ error code


A. 51 B. 52 C. 53 D. 61 *

16. Input past end of file generates _________ error code


A. 51 B. 62 * C. 53 D. 54

17. Path not found generates _______ error code


A. 51 B. 76 * C. 53 D. 54

18. Too many files generates _______ error code


A. 51 B. 67 * C. 53 D. 54

19. Bad file name generates ________ error code


A. 51 B. 64 * C. 53 D. 54

20. Path or file access error generates ____ error code


A. 51 B. 75 * C. 53 D. 54

21. Disk not ready generates _______- error code


A. 51 B. 71 * C. 53 D. 54
16

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

22. Cannot rename with the different drive generates _________ error code
A. 51 B. 74 * C. 53 D. 54

23. Bad record number generates ________- error code


A. 51 B. 63 * C. 53 D. 54

24. ________ is a part of error collection


A. Error object * B. Error Report C. Error module D. None

25. _________ is used to get the information about the errors that have occurred
A. Error object * B. Error Report C. Error module D. None

26. VB has _____ number of objects for run-time execution


A. 1 B. 2 * C. 3 D. 4

27. _______ is displayed as a prompt in a dialog box waits for the user to input the text.
A. Title B. Input box * C. Syntax D. Prompt

28. _______ is used to displays message in a dialog box


A. Title B. Message box * C. Syntax D. Prompt

29. In message box the argument value 32 displays the box with content _____
A. Display the warning query icon * B. Display OK and cancel
C. Display the retry and cancel D. Display Yes and No

30. In message box the argument value 0 displays the box with content ______
A. Display the warning query icon B. Display OK and cancel
C. Display the OK * D. Display Yes and No

31. In message box the argument value 1 displays the box with content _______
A. Display the warning query icon * B. Display OK and Cancel *
C. Display the retry and cancel D. Display Yes and N0

32. In message box the argument value 2 displays the box with content _________
A. Display the warning query icon
B. Display OK and cancel
C. Display the Abort, retry and ignore *
D. Display Yes and No

33. In message box the argument value 48 displays the box with content ______
A. Display the warning query icon *
B. Display OK and Cancel
C. Display the retry and cancel;
D. Display Yes and No

17

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

34. In message box the argument value 64 displays the box with the content _______
A. Display the warning query icon
B. Display OK and Cancel
C. Display the information message icon *
D. Display Yes and No

35. ______ is used to return the current date and time according to t6he settings of your
system date and
A. Date
B. Now
C. Minute
D. None

36. _______ returns a string with spaces


A. Date
B. Space
C. Minute
D. None

37. String=”hello”& space (15) & “world” is _______


A. hello world
B. hello *
C. world hello
D. none

Consider the following string


STR=”welcome”

38. Right (STR, 1) results in _________


A. W
B. E *
C. M
D. none

39. Left (STR, 2) result in ________


A.We *
B. E
C. M
D. none

40. Mid (STR, 1, 3) results in ________


A. wel *
B. wele
C. ome
D. none
18

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

41. Instr (1, str,”W”) returns _______-


A. 1 *
B. 0
C. 2
D. 4

42. UCase (STR) is __________


A. WELCOME *
B. welcome
C. both true
D. none

43. LCase (STR) is _________


A. between 0 and 6
B. welcome *
C. both true
D. none

44. Int ((6*Rnd) +1)


A between 0 and 6
B. between 1 and 6 *
C. both
D. none

45. Hex (STR) results in ________


A. returns a hexadecimal number
B. returns an octal number
C. both
D. none

46. Sstr 1 =hex (10) returns _______


A. A *
B. C
C. B
D. none

47. Ssstr1=hex (10) return


A. 10
B. 5
C. 6
D. 0 *

48. Minute (#12:30) returns ________


A. 30 *
19

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

B. 45
C. 60
D. 70

49. Month (sstr) where sstr=’feb-12-1969’ returns __________


A. 2 *
B. 1
C. 12
D. 3

50. Int (-219.9) returns _________


A. 220
B. -220 *
C. 219
D. -219

51. Fix (167.8) returns _________


A. 167 *
B. 168
C. 167.9
D. -167.9

52. ________ applications are performed on the browser machine


A. DHTML *
B. IIS
C. HTML
D. None

53. _________ applications are performed on the browser machine


A. DHTML
B. IIS *
C. HTML
D. None

54. IIS uses ________ model


A. ASP *
B. JSP
C.PHP
D.None

55. DHTML uses _________ model


A. ASP
B. JSP
C. PHP
D. Dynamic HTML object model *
20

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

56. IIS can be used in both internet and intranet


A. Yes
B. No
C. cannot say

57. DHTML can be used only in _______


A. Intranet
B. Internet
C. both
D. none

58. IIS application is made up of special type of object class called _____-
A. ASP
B. JSP
C.WebClass *
D. Dynamic HTML object model

59. It contains a series of resources called _________


A. ASP
B. JSP
C. Web Items *
D. Dynamic HTML object model

60. The preview of the data report is seen using _______- method
A. Show *
B. display
C. work
D. none

61. The data report objects print report and export report methods are ______
A. Synchronus
B. Asynchronus *
C. both
D. none

62. _________ template is use dto export reports in different forms


A. Import
B. export *
C. both
D. none

63. Export the data report designer is represented by a section object


A. true
B. false
21

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451


Visual Basic

C. cannot say

64. Data report designer is represented by a section object


A. true
B. false
C. cannot say

65. _______ contains the text that appears at the very beginning
A. Report header *
B. Page Header
C. Page Footer
D. Group Header

66. _______ contains a repeating section of the data report


A. Report header
B. Page Header
C. Page footer
D, Group Header *

67. This contains the information that appears at the end of the page
A. Report header
B. Report Footer *
C. Page Footer
D. Group header

68. This contains the information that appears at the end of the page.
A. Report header
B. Report Footer
C. Page Footer *
D. Group header

69. ______ is section associated with the lowest level command object
A. Report header
B. Report Footer
C. Details *
D. Group header

70. Set ForcePageBreak=’rptOageBreakAfter’ results in the report header to the ______


in the page

A. First *
B. Next
C. Last
D. None

22

Bhargavi Institute of Management and Technology, KPHB, Ph: 040- 23068451

You might also like