No student devices needed. Know more
33 questions
If I have a 2 dimensional array that is 4 by 3, how many values can I fit inside of it?
12
7
4
24
Do you agree with the statement that multidimensional arrays can be defined as array of arrays.
yes
no
If I have a 2 dimensional array that is 3 by 3, how many values can I fit inside of it?
9
6
3
12
What does immutable mean?
unchanging over time or unable to be changed
Low volume
high volume
can change
What will be the output to the console of the code below?
int my3DArray[][][]= {{{1,2,3,},{4,5,6}},{{7,8,9},{10,11,12}}};
System.out.println(my3DArray.length);
2
1
3
4
What will be the output to the console of the code below?
int my3DArray[][][]= {{{1,2,3,},{4,5,6}},{{7,8,9},{10,11,12}}};
System.out.println(my3DArray[0][0][0]);
1
4
7
10
What will be the output to the console of the code below?
int my3DArray[][][]= {{{1,2,3,},{4,5,6}},{{7,8,9},{10,11,12}}};
System.out.println(my3DArray[0][1][0]);
4
1
10
2
What will be the output to the console of the code below?
int my3DArray[][][]= {{{1,2,3,},{4,5,6}},{{7,8,9},{10,11,12}}};
System.out.println(my3DArray[1][1][1]);
11
2
5
8
What will be the output to the console of the code below?
int my2DArray[][]= {{1,2,3,},{4,5,6},{7,8,9}};
System.out.println(my2DArray[2][2]);
9
8
4
3
What will be the output to the console of the code below?
int my2DArray[][]= {{1,2,3},{4,5,6},{7,8,9}};
System.out.println(my2DArray.length);
3
2
4
4
What will be the output to the console of the code below?
int myArray[]= {1,2,3,4,5,6,7,8,9};
System.out.println(myArray[0]);
1
2
0
3
Which of the following statements correctly declares a two-dimensional integer array?
int Matrix[ ] = new int[5,4];
int Matrix[ ]; Matrix = new int[5,4];
int Matrix[ ][ ] = new int[5][4];
int Matrix[ ][ ] = int[5][4];
What will be the output to the console of the code below?
int my2DArray[][]= {{1,2,3,},{4,5,6},{7,8,9}};
System.out.println(my2DArray[1][2]);
6
5
7
8
What will be the output to the console of the code below?
int my2DArray[][]= {{1,2,3,},{4,5,6},{7,8,9}};
System.out.println(my2DArray[2][2]);
6
9
5
8
What will be the output to the console of the code below?
int myArray[]= {1,2,3,4,5,6,7,8,9};
System.out.println(myArray[4]);
1
2
5
3
Which word below complete the quote " Watch your actions, for they become ______ "
actions
habits
words
character
destiny
Which identifier is not a legal name in java?
I_love_Java
$unday
new-york
Java2
Which Scanner class method would you use to read a string as an input?
nextString
nextLine
readString
getLine
What will be the output to the console for the code below?
System.out.println(true && false);
true
false
What will be the output to the console for the code below?
System.out.println(true || false);
true
false
Which identifier is not a legal name in java?
_West
$outh
$outh_west
#North
Which word below complete the quote "Watch your _________ , for they become words."
thoughts
words
actions
habits
character
Which of the following is not a Java keyword?
Integer
static
public
void
Choose the appropriate data type for this value: 96.8
Float
Int
Long
Byte
Base on the code block below, what will print to the console?
String names[]={"Anthony", "Leslie","Malazzia","Veronica"};
System.out.print(names[1]);
Anthony
Leslie
Malazzia
Veronica
Base on the code block below, what will print to the console?
String names[]={"Anthony", "Leslie","Malazzia","Veronica"};
System.out.print(names[2]);
Anthony
Leslie
Malazzia
Veronica
Which of the following is a Java keyword?
Integer
Double
static
Random
These are words that have a special meaning in the programming language.
punctuation
programmer-defined names
keywords
operators
These are the rules that must be followed when writing a program.
syntax
punctuation
keywords
operators
JVM stands for ______________.
Java Variable Machine
Java Variable Method
Java Virtual Method
Java Virtual Machine
What is the name of the Java mascot
Java Dude
Alfonso
Duke
Mickey
Who is known as the creator of the Java language
Javannie Williams
Bill Gate
Steve Job
James Gosling
What is another term for when you call a method by it's name?
invoke
summon
beckon
utilize
Explore all questions with a free account