Question 1
1 out of 1 points
You can declare new classes as needed; this is one reason Java is known as a(n)
________
... [Show More] 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
This study source was downloaded by 100000839306532 from CourseHero.com on 07-11-2022 17:22:04 GMT -05:00
https://www.coursehero.com/file/54334486/CSIS-212-Quiz-2docx/
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
Answer:
Variables or methods declared with access modifier private are
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?
Selected
Answer:
To call a method of an object, follow the object name with a comma, the
method name and a set of parentheses containing the method’s
arguments.
Question 8
1 out of 1 points
Each class you create becomes a new ________ that can be used to declare
variables and create objects.
Selected
Answer:
type.
Question 9
1 out of 1 points
Which of the following statements is false?
Selected
Answer:
Classes often provide public methods to allow the class’s clients to set or
get private instance variables; the names of these methods must begin
with set or get.
Question 10
1 out of 1 points
Types in Java are divided into two categories. The primitive types are boolean, byte,
char, short, int, long, float and double. All other types are ________ types.
Selected
Answer:
reference
Question 11
1 out of 1 points
Which of the following statements is false?
Selected
Answer:
Instance variables can be declared anywhere inside a class.
Question 12
1 out of 1 points
This study source was downloaded by 100000839306532 from CourseHero.com on 07-11-2022 17:22:04 GMT -05:00
https://www.coursehero.com/file/54334486/CSIS-212-Quiz-2docx/
Which of the following statements is false?
Selected
Answer:
Keyword null indicates that a method will perform a task but will not
return any information.
Question 13
1 out of 1 points
Java requires a ________ call for every object that’s created.
Selected
Answer:
constructor
Question 14
1 out of 1 points
An import declaration is not required if you always refer to a class with its ________
name, which includes its package name and class name.
Selected
Answer:
fully qualified name
Question 15
1 out of 1 points
A __________ of a class called MyClass is another class whose methods call the
methods of MyClass.
Selected
Answer:
client
27.The format specifier ________ is used to output values of type
float or double.
*a. %f
b. %d
c. %fd
d. %r
Question 16
1 out of 1 points
You must call most methods other than ________ explicitly to tell them to perform
their tasks.
Selected
Answer:
main
Question 17
1 out of 1 points
Reference-type variables (called references) store ________ in memory.
Selected
Answer:
the location of an object... [Show Less]