UNIT-I
1) RAD stands for
a) Rapid application Development b) Readymade Application Design
c) Readymade Access design d) None
2) Visual Basic is_________ tool
a) Front-end b) Back End c) Middle d) None
3) Visual basic is the product of
a) Microsoft b) Novel c) Oracle d) None
4) Visual Basic comes in _______ editions
a) 2 b) 3 c) 4 d) None
5) _______ is the extension for ActiveX Controls
a) .ocx b) .acx c) .ocl d) .dll
6) Windows is used to debug VB program
a) Immediate b) Properties c) Tool Box d) None
7) Stocking the windows to one side of screen in VB is called ______
a) Resizing b) Docking c) Closing d) None
8) Visual container for the other controls
a) Image b) Shape c) Picture d) All
9) ____acts like a command button when clicked
a) Image b) Shape c) Data Control d) None
10) Custom control extension is
a) VBX b) ACX c) DCX d) None
11) The conventional name for a timer control is
a) Tim b) Tmr c) Trm d) Time
12) Which key is used to switch to code window
a) F3 b) F4 c) F7 d) F5
13) Short cut key to close code window_____
a. F5 b) F2 c) F1 d) Shift+f7
14) Default extension for form module is
a) frm b) fmr c) fmb d) fmx
15) Project Extension is
a) .VBP b) VBG c) .FRM d) None
16) Key board to run VB program
a) F5 b) F3 c) F6 d) All Keys
17) Short cut key to save current form
a) Ctrl+s b) Ctrl+f c) Ctrl+n d) None
18) Caption of a command button represents
a) Property b) Value c) Event d) Method
19) Default property of a text box
a) Name b) Caption c) Text d) None
20. ___________is what someone sees when your program is running
a) Application b) Program c) File d) *Interface
21. VB user interface consists of ____ & __________
a)Program, structure b) *forms , objects c) forms ,program d) objects,program
22. _______ enables the user to give command to your program
a) Event b) Keyboard c) mouse d) *object
23. ________ are items that appear on the screen.
a) Windows b) mouse pointer c)* objects d) commands
24. An object’s ________ determine its name, color, size , location and appearance on the screen
a) pointer b) *properties c) toolbox d) None of the above
25. The action performed by user is known as ___________
a) program b)* Event c) Work d) None of the above
26. When an _________occurs, then __________ for that gets fired
a)*Event, Code written b) Code written, event c) Click,result d)All of the above
27. Expand IDE
a) International Design Environment b) Integrated Development Environment
c) Integrated Design Environment d) International Development Environment
28) ________ creates standalone program that u copy, give away or sell to others
a) standard EXE b) Activex EXE c) DHTML Application d) AciveX DLL
29. _______,_____ & _______ programs have .EXE extension in VB
a) Standard EXE, IIS application , DHTML application b)Standard EXE, ActivexEXE, Activex Document EXE
c) Activex DLL, ActivexEXE, standard EXE d)A & b
30. ________ files contain subprograms designed to be used as building blocks when creating a standalone
program
a) Standard EXE b) ActivexDLL c) Activex EXE d) ActiveX Control
31.________ file is designed to work as an OLE server
32 .OCX is the extension of ______
a) Standard EXE b) Activex Control c) ADDIn d) IIS Application
33. _________ file is designed to help u run programs on website
a) Activex Document DLL b) DHTML Application c) Standard EXE d) None of the above
34. _________ is friendly guide to help you create a skeleton VB standalone Exe program quickly and easily
a) VB application wizard b) Activex Control c) A&B d) None of the above
35. DHTML applications are intended for use on ___________ and are dependent on ___________
a) Internet, form b) Intranet, Internet Explorer 4.0 or later c) Internet, Intranet d) None of the above
36. To get complete list of objects you can display in your toolbox, the shortcut is
a) Ctrl +p b) Ctrl+u c) ctrl+z d) Ctrl+t
37. ____________ provides a window where u can draw objects to design ur program’s user interface
a) Form layout window b)Properties window c) Form Window d) Immediate window
38) ________ window enables u to arrange the location where ur forms appear on the screen
a) Form b) Form Layout c) Immediate d) All of the above
39 Arranging neatly stack ur window to one side of the screen is____________
a) Dragging b) Droping c) Docking d) a&b
40) _____ controls are contained in VB.EXE file
a) Common controls b) Standard controls c) Custom controls d) both b and c
41. Custom controls have _________ or ______extension
a) .frm, .vbx b) .vbx, .exe c) .vbx, .ocx d) .frm,.ocx
42. In VB, subprograms are called___________
a) procedures b) Event procedures c) functions d) a&c
43. To move to code window, the shortcut is
a) Alt+F7 b) Ctrl+F7 c) F7 d) Shift+F7
44. We can select the object to which we need to write code in_______
a) Procedure list b) Code window c) object list d) None of the above
45. The color of a textbox or form represents a/an ____
a) event b) procedure c) property d) functions
UNIT – 1- ANSWERS
1. A 2.A 3. A 4.B 5.A 6. A
7.B 8.C 9.B 10.D 11.D 12. B
13. C 14. 15. A 16.A 17. A 18. A
19. A 20.D 21.B 22.D 23.C 24.B
25. B 26.A 27.B 28.A 29.B 30.B
31. 32.B 33.A 34.A 35.B 36.D
37.C 38.B 39.C 40.B 41.C 42.B
43.C 44.C 45.C
UNIT – II
1) _____ Statement specifies the variable as required
a) Dim b) Variant c) Static d) Option Explicit
2) ___ keyword makes a variable available throughout our application
a) Public b) Private c) Static d) All
3) Declaring a local variable using the ____ keyword preserves its value even when a procedure ends.
a) Dim b) Private c) Public d) Static
4) By default VB variables are of ____ type.
a) Double b) Single c) Integer d) Variant
5) Procedure level variables can be declared with ___ or ___ keyword
a) Public, Private b) Static, Dim c) Public, Private d) Dim, Static
6) At module level there is no difference _____ and _____
a) Dim, static b) Private, Dim c) public, private d) public, dim
7) Which of the following type does not occupy 8 bytes.
a) Date b) Double c) Currency d) Object
8) Single data type occupies_____ bytes
a) 2 b) 4 c) 8 d) 12
9) Standard module extension is
a) .bas b) Cls c) frm d) None
10) Class module extension is
a) bas b) cls c) frm d) None
11) ____ returns a value
a) sub b) Function c) Event d) None
12) By default sub procedure are ___ in all modules.
a) Public b) Private c) Static d) None
13) ______ property procedure sets the value of a property
a) Property Let b) Property Get c) Property Set d) None
14) ______ Property procedure returns the value of a property.
a) Property Let b) Property Get c) Property Set d) None
15) ______ property procedure sets a reference to an object
a) Property Let b) Property Get c) Property Set d) None
16) The return value of the following structure is
Dim k as integer
Dim a as integer
A=10
Do while k<=a
Print k
K=k+1
Loop
a) 1 to 10 b) infinite c) 0 to 10 d) None
17) How many times the loop will executed ?
dim I as integer
I=5
Do until(I<5)
? I
I=I+1
Loop
a) 5 b) 1 c) Infinite d) 4
18) _______ loop executes as long as condition is true.
a) do while b) do until c) For Next d) None
19. _____ loop executes as long as condition is false
A) do while b) do until c) for next d) none
20 ______ loop executes the statements a specific number of times
a. do while b) do until c) for next d) none
21. ___ loop structure is used to repeat a group of statement for each element in an array or collection
a. for next b) for each next c) do loop d) none
22. ___ is an object that contains a set of related object
a. Array b) collection c) control d) project
23. Control array of a control will have same
a. Name b) size c) color d) width
24. Dynamic array size is set at
a. Run time b) design time c) both and b d) none
25. Dynamic array can be declared by using_____ statement
a. Dim b) static c) redim d) run dim
26. ____ __ Keyword retains the earlier data in dynamic array
a. Preserve b) reserve c) retain d) none
27. By default the parameters are passed by ___ in functions
a. Reference b) value c) a or b d) none
28. The _____ statement transfers the control to a sub procedure
a. Shell b) call c) got d) none
29. ____ runs an executable program and returns tasked
a. Shell b) call c) got d) run
30. _______ Data type storage size is 4
a. Currency b) double c) date d) decimal
31. OLE stands for
a. Object Linking and Embedding b) Open Link Embedding
c) Object Linked Enhancement d) Open Library Extension
32. ______ method returns the number of items in a list box
a. List count b) count c) list index d) index
33. If no item is selected then the list index property value is
a. 0 b) 1 c) –1 d) none
34. The read only property of list item in run time is
a. List index b) List c) Add item d) Sorted
35. _____ method adds an item to the list box
a. Add item b) remove item c) append item d) none
36. To clear the contents of a list box method is
a. Remove all b) clear c) clear all d) empty
37. In VB the variables can declared by using __________ words
a) public b) static c) dim d)* all the above
38. Declaring a variable using ______ keyword makes it available throughout our application
a) Public b)* static c) Dim d) None
39. Declaring a variable using ____ keyword makes it available throughout our application
a) *Public b) static c) Dim d) None
40. ______ modules are containers for procedures
a) Form modules b)* Standard modules c) Class modules d) None
41._____ procedure tells the application how to perform a specific task
a) *General b) Standard c) Event d) None
42______ loop structure is used to repeat the group of statements for, each element in an array or collection
a) For-next b) while- wend c) do-while d) *foreach -next
43. A variant containing an array requires ____bytes more than array alone
a) 32 b)*12 c)20 d)4
44) ______ property is used to control the cursor of a textbox.
a) Text b) *setfocus c) Name d) None
45)_____ function is used to translate the string to number
a) int b)* val c) cint d) none
46)_____ function strips the text of leading blanks
a) Pad b) *Ltrim c) Truncate d) None
47) The _____ prefix causes a digit string converted to octal &______ prefix converts digit to hexadecimal
a) &H,&O b) &O,&D c)*&O,&H d) None
48) _____ Event provides access to the scrollbar value as it is being dragged
a)Change b) *Scroll c) Minimum d) Click
49) We can use______ control to create simple animation
a) Picture box b)*Image c) OLE d) None
50) The _______ control provides time management & it measures in increment of milliseconds
a) Tick b)*Timer c) Button d) None
51)_________ method allows us to specify how far to move the bmp horizontally and vertically across screen
a)* Move b) Change c) Return d) None
52) _____ control shows the number of files in current directory that match the property string
a) Drive ListBox, pattern b)* File listbox, pattern c) Drive listbox,Drive name d) None
UNIT – II- ANSWERS
1. D 2.A 3. D 4.D 5.D 6. B
7.D 8.B 9.A 10.B 11.B 12.A
13. A 14.A 15.B 16.A 17. A 18. A
19 .A 20.A 21. C 22. B 23. B 24. A
25. A 26. C 27. A 28.A 29. B 30 . A
31. D 32. A 33.A 34.C 35.A 36. A
37.D 38.B 39.A 40.B 41.A 42.D
43.B 44.B 45.B 46.B 47.C 48.B
49.B 50.B 51.A 52.
UNIT-III
1. ________ function loads a picture in runtime
a. Load picture b) read picture c) write picture d) load file
2. _________ character is to be used to create a separator in a menu
a. Hyphen (-) b) underscore (_) c) comma (,) d) colon (:)
3. a menu can include up to levels of sub menus
a. 3 b) 4 c) 5 d) 6
4. __________ statement is used to display the popup menus in runtime
a. Show menu b) popup menu c) display menu d) none
5. In VB __________ types of dialog boxes can be created
a. 2 b) 3 c) 4 d) 5
6. __________ Method is used to display font dialog box
a. Show font b) display font c) popup font d) view font
7. An application can have ___ no of MDI forms
a. 1 b) 2 c) 3 d) 4
8. ___________ method arranges the windows in MDI form
a. Arrange b) display c) show d) dock
9. _______ are a collection of icons, which provides mouse- driven short- cuts to menu options
a. Status bar b) tool bars c) command buttons d) text box
10. _________ files work like a database
a. Sequential b) random c) binary d) none
11. ________files are accessed by line by line
a. Sequential b) random c) binary d) none
12. ________ file are accessed byte by byte
a. Sequential b) random c) binary d) none
13.Expand MDI
a) Multi Document Information b) *Multiple Document Interface c) Multiple design interface d) None
14. Data generated by an application can be stored permanently in secondary storage by creating____
a) Menus b) Arrays c)Disks d)* Data Files
15. _________
UNIT – III- ANSWERS
1. A 2. A 3. D 4. B 5. B 6. A
7.A 8.A 9.B 10.B 11.A 12.C
Unit – IV
1. _____ is used to create Jet database in VB
a. Visual data Manager b) Data Manager c) Create database program d) Create data manager
2. The jet database extension is_____
a. MDB b) DBF c) JDB d) MDD
3. Microsoft Access is an example for ____ database
a. ODBC b) JET c) ISAM d) None
4. Which of the following is ODBC database
a. Oracle b) Foxpro c) MS- Access d) Paradox
5. ISAM stands for
a. Indexed Sequential Associate Modules b) Internal structural access Method
c) International service Access Method d) Indexed Sequential Access Method
6. Which of the following is an example for ISAM database
a. Oracle b) Access c) Sybase d) Visual FoxPro
7. A data control is used to retrieve the data from ____ and ______ database
a. jet, odbc b) jet, ISAM c) ISAM, ODBC d) None
8. DAO stands for
a. Dynamic Access Object c) Data Access Object
c) Direct Access Object d) None
9. RDO stands for
a. Remote Data Object b) Readymade Data Object
c) Read Only Data Object d) Ready to use Data Object
10. RDO is supported on ____ Operating system
a. a) 6 bit b) 8 bit c) 32 bit d) None
11. ADO stands for
a. ActiveX Data Object b) Active Data Object
c) Access Data Object d) Animated Data Object
12. ______ was the first Object Oriented interface used to connect access tables in VB
a. DAO b) RDO c) ADO d) ODBC
13. ________ is not used to access jet database or ISAM databases
a. DAO b) RDO c) ADO d) ODBC
14. _______ property specifies the type of database to open in data control
a. Exclusive b) read only c) connect d) record set
15. ________ property is an object that contains properties and methods used to work with the returned records
a. Record source b) record set c) row set d) database
16. _____ method refreshes the record set object in a data control
a. Refresh b) retrieve c) clone d) close
17. _______ record moves one record past in a record set
a. Move next b) next record c) move last d) move to next record
18. _______ method is used to add a new record to a record set
a. Add record b) add new record c) add new d) add
19. _______ method is used to cancel an add new method
a. Cancel b) cancel update c) refresh d) restore
20. _____ method is used to delete from record set
a. Delete b) remove c) clear d) close
21)______ method is used to refresh the data bound controls
a. Update Controls b) Refresh c) Refresh controls d) None
22. ____ event is occurred while moving the current record in a data control
a. Reposition b) error c) initialize d) load
23. ______ Property of a record set is used to display the current record number
a. Absolute record b) absolute position c) current record d) record number
24. To add custom error handling to the data controls event can be used
a. Validate b) error c) reposition d) click
25. ____ is a top level database object and corresponds to the Jet database engine
a. DBEngine b) Workspace c) Database d) Tabledef
26. ______ object supports simultaneous transactions and it acts as a container for open databases.
a. DBEngine b) Workspace c) Database d) Tabledef
27. ¬¬¬¬¬¬¬¬¬_______ object is used to define table relations and stored queries and to open record set objects
a. DBEngine b) Workspace c) Database d) Tabledef
28. _____ is used to quickly recorder the records in the table
a. Record set b) table def c) index d) field
29. _____ Is a collection of users with similar access rights
a. DBEngine b) User c) Group d) Realion
30. The Microsoft Jet database engine automatically performs_____ locking
a. Database b) table c) page d) none
3a). The default page locking mode is____
a. Pessimistic b) optimistic c) both and b d) none
32. The AddNew method locks the page in ______ mode
a. Pessimistic b) optimistic c) both and b d) none
33.To enable pessimistic locking,_____ property of a record set must be true
a. Enable b) LocksEdit c) Locked d) None
34. ______ method locks the page in optimistic mode
a. AddNew b) Edit c) Update d) None
35. All ODBC data sources use only _______locking
a. Pessimistic b) optimistic c) Both a and b d) none
36._______ property contains the number of records accessed in a record set
a. Records b) record count c) total record d) accessed records
37._______ method finds the first record satisfying the specified criteria searching forward from the beginning of the record set
a. Find First b) Find last c) Find previous d) Find next
38._______ method finds the first record satisfying the specified criteria searching backward from the end of the record set
a) Find First b) Find last c) Find previous d) Find next
39._______ method finds the first record satisfying the specified criteria searching backward from the current record
a) Find First b) Find last c) Find previous d) Find next
40._______ method finds the first record satisfying the specified criteria searching forward from the current record
a. Find First b) Find last c) Find previous d) Find next
41). Transaction control methods are associated with the ____ object
a. Database b) workspace c) record set d) table def
42. _______ method of a database object performs the SQL action query
a. Run b) execute c) start d) open
43. ADO accesses database data through _____provider
a. MSSQLDB b) MSDAORADB c) OEDB d) None
UNIT – IV- ANSWERS
1. A 2. A 3. B 4.A.,B,C 5.D 6. D
7.D 8. B 9. A 10.C 11. A 12.A
13. B 14.C 15.B 16. A 17. A 18.C
19 B 20.A 21. B 22. A 23. B 24. A
25. A 26.B 27.C 28.C 29.C 30 .B
31. A 32. A 33. D 34.C 35.B 36. B
37. A 38. B 39. C 40. D 41. C 42. B
43. B
Unit –V
1. ActiveX based on _______ technology
a. OOP b) OLE c) RDBMS d) None
2. The extension for a user control object file is
a) CTL b) OCX c) CTX d) VBX
3. The graphical elements on the user control is stored in files with extension
a) CTL b) OCX c) CTX d) VBX
4.Toolbox bitmaps size is
a. 5*16 b) 6*15 c) 6*16 d) 5*15
5.______property of the user control is used to display the custom bitmaps in toolbox
a. toolbox bitmap b) bit map c) tool box d) bitmap tool
6._______ routine allows values to be stored in the property
a) LET b) GET c) SET d) None
7._______ routine is used to access a property value
a) LET b) GET c) SET d) None
8. _______ methods informs VB that the named property has been changed
a. changed b) property changed c) property updated d) none
9.The ActieX dll file is
a. In-process server b) Out of process server c) Both and b d) None
10. The ActiveX Exe file is
a. In-process server b) Out of process server c) Both and b d) None
11. _____ server gets loaded into the same memory space as the application
a. In-process server b) Out of process server c) Both and b d) None
12.______ server gets loaded in its own memory
a. In-process server b) Out of process server c) Both and b d) None
13.______ is a specific type of ActiveX object that can be placed and activated in Microsoft Internet Explorer
a. ActiveX dll b) ActiveX Exe c) ActiveX Document d) None
14.The extension for the visual basic document file is
a. VBP b) VBD c) VBJ d) VBDF
15.______ object is used to navigate to a web browser in ActiveX documents
a. URL b) Hyperlink c) Hypertext d) Navigate to
UNIT – V- ANSWERS
1. B 2. B 3. B 4. C 5. A 6. A
7. B 8. B 9. A 10. B 11. A 12.B
13. C 14. C 15. B
UNIT -- VI
1. A ______ control will be created on the data report for each field in a command object
a. Text box b) Label c) Check box d) Option button
2. ________ method is used to preview the report
a. Show report b) Show c) preview d) preview report
3. ________ method is used to print a report programmically
a. print b) print report c) report print d) none
4. To export a data report _______ method can be used
a. Export b) Report export c) Export report d) None
5. ______ object is used to create the data report layout
a. Data Report b) Report layout c) Report Designer d) None
6. To set the report header as the first page in the Force Page Break property must be
a. Rpt Page Break After b) Rpt Page break Before c) Rpt Page Break Last d) Rpt Page Break First
7. The innermost repeating section of a data report is
a. Group header b) Group footer c) Detail d) Page footer
8. _________ control is used to place the calculated values on the report
a. text box b) label c) function d) formulae
9. Which is the toop most object in Data Environment
a. command b) connection c) field d) table
10. Each group section has a _______ correspondence to a command object in the data environment
a. One to one b) One to many c) Many to many d) Many to one
11. A function control can be place in _______ section of a data report
a. Report header b) Group header c) Group footer d) Report footer
12. _______ code is used to display the report file
a. %T b) %t c) %I d) %p
13. ______ code is used to print total no of pages
a. %p b) %P c) %T d) %t
14. _______ code is used to display the long date format date
a. %d b) %D c) %p d) %P
15. ________ symbol is used to include a context string in help files
a. # b) $ c) k d) t
16. ________ symbol is used to add titles in help files
a. # b) $ c) k d) t
17. ________ symbol is used to add titles in help files
a. # b) $ c) k d) t
18. ________ symbol is uesd to add browse sequence in help files
a. # b) $ c) k d) t
19. IIS stands for _______
a. Internet Information Server b) International Internet Service
c) Integrated Information Service d) Internet Information Service
20. An IIS application uses _______to present its user interface
a. operating system b) HTML c) JavaScript d) ASP
21. An IIS application is made up of special type of Object called _____
a) Webclass b) webitems c) HTML pages d) none
22. An IIS application contains a series of resources called ______
a) Webclass b) webitems c) HTML pages d) none
23. DHTML applications are intended for use on _____
a) internet b) intranet c) both a & b d) none
24. IIS applications can be used on ________
a) internet b) intranet c) both a & b d) none
25. IIS applications use the ______ object model
a) ASP b) DHTML c) HTML d) None
26. DHTML applications use the _______ object model
a) ASP b) DHTML c) HTML d) None
27. IIS applications are designed to perform most of their processing on________
a) Web server b) Web Browser c) Both a & d d) None
28. DHTML applications perform most of their processing on_____
a) Web server b) Web Browser c) Both a & d d) None
29. _______ returns a string consisting of the specified number of spaces
a) string b) Str c) Space d) spaces
30. ______ returns a string representation of a number
a) string b) Str c) Space d) spaces
31. ______ returns a specified number of characters from the left side of a string.
a. Right b) Left c) RightString d) None
32. ______ returns a specified number of characters from the left side of a string.
a. Left b) Rightstring c) Leftstring d) None
33. ______ returns the position of the first occurrence of one string within another.
a. InString b) Instr c) SearchString d) SearchStr
34. _______ returns the number of characters in a string or the number of bytes required to store a value
a. Len b) Length c) LenString d) LOS
35. _______ returns a copy of a string without leading spaces.
a) Ltrim b) LeftTrim c) Lblank d) LeftBlank
36. _______ returns a copy of a string without trailing spaces.
a. Ltrim b) Rtrim c) RightTrim d) None
37. _______ function removes both leading and trailing blanks.
a. Ltrim b) Rtrim c) RightTrim d) None
38. ________ function returns a string without trailing blanks.
a. Upper b) Ucase c) UpperCase d) None
39._______ function returns a string in lower case
a. Lower b) Lcase c) Lowercasse d) None
40. ______ returns a repeating character string of the length specified
a. String b) Str c) Repeat d) None
41. The returns value of Sgn(-5) is ________
a. 5 b) –5 c) 1 d) 0
42. The return value of Val(“a9 and 98”) is _______
a. 19 b) 98 c) 1998 d) 0
43. The value of Int(-99.8) is ________
a) –99 b) –200 c) 200 d) 99
44. The value of Fix(-a)99.8) is _______
a) –99 b) –200 c) 200 d) 99
45. _______ returns the Current Date and Time
a) Date b) DataTime c) Now d) Time
46. _______ returns a date indicting the current system time.
a) Date b) DataTime c) Now d) Time
47._____ returns the minute of the hour
a. Min b) Minute c) Both a& b d) None
48. _______ returns the month of the year
a. Mon b) Month c) Both a & b d) None
49. The maximum length of Prompt argument in InputBox can be ______ characters
a. 2000 b) 1024 c) 32000 d) 255
50. the maximum length of Prompt argument in Msgbox can be _____ characters
a. 2000 b) 32000 c) 24 d) 255
b.
UNIT – VI- ANSWERS
1. A 2. A 3. B 4. C 5. A 6. D
7.C 8. C 9. B 10. B 11. C 12. A
13. B 14. B 15. A 16. B 17.B 18.C
19. A 20. B 21. A 22. A 23. C 24. C
25. A 26.B 27.A 28.D 29.C 30 .B
31. B 32. 33. B 34. A 35. A 36. B
37.D 38. B 39. B 40. C 41. 42.
43. 44. 45. C 46. 47.B 48.B
49.D 50. D
TWO MARKS QUESTIONS
UNIT-I & II
1. Which of the following controls are included in tool box by default?
a) Richtext box, common dialog box b) DBCombo, DB Grid
c) Text Box , Image d) Active Movie , Calender
2 Which of the following statements raises error in a procedure
a. Dim A as Integer b) Static D as double
c) Public p as date d) Dim A
3. Which of the following data types contain the storage size 2 bytes
1. Integer 2. Byte 3. Boolean 4. Date
a) 1 & 2 b) 1 & 3 c) 1 &4 d) 1, 2&3
4. Which of the following data types contains the storage size 8 bytes
1 Integer 2. Date 3. Currency 4. Double
a) 1 & 2 b) 2 & 3 c) 2,3 & 4 d) all of the above
5. Which of the following data types contains the storage size 4 bytes
1. Long 2.single 3. object 4. Double
a) 1 & 2 b) 1, 2 & 3 c) 1,2 & 4 d) 2 & 3
6. Which of the following procedures are available in VB
1. Function 2. Sub 3. Property 4. Module
a) 1 & 2 b) 1, 2 & 3 c) 1,2 & 4 d) 2 & 3
7. which of the following syntax is incorrect
a. if
c) if
elseif
end if
d) do while
lloop
8. which of the following structures are called as decision structure
a. if……endif, select case……. End select b) if……endif, for…..next
c) do……loop, for…… next d) do…..until,do…….loop
9 .which of the following structures are called as loop structures
a. for…next, select ….end select b) for…next, do …loop
c) do…. Loop, if …..end if d) select…. Endselect, if…. End if
10 .parameters can be passed to functions using ____ and ___ methods.
a. by value, by control b) by value, by object
c) by value, by reference d) by object, by name
11) .____or _____ can be used for windows style argument in shell functions
a. vbHide, vbClose b) vbMediumFocus,vbNoramlFocus
c) vbExit, vbHeight d) bMinimizefocus, vbHeight
12) .____ statement is used in the declaration section of a module to force explicit declaration of all variables in that module.
a. Option Explicit b) Option Private Module
c) Option Implicit d) Option Public Module
13) . ____ and ____ properties of a list box can be used to return the selected list items.
a. list, listindex b) list, text
c) text, listindex d) listindex, listcount
14. Depending on how it is declared a variable is scoped as either _____ or ______ variable
a)public, static b)* Procedure level, module level c) public, module level d) static, procedure level
15. Variable used in a procedure are known as________ and are declared with keyword___or_____
a) *Local Variables, dim,static b) public,dim,public c) Static,public,Static d) None
16. _____ variable are available to all the procedures in that module, but not to code in other modules and
declare them by _______ or ______keyword at the top of module.
a)* Module level, public, private b) Procedure, private, dim c) module level,dim,private d) none
17. Select different modules in VB
a) Class Modules b) Form Modules c) Standard Modules d) Procedure modules
a) a,b,c,d b) b&d only c) c&a only d) *a,b,c
18.Match the following
a) Sub Procedure 1) Can return and assign values and set reference to objects
b) Function procedure 2) Do not return a value
c) property procedure 3) returns a value
a)*a-2,b-3,c-1 b) a-3,b-2,c-1 c) a-1,b-2,c-3 d) a-1,b-2,c-2
19. Make true assumptions related procedures and functions
a) We call functions by including function procedure name and argument in an expression
b) Function procedure’s data type determines the type of the return value
c) Function procedure is a separate procedure that takes arguments, perform series of statements and change the value of the arguments
a) T,T,F,F b) T,F,F,T c) *T,T,T,T d) F,T,T,F
20.Match the following
a) b)
1) Property Let a) A procedure that sets a reference to an object
2) Property Get b) A procedure that sets a value of property
3) Property Set c) A procedure that returns a value of property
a) *a-2,b-3,c-1 b) a-3,b-1,c-2 c) a-1,b-3,c-2 d) a-2,b-1.c-3
UNIT- I & II- ANSWERS
1. C 2. 3. 4. 5. D 6. C 7. B 8. B 9. A 10.A 11. B 12-A
13-D 14-B 15-A 16-A 17-D 19-A 19-C 20-A
UNIT—III
1. ____ and ____ methods can be used on a clipboard object
a. Settext, Gettext b) Setdata, Getdata
c) GetFormat, clear d) All
2. ___ and ____ are the predefined dialog boxes in VB
a). InputBox 2. Common Dialog box 3. Message Box 4. Rich Text Box
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
3. Which of the following dialog boxes can be displayed with common dialog box
1. open 2.font 3. Color 4. Saveas
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
4.which of the following properties are available for a common dialog box
a). filter 2. Filterindex 3. Action 4. Flags
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
5...which of the following functions can be used to set an object color
1. QBColor 2. RGB 3. Set color 4. Get color
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
6.____ function can be used to set a picture in a picture box
1. setpicture 2. Load picture 3. Get picture 4. Disp Picture
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
7.which of the following statements can be used to access the random access files
1. open 2. Get 3. Put 4. Close
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
8.___ statement can be used to create and open a sequential access file
1. open
3. print
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
9. which of the following statement can be used to access the binary file
1. open 2. Get 3. Put 4. Close
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
10. which of the following files can be accessed in VB
1. Sequential Access 2. Binary Access 3. Random Access 4. Direct Access
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
11. Match the following related to QB COLOR
Number color
a) 0 1) Gray
b)14 2) Black
c)8 3)Light yellow
d) 7 4) Cyan
e) 3 5) White
a) *a-2,b-3,c-1,d-5,e-4 b) a-3,b-1,c-2,d-5,e-4 c) a-1,b-3,c-2,d-5,e-4 d) a-2,b-3,c-5,d-1,e-4
UNIT- III- ANSWERS
1. D 2.C 3.D 4.A 5. B 6. B
7. C 8. A 9. C 10.C 11.A
UNIT—IV
1. which of the following database can be accessed in VB
1. Jet Database 2. ISAM database 3. ODBC 4. Excel
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
2. which of the following properties are important to connect access table thru a data control
1. database name 2. Record source 3. Exclusive 4. Read only
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
3. To connect a DBASE database with a data control the important properties are
1. database name 2. Connect 3. Record source 4. Exclusive
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
4. To bind a dataware control to a data control ___ and ___ properties must be set
a) datasource, datafield b) datasource, dataformat
c) datasource, record source d) datasource, datamember
5. If no records are available in a recordset the EOF value is___ and BOF value is ____
a) true, false b) true, true c) false, true d) false, false
6. if you use move next at end of file position you receive ______
a) compile error b) run time error c) syntax error d) no errors
7. If you use addnew method the edit mode property of a data control will be ____
a) true b) dbEditAdd c) dbAddEdit d) dbAdd
8.which of the following events occur if we move the current record in a data control
1. validate 2. Reposition 3. Error 4. Gotfocus
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
9. which of the following method raise the validate event in a data control
1. addnew 2. Update 3. Find 4. Unloading the form
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
10. ____ are the important components used to access data in ADO data model
1. ActiveX Data Control 2. ActiveX connection 3. ActiveX record Set 4. ActiveX tables
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
12. which of the following are essential to create a DSN in Microsoft ODBC for Oracle setup dialog Box
1. data source name 2. Description 3. Username 4.password
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
13. which of the following are essential to connect a table thru DSN in a ADODC
1. data source 2. Database name 3. Connection string 4. Record source
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
14. which of the following is according to the data access object hierarchies
a. database, tabledef, work space , Dbengine b) DBengine, workspace, database , tabledef
c. workspace, datbase, DBEngine, tabledef d) tabledef, workspace, database, DBengine
15. which of the following methods can be used on a DAO record set object
1. open 2. Close 3. Clone 4. Move
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
16. which of the following statements raises the error while retrieving the value from a field empno from the record set object rs
1. rs. Fields(empno) 2. rs.fields(“empno”) 3. rs.fields![empno] 4. Rs.fields!empno
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
16. which of the following statements is correct to add an index object MyIndex to tabledef object MyTd
1. MyTd.append MyIndex 2. MyTd.Indexes.add MyIndex
3. MyTd.add MyIndex 4. MyTd.Indexes.Append MyIndex
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
17. Which of the following methods can be used to control the transactions on workspace object in DAO
1. BeginTrans 2. CommitTrans 3. Commit 4. Rollback
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
18. which of the following components are provided by ADO data model to access data.
1. ActiveX data Control 2. ActiveX connection 3. ActiveX RecordSet 4. ActiveX database
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
19.which of the following providers is used to connect the oracle with ActiveX connection Object.
1. Microsoft.Jet.Oledb.3.5.a) 2. MSDAORA
2. MSDAORA.a) 4. MSDASQL
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
20.which of the following is used to read and update data stored in RDBMS that are external to visual basic
1. RDO 2. RDC 3. Data Control 4. ADO
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
UNIT - IV ANSWERS
1. D 2. C 3. C 4. A 5. B 6. B
7. 8. B 9. A 10. C 11. C 12.A
13. B 14.B 15.A 16. A 17. 18.
19 B 20. A
UNIT—V
1. which of the following controls are examples for ActiveX controls in VB
1. Common Dialog 2. DbCombo 3. DBGrid 4. MsFlexGrid
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
2. which of the following extensions are used for an ActiveX control
1. OCX 2. VBP 3. FRM 4. VBX
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
3. The user control object file has the extension___ and the graphical elements on the user control is stored in files with extension_____
a) OCX,VBX b) CLT,CTX c) CTX,CTL d) CTL,OCX
4. Which of the following events are executed when the user places the user control on the form
1. Initialize 2. Initproperties 3. Resize 4. Paint
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
5. which of the following events are executed on User Control when the user runs the application
1. write properties 2. Readproperties 3. terminate 4. Initalize
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
6. Find the event procedure executed on User control when the compiled application is executed
a). Initilize 2. ReadProperties 3. Resize 4. Paint
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
7.Find the ActiveX object that can be placed and activated with in activeX document containers such as the Microsoft Internet Explorer
1. ActiveX Dll 2. Aactive X exe 3. ActiveX Document Dll 4. ActiveX Document Exe
a) only 1 b) Both 1 and 2 c) 1 and 3 d) All
UNIT – V ANSWERS
1.D 2. A 3. B 4. D 5. D 6. D
7. C