0% found this document useful (0 votes)
54 views

Sapt 3 Java Class Design Quizz Sect 3 L 1

The document provides a quiz with 12 true/false questions about Java concepts like classes, interfaces, inheritance, and polymorphism. It displays the learner's answers and whether they were correct or incorrect, with references to further review sections for incorrect answers. Overall, the learner answered 8 questions correctly and 4 incorrectly, demonstrating a basic but incomplete understanding of some core OOP principles in Java.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Sapt 3 Java Class Design Quizz Sect 3 L 1

The document provides a quiz with 12 true/false questions about Java concepts like classes, interfaces, inheritance, and polymorphism. It displays the learner's answers and whether they were correct or incorrect, with references to further review sections for incorrect answers. Overall, the learner answered 8 questions correctly and 4 incorrectly, demonstrating a basic but incomplete understanding of some core OOP principles in Java.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Quizz 1 Section 3

Review your answers, feedback, and question scores below. An asterisk (*) indicates a
correct answer.

1. An interface and abstract class are different names for the same type of class structure. True
or false?

True
False (*)

Correct

2. Modeling classes for a business problem requires understanding the business not Java. True
or false?

True
False (*)

Correct

3. An immutable class can be subclassed in which of these scenarios?

The class has public static methods. (*)


The class has default instance methods.
The final class doesn't have any methods.
The class has protected instance methods.
None of the above.

Incorrect. Refer to Section 3 Lesson 1.

4. An immutable method is final. True or false?

True (*)
False

Correct

5. Default access methods have no specifier in their definition or implementation. True or


false?

True (*)
False

Incorrect. Refer to Section 3 Lesson 1.


6. Public access methods can't be subclassed. True or false?

True
False (*)

Correct

7. The instanceof operator is a boolean comparison operator. True or false?

True (*)
False

Correct

8. The instanceof operator enables a method to discover the type of object it was invoked upon.
True or false?

True (*)
False

Correct

9. Virtual method invocation must be defined with the instanceof operator. True or false?

True
False (*)

Correct

10Java provides virtual method invocation as a feature and it doesn't require specialized
. coding. True or false?

True (*)
False

Correct

11You can't downcast an object explicitly because you must use virtual method invocation.
. True or false?

True
False (*)

Incorrect. Refer to Section 3 Lesson 1.


12You can always upcast a subclass to an interface provided you don't need to call any
. methods of the concrete class. True or false?

True (*)
False

Correct

Page 1 of 1

You might also like