CoboCards App FAQ & Wishes Feedback
Language: English Language
Sign up for free  Login

Get these flashcards, study & pass exams. For free! Even on iPhone/Android!

Enter your e-mail address and import flashcard set for free.  
Go!
All main topics / Informatik / Java

Java Final 2 (14 Cards)

Say thanks
1
Cardlink
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
Cardlink
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
Cardlink
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
Cardlink
0
variablename and VariableName would mean refer to the same variable in Java.

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

A) True
B) False
B) False
6
Cardlink
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
Cardlink
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
Cardlink
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
Cardlink
0
Each element of an array is of the same data type.

A) True
B) False
A) True
10
Cardlink
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
Cardlink
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
Cardlink
0
When passing a parameter to a method, array data types are passed by ___.
reference
13
Cardlink
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
Cardlink
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
Flashcard set info:
Author: somgaet
Main topic: Informatik
Topic: Java
Published: 26.04.2010
 
Card tags:
All cards (14)
no tags
Report abuse

Cancel
Email

Password

Login    

Forgot password?
Deutsch  English