GoConqr has a new look! Let us know what you think.

Flashcards

Arrays - Vocabulary

vgeetha AP Computer Science English 13 cards

Cards in this deck (13)

  1. 1What are arrays?Arrays are data structure to store the data of the same data type
  2. 2element of an arrayindividual units of an array
  3. 3array indexindex number starting from 0 in which order the array elements are arranged consecutively in the memory location
  4. 4name of the arraya reference variable to store the location where the first element of the array is stored.
  5. 5for(int i=0; ifor next loop
    or enhanced for loop
  6. 6for(String s: name) { ---- }for each loop
  7. 7for each loopused to retrieve elements without accessing to individual elements
  8. 8for next loop for arraysused when you need to access a particular element through its index
  9. 9arrayName.lengthgives the total number of elements in an array named arrayName.
  10. 10array can store theprimitive data types
    objects
  11. 11an array can store onlythe same data type
    that means all the elements of an array should be of the same type
  12. 12arrayName[5] refers to the6th element of the array
  13. 13apart from primitive data types arrays can also storeobjects

Information

Description
AP Computer Science (Arrays) Flashcards on Arrays - Vocabulary, created by vgeetha on 27/08/2013.
Created by
vgeetha
Views
111
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?