VB.NET Arrays, Structures, Controls, and Menus

Test your knowledge of VB.NET arrays, structures, controls, KeyPress events, and menu implementation

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

In the statement, Dim Days(7) as String, what part of the array does the number 7 refer to?

  1. Array name
  2. Datatype
  3. Lowerbound
  4. Upperbound
  5. Size
Question 2 Multiple Choice (Single Answer)

What is required to reference an element in an array?

  1. Array name
  2. Index value of the element
  3. Element value
  4. Both a and b.
  5. All of the above.
Question 3 Multiple Choice (Single Answer)

Which method will arrange the elements of an array in alphabetical order?

  1. Arrange
  2. Assemble
  3. Order
  4. Rank
  5. Sort
Question 4 Multiple Choice (Single Answer)

The number of variables allowed in a structured is:

  1. 1
  2. 2
  3. 3
  4. Any number of variables can be declared in an array.
Question 5 Multiple Choice (Single Answer)

The variable inside a structure is called a(n):

  1. associate.
  2. constituent.
  3. element.
  4. member.
  5. part.
Question 6 Multiple Choice (Single Answer)

Which datatype can an array not hold?

  1. TextBoxes
  2. Labels
  3. Structures
  4. Controls
  5. An array can hold all of the above.
Question 7 Multiple Choice (Single Answer)

An array of controls can be populated by:

  1. assigning existing controls to the array.
  2. creating controls and assigning them to the array.
  3. borrowing controls that will automatically assign them to the array.
  4. Both a and b.
  5. All of the above.
Question 8 Multiple Choice (Single Answer)

The Tag property can:

  1. only hold string values.
  2. only hold integer values.
  3. only hold Boolean values.
  4. only hold controls.
  5. hold any data defined by the programmer.
Question 9 Multiple Choice (Single Answer)

The KeyPress event will capture pressing the key:

  1. A.
  2. shift.
  3. control.
  4. Both a and b.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

Which argument in the KeyPress parameter list contains the Handled property?

  1. Sender
  2. e
  3. Object
  4. KeyPressEventArgs
  5. None of the above.
Question 11 Multiple Choice (Single Answer)

Which menu item is not typically found in the File Menu?

  1. Close
  2. Copy
  3. Exit
  4. Print
  5. Save
Question 12 Multiple Choice (Single Answer)

What is the name of the control for putting menus on a form?

  1. FormMenu
  2. MenuForm
  3. MenuControl
  4. MainMenu
  5. Menu
Question 13 Multiple Choice (Single Answer)

The standard prefix for a menu item is:

  1. men.
  2. meu.
  3. mit.
  4. mni.
  5. mnu.
Question 14 Multiple Choice (Single Answer)

Which menu object property places a check mark in the display of the menu text?

  1. Check
  2. Checked
  3. CheckMark
  4. CheckOn
  5. RadioCheck
Question 15 Multiple Choice (Single Answer)

Which symbol creates an access key in the text of a menu item?

  1. @
  2. #
  3. $
  4. %
  5. &