Computer programming 2 module 8

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

It is an object which contains elements

of a similar data type.

Java array or Array

2
New cards

What is array in Java based on?

Index-based

3
New cards

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

Array

4
New cards

Array has a ______ size of elements.

Fixed

5
New cards

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

Index

6
New cards

How do you declare an array variable?

By inserting a pair of square brackets after the type.

7
New cards

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

New

8
New cards

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

Subscript

9
New cards

An array’s elements are numbered beginning with ______.

Zero(0)

10
New cards

Array names actually represent computer memory addresses called __________.

References

11
New cards

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

Memory address

12
New cards

Boolean array elements are automatically assigned the value ______.

False

13
New cards

What happens when you define an array using new.

The array name takes on a memory address value.

14
New cards

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

Commas