Arrays - Reading Assignment

  1. What do arrays allow us to do?
    Store multiple values in a single variable.

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

2 Likes

Answers:

  1. Arrays allow us to store different element in a single variable.

  2. We can call for the first item using [0] index.

2 Likes
  1. What do arrays allow us to do?
    to store multiple values into one variable

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

array[0]

2 Likes
  1. Arrays allow us to store multiple values in a single variable. They are useful for collecting variables of the same type.
  2. In order to access the first element in an array, you use the 0th index.
1 Like
  1. Arrays allow us to store multiple values in a single variable. Usually a collection of variables of the same type.

  2. In order to access the first element in an array, the 0 index should be used.

1 Like

1:allow us to store many variables of the same kind
2: by typing the name of the array[0] we will get the first element as below

1 Like

Excellent answers @claudiorox keep it this way. :clap:

1 Like
  1. Let’s you store multiple values in a single variable.

  2. [0] would be the first element, [1], the second etc.

2 Likes
  1. Arrays allow us to store multiple values in a single variable, we can think of an array as a collection of data variables of the same type.

  2. The index we should use in order to access the first element in an array is 0 as the counting starts from 0.

2 Likes

what ia array?
array is the same kind of parameter, which is consisted of three element:brace\coma between brace\semicolon. for example: [red,blue];

the first index is 0

2 Likes

1: it allows us to store many values in a single variable
2:Unless specified otherwise the index to acces the first ellement in an array is 0

2 Likes
  1. What do arrays allow us to do?

    The Array parameter is a list of strings or integers. It stores a fixed-sized sequential collection of elements of the same type. An array is used to store a collection of data, but is often more useful to think of an array as a collection of variables of the same type.

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

    By default Arrays are indexed starting at zero

2 Likes
  1. What do arrays allow us to do?
  • Arrays allow us to assign multiple values (of the same type) to one variable.
  1. What index should you use in order to access the first element in an array?
  • arrayname[0]
  • The first element is number 0, second is number 1, third is 2…
2 Likes
  1. What do arrays allow us to do?
    Arrays allow us to assign multiple values to a variable.

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

2 Likes
  1. An array allows us to store multiple values within a single variable.
  2. You should use 0 to access the first element in an array.
2 Likes
  1. An array is used to store a collection of data. The Array object lets you store multiple values in a single variable.

  2. In arrays we use the zero based index.

2 Likes
  • Store multiple variables of the same type, within one variable
  • 0
2 Likes
  • What do arrays allow us to do?
    Store multiple sequences of things, like values

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

2 Likes

Hey @Ipitos, One clarification. We can also store variables of different types in an array.

Happy Learning! :slight_smile:

3 Likes

1. An array is a data structure, which can store a fixed-size collection of elements of the same data type.

2. The first value in an array is stored at index 0 and the index of the last value is the length of the array minus one (since the first index is 0).

2 Likes