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

Explore top notes

note Note
studied byStudied by 7 people
453 days ago
5.0(1)
note Note
studied byStudied by 23 people
729 days ago
5.0(1)
note Note
studied byStudied by 6 people
707 days ago
5.0(3)
note Note
studied byStudied by 7 people
754 days ago
5.0(1)
note Note
studied byStudied by 6 people
848 days ago
5.0(1)
note Note
studied byStudied by 28 people
309 days ago
5.0(1)
note Note
studied byStudied by 523 people
659 days ago
5.0(4)
note Note
studied byStudied by 43192 people
104 days ago
4.8(313)

Explore top flashcards

flashcards Flashcard (100)
studied byStudied by 45 people
121 days ago
5.0(3)
flashcards Flashcard (39)
studied byStudied by 2 people
100 days ago
5.0(1)
flashcards Flashcard (67)
studied byStudied by 18 people
344 days ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 20 people
404 days ago
5.0(1)
flashcards Flashcard (65)
studied byStudied by 11 people
450 days ago
5.0(1)
flashcards Flashcard (113)
studied byStudied by 1 person
629 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 13 people
136 days ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 11 people
54 minutes ago
5.0(1)
robot