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