CoboCards App FAQ & Wünsche Feedback
Sprache: Deutsch Sprache
Kostenlos registrieren  Login

Hol' Dir diese Lernkarten, lerne & bestehe Prüfungen. Kostenlos! Auch auf iPhone/Android!

E-Mail eingeben: und Kartensatz kostenlos importieren.  
Und Los!
Alle Oberthemen / Informatik / Java

Java Final 2 (14 Karten)

Sag Danke
1
Kartenlink
0
If list1 and list2 are both created as array data types, what will be the result of the following assignment statement? list2 = list1

A) The values in the array list1 will be copied to the array list2.
B) The values in the array list2 will be copied to the array list1.
C) The reference to array list2 will be copied to the array list1.
D) The reference to array list1 will be copied to the array list2.
D) The reference to array list1 will be copied to the array list2
2
Kartenlink
0
Once the array is created, its size __.

A) Can be changed by changing the array.length property.
B) Cannot be changed.
C) Can be increased but not decreased.
D) Can be decreased but not increased.
B) Cannot be changed.
3
Kartenlink
0
In the two-dimensional array, table1, to reference an element at row 3 column 4, use:

A) table1[3,4]
B) table1[3][4]
C) table1(3,4)
D) table1(3)(4)
B) table1[3][4]
4
Kartenlink
0
variablename and VariableName would mean refer to the same variable in Java.

A) True
B) False
B) False
5
Kartenlink
0
In Java, the array index must be a double data type.

A) True
B) False
B) False
6
Kartenlink
0
The Java runtime system tracks memory allocation and automatically reclaims space that is no longer useful through a process known as garbage collection.

A) True
B) False
A) True
7
Kartenlink
0
Which of the following statements are true?

A) When creating a numeric array, the default value is zero.
B) When creating a char array, the default value is '\u0000'.
C) When creating a boolean array, the default value is false.
D) All of the above statements are true.
D) All of the above statements are true.
8
Kartenlink
0
For a parameter of array type values, changing the value of the local parameter inside the method does affect the value of the original array that was passed as the argument.

A) True
B) False
A) True
9
Kartenlink
0
Each element of an array is of the same data type.

A) True
B) False
A) True
10
Kartenlink
0
When declaring a variable, it is identified as an array by the use of:

[ ] brackets to declare and the new statement to create an array.
11
Kartenlink
0
Which of the following is invalid syntax for declaring, creating and initializing an array?

A) double [ ] myList = {1.9, 2.9, 3.4, 3.5};
B) double myList [ ] = {1.9, 2.9, 3.4, 3.5};
C) [ ]  double myList = {1.9, 2.9, 3.4, 3.5};
D) None of the above statements is invalid.
C) [ ]  double myList = {1.9, 2.9, 3.4, 3.5};
12
Kartenlink
0
When passing a parameter to a method, array data types are passed by ___.
reference
13
Kartenlink
0
The arraycopy method performs what action?  Will it create a new array?
It copies the contents of a source array to a target array; NO.
14
Kartenlink
0
If and array consists of 20 elements, the lowest array index will be 0 and the highest will be 20.

A) True
B) False
B) False
Kartensatzinfo:
Autor: somgaet
Oberthema: Informatik
Thema: Java
Veröffentlicht: 26.04.2010
 
Schlagwörter Karten:
Alle Karten (14)
keine Schlagwörter
Missbrauch melden

Abbrechen
E-Mail

Passwort

Login    

Passwort vergessen?
Deutsch  English