Visual Basic MCQ-4



1.    The text property of a text box behaves like a?
[a] string
[b] numeric
[c] variant
[d] function
2.    A textbox is an example of which of the following?
[a] Property
[b] Method 2
[c] Event
[d] Control
3.    Checking to verify that appropriate values have been entered for a text box is called:?
[a] validation
[b] an Input Box
[c] a MsgBox
[d] a watch expression
4.    Variables declared within a Click-event procedure are _____ variables.
[a] general
[b] module-level
[c] global
[d] local
5.    Image controls hold a graphic, which is assigned to the:?
[a] image property
[b] text property
[c] picture property
[d] caption property
6.    Which one of the following is the correct syntax to make a control called Pic1 visible?
[a] Pic1.Visible = True
[b] Visible.Pic1 = True
[c] Pic1.Invisible = False
[d] Pic1.Enabled = True
7.    How many options can be selected if a Frame contains 4 Option buttons?
[a] 1
[b] 2
[c] 3
[d] 0
8.    What is the maximum caption size for a label?
[a] 240 characters
[b] 255 characters
[c] Label does not have a Caption property
[d] Unlimited
9.    What is the maximum caption size for a text box?
[a] 240 characters
[b] 255 characters
[c] Unlimited
[d] Text box does not have a Caption property
10. What would be the result of Val(Text1.Text) if you entered in ?: $3,000
[a] 3000
[b] 3
[c] 0
[d]Run-Time Error
11. What would be the result of CInt(Text1.Text) if you entered in ?: 50000
[a] 0
[b] 5000
[c] 50,000
[d] Run-Time Error
12. What is the default property of a check box?
[a] .Value
[b] .Caption
[c] .Text
[d] .Checked
13. The use of the ‘Rem’ keyword in VB denotes?
[a] A line of documentation
[b] Comment
[c] Remark Statement
[d] All of the above
14. Which is true about the name and text property of a control?
[a] They are the same when the control is first created.
[b] The text property changes to match any changes in the name property.
[c] The name property changes to match any changes in the text property.
[d] They are never the same unless the programmer makes it that way.
[e] They are not allowed to be the same and an error will occur if they are.
15. Which are the standard prefixes for the Button and Combo box controls respectively?
[a] btn and chb
[b] btn and cbo
[c] bto and chb
[d] bto and cbo
[e] cmd and cbo 11
16. Which are the standard prefixes for the text box and label controls respectively?
[a] tex and lbl
[b] tex and lab
[c] txb and lbl
[d] txb and lab
[e] txt and lab
17. Which is not a property of the Common control class?
[a] Show
[b] BackColor
[c] Font
[d] ForeColor
[e] Name
18. Which property determines whether a control is displayed to the user?
[a] Hide 12
[b] Show
[c] Visible
[d] Enabled
[e] Cursor
19. The Button control can be activated:
[a] programmatically through the click event.
[b] by clicking the button with the mouse.
[c] with the form’s DefaultButton property.
[d] Both a and b.
[e] All of the above.
20. Which is not a common control event?
[a] Click
[b] SingleClick
[c] DoubleClick
[d] MouseMove
[e] MouseDown
21. Which TextBox property should always be changed first?
[a] AcceptsReturn
[b] BorderStyle
[c] Font
[d] Name
[e] Text
22. The Items property of a ComboBox:
[a] is a collection of items.
[b] is the same as the Items property of a ListBox.
[c] contains methods and properties.
[d] Both a and b.
[e] All of the above.
23. What is the standard prefix for the name of a CheckBox?
[a] chb
[b] chk
[c] ckb
[d] ckx
[e] cbx
24. What is the standard prefix for the name of a RadioButton?
[a] rad
[b] rab
[c] rdo
[d] rdb
[e] rbt
25. Which symbol creates an access key in the text of a menu item?
[a] @
[b] #
[c] $
[d] %
[e] &
26. Which property determines whether a control is displayed to the user?
[a] Hide
[b] Show
[c] Visible
[d] Enabled
[e] Cursor
27. What is the default property of a check box?
[a] .Value
[b] .Caption
[c] .Text
[d] .Checked
28. 28.What is the maximum caption size for a text box?
[a] 240 characters 20
[b] 255 characters
[c] Unlimited
[d] Text box does not have a Caption property
  1. Which  of the control doesn’t  have method      
[a] Timer
[b] Shape
[c] Line
[d] None