Quiz
4100 Quiz 1
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (15)
1Which of the following lists are candidates for objects: trumpet, clean, enrage, leaf, tree, collapse, active, lively.
- Aclean, collapse, and enrange
- Bclean, active and lively
- Ctrumpet, leaf and tree
- DTrumpet, lively, Tree
2In this type of Object Oriented Relationship, one or more objects use eachother but have no owner and each object has their own lifetime.
- AAggregation
- BInheritance
- CAssociation
- DComposition
3In Object Oriented Programming code that implements an interface has this type of relationship with the interface class?
- ADependency
- BComposition
- CInheritance
- DRealization
- EAggregation
4In Object Oriented Programming, the term Polymorphism means
- ASub-type class can extend the parent class in multiple ways
- BAn object of a sub-type can inherit from different parent classes
- CA variable of a non-primitive class can be used with different data types
- DA variable of a super-type can refer to a sub-type object
5This type of Java Class cannot be instantiated but can be sub-classed
- AVoid
- BIndependent
- CAbstract
- DChild
6In C# what keyword do you use to indicate a child class inherits from a parent?
- A:
- Bextends
- CchildOf
- DInherits
7In this type of OO relationship One Object uses another object with a "has a" relationship
- Ainheritance
- Bcomposition
- Cassociation
- Daggregation
8 What does the following C# line mean?

- AeMap is a hash with the string key and an Employee object as a value
- BeMap is a hash with an Employee as a key and a string as a value
- CeMap is a dictionary object with a string Employee key
- DeMap is an arrayList of string Employee data types
9During functional programming design, use this process to break the problem down into main function each with more detailed functions.
- AIncremental design
- BSystems analysis and Design
- CStepWise Refinement
- DEvolutionary Design
10In C# use this keyword to indicate a method can be overridden.
- Avirtual
- Bpublic
- Coverride
- Dprotected
11One reason to encapsulate data properties within an object is ________________
- Ato protect child classes from reading a value incorrectly
- Bto protect object attributes from invalid set values
- Cto hide object logic from improper output values
- Dto make inheritance easier to use and faster
12In the following problem description. What are candidate methods using our OO design process?
The system will deal 2 cards to each user. The user can either bet on his/her hand or check (and not bet). The can request that the dealer give him/her 1 more card from the deck during each turn. If the card is a Joker then the user will bust and loose.- Adeal, bet, request
- Bsystem, user, dealer. joker
- Cloose, bet, cards
- Dloose, deal, bet, cards
13In C# what is the equivalent to the Java Package?
- Adirectory folder
- BC# does not have anything like Java Packages
- Cpackage
- Dnamespace
14What is the fragile base class issue?
- AChild classes may add methods that interfere with methods in the parent class
- Bchanges in the parent class may have impact on a child class
- CA parent class might add a method that the child class does not know about
- DCode added may cause a multiple inheritance issue in the child class
15What is static polymorphism ?
- ACreating a run-time method that adds a parent method
- BCombining children objects using the parent object
- CParent-child relationships with the same method signatures
- Done or more methods with the same name but different arguments in the same class
Information
- Description
- Quiz on 4100 Quiz 1, created by Alexander Rojas on 26/02/2020.
- Author
- Alexander Rojas
- Language
- English
- Views
- 6
- Rating
- No ratings yet Rate this quiz