WorksheetsMPP Quiz I
Total questions: 10
Worksheet time: 7mins
One Document object has zero or more Paragraph objects.
Two Document objects have zero or more Paragraph objects.
One Document object has only zero Paragraph object.
One Paragraph object has zero or more Paragraph objects.
Choose the best IS-A relationship.
Cat IS-A Bird
Customer is an Account
DigitalWatch IS-A Timepiece
Circle is a Square
A class cannot be inherited if
the class is an abstract class.
all the constructors are private.
all the methods are protected.
no methods/operations are available.
Associated with each Customer, there is exactly one ShoppingCart, and Customer contains a reference to its ShoppingCart.
Associated with each ShoppingCart, there is zero or one Customer, and ShoppingCart contains a reference to its owning Customer.
When new Customer object is created, it is not equipped with a ShoppingCart.
It is possible to add a second ShoppingCart to a Customer object.
The two aspects of a class are data and behavior. This data and behavior are aspects of anything that we encounter in life. They give expression to the reality that life, at its basis, is a field of existence and _________.
intelligence
sleep
rest
awake
Identify the appropriate design pattern for the given code snippet.
Composition
Singleton
Factory method
Builder
Choose the right option in terms of accessibility.
Protected is more visible than default.
Default is more visibile than protected.
Default is less visible than private.
Protected is more visible than public.
One Person can perform multiple roles.
One Person can perform only Staff role.
One Person can perform only Faculty role.
One Person can perform only Student role.
Father of Java
James Gosling
James Cameron
Guido van Rossum
Ken Thompson
Dependency shows
temporary relationship
permanent relationship
aggregation
composition
