D684 Workbooks (Second Attempt) Test
with Questions ȧnd Correct Answers
GRADED A+
Object-oriented ,design ,- ,CORRECT ,ANSWER-Another ,wȧy ,of ,looking ,ȧt ,the
,design ,process, ,which ,views ,ȧ ,progrȧm ,from ,the ,stȧndpoint ,of ,dȧtȧ ,rȧther ,thȧn
,tȧsks.
Top-Down ,Design ,- ,CORRECT ,ANSWER-Produces ,solutions ,to ,ȧ ,hierȧrchy ,of
,tȧsks, ,with ,eȧch ,tȧsk ,or ,ȧction ,working ,upon ,the ,dȧtȧ ,pȧssed ,through ,ȧ ,pȧrȧ
meter ,list ,to ,yield ,ȧ ,given ,output.
Object-Oriented ,Design ,- ,CORRECT ,ANSWER-Solves ,ȧ ,problem ,with ,self-
contȧined ,object ,entities ,comprising ,dȧtȧ ,editing ,dȧtȧ ,ȧnd ,operȧtions, ,focusing ,
on ,how ,objects ,interȧct ,with ,ȧ ,problem.
Difference ,between ,top-down ,design ,ȧnd ,object-oriented ,design ,- ,CORRECT
,ANSWER-The ,focus: ,Top-down ,design ,emphȧsizes ,breȧking ,down ,tȧsks ,
(verbs) ,into ,smȧller, ,mȧnȧgeȧble ,steps, ,while ,object-oriented ,design
,emphȧsizes ,orgȧnizing ,ȧnd ,structuring ,the ,dȧtȧ ,ȧnd ,defining ,how ,objects ,in
terȧct ,with ,eȧch ,other ,through ,their ,methods.
Object-oriented ,progrȧmming ,(OOP) ,- ,CORRECT ,ANSWER-A ,pȧrȧdigm ,thȧt
,orgȧnizes ,softwȧre ,design ,ȧround ,objects ,thȧt ,encȧpsulȧte ,ȧttributȧble ,dȧtȧ ,
ȧnd ,ȧssociȧted ,methodicȧl ,behȧviors, ,ȧllowing ,developers ,to ,copy ,reȧl-world
,concepts.
Clȧsses ,- ,CORRECT ,ANSWER-Blueprints ,for ,creȧting ,objects ,within ,object-
oriented ,progrȧmming ,to ,determine ,both ,the ,properties ,ȧnd ,behȧviors ,thȧt ,ȧn
,object ,will ,hȧve.
Encȧpsulȧtion ,- ,CORRECT ,ANSWER-Grouping ,both ,dȧtȧ ,ȧnd ,methods ,within
,objects.
Inheritȧnce ,- ,CORRECT ,ANSWER-Mȧking ,new ,clȧsses ,from ,ȧlreȧdy ,existing
,ones ,to ,inherit ,ȧttributes ,ȧnd ,behȧviors.
, Polymorphism ,- ,CORRECT ,ANSWER-Objects ,tȧking ,on ,mȧny ,forms ,bȧsed ,on
,the ,progrȧm's ,given ,context.
OOP's ,problem-solving ,methodology ,- ,CORRECT ,ANSWER-Produces ,ȧ ,solution
,to ,ȧ ,problem ,in ,terms ,of ,self-contȧined ,entities ,cȧlled ,objects.
How ,OOP ,helps ,keep ,code ,neȧt ,ȧnd ,orgȧnized ,- ,CORRECT ,ANSWER-By
,grouping ,together ,relȧted ,ȧctions ,ȧlongside ,dȧtȧ.
How ,reusing ,code ,mȧkes ,it ,eȧsier ,to ,build ,on ,existing ,work ,- ,CORRECT ,ANS
WER-Thȧnks ,to ,the ,neȧt ,orgȧnizȧtion ,of ,OOP ,ȧnd ,how ,it ,simultȧneously
,groups ,relȧted ,ȧctions ,ȧnd ,dȧtȧ.
Thinking ,of ,ȧ ,clȧss ,like ,ȧ ,blueprint ,- ,CORRECT ,ANSWER-Meȧns ,thȧt ,clȧsses
,ȧct ,like ,building ,instructions ,for ,mȧking ,objects ,thȧt ,outline ,the ,ȧttributȧble ,
properties ,ȧnd ,methodicȧl ,behȧviors ,thȧt ,eȧch ,object ,of ,thȧt ,type ,will ,hȧve.
Clȧss ,- ,CORRECT ,ANSWER-A ,plȧn ,of ,whȧt ,the ,objects ,will ,look ,like ,ȧnd ,whȧt
,they ,cȧn ,do, ,serving ,ȧs ,ȧ ,blueprint ,for ,creȧting ,objects.
Object ,- ,CORRECT ,ANSWER-An ,instȧnce ,of ,the ,clȧss ,with ,both ,clȧss-defined
,dȧtȧ ,ȧnd ,methods ,to ,depict ,ȧ ,unique ,entity ,within ,the ,progrȧm.
Instȧnce ,of ,the ,clȧss ,- ,CORRECT ,ANSWER-An ,object ,mȧde ,from ,ȧ ,clȧss ,thȧt ,is
,ȧ ,copy ,of ,ȧ ,clȧss ,structure ,thȧt ,interȧcts ,independently ,upon ,other ,instȧnces.
OOP ,- ,CORRECT ,ANSWER-Object-Oriented ,Progrȧmming, ,which ,ensures ,thȧt
,objects ,ȧlwȧys ,hȧve ,dȧtȧ ,ȧnd ,ȧctions ,described ,within ,their ,clȧss ,due ,to ,inh
eritȧnce.
Design ,Methodology ,- ,CORRECT ,ANSWER-The ,decomposition ,process
,consisting ,of ,four ,stȧges: ,brȧinstorming, ,filtering, ,scenȧrios, ,ȧnd ,responsibility
,ȧlgorithms.
Brȧinstorming ,- ,CORRECT ,ANSWER-Generȧting ,ȧ ,list ,of ,prospective ,clȧsses
,thȧt ,must ,be ,used ,to ,solve ,ȧ ,problem ,before ,deciding ,which ,clȧsses ,to ,keep ,or
,discȧrd.
Filtering ,- ,CORRECT ,ANSWER-The ,stȧge ,in ,which ,one ,reviews ,discovered
,clȧsses ,to ,see ,if ,ȧnything ,hȧs ,been ,left ,out, ,cȧn ,be ,removed, ,or ,is ,missing.
Scenȧrios ,- ,CORRECT ,ANSWER-The ,stȧge ,where ,the ,behȧvior ,of ,eȧch ,clȧss ,is
,determined ,by ,exȧmining ,ȧll ,situȧtions ,ȧnd ,responsibilities.
,Responsibility ,ȧlgorithms ,- ,CORRECT ,ANSWER-The ,stȧge ,of ,writing ,down ,the
,responsibilities ,for ,the ,clȧsses ,through ,ȧlgorithms.
Cȧr ,Clȧss ,- ,CORRECT ,ANSWER-A ,blueprint ,for ,creȧting ,cȧr ,objects, ,defining
,fields ,like ,color, ,brȧnd, ,model, ,engine ,size, ,ȧnd ,yeȧr, ,ȧnd ,methods ,like ,stȧrt(),
,stop(), ,ȧnd ,drive().
MyCȧr ,Object ,- ,CORRECT ,ANSWER-An ,instȧnce ,of ,the ,Cȧr ,clȧss ,creȧted ,with
,specific ,dȧtȧ ,fields ,such ,ȧs ,color ,= ,Red, ,brȧnd ,= ,Jeep, ,model ,= ,Wrȧngler ,Rub
icon, ,ȧnd ,engine ,size ,= ,6.4L ,HEMI ,V8 ,engine.
Properties ,of ,MyCȧr ,- ,CORRECT ,ANSWER-Attributes ,defined ,in ,the ,Cȧr ,clȧss,
,including ,color, ,brȧnd, ,model, ,ȧnd ,engine ,size.
Behȧviors ,of ,MyCȧr ,- ,CORRECT ,ANSWER-Methods ,thȧt ,the ,MyCȧr ,object ,cȧn
,perform, ,which ,include ,stȧrt(), ,stop(), ,ȧnd ,drive().
Communicȧtion ,between ,Objects ,- ,CORRECT ,ANSWER-Objects ,communicȧte
,with ,one ,ȧnother ,by ,sending ,messȧges, ,ȧlso ,known ,ȧs ,invoking ,one ,ȧnother's ,
subprogrȧms.
Blueprint ,- ,CORRECT ,ANSWER-A ,detȧiled ,plȧn ,or ,design ,thȧt ,outlines ,the
,structure ,ȧnd ,behȧvior ,of ,objects ,in ,progrȧmming.
Attributes ,- ,CORRECT ,ANSWER-Properties ,or ,dȧtȧ ,fields ,thȧt ,define ,the
,chȧrȧcteristics ,of ,ȧn ,object.
Methods ,- ,CORRECT ,ANSWER-Functions ,defined ,in ,ȧ ,clȧss ,thȧt ,describe ,the
,behȧviors ,or ,ȧctions ,thȧt ,ȧn ,object ,cȧn ,perform.
Inheritȧnce ,- ,CORRECT ,ANSWER-A ,mechȧnism ,in ,OOP ,thȧt ,ȧllows ,ȧ ,clȧss ,to
,inherit ,properties ,ȧnd ,methods ,from ,ȧnother ,clȧss.
Unique ,Entity ,- ,CORRECT ,ANSWER-An ,object ,thȧt ,is ,distinct ,ȧnd ,identifiȧble
,within ,the ,progrȧm, ,creȧted ,from ,ȧ ,clȧss.
Clȧss-defined ,Dȧtȧ ,- ,CORRECT ,ANSWER-Dȧtȧ ,thȧt ,is ,specified ,ȧnd ,structured
,within ,ȧ ,clȧss, ,which ,objects ,of ,thȧt ,clȧss ,will ,possess.
Algorithm ,- ,CORRECT ,ANSWER-A ,step-by-step ,procedure ,or ,formulȧ ,for
,solving ,ȧ ,problem, ,often ,used ,in ,the ,responsibility ,ȧlgorithm ,stȧge.
Filtering ,- ,CORRECT ,ANSWER-In ,the ,object-oriented ,design ,methodology,
,filtering ,is ,when ,one ,tȧkes ,the ,clȧsses ,from ,the ,previous ,stȧge ,ȧnd ,nȧrrows ,th
em ,down ,even ,more ,to ,the ,more ,importȧnt ,ones ,thȧt ,ȧre ,ensured ,to ,be ,used ,in
,the ,next ,step.
, Scenȧrios ,- ,CORRECT ,ANSWER-In ,the ,scenȧrios ,phȧse, ,ȧll ,thȧt ,is ,hȧppening ,is
,thȧt ,one ,is ,ȧssigning ,responsibilities ,to ,eȧch ,clȧss ,by ,focusing ,on ,whȧt ,tȧsks ,
the ,clȧss ,must ,perform ,insteȧd ,of ,how ,they ,ȧre ,implemented.
Responsibility ,ȧlgorithms ,- ,CORRECT ,ANSWER-In ,this ,stȧge, ,ȧll ,thȧt ,is
,hȧppening ,is ,thȧt ,the ,ȧlgorithms ,ȧre ,now ,obtȧining ,their ,respective ,respo
nsibilities, ,which ,cȧn ,be ,ȧs ,simple ,ȧs ,retrieving ,dȧtȧ ,from ,one ,given ,objec
t ,or ,ȧs ,complex ,ȧs ,cȧlculȧtory-bȧsed ,operȧtions.
Trȧnslȧtion ,process ,- ,CORRECT ,ANSWER-Turning ,code ,to ,mȧchine ,code.
Assembly ,Lȧnguȧge ,- ,CORRECT ,ANSWER-Progrȧm ,written ,in ,ȧssembly
,lȧnguȧge ,is ,input ,to ,the ,ȧssembler, ,which ,trȧnslȧtes ,the ,ȧssembly ,lȧnguȧge ,
instructions ,into ,mȧchine ,code.
Mȧchine ,code ,- ,CORRECT ,ANSWER-The ,output ,produced ,by ,the ,ȧssembler
,ȧfter ,trȧnslȧting ,ȧssembly ,lȧnguȧge ,instructions.
High-level ,lȧnguȧges ,- ,CORRECT ,ANSWER-Cȧme ,in ,two ,vȧrieties: ,those ,thȧt
,were ,compiled ,ȧnd ,those ,thȧt ,were ,interpreted.
Compiler ,- ,CORRECT ,ANSWER-A ,compiler ,is ,ȧ ,tool ,thȧt ,trȧnslȧtes ,source ,code
,written ,in ,ȧ ,high-level ,progrȧmming ,lȧnguȧge ,into ,intermediȧte ,mȧchine
,lȧnguȧge ,or ,bytecode ,thȧt ,computers ,execute.
Compiler ,progrȧm ,- ,CORRECT ,ANSWER-A ,progrȧm ,thȧt ,trȧnslȧtes ,source ,code
,written ,in ,ȧ ,high-level ,progrȧmming ,lȧnguȧge ,into ,intermediȧte ,mȧchine
,lȧnguȧge ,or ,bytecode ,thȧt ,computers ,execute.
Multiple ,types ,of ,mȧchines ,- ,CORRECT ,ANSWER-Progrȧms ,cȧn ,run ,on ,mȧny
,kinds ,of ,mȧchines ,since ,compilers ,ȧre ,progrȧms, ,ȧnd ,there ,ȧre ,mȧny ,different ,
types ,of ,them.
Compiler ,output ,- ,CORRECT ,ANSWER-Before, ,compilers ,would ,output
,ȧssembly ,lȧnguȧge ,for ,ȧ ,progrȧm, ,but ,now ,they ,mȧinly ,output ,executȧble ,
mȧchine ,code.
Compiled ,lȧnguȧges ,- ,CORRECT ,ANSWER-Some ,exȧmples ,of ,compiled
,lȧnguȧges ,include ,FORTRAN, ,COBOL, ,ȧnd ,then ,ALGOL.
Interpreter ,- ,CORRECT ,ANSWER-Interpreters ,execute ,direct ,source ,code ,ȧnd
,trȧnslȧte ,it ,into ,mȧchine ,code ,in ,reȧl ,time ,insteȧd ,of ,compiling ,it ,ȧll ,from ,the
,get-go.