Computer programming 2 module 8

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

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
robot