Preview

CHAPTER07

Good Essays
Open Document
Open Document
5365 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
CHAPTER07
Chapter 7 Arrays
Section 7.1 Creating and Using Arrays
1.

After the following Dim statement is executed, how many elements will the array myVar have? Dim myVar(7) As Double

(A)
(B)
(C)
(D)
2.

0
1
8
9
C

In the line of code
Dim scores() As Integer = {55, 33, 12}

the upper bound of the array scores is which of the following?
(A)
(B)
(C)
(D)
3.

2
1
11
0
A

Each individual variable in the list student(0), student(1), student(2)

is known as a(n)
(A)
(B)
(C)
(D)
4.

subscript. dimension. element. type. C

In the statement
Dim scores(30) As Double

the number 30 designates which of the following?
(A)
(B)
(C)
(D)

the highest value of the subscripts of the elements for the array scores the maximum value that can be assigned to any element in the array scores the data type for the array scores the value initially assigned to each element in the array scores
A

5.

Which statement is true regarding the following Dim statement?
Dim states(49) As String, populations(49) As Double

(A)
(B)
(C)
(D)
6.

It is invalid since more than one array is dimensioned by a single Dim statement.
It is invalid since the two arrays must have the same data type.
The subscripts of states range from 1 to 49.
The subscripts of populations range from 0 To 49.
D

The Count method returns what information about an array?
(A) the highest number that can be used as a subscript for the array
(B) the largest value that can be assigned to an array element
(C) the number of elements in the array
(D)tThe highest dimension of the array
C

7.

In the line of code
For index As Integer = 0 to (score.Count - 1)

the Count method is used to carry out which of the following tasks?
(A)
(B)
(C)
(D)
8.

The ReDim statement causes an array to lose its current contents unless the word ReDim is followed by the keyword
(A)
(B)
(C)
(D)

9.

determine the largest value for each of the elements determine the largest subscript in the array determine the smallest value for each of the elements declare a new array with

You May Also Find These Documents Helpful

  • Good Essays

    Array Structure Paper

    • 833 Words
    • 4 Pages

    Once again Berry’s Bug Blasters are requesting an update to the previous program that was designed to help them to better serve their customers. The company has requested a way to display the name and phone number of their clients so that they can keep a record of what clients have called. The best way in the opinion to accomplish this is to build an array into the program. This will allow those in charge of the company record to record who has called and then to display the names of the clients and their number in a chart so that it can be recalled at a later date as needed.…

    • 833 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 7

    • 269 Words
    • 2 Pages

    Use Goal Seek to achieve a $0 balance by changing the ticket price per person.…

    • 269 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    chapter01

    • 7053 Words
    • 24 Pages

    In PKI environments, entities called registration authorities and certificate authorities require proof of identity from individuals requesting a certificate, which will then be validated.…

    • 7053 Words
    • 24 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 7

    • 594 Words
    • 2 Pages

    In glycolysis, glucose (sugar) is "burned" in the presence of oxygen to produce energy in the form of ATP. Carbon dioxide and water are they by-products.…

    • 594 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Chapter 2

    • 968 Words
    • 4 Pages

    Wegener and his associates found that the fit of the continents, fossil evidence, paleoclimatic evidence, and similarities in rock type and structural features all seemed to bridge together the now-separated continental landmasses.…

    • 968 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    Chapter 6-7

    • 1430 Words
    • 5 Pages

    In species without parental care, females produce large, nutrient rich gametes. Males produce small gametes and supply only genes.…

    • 1430 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Chapter 2

    • 514 Words
    • 2 Pages

    I would recommend training and regulations in using the system. I would also address the importance of accurate information reported. The system is used to compile reports that are required by the federal government under various grant programs; therefore, every single employee needs to remember that this is a non-profit organization and in order to operate successfully, we need the funding and resources available to accomplish our mission and goals. I would address and reinforce administrators that their major responsibility is to maintain and monitor the accuracy of data entries. Managers typically are interested in structuring an organizational architecture that will work well and does not depend on specific people filling particular jobs. Individuals come and go and the manager wants an organization that will work well as these changes occur (p. 34). With this being…

    • 514 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Chapter 2

    • 404 Words
    • 2 Pages

    The new millennium begins with Wild Castle continuing to offer guests the latest in family fun attractions like the Wave Pool, the sight and sound re-vamp on the Gyro sphere, the up & down thrills of the spring and a variety of live shows are performed on the front lawn stage. The Wild Castle Passport program, offering an individual guest multiple visits, is introduced and is very well received.…

    • 404 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 7

    • 430 Words
    • 2 Pages

    - Medicare is Australia's universal health insurance scheme. Medicare gives all Australians, permanent residents and people from countries access to health care that is subsidised by the government. It aims to improve the access to health care for all Australians and to provide access to adequate healthcare at little or no cost to all Australians in the need of treatment, regardless of age or income.…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 2

    • 584 Words
    • 3 Pages

    13. Which of the following statements does not apply to a weak approach to sustainable tourism?…

    • 584 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    chapter13

    • 15489 Words
    • 90 Pages

    East African Pastoralists Herding large and small livestock has long been a way of life in drier…

    • 15489 Words
    • 90 Pages
    Powerful Essays
  • Powerful Essays

    Chapter 2

    • 1207 Words
    • 5 Pages

    • Describe psychoanalytic, cognitive, behavioral and social learning, and ecological theories as applied to lifespan development.…

    • 1207 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Chapter 04

    • 16473 Words
    • 155 Pages

    1. Unit based costing first assigns overhead costs to departmental pools and then assigns these costs to products using predetermined overhead rates.…

    • 16473 Words
    • 155 Pages
    Good Essays
  • Powerful Essays

    The Grizzly Bear Lodge

    • 4217 Words
    • 17 Pages

    Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.…

    • 4217 Words
    • 17 Pages
    Powerful Essays
  • Powerful Essays

    Chapter 02

    • 1790 Words
    • 7 Pages

    Fiscal policies refer to government efforts to influence the economy through taxation without representation and spending decisions that are designed to encourage growth. Monetary policies refer to actions that shape the economy by influencing interest rates and the supply of money. Politics plays a role by making taxes higher and by influencing interest rates.…

    • 1790 Words
    • 7 Pages
    Powerful Essays