Flashcards
Computer Science Flash Cards IS
Cards in this deck (9)
- 1What is an array?An array is a data structure consisting of a collection of elements
- 2What is an element?an array data structure, or simply an array, is a data structure consisting of a collection of elements
- 3How is the data storedTo store a data item in an array, the element that the data will be stored in needs to be referenced.
- 4Why are arrays usedA variable holds a single item of data. There may be a situation where lots of variables are needed to hold similar and related data.
- 5Naming arraysArrays are named like variables. The number in brackets determines how many data items the array can hold.
- 6StackA stack is a basic data structure that can be logically thought as linear structure represented by a real physical stack or pile
- 7Search in an arrayYou can search for an element in an array by using the statement combined with the command word in.
- 8PositionYou can find the position of an element in an array by using the index command word and enclosing the element you are looking for in brackets
- 9Add an elementYou can add an element to an array in Python with the command word append, followed by the value you want to add in brackets.
Information
- Description
- Flashcards on Computer Science Flash Cards IS, created by callum alwa` on 08/12/2020.
- Created by
- callum alwa`
- Views
- 0
- Rating