Arrays - Reading Assignment

Welcome to the discussion about the reading assignment about Arrays - Reading Assignment.

Leave your answers to the questions below in this thread. If you have any questions or you want to discuss something connected to the assignment feel free to do it in this thread as well, but please everything to the topic.

  1. What do arrays allow us to do?
  2. What index should you use in order to access the first element in an array?
39 Likes
  1. Arrays allow us to hold more than one value in a variable.
  2. Arrays start counting at 0 so when you want to call the first value of the array then you use 0 instead of 1. This means that calling the third value is called by using the number 2.
9 Likes
  1. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.

  2. By default array index starts from zero. So first element is in index 0.

7 Likes

1- arrays are used to store more than one values/objects in a variable
2- first element is in index 0

1 Like
  1. What do arrays allow us to do?
  2. Arrays are variables that store multiple values. The first connection I made was a string is an array of letters. Arrays allow the user to store "sequential collection of elements of the same type". So if a string allows you to store a sequential collection of single characters, an array of strings should allow you to store a string at each index.

  3. What index should you use in order to access the first element in an array?
  4. The first element in an array is stored at position 0. The first element in an array called x would be found by writing

    x[0]
    
9 Likes
  1. Store multiple values in a single variable.
  2. 0
3 Likes
  1. store multiple values of the same type in a single variable
  2. First element of an array has index 0
1 Like

1- Arrays allow us to store many values in only one variable, each value can be accessed by an index
2- First index is 0

1 Like

1. Store multiple values in a single variable.

2. 0

1 Like

1- it allows us to store in one single variable, multiples values which have the same type.
2- By default it is 0.

1 Like

What do arrays allow us to do?
- Arrays allow us to have large lists of items or values in on defined variable and access them easily.
What index should you use in order to access the first element in an array?
- Arrays start counting the order from 0 so we would use [0] to get the first element in an array.

1 Like
  1. An array allows us to store a collection of variables of the same type into a single variable.
  2. The first element on an array is indexed with 0 (zero).
1 Like
  1. What do arrays allow us to do?
    Arrays are used to store data into a collection of variables of the same type and can be accessed through the use of zero-based index.
  2. What index should you use in order to access the first element in an array?
    myArray[0] shows the first element because computers count from zero rather than one like humans do.
1 Like
  1. What do arrays allow us to do?
    Arrays allow us to store multiple values of the same type in a single variable.

  2. What index should you use in order to access the first element in an array?
    Arrays are indexed starting at zero.

1 Like

What do arrays allow us to do?
Most important part of the arrays, is to define and determine the scope of values in a collection of data. This gives us control over the variable type, and other properties associated with the said data. On top of these are the benefits of performance and organization of the defined and expected values. It can contain string, number, arrays and objects.

Example: An Enterprise Payroll System can contain Hundreds or thousands of workers with a few hundred relevant data associated with one worker. Namely Pay Information, Daily Attendance, Leaves, Holidays, Allowances, Bonuses, Deduction which happen to be a daily reference… and those data plays a part in the processing of the payslips. Collecting the information individually is a stress in the server and will eventually cause an execution timeout. Gathering all the information in one query to an array will significantly solves a lot of issues in fact most of the hardware issues.

What index should you use in order to access the first element in an array?
0

2 Likes

1. What do arrays allow us to do?
Allows us to store multiple values of one type in a single variable as a collection.

2. What index should you use in order to access the first element in an array?
0.

2 Likes

What do arrays allow us to do?
- Arrays allow us to put many values into a single variable.

What index should you use in order to access the first element in an array?
-Index [0] is the first index in an array. This means that the last element in an array is the length of the array minus one.

A[0], A[1], … A[array.length-1]

1 Like
  1. Array is a collection of variables of the same type. It lets me store multiple values in a single variable.
  2. The number in index should be 0(zero)
1 Like
  1. Arrays allow us to store multiple values (collection) of similar type e.g. string, integer or any other datatype.
  2. First element is stored at index 0.
1 Like

1- Arrays let you store multiple values in a single variable. they store a fixed-size sequential collection of elements of the same type.

2- In arrays we should use 0 index to access the first element.

1 Like