VB Interview Questions 2
- A project group is a Project which:
- Consists of several Programs
- Consists of several Applications
- Consists of Various Forms And Code Modules
- Consists of several Projects
- Procedures declared in a _____ are local whereas procedures declared in a ______ are available to the whole application.
- Form window, standard or code module
- Project window, view code window
- Class module, code module
- How can you keep the user from exiting a form by clicking the Close button?
- Place code in the Terminate event
- Place code in the Unload event
- Place code in the QueryUnload event
- This can only be done by using the Windows API
- Place code in the Load event
- Place code in the Terminate event
- Place code in the Deactivate event
- None of the above
- In order to provide a transparent background to the Form, you must change the _________ property to _______.
- BackStyle, Opaque
- BackColor, White
- BackStyle, Transparent
- BackColor, Parent Window’s Color
- ZOrder, 0
- BackColor, Transparent
- The _______ property enables Visual Basic to draw complete images in memory before displaying them on the Screen.
- AutoRedraw = True
- AutoRedraw = False
- Refresh
- PaintPicture
- You want to display the code and the description of an error. What would be the correct syntax?
- Msgbox err.no & err.text
- Msgbox err.number & err.text
- Msgbox error.number & error.text
- Msgbox error.number & error.description
- Msgbox err.number & err.description
- Msgbox err.num & err.description
- Msgbox err.num & err.text
- None of the above
- What is the purpose of the Image List Control?
- To display images to the user
- To help in creating a ToolBar
- To allow the editing of icons
- To provide a repository for images used by other controls
- To provide images to the listbox control
- To provide images for the splash screen
- To provide icons for error messages
- Which method would you use to get a free or unused File identifier while opening any file:
- FreeFile
- GetFileNum
- GetFile
- GetBytes
- NextFile
- File
- GetNextFile
- None of the above
- Which property procedure is used to retrieve the value of a property?
- Retrieve
- Get
- GetProperty
- Value
- RetrieveValue
- Which of the following can be shown to the user using the Common Dialog control in VB?
- Common messages passed to Windows
- Open dialog box
- Windows explorer
- Input box
- Message box
- Error messages
- Help
- None of the above























