1.You are creating a client application that calls ActiveX DLLs. Which of the following properties of the Err object provides the name of a component that sends an error back to the client application?
a. Number
b. Comp Name
c. Component
d. Source
2. If the Cancel Error Property of the Common Dialog Box is set to true then which of the following statement is true:
a. A runtime error can result if the user clicks the cancel button
b. A compile time error occurs
c. The program executes without any error
d. You need to carry out conditional compilation
3. What is the extension of the Visual Basic project file that stores the design of a user control.
a. .ctx
b. .ctl
c. .ctr
d. .ocx
4. A __________ control defaults to displaying the files in the current directory:
a. File List Box
b. Dir List Box
c. Drive List Box
d. Combo Box
5. To destroy an object and free the memory space occupied by it, the keyword used is:
a. Delete
b. Kill
c. Nothing
d. New
6. Which event of a text box would you use for validating the data entered by the user?
a. Validate
b. Validation
c. Check
d. Audit
7. Which of the following statements forces inline error handling?
a. On Error GoTo linelabel
b. On Error GoTo Inline
c. On Error Stop
d. On Error Resume Next
8. The _______ method resets the contents of bound controls to their original values when the user clicks on the cancel button.
a. UpdateControls
b. PaintPicture
c. Refresh
d. Resize
9. To deactivate the Form UnLoad event, you make the following change in the function definiton:Private Sub Query_Unload(Cancel as Integer,UnloadMode as Integer)To prevent the Form from closing, you will set the:
a. Cancel parameter to a non-zero value
b. Cancel parameter to 0
c. UnloadMode parameter to a non-zero value
d. UnloadMode parameter to a zero value
10. How many root nodes can a TreeView control have?
a. 2
b. 10
c. Up to 50
d. No limit
11. A project group is a Project which:
a. Cosists of several Programs
b. Consists of several Applications
c. Consists of Various Forms And Code Modules
d. Consists of several Projects
12. Procedures declared in a _____ are local whereas procedures declared in a ______ are available to the whole application.
a. Form window, standard or code module
b. Project window, view code window
c. Class module, code module
13. How can you keep the user from exiting a form by clicking the Close button?
a. Place code in the Terminate event
b. Place code in the Unload event
c. This can only be done by using the Windows API
d. Place code in the Load event
14. In order to provide a transparent background to the Form, you must change the _________ property to _______.
a. BackStyle, Opaque
b. BackColor, White
c. BackStyle, Transparent
d. BackColor, Parent Window’s Color
15. The _______ property enables Visual Basic to draw complete images in memory before displaying them on the Screen.
a. AutoRedraw = True
b. AutoRedraw = False
c. Refresh
d. PaintPicture
16. You want to display the code and the description of an error. What would be the correct syntax?
a. Msgbox err.no & err.text
b. Msgbox err.number & err.text
c. Msgbox error.number & error.text
d. Msgbox err.number & err.description
17. What is the purpose of the Image List Control?
a. To display images to the user
b. To help in creating a ToolBar
c. To allow the editing of icons
d. To provide a repository for images used by other controls
18. Which method would you use to get a free or unused File identifier while opening any file:
a. FreeFile
b. GetFileNum
c. GetFile
d. GetBytes
19. Which property procedure is used to retrieve the value of a property?
a. Retrieve
b. Get
c. GetProperty
d. Value
20. Which of the following can be shown to the user using the Common Dialog control in VB?
Common messages passed to Windows
a. Open dialog box
b. Windows explorer
c. Input box
d. Message box
Monday, November 19, 2007
Subscribe to:
Post Comments (Atom)
1 comment:
Really useful and i request you to update the questions and answers that help us better
Post a Comment