Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Question 1. Where does the element referred to with the number zero exist in an array?

One element before the first

The first element

It is determined by the declaration of the array.

It would depend on how the array is opened, once declared.

Question 2.Which of the following is false?

All elements in an array have the same subscript.

All elements of the array have the same data type.

All elements in an array have the same name.

The first element of the array has a subscript of zero.

Question 3. Suppose that we declare array foodArray() as having four elements, with corresponding values of "Bread," "Milk," "Banana," and "Sugar." What value will foodArray(2) concatenated with foodArray(0) have?

Milk Sugar

Banana Sugar

Milk Bread

Banana Bread

Question 4. An array can store multiple variables known as _____.

subscripts

a subscripted constant

indices

elements

Question 5. What exception message would be issued by the system if your program attempts to access an array with a subscript value greater than the number of elements declared in the array?

"Array dumped to memory"

"Index was outside the bounds of the array"

"Invalid access: Retry, Cancel, or Abort?"

"Unhandled exception"

Question 6. The easiest way to traverse an array or sequentially access each element in an array is to _____.

do a binary search

sort the array and read it

use a loop statement

use sequential coding

Question 7. _____ can be used when data needs to be stored in a tabular format consisting of multiple rows and columns.

Two-dimensional arrays

Indexed subscripts

Complex subscripts

List indexes

Question 8. What is the upper bound of the array score(), declared in the following line of code?

Dim score() As Integer = {55, 33, 12} (Points : 3)
2

0

11

1

Question 9. The ReDim statement causes an array to lose its current contents unless the word ReDim is followed by which keyword?

Preserve

Keep

Reserve

Conserve

Question 10. Given the Dim statement below, which set of statements will initialize all elements of myArray() to 100?

Dim myArray(100) As Double (Points : 3)
For j = 0 to 100

myArray(j) = 100

Next

For i = 0 To 100

(i) = 100

Next

myArray() is already initialized to 100 by the Dim statement.

myArray = {100}

Question 11. Consider the following Visual Basic statements:

Dim nums(4) As Double

For index As Integer = 0 To 4

nums(index) = 1 + (index * 2)

Next

What values are placed in the array by the above statements? (Show each element of the array and the value for that element.)

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91375253
  • Price:- $15

Guranteed 24 Hours Delivery, In Price:- $15

Have any Question?


Related Questions in Computer Engineering

Fifteen batteries are tested to determine whether the

Fifteen batteries are tested to determine whether the battery life is as long as advertised. Four batteries fail the test. From all fifteen batteries, two are selected at random without replacement. Find the probability ...

Task 1create an array that holds a 20 random integers

Task 1: Create an Array that holds a 20 random integers between 1-50. Create an iterator that will return the memory address and value for each integer present in the Array. Task 2: Update Assignment 1 Task 2. Pass the v ...

Writing a research paperprepare a research paper on

Writing a Research Paper Prepare a research paper on Antisocial Personality Disorder. In this project, you will modify a research paper. You will add and format text and format the document using themes and paragraph for ...

The question is asking how to do it in linuxa scientist ran

The question is asking how to do it in Linux. A scientist ran an experiment that generated data that accumulated in a sequence of files: data1, data2, data3, data4 and data5. He wants to know how many lines of data he ha ...

1 write a critique review of the following paper2 your

1. Write a critique / review of the following paper. 2. Your critique should be as objective as possible: highlight what you consider to be its strongest and weakest aspects. Are themes discernible that would help one to ...

Question suppose you want to achieve a speedup of 90 times

Question : Suppose you want to achieve a speedup of 90 times faster with 100 processors. What percentage of the original computation can be sequential? Assume one byte data value is 1101, 1000(binary). When we decode the ...

Question suppose we perform n makeset operations followed

Question : Suppose we perform n MAKESET operations followed by m > n Find and/or Union operations? What is the worst case total amount of time spent using union by rank with path compression?

Question suppose that a car is moving through a suburban

Question : Suppose that a car is moving through a suburban environment that has a wireless channel with a coherence time of 10 ms and a coherence bandwidth of 600 kHz. The bit rate of the signal being used is 50 kbps. Ch ...

Question you are a software engineer working at a large

Question You are a software engineer working at a large publicly-traded corporation, where a colleague invents a new kind of compiler. Your managers see it as a huge potential cash cow. How would you respond in a way tha ...

Question the discussion board db is part of the core of

Question: The Discussion Board (DB) is part of the core of online learning. Classroom discussion in an online environment requires the active participation of students and the instructor to create robust interaction and ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As