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
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard67 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard189 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard129 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard48 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard20 terms
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard42 terms
studied byStudied by 5 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard60 terms
studied byStudied by 3136 people
Updated ... ago
4.5 Stars(14)