VB.NET Arrays, Structures, Controls, and Menus
Test your knowledge of VB.NET arrays, structures, controls, KeyPress events, and menu implementation
Questions
In the statement, Dim Days(7) as String, what part of the array does the number 7 refer to?
- Array name
- Datatype
- Lowerbound
- Upperbound
- Size
What is required to reference an element in an array?
- Array name
- Index value of the element
- Element value
- Both a and b.
- All of the above.
Which method will arrange the elements of an array in alphabetical order?
- Arrange
- Assemble
- Order
- Rank
- Sort
The number of variables allowed in a structured is:
- 1
- 2
- 3
- Any number of variables can be declared in an array.
The variable inside a structure is called a(n):
- associate.
- constituent.
- element.
- member.
- part.
Which datatype can an array not hold?
- TextBoxes
- Labels
- Structures
- Controls
- An array can hold all of the above.
An array of controls can be populated by:
- assigning existing controls to the array.
- creating controls and assigning them to the array.
- borrowing controls that will automatically assign them to the array.
- Both a and b.
- All of the above.
The Tag property can:
- only hold string values.
- only hold integer values.
- only hold Boolean values.
- only hold controls.
- hold any data defined by the programmer.
The KeyPress event will capture pressing the key:
- A.
- shift.
- control.
- Both a and b.
- All of the above.
Which argument in the KeyPress parameter list contains the Handled property?
- Sender
- e
- Object
- KeyPressEventArgs
- None of the above.
Which menu item is not typically found in the File Menu?
- Close
- Copy
- Exit
- Print
- Save
What is the name of the control for putting menus on a form?
- FormMenu
- MenuForm
- MenuControl
- MainMenu
- Menu
The standard prefix for a menu item is:
- men.
- meu.
- mit.
- mni.
- mnu.
Which menu object property places a check mark in the display of the menu text?
- Check
- Checked
- CheckMark
- CheckOn
- RadioCheck
Which symbol creates an access key in the text of a menu item?
- @
- #
- $
- %
- &