computer science

Question 1 (1 point)

 

The following statement will declare an array that has ____ elements. Dim lakes(5) As Integer

Question 1 options:

[removed] four
[removed] five
[removed] six
[removed] seven

Question 2 (1 point)

 

You do not need to specify the highest array subscript in the ____ statement.

Question 2 options:

[removed] Do…Loop
[removed] For…Next
[removed] For Each…Next
[removed] While…Wend

 

Question 3 (1 point)

 

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

Question 3 options:

[removed] [ ]
[removed] { }
[removed] ( )
[removed] ‘ ‘

 

Question 4 (1 point)

 

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’?

Question 4 options:

[removed] 1
[removed] 2
[removed] 3
[removed] 4

Question 5 (1 point)

 

Assigning initial values to an array is often referred to as ____.

Question 5 options:

[removed] sorting the array
[removed] populating the array
[removed] assigning the array
[removed] declaring the array

Question 6 (1 point)

 

Using an invalid subscript will result in a ____.

Question 6 options:

[removed] run time error
[removed] breakpoint
[removed] logic error
[removed] design-time error

 

Question 7 (1 point)

 

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

Question 7 options:

[removed] strCities(0) = Madrid
[removed] strCities(0) = ‘Madrid’
[removed] strCities(1) = Madrid
[removed] strCities(0) = {Madrid}

Question 8 (1 point)

 

Consider the following array: Dim numbers(,) As Integer = {1,2},{3,4},{4,5},{6,7},{8,9} What value will the following expression yield for total? total = numbers(1,1) + numbers(2,0)

Question 8 options:

[removed] 4
[removed] 6
[removed] 8
[removed] 12

Question 9 (1 point)

 

Based on the code below, intScores(1, 1) is initialized to ____. Dim intScores(,) As Integer = {75, 90}, {9, 25}, {23, 56}, {6, 12}

Question 9 options:

[removed] 9
[removed] 25
[removed] 75
[removed] 90

Question 10 (1 point)

 

Which of the following correctly shows the syntax for storing data in a one-dimensional array?

Question 10 options:

[removed] arrayname = value
[removed] arrayname(subscript) = value
[removed] arrayname = {value}
[removed] arrayname(subscript) = {value}
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
Need help?
Hello,
for enquiries or orders talk to James here