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 23 people
... ago
5.0(1)
note Note
studied byStudied by 73 people
... ago
5.0(2)
note Note
studied byStudied by 7454 people
... ago
4.6(5)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 125764 people
... ago
4.8(564)

Explore top flashcards

flashcards Flashcard (28)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (56)
studied byStudied by 11 people
... ago
5.0(1)
flashcards Flashcard (47)
studied byStudied by 23 people
... ago
5.0(2)
flashcards Flashcard (58)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (246)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (38)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (84)
studied byStudied by 34 people
... ago
5.0(2)
robot