Back to marketplace

U3: Arrays

No description yet. This curated deck is ready for daily study.

Total cards: 17•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (17)

#1
Front (Question)

Array: Cells

Back (Answer)

• Has index starting from 0 and increment by 1 • Index is reference to location of item

#2
Front (Question)

Array: Storing Data

Back (Answer)

• Can only store data all of same type • Ex: Integers, Strings

#3
Front (Question)

Array: Names

Back (Answer)

• Must be done same way as variables • Camel notation if name has +2 words • Ex: studentMarks, cardValues

#4
Front (Question)

Array: Size

Back (Answer)

Programmer should know and state (vertical) size of array before using

#5
Front (Question)

Declaring Arrays

Back (Answer)

• Declare name, size and type of data stored • Ex: int [ ] exampleName = new int [6]; for 0 to 5

#6
Front (Question)

Initializing Arrays

Back (Answer)

int [ ] values = new int [2]; values [0] = 3; values [1] = 71;

#7
Front (Question)

Declaring and Initializing Arrays at Same Time

Back (Answer)

Double [ ] avg = {34.7, 54.3, 8.9}

#8
Front (Question)

Storing Inputs In Array

Back (Answer)

• int [ ] numbers = new int [1]; • numbers[0] = keyedInput.nextInt();

#9
Front (Question)

Operations on Array Number Values

Back (Answer)

Possible

#10
Front (Question)

Outputting Array Values

Back (Answer)

• Can only output one value at time • Ex: System.out.println(values[0]); System.out.println(values[1]);

#11
Front (Question)

Element

Back (Answer)

Actual data stored in array cell

#12
Front (Question)

Index

Back (Answer)

Location/index value where element located

#13
Front (Question)

Bounds

Back (Answer)

Highest and lowest indexes (0 to [size - 1])

#14
Front (Question)

i++ and i–

Back (Answer)

• i++: i = i + 1 • i–: i = i - 1

#15
Front (Question)

Finding Odd and Even Values

Back (Answer)

• Odd: variable % 2 = 1 • Even: variable % 2 = 0

#16
Front (Question)

Creating New List Based From Old List

Back (Answer)

• int[ ] List = new int[5]; • int[ ] List2 = List;

#17
Front (Question)

Number of things in an array

Back (Answer)

variable.length