Visual Basic MCQ-6



1.    The methodology where code is broken into small, logical procedures is called:
[a] event-driven programming.
[b] functional programming.
[c] granular programming.
[d] modular programming.
[e] procedural programming.
2.    From how many places in the code can a procedure be called?
[a] 0
[b] 1
[c] 2
[d] 3
[e] As many times as needed.
3.    How many return statements are allowed in a Function Procedure?
[a] 0
[b] 1
[c] 2
[d] 3
[e] There is no limit.
  1. By default any form is …....
[a] Modal
[b] Modeless
[c] Dialog
[d] None
  1. MDI stands for .......
[a] Multi Document Interact
[b] Multi Document Interaction
[c] Multi Document Interface
[d] None
  1. What property are required to be specified for a menu item?
[a] Checked
[b] Index
[c] Name
[d] Caption
  1. How can you enable the user to access a menu item from the key board?
[a] Define an access key by designating a letter in the Caption property.
[b] Define a shortcut key by setting the Shortcut property in the Menu Editor.
[c] The user can press F10 and use the cursor keys.
[d] Define a shortcut key by setting the Shortcut property in code.
  1. Which command is used to remove an item from a menu array.
[a] Delete
[b] RemoveItem
[c] Drop
[d] Unload
  1. Which form event would you use to active a pop – up menu when the user click  the right mouse button?
[a] MouseDown
[b] Click
[c] MouseUp
[d] MouseMove
  1. What are the three types of the property procedure that can be created for a class ?
[a] Add, Retrieve, Remove
[b] Item, Add, Remove
[c] Let, Set, Get
[d] Let, Get, Object
  1. What does the Friend declaration do ?
[a] Makes a class available for use by any program.
[b] Makes the methods of the class usable by other parts of the program in 
               which the class is define
[c] Limits your program to creating a single object from the class.
[d] Keeps you from having to specify the object name to reference the method
      of the class
  1. Which of the following statement can be used to create an object based on a class?.
[a] Set oUsr=New cUser
[b] oUser = cUser
[c] Dim oUser as New cUser
[d] CreateObject(“cUser”)