1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
liraira [26]
3 years ago
5

Assume that two arrays are parallel. Assume the first array contains a person's id number and the second contains his or her age

.
In which index of the second array would you find the age of the person in the third index of the first array?

1. 2
2. 3
3. 1
4. It cannot be determined from the information given.
Computers and Technology
1 answer:
zysi [14]3 years ago
7 0

Answer:

Option 2 is the right answer for the above question.

Explanation:

A Parallel array is a structure of array used to store the multiple events into one variable. It can store a homogeneous data structure for the various array. when any user wants to create a parallel array then he needs to declare a structure of the array.

Just for example, if a user wants to create two parallel arrays for a person's number and age (as mentioned in the question), then he needs to create a structure of two arrays (one for number and the other for the age). The age array store the employee age at the same index, which index is related to person number array. It is the property of a parallel array.

For example, If a first-person number is '1' and age is '24', then '1' will stored in the first index of the person array and '24' is stored on the first index of age array. It is the property of a parallel array.

Hence the age of the third index of the person array found in the 3 indexes of the age array. Hence 2 option is correct while the other is not because--

  • Option 1 states index '2' which tells the age of the second index of the first array.
  • Option 3 states index '1' which tells the age of the first index of the first array.
  • Option 4 states that the solution is not determined by the question scenario but it can be determined by the help of parallel array property.
You might be interested in
Write a method that takes a Regular Polygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclu
Fantom [35]

Answer:

Answered below

Explanation:

//Program is written in Java programming language

Class RegularPolygon{

int sides = 0;

int length = 0;

}

public void randomize(RegularPolygon polygon){

int randomSides = (int) 10 + (Math.random() * 20);

double randomLength = 5 + (Math.random() * 11);

polygon.sides = randomSides;

polygon.length = randomLength;

}

8 0
3 years ago
Which delivery model is an example of a cloud computing environment that provides users with a web based email service ?
Evgen [1.6K]

Cloud computing, also known as cloud services, cloud concepts or simply the cloud, is a paradigm that allows to offer computer services. through a network, which is usually the Internet.

(data persistence, authentication, messaging, etc.). for example, a Linux system, a web server, and a programming environment such as Perl or Ruby).

Commercial examples are Google App ,Microsoft Azure,

3 0
3 years ago
Read 2 more answers
Consider the following code:
weqwewe [10]

Answer:

252

Explanation:

I tested the code and it outputted 252

hope i helped :D

4 0
3 years ago
In word, the ____ presents the most accurate view of how your document will look when printed, displaying the entire page on scr
makkiz [27]
<span>When using Microsoft Word, the "Print Preview" presents the most accurate view of how the document will look when it is printed. When using "Print Preview" the entire page is displayed on screen, making it easier to see what adjustments should be made to the page layout, such as spacing or text size.</span>
7 0
3 years ago
A flashlight bulb uses 2.4 W of power when the current in the bulb is 0.8 A. What is the voltage difference?
Alinara [238K]

Answer:

3 Volts.

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • A ________ is a system of hardware and software that stores user data in many different geographical locations and makes that da
    14·1 answer
  • Which loan type requires you to make loan payments while you’re attending school?
    9·1 answer
  • An investigator obtains consent and HIPAA authorization from subjects to review their medical records and HIV status. He plans t
    8·1 answer
  • If anybody knows what does this mean I will answer any questions for you and plz answer this right plz what does that envelope w
    5·2 answers
  • In Windows Vista, the Run command can be found in which application?
    6·1 answer
  • Kelvin owns a small trading firm. Recently, he suspected that some of his employees were using fraudulent activities for their p
    5·2 answers
  • A user contacted the help desk to report that the laser printer in his department is wrinkling the paper when printed. The user
    5·1 answer
  • Select the correct answer.
    15·1 answer
  • 4.7 Code Practice: Question 2
    7·1 answer
  • A student can improve performance by decreasing
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!