SlideShare a Scribd company logo
1 of 10
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
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
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
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
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
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
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
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.
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
Allied american university cis 211 module 3

More Related Content

Similar to Allied american university cis 211 module 3

GSP 125 RANK Education for Service--gsp125rank.com
GSP 125 RANK  Education for Service--gsp125rank.comGSP 125 RANK  Education for Service--gsp125rank.com
GSP 125 RANK Education for Service--gsp125rank.comclaric25
 
GSP 125 Perfect Education/newtonhelp.com
GSP 125 Perfect Education/newtonhelp.comGSP 125 Perfect Education/newtonhelp.com
GSP 125 Perfect Education/newtonhelp.combellflower169
 
Gsp 125 Future Our Mission/newtonhelp.com
Gsp 125 Future Our Mission/newtonhelp.comGsp 125 Future Our Mission/newtonhelp.com
Gsp 125 Future Our Mission/newtonhelp.comamaranthbeg8
 
GSP 125 Become Exceptional/newtonhelp.com
GSP 125 Become Exceptional/newtonhelp.comGSP 125 Become Exceptional/newtonhelp.com
GSP 125 Become Exceptional/newtonhelp.combellflower148
 
GSP 125 Doing by learn/newtonhelp.com
GSP 125 Doing by learn/newtonhelp.comGSP 125 Doing by learn/newtonhelp.com
GSP 125 Doing by learn/newtonhelp.combellflower126
 
Gsp 125 Education Organization -- snaptutorial.com
Gsp 125   Education Organization -- snaptutorial.comGsp 125   Education Organization -- snaptutorial.com
Gsp 125 Education Organization -- snaptutorial.comDavisMurphyB85
 
GSP 125 Technology levels--snaptutorial.com
GSP 125 Technology levels--snaptutorial.comGSP 125 Technology levels--snaptutorial.com
GSP 125 Technology levels--snaptutorial.comsholingarjosh136
 
Gsp 125 Massive Success / snaptutorial.com
Gsp 125  Massive Success / snaptutorial.comGsp 125  Massive Success / snaptutorial.com
Gsp 125 Massive Success / snaptutorial.comNorrisMistryzo
 
Gsp 125 Enthusiastic Study / snaptutorial.com
Gsp 125 Enthusiastic Study / snaptutorial.comGsp 125 Enthusiastic Study / snaptutorial.com
Gsp 125 Enthusiastic Study / snaptutorial.comStephenson101
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGAmira Dolce Farhana
 
GSP 125 Exceptional Education - snaptutorial.com
GSP 125 Exceptional Education - snaptutorial.comGSP 125 Exceptional Education - snaptutorial.com
GSP 125 Exceptional Education - snaptutorial.comdonaldzs162
 
GSP 125 Education Specialist / snaptutorial.com
  GSP 125 Education Specialist / snaptutorial.com  GSP 125 Education Specialist / snaptutorial.com
GSP 125 Education Specialist / snaptutorial.comstevesonz146
 
Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019ktuonlinenotes
 
Advanced programming topics asma
Advanced programming topics asmaAdvanced programming topics asma
Advanced programming topics asmaAbdullahJana
 
Software Engineering Question Bank.docx
Software Engineering Question Bank.docxSoftware Engineering Question Bank.docx
Software Engineering Question Bank.docxkarthikaparthasarath
 
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdfChapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdfakknit
 

Similar to Allied american university cis 211 module 3 (20)

hi
hihi
hi
 
GSP 125 RANK Education for Service--gsp125rank.com
GSP 125 RANK  Education for Service--gsp125rank.comGSP 125 RANK  Education for Service--gsp125rank.com
GSP 125 RANK Education for Service--gsp125rank.com
 
GSP 125 Perfect Education/newtonhelp.com
GSP 125 Perfect Education/newtonhelp.comGSP 125 Perfect Education/newtonhelp.com
GSP 125 Perfect Education/newtonhelp.com
 
Gsp 125 Future Our Mission/newtonhelp.com
Gsp 125 Future Our Mission/newtonhelp.comGsp 125 Future Our Mission/newtonhelp.com
Gsp 125 Future Our Mission/newtonhelp.com
 
GSP 125 Become Exceptional/newtonhelp.com
GSP 125 Become Exceptional/newtonhelp.comGSP 125 Become Exceptional/newtonhelp.com
GSP 125 Become Exceptional/newtonhelp.com
 
GSP 125 Doing by learn/newtonhelp.com
GSP 125 Doing by learn/newtonhelp.comGSP 125 Doing by learn/newtonhelp.com
GSP 125 Doing by learn/newtonhelp.com
 
Gsp 125 Education Organization -- snaptutorial.com
Gsp 125   Education Organization -- snaptutorial.comGsp 125   Education Organization -- snaptutorial.com
Gsp 125 Education Organization -- snaptutorial.com
 
GSP 125 Technology levels--snaptutorial.com
GSP 125 Technology levels--snaptutorial.comGSP 125 Technology levels--snaptutorial.com
GSP 125 Technology levels--snaptutorial.com
 
Gsp 125 Massive Success / snaptutorial.com
Gsp 125  Massive Success / snaptutorial.comGsp 125  Massive Success / snaptutorial.com
Gsp 125 Massive Success / snaptutorial.com
 
Gsp 125 Enthusiastic Study / snaptutorial.com
Gsp 125 Enthusiastic Study / snaptutorial.comGsp 125 Enthusiastic Study / snaptutorial.com
Gsp 125 Enthusiastic Study / snaptutorial.com
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
 
GSP 125 Exceptional Education - snaptutorial.com
GSP 125 Exceptional Education - snaptutorial.comGSP 125 Exceptional Education - snaptutorial.com
GSP 125 Exceptional Education - snaptutorial.com
 
GSP 125 Education Specialist / snaptutorial.com
  GSP 125 Education Specialist / snaptutorial.com  GSP 125 Education Specialist / snaptutorial.com
GSP 125 Education Specialist / snaptutorial.com
 
Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019
 
Advanced programming topics asma
Advanced programming topics asmaAdvanced programming topics asma
Advanced programming topics asma
 
Software Engineering Question Bank.docx
Software Engineering Question Bank.docxSoftware Engineering Question Bank.docx
Software Engineering Question Bank.docx
 
FP 301 OOP FINAL PAPER
FP 301 OOP FINAL PAPER FP 301 OOP FINAL PAPER
FP 301 OOP FINAL PAPER
 
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdfChapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
 
02 c++g3 d (1)
02 c++g3 d (1)02 c++g3 d (1)
02 c++g3 d (1)
 
C04701019027
C04701019027C04701019027
C04701019027
 

Recently uploaded

Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Recently uploaded (20)

Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Allied american university cis 211 module 3

  • 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