Corrrect!!
What is the value of "i" after the following code executes.
int[] integers = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int i =1;
for( int c : integers ) {
i *= c;
} - ANSWER0
What is the result of "\n" in a print statement? - ANSWERInsert a new line
Methods may be declared with multiple parameters. What must match? - ANSWERThe number of
parameters must be equal and of the same type as the arguments and types in the calling statement.
Which is a javadoc comment? - ANSWER/**
This is a multiple line javadoc comment
This is a multiple line javadoc comment
*/
What will be printed to the command line if the following code is executed with the following
command marked in yellow?
, public class HelloWorld {
public static void main( String[] args ) {
System.out.println( args[1] + " " + arg[3] );
}
}
# java HelloWorld Hello ISM FAU Rocks! - ANSWERISM Rocks!
Which loop will execute 1 time? - ANSWERint i = 5;
while( i < 5 ) {
System.out.println("Hello " + i );
i++;
}
What is the result of the following statement?
int y = 100*(10+5+5)/10; - ANSWER200
Fill in the blank.
public _____ void main(String[] argv ) – ANSWERstatic
Which loop will execute 5 times - ANSWERint i = 0;