1. Allied American University CIS 211
MODULE 3
Get help for AlliedAmerican University CIS211 MODULE 3 We provide assignment, homework,
discussions and case studies help for all subject AlliedAmericanUniversity for Session 2015-2016
CIS 211 MODULE 3 CHECK YOUR UNDERSTANDING
1. A(n) ______ isa C++ construct that enablesaprogrammertodefine anew datatype.
a. class
b. method
c. data field
d. object
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
2. A functioncanindicate thatan error has occurredby ______ an exception.
a. throwing
b. catching
c. implementing
d. declaring
2. Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
3. A clientprogramdepends solelyonthe ______ of the ADT.
a. data members
b. structure
c. implementation
d. behavior
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
4. A C++ classcontainsdata membersand______.
a. clients
b. interfaces
c. methods
d. data structures
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
3. 5. Object-orientedprogrammingviewsaprogram as ______.
a. a sequence of actions
b. a collectionof classes
c. a groupof methods
d. an interactionamongobjects
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
6. The insertionoperationof the ADTlistcaninsertnew items______.
a. onlyat the front of the list
b. only at the endof the list
c. onlyinthe middle of the list
d. intoanypositionof the list
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
7. The ADT sortedlistinsertsanddeletesitemsbytheir______.
a. name
b. value
c. positionname
d. positionnumber
4. Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
8. Whichof the followingoperationsof the ADTlistchangesthe list?
a. remove
b. isEmpty
c. size
d. get
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
9. A(n) ______ isan instance of a class.
a. method
b. data field
c. interface
d. object
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
5. 10. An ADT'soperationsare knownas its_______.
a. interfaces
b. variables
c. methods
d. axioms
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
0
11. Whichof the followingistrue about runtime exceptions?
a. theymustbe handledlocally
b. theymustbe explicitlythrownfromthe method
c. theyare usedinsituationswhere the methodhasencounteredaseriousproblem
d. theycan oftenbe preventedbyfail-safe programming
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
12. Whichof the followingistrue abouta constructor inC++?
a. a constructor cannothave parameters
b. a constructorhas the same name as the class
c. a classcan onlyhave a single constructor
d. all constructorshave a returntype of void
6. Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
13. The specificationsof anADT'soperationsindicate ______.
a. whatthe operationsdo
b. howto implementthe operations
c. howto store the data inthe ADT
d. howto carry out the operations
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
14. Whichof the followingistrue abouta destructorin C++?
a. a class can have several destructors
b. the compilerwill generate adestructorif the programmerdoesnotprovide one
c. a programmermustprovide adestructorforeveryclass
d. a destructordestroysall instancesof aclass
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
7. 15. A(n) ______ allowstwomodulestocommunicate witheachother.
a. data structure
b. axiom
c. interface
d. client
Hint:Chapter3
SLO3:Identify array-basedimplementations.
LO3B:ImplementADTs.
1
16. The itemsinthe ADT listare referencedby______.
a. name
b. value
c. positionnumber
d. positionname
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
17. EncapsulationcombinesanADT's data withitsoperationstoforma(n) ______.
a. exception
b. method
c. variable
d. object
8. Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:Implem
entADTs.
1
18. In the followinglist whichelementdoesnothave apredecessor?
John,Kate,Fred,Mark, Jon,Adam,Drew
a. Kate
b. Drew
c. Mark
d. John
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
19. In the ADT list,whenanitemisinserted intopositioni of the list,______.
a. the positionof all itemsisincreasedby1
b. the positionof eachitemthatwasat a positionsmallerthani isdecreasedby1 while the positionof
each itemthatwas at a positiongreaterthani is increasedby1
c. the positionof eachitemthatwas at a positiongreaterthani is increasedby1
d. the positionof eachitemthatwasat a positionsmallerthani isincreasedby1
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
9. 1
20. In C++, each classdefinitionshouldbe placedina(n) ______.
a. implementationfile
b. headerfile
c. namespace
d. package
Hint:Chapter3
SLO3:Identifyarray-basedimplementations.
LO3B:ImplementADTs.
1
http://www.justquestionanswer.com/viewanswer_detail/CIS-211-MODULE-3-CHECK-YOUR-
UNDERSTANDING-1-A-n-_____-25942
CIS 211 MODULE 3 DISCUSSION
Q1: DiscussConstructorandDestructor.(Atleast100 Words).
Q2: DiscussAbstractdata types.(Atleast75 Words).
Q2: DiscussInheritance andNamespaces.(Atleast100 Words).
http://www.justquestionanswer.com/viewanswer_detail/CIS-211-MODULE-3-DISCUSSION-Q1-Discuss-
Constructor-and-D-25944