If you try to access the array using a negative index value, ____.

A. a compilation error will be generate
B. a runtime error will be generated
C. the indexed location will be used.  The computer will access memory to the left of the array
D. the smallest indexed location will be accessed


Answer: B

Computer Science & Information Technology

You might also like to view...

in the Declarations section of the Code editor and the array is filled with data for the 193 member nations of the UN. What will be displayed in the list box when the following code is executed?

``` Dim query = From country In nations Where country.continent = "Africa" Order By country.population Descending Select country.name lstBox.DataSource = query.ToList lstBox.SelectedIndex = Nothing ``` Suppose a structure and an array are created with the code ``` Structure Nation Dim name As String Dim continent As String Dim population As Double 'in millions Dim area As Double 'in square miles End Structure Dim nations(192) As Nation ``` (A) the names of the countries in Africa in alphabetical order (B) the names of the countries in Africa beginning with the name of the least populous country (C) the names of the countries in Africa beginning with the name of the most populous country (D) the names of the countries in Africa in reverse alphabetical order

Computer Science & Information Technology

The subnet mask 255.255.255.0 is applied to a packet with the following IP addresses. Which subnet is the packet sent to? Show your work.

a. 10.20.35.12 b. 10.20.35.3 c. 10.50.35.6 d. 192.168.12.8

Computer Science & Information Technology

Which of the following does the Internet NOT offer?

A) FTP B) e-mail C) FOP D) World Wide Web

Computer Science & Information Technology

What kind of media is used by 100GBASE-SR10 Ethernet?

a. UTP b. MMF c. STP d. SMF

Computer Science & Information Technology