IT 114: Introduction to Java
Class 12 Ungraded Quiz
-
What is the data type of the parameter in the main
method?
-
What is the return type of the main method?
-
What is the return type of a method that does not return a value?
-
What expression contains the value of the first command line argument?
-
What part of the method header specifies the type of value a method
will return?
-
What is the name of the data type whose values can only be true or false?
-
What do you call the boolean operators that compare two values?
-
How many code blocks are contained in an simple
if
statement?
-
Is there any limit to the number of code blocks you can have in an
if
/else if
statement?
-
Does an
if
/else if
statement have to have
an else
clause?