Computer programming 2 module 8

studied byStudied by 1 person
0.0(0)
Get a hint
Hint

It is an object which contains elements

of a similar data type.

1 / 13

14 Terms

1

It is an object which contains elements

of a similar data type.

Java array or Array

New cards
2

What is array in Java based on?

Index-based

New cards
3

In Java, _______ is an object of a dynamically generated class.

Array

New cards
4

Array has a ______ size of elements.

Fixed

New cards
5

In array, we can get any data located at an _______ position.

Index

New cards
6

How do you declare an array variable?

By inserting a pair of square brackets after the type.

New cards
7

What keyword do you use to reserve memory locations for the array elements?

New

New cards
8

It is an integer contained within the square brackets that indicates one of an array’s variables or elements.

Subscript

New cards
9

An array’s elements are numbered beginning with ______.

Zero(0)

New cards
10

Array names actually represent computer memory addresses called __________.

References

New cards
11

A variable with a reference type, such as an array, holds a _________ where a value is stored.

Memory address

New cards
12

Boolean array elements are automatically assigned the value ______.

False

New cards
13

What happens when you define an array using new.

The array name takes on a memory address value.

New cards
14

To initialize an array, you can use a list of values that are separated by _______ and enclosed within curly brackets.

Commas

New cards

Explore top notes

note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 245 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (86)
studied byStudied by 20 people
... ago
5.0(1)
flashcards Flashcard (102)
studied byStudied by 15 people
... ago
5.0(1)
flashcards Flashcard (59)
studied byStudied by 28 people
... ago
5.0(4)
flashcards Flashcard (53)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (179)
studied byStudied by 32 people
... ago
5.0(1)
flashcards Flashcard (82)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 11 people
... ago
5.0(1)
robot