Understand subtype polymorphism in C++/Java

1. Which of the following is NOT a type of Polymorphism?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

2. Which type of Polymorphism is used for Generics in Java?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

3. What is the term used for converting a subtype to one of its supertypes?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

4. You are building an application that needs to create different types of Document objects (e.g., PDFDocument, WordDocument, ExcelDocument) based on user input, without exposing the client code to the specific instantiation logic of each document type. Which creational design pattern would be most suitable for this scenario?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

5. You are developing a system that needs to create families of related objects (e.g., WindowsButton and WindowsCheckbox, or MacButton and MacCheckbox) without specifying their concrete classes. The specific family of objects to be created depends on the operating system. Which creational design pattern is best suited for this situation?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation