Arrays - Reading Assignment

  1. What do arrays allow us to do?
    Arrays allow us to store multiple values in a single variable.
  2. What index should you use in order to access the first element in an array?
    0
1 Like
  1. Arrays allow us to create a list of data and store it within one variable, as a sequence.
  2. variable[0] is the first element, index [0], and next item is index 1, then 2, etc.
1 Like
  1. to define more than 1 value in a variable
  2. index 0
1 Like
  1. array is basically object that has list of values.
  2. 0
1 Like
  1. What do arrays allow us to do?
    Arrays allow us to store a collection of same type variables.

  2. What index should you use in order to access the first element in an array?
    In order to access the first element in an array you call upon 0. The second element is actually 1 and third is 2, etc. etc.

1 Like
  1. What do arrays allow us to do?
    Allows us to store multiple values in a single variable container.

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

1 Like
  1. The arrays allow us to store multiple values under one single variable.
  2. The first element is in index 0.
1 Like
  1. What do arrays allow us to do?
    It’s an object that you can store multiple values in a single variable.

  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?

Arrays allow you to store multiple integers or strings within the same variable.

  • What index should you use in order to access the first element in an array?
    0
1 Like
  1. What do arrays allow us to do?
    The Array object lets you store multiple values in a single variable.

  2. What index should you use in order to access the first element in an array?
    You should use x[0] for the first element.

1 Like
  • What do arrays allow us to do?

It lets us make a variable with different variables within it

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

NameOfTheVariable[0]

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

It allows us to have a collection of variables of the same type in the same place. We can, for example, perform loops over arrays, going through each of the elements of it.

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

[0]

1 Like
  1. The Array object lets you store multiple values in a single variable. 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. [0];
1 Like
  1. 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. An array is like a collection of variables of the same type.
  2. The first element of an array is indexed with 0.
1 Like
  1. What do arrays allow us to do?
    Arrays are collections of variables of the same type.

  2. What index should you use in order to access the first element in an array?
    Since arrays start at 0, you would use 0 to access the first element.

1 Like
  1. Arrays allow you to store multiple values in a single variable. It stores a fix-size sequential collection of elements of the same type.
  2. the index used to access the first element in an array is 0 because arrays start counting at 0.
1 Like

1.) Arrays let us group together variables of the same type. They are collections of data. The parameters for an array is a list of strings or integers.

2.) The first item in an array numbered as “0”, so if you use “1”, you will be referring to the second item in the array instead of the first.

1 Like

1- Array, allow us to store several value of the same type under one variable
2-0

1 Like

What do arrays allow us to do?
Arrays allow us to store a collection of variables of the same type.

What index should you use in order to access the first element in an array?
The first element in an array is always indexed with 0.

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

Arrays allows us to store multiple values in one single variable. We don’t have to create a variable for all the following animals, we can store them in one variable. cat, dog, mouse, lion

var dif_animals = new array [“cat”, “dog”, “mouse”, “lion” ];

Now all these values is one variable.

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

Computers start counting at 0, therefore to access the first element, which is cat, we will use the number 0 to access it.

dif_animal [0] and that will be the cat.

1 Like