Exam 9: Arrays

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Write the statement to declare a procedure-level two-dimensional array named dblRates using the following table of data: Write the statement to declare a procedure-level two-dimensional array named dblRates using the following table of data:

(Essay)
4.8/5
(41)

Write the statement to declare a twelve-row,two-column procedure-level array named strLocations,initializing each element to the keyword Nothing.

(Essay)
4.9/5
(23)

An array called state()is loaded as follows: Dim state()As String = {"Ohio","Michigan","California","Arizona"} What is the value of the subscript used to reference "Arizona"?

(Multiple Choice)
4.7/5
(33)

When a run time error occurs,the computer displays an error message and the application ends abruptly.

(True/False)
4.9/5
(35)

Daily "Chef's Specials" are stored using two one-dimensional parallel arrays.The days of the week are stored in the strDays array,with Sunday as the first element.The daily special for each day is stored in a parallel array named strSpecial.Which of the following statements assigns Friday's special,which is rigatoni,to the appropriate element?

(Multiple Choice)
4.7/5
(28)

The statement ____ assigns the string "Madrid" to the first element in the strCities array.

(Multiple Choice)
4.9/5
(40)

Two or more arrays whose elements are related by their positions in the arrays are referred to as ____ arrays.

(Multiple Choice)
4.8/5
(33)

An advantage of using the For Each…Next statement to process an array is that your code does not need to keep track of the array subscripts or even know the number of array elements.

(True/False)
4.9/5
(33)

The statement ____ assigns the string "Paris" to the element located in the first row,second column in the strCities array.

(Multiple Choice)
4.9/5
(36)

A simple variable is unrelated to any other variable in memory.

(True/False)
4.8/5
(29)

Using an invalid subscript will result in a ____.

(Multiple Choice)
4.9/5
(38)

Write the statement to declare a five-element procedure-level array named decGPA,and initialize the array with the following values: 2.58,3.85,3.6,1.45,2.75.Then write a statement to assign the number 2.55 to the last element in the array.

(Essay)
4.8/5
(34)

The data used to initialize the elements of an array is enclosed in ____.

(Multiple Choice)
4.8/5
(34)

Consider the following array: Consider the following array:   What value will the following expression yield for total?  What value will the following expression yield for total? Consider the following array:   What value will the following expression yield for total?

(Multiple Choice)
4.8/5
(21)

Before you can use an array,you first must declare it.

(True/False)
4.8/5
(32)

A two-dimensional array resembles a table in that the variables (elements)are in rows and columns.

(True/False)
4.8/5
(30)

You have decided the Daily "Chef's Specials" need to be stored in a two-dimensional array rather than two parallel one-dimensional arrays.Which of the following statements will declare the array as a procedure-level array named strDailySpecial? The number of rows is based on the number of days in the week,and Sunday remains the first element for the days of the week.

(Multiple Choice)
4.7/5
(33)

The syntax ____ assigns either the value entered in the txtSales control (converted to Decimal)or the number 0 to the third element in the decSales array. The syntax ____ assigns either the value entered in the txtSales control (converted to Decimal)or the number 0 to the third element in the decSales array.

(Not Answered)
This question doesn't have any answer yet
Ask our community

If a one-dimensional array contains five elements,its highest subscript is ____.

(Multiple Choice)
4.7/5
(38)

Based on the code below,intScores(3,0)is initialized to ____. Based on the code below,intScores(3,0)is initialized to ____.

(Multiple Choice)
4.8/5
(38)
Showing 21 - 40 of 57
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)