Question: 1. What happens to most controls when the Enabled property is set to False? Select one: a. The control cannot respond to events generated by

1. What happens to most controls when the Enabled property is set to False?

Select one:

a. The control cannot respond to events generated by the user.

b. The control can receive the focus

c. The control may appear grayed out

d. The control may appear dimmed

2. ____ Which code will store a random number between 5 and 20 in the variable intNumber?

Select one:

a. Dim rand As New Random(20) Dim intNumber As Integer = rand.Next(5)

b. Dim rand As New Random Dim intNumber As Integer = rand.Next(16) + 5

c. Dim rand As New Random Dim intNumber As Integer = rand.Next()

d. Dim rand As New Random(5, 20) Dim intNumber As Integer = rand.Next()

3. What is the code that will display each element in an Integer array called intValues with 25 elements? The correct code segment should not use an index to reference the items in the array.

Select one:

a. Dim intCount As Integer For intCount = 0 To (intValues.Length 1) MessageBox.Show(intValues(intCount).ToString) Next intCount

b. Dim intNumber As Integer For Each intNumber In intValues MessageBox.Show(intNumber.ToString) Next intNumber

c. For intCount = 1 To IntValues.Length MessageBox.Show(intValues(intCount).ToString) Next

d. For Each Element In intValues MessageBox.Show(intValues(i)) Next

4. Which of the following is true about the Form Load event?

Select one:

a. The Load event procedure for a form is executed when the form loses focus and then regains focus.

b. The Load event procedure only gets processed when the form is initially brought into memory.

c. The Load event procedure is processed after the Activated event procedure is processed.

d. The Load event procedure for a form is executed every time the form is initialized.

5. You would most likely use this to step through each element of a two-dimensional array.

Select one:

a. A Sub Procedure that copies the elements of the two-dimensional array to a single-dimensional array

b. Nested loops

c. An intentional index-out-of-range error

d. ReDim statement

6. What is the best way to share functions across more than one project?

Select one:

a. Place the code for the functions in the Activated event of each form.

b. Create the functions in one project, and then copy and paste into all the projects that call the functions.

c. Place the code inside a Main procedure with a Public access specifier for each function.

d. Put the functions in a standard module that you would add to each project.

7. The __________ keyword is used to create an instance of a form.

Select one:

a. new

b. open

c. instantiate

d. create

8. All of the following are true of the Show method of a form except:

Select one:

a. the Show method displays a modeless form

b. the show method allows a calling program to continue to process statements

c. the displayed form must be closed before you can access other forms

d. using the Show method allows other forms to receive the focus

9. All of the following are true about the Hide method of a form except:

Select one:

a. The Hide method makes the form invisible.

b. Using the Hide method removes the form from memory.

c. Once you have called the Hide method, the form can be redisplayed with the Show method.

d. Once you have called the Hide method, the form can be redisplayed with the ShowDialog method.

10. When a project executes, its __________ is executed.

Select one:

a. initial form

b. event procedure

c. main sub

d. startup object

11. A Form's class declaration does all of the following except _______.

Select one:

a. it describes the form

b. it creates an instance of the form

c. it is similar to a house blueprint

d. it contains event handlers

12. All of the following are true about standard modules except __________________.

Select one:

a. Standard modules are not associated with any form

b. You put a variable in a standard module when it will be used by more than one form

c. Standard modules may contain event procedures

d. A standard module is a file that contains code such as variable declarations and procedures

13. How do you insert a separator bar into a menu?

Select one:

a. Assign True to the DefaultItem property

b. Assign True to the Enabled property

c. Type a space as a menu item objects Text property

d. Type a hyphen as a menu item objects Text property.

14. Which of the following is a header for a Sub procedure that will have a String array named strStudents as a parameter?

Select one:

a. Public Sub ArrayParam(ByVal strStudents( ))

b. Private Sub ArrayParam( ByVal strStudents As String)

c. Private Sub ArrayParam(ByRef strStudents As String)

d. Sub ArrayParam(ByVal strStudents( ) As String)

15. In order to add a menu to a form, you must place a _______ on the form.

Select one:

a. Menu control

b. MenuStrip Control

c. MenuCommand control

d. MenuItem control

16. You store and work with values in an array by using a(n)__________.

Select one:

a. Index

b. Subscript

c. Element locator

d. Locator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!