VB Interview Questions 2



  1. 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
  2. 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
  3. 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
  4. 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
  5. The _______ property enables Visual Basic to draw complete images in memory before displaying them on the Screen.
    • AutoRedraw = True
    • AutoRedraw = False
    • Refresh
    • PaintPicture
  6. 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
  7. 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
  8. 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
  9. Which property procedure is used to retrieve the value of a property?
    • Retrieve
    • Get
    • GetProperty
    • Value
    • RetrieveValue
  10. 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


Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: