CSIS_212_Quiz_2
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 This study source was downloaded by from CourseH on :22:04 GMT -05:00 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....
Gekoppeld boek
Geschreven voor
- Instelling
-
Liberty University
- Vak
-
CSIS 212 (EXAM)
Documentinformatie
- Geüpload op
- 12 juli 2022
- Aantal pagina's
- 4
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
- csis 212
-
you can declare new classes as needed this is one reason java is known as an language
-
the format specifier 2f specifies that two digits of precision should be output i