CSIS 212 Quiz 2 - Question and
Answers
• Question 1
1 out of 1 points
You can declare new classes as needed; this is one reason Java is known as a(n)
________ language.
Selected Answer: extensible
• Question 2
1 out of 1 points
The format specifier %.2f specifies that two digits of precision should be output
________ in the floating-point number.
Selected Answer: to the right of the decimal point
• Question 3
1 out of 1 points
A class that creates an object of another class, then calls the object’s methods, is
called a(n) ________ class.
Selected Answer: driver.
• Question 4
1 out of 1 points
Which of the following statements is false?
Selected Answer: Variables of type boolean are initialized to true.
• Question 5
1 out of 1 points
Which of the following statements is false?
Selected Answer: Classes in the same package are implicitly imported into main.
• Question 6
1 out of 1 points
Which of the following statements is true?
Selected Variables or methods declared with access modifier private are
Answer:
accessible only to methods of the class in which they’re declared.
• Question 7
1 out of 1 points
Which of the following statements is false?
Answers
• Question 1
1 out of 1 points
You can declare new classes as needed; this is one reason Java is known as a(n)
________ language.
Selected Answer: extensible
• Question 2
1 out of 1 points
The format specifier %.2f specifies that two digits of precision should be output
________ in the floating-point number.
Selected Answer: to the right of the decimal point
• Question 3
1 out of 1 points
A class that creates an object of another class, then calls the object’s methods, is
called a(n) ________ class.
Selected Answer: driver.
• Question 4
1 out of 1 points
Which of the following statements is false?
Selected Answer: Variables of type boolean are initialized to true.
• Question 5
1 out of 1 points
Which of the following statements is false?
Selected Answer: Classes in the same package are implicitly imported into main.
• Question 6
1 out of 1 points
Which of the following statements is true?
Selected Variables or methods declared with access modifier private are
Answer:
accessible only to methods of the class in which they’re declared.
• Question 7
1 out of 1 points
Which of the following statements is false?