Arrays - Reading Assignment

1. What do arrays allow us to do?

Arrays allow us to attach multiple values within one variable. So that way you could call the same variable under slightly differing (but likely related) use cases.

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

0

1 Like

What do arrays allow us to do?

  • it allows you to list items (a list of car names, for example) and storing items in single variables

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

  • index of 0 indicates the first item in a array.
1 Like
  1. What do arrays allow us to do?
    Allows us to store a list of similar data types (Strings or numbers)
  2. What index should you use in order to access the first element in an array?
    [0] would access the first element in an array
1 Like
  1. What do arrays allow us to do?
    Arrays allow us to create lists that we can refer to through out the code.
  2. What index should you use in order to access the first element in an array?
    We have to use the index 0 to call the first item on the list.
1 Like
  1. Arrays allow us to store multiple values in a variable .
  2. The first index starts at zero in an array .
1 Like

Answers

  1. An array can hold multiple values in one variable.
  2. When trying to access the first element in an array it should be 0.
1 Like
  • What do arrays allow us to do?

Let us store multiple values of this same type in single variable.

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

First index is 0

2 Likes

What do arrays allow us to do?

  • The array object lets you store multiple values in a single variable.

  • It stores a fixed-size sequential collection of elements of the same type.

  • Also 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.

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

  • [0] to access the first element in an array.
2 Likes
  1. It stores multiple objects (text or numbers) as a single variable

  2. ArrayName[0]

2 Likes

1.What do arrays allow us to do?
The Array object lets you store multiple values in a single variable
An array is used to store a collection of data variables of the same type.
2. What index should you use in order to access the first element in an array?
0, example: array1[0]

2 Likes

What do arrays allow us to do?
Store collections of data
What index should you use in order to access the first element in an array?
0

2 Likes
  1. It allows us to store a collection of elements in a single variable. All elements of an array has a same data type.
  2. 0 (zero) , To access the first element in an array, type name of an array following by [0]
    For example: fruits[0]
2 Likes
  1. Arrays allow us to create an object that contains a collection of values stored under one variable.

  2. The first element in an array is stored in index 0.

2 Likes
  1. arrays allow us to store multiple values in a single variable, and using different indexes to minuplate the array data.

  2. use the ordinal number [0] to access the first element in an array, further we can use the array object shift() however that will remove the first element from the array and returns that element.

2 Likes
  1. What do arrays allow us to do?
    The array allows us to store multiple values in one variable.
  2. What index should you use in order to access the first element in an array?
    You should use the 0.
2 Likes
  1. Arrays allows us to store multiple values in a single variable.
  2. Index always starts from zero. So first element of the array is zero.
1 Like
  1. Array allow us to store multiple values in one variables
  2. Arrays index always start with 0 by default.
1 Like
  1. The Array object lets you store multiple values in a single variable.
  2. index 0
2 Likes

What do matrices allow us to do?
Arrays allow us to store multiple values โ€‹โ€‹of the same type in one variable,
What index should you use to access the first element of an array?
In the matrices the index 0 must be used.

2 Likes

1. What do arrays allow us to do?
It allows you to store multiple values in a single variable. It stores a fixed sized sequential elements of the same type.

2. What index should you use in order to access the first element in an array?
The first element would be inside index: 0 (zero)

3 Likes