Shared Flashcard Set

Details

Comp Prog Arrays
words
11
Computer Science
10th Grade
01/15/2013

Additional Computer Science Flashcards

 


 

Cards

Term
The element in the array must be of primitive data type
T or F?
Definition
F
Term
The name length is a method in an array
T or F?
Definition
F
Term
the array index can be of any primitive data type
T or F?
Definition
F
Term
The size of an array is specified when the array is declared
T or F?
Definition
F
Term
The binarySearch in the Arrays class can be applied on any array
T or F?
Definition
F
Term
YOu can use the operator == to check whether two variables refer to the same array
T or F?
Definition
T
Term
list.length does not exist if list is null
T or F?
Definition
T
Term
Correct?
int[] y=new int[5];
float d[]={1,2,3}
int x[]=int [10];
Definition
yes yes no
Term
correct?
int[] x,y; x=y=new int[10];
int i=new int(10);
int a[]={1,2}; int b[]; b=a;
Definition
yes no yes
Term
java statements that would output values within every element in athe array listo on a single line with one blank space btw each value
Definition

for(int i=0; i<list.length; i++)

System.out.print(list[i]+" ");

Term
i+=2 and i=i+2 are the same as
Definition
i++
Supporting users have an ad free experience!