Case 8-1
One of your fellow programmers has written the following array assignment statements for your review:
 Dim strNames() As String = {"Baker" "Lopez", "Buck", "Chan", "Tirrell"}
Dim intReservations() As Integer = {4, 5, 12, 2, 8}
If your programmer friend had failed to initialize the intReservations array, what would be the default value of intReservations(3)?

A. 0
B. null
C. 12
D. 2


Answer: A

Computer Science & Information Technology

You might also like to view...

An array can store a group of values, but the values must be

a. the same data type b. integers and floating-point numbers c. integers d. constants e. None of these

Computer Science & Information Technology

Some programmers prefer not to use protected access because they believe it breaks the encapsulation of the base class. Discuss the relative merits of using protected access vs. using private access in base classes.

What will be an ideal response?

Computer Science & Information Technology

Which of the following layouts does not contain a palette for inserting objects?

A) Comparison B) Title C) Content with Caption D) Title and Content

Computer Science & Information Technology

Making changes to a document is also known as ____.

A. processing B. editing C. fixing D. changing

Computer Science & Information Technology