Arrays - Reading Assignment

  1. An array lets you store multiple values in a single variable.
  2. The array index starts enumerating entries with a 0 so to get the first entry you would use the number 0.
    i.e: arrayname[0]
1 Like
  1. The Array object lets us store multiple values in a single 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.
1 Like
  1. You can store numerous values in a single variable using the Array object.

  2. The index 0 is used to access the first element in an array.

1 Like
  1. What do arrays allow us to do?
    • Store multiple values in a single variable
      • All values of the same type
  2. What index should you use in order to access the first element in an array?
    • 1st element in an array is index 0
1 Like

Store multiple values in a single variable.

0

2 Likes
  1. arrays allow one to store multiple values in a single variable (i.e. like a list with elements)

  2. indexing into an array starts at 0

1 Like
  1. What do arrays allow us to do?

Arrays are used to store a collection of data.

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

Index Of() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.

1 Like
  1. Array’s let you store multiple values in a single variable
  2. The index of the first element in a array is 0
1 Like
  1. What do arrays allow us to do?
    Arrays let you store multiple values in a single variable.
  2. What index should you use in order to access the first element in an array?
    The first element always has the index 0
1 Like

1- arrays are used to store multiple values/objects in a single variable
2- first element in index is 0

1 Like

1.It allows us to create lists. An array acts like a variable but can contain multiple numbers for example.
2. 0

1 Like
  1. allows us too put several variables together.
    2.arrays start at zero, so use index 0
1 Like
  1. An Array allows us to store collection of data. Alternatively, we can say that Array is a collection of variables.

  2. The first element in Array has index value of 0

1 Like
  1. Arrays let you store multiple values in a single variable.
  2. the first element is at the index 0 and would require X[0]
1 Like

What do arrays allow us to do?

  • Allows us to have a collection of variables (bindings) of the same type.

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

  • Index 0
1 Like

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 and can be used to store a collection of variables of the same type.
2. To specify a single numeric parameter with the array constructor, you specify the initial length of the array starting with [0].

1 Like
  1. Arrays allow us to store multiple values within a single variable.
  2. The index for the first element in an array is [0].
1 Like
  1. They allow us to store multiple values in a single variable.
  2. Zero, [0]
1 Like
  1. Store multiple instances of the same type ina variable
  2. 0
1 Like
  1. arrays allow the application of operations to an entire set of values at once.

  2. [0]

1 Like