Professional Documents
Culture Documents
MCQ:
1.Acompletehardwareimplementationofasystemleadsto
A. Fastworkingofthesystem.
B. Increasedcost.
C. Increasedpowerconsumption.
D. Alloftheabove.
Solution:OptionD.Alloftheabove.
Explanation: This is the reason a hardware software co-design is preferred as the hardware
aspectincreasesspeedandthesoftwareaspectreducescostandpowerconsumption.
2.Whichofthefollowingoperationshelpinoptimizationofthedesignofasystem?
A. Mergingtasks
B. Splittingtasks
C. BothAandB
D. Noneoftheabove
Solution:OptionC.BothAandB
Explanation: Merging tasks with the same resources help to reduce cost and complexity of
code. Splitting tasks having critical sections prone to deadlock, avoid priority inversion and
makesthesystemfreefromdelay.
3.Whichfactsaboutsplittingtasksaretrue?
A. Removesblockingofresources.
B. Leadstolessflexiblescheduling
C. Decreasesoverallefficiency
D. Alloftheabove
Solution:OptionA.Removesblockingofresources.
Explanation: Splitting tasks increases flexibility of scheduling and possibly makes the system
moreefficient.
4.Asystemdesigncanbevalidatedusing
A. Simulationsoftwares
B. PetriNets
C. StateMachines
D. Alloftheabove
Solution:OptionD.Alloftheabove
Explanation:Fact.
5.Matchthefollowing:
Language Storingmultidimensionalarrays
1. C a. Column-majororder
2. FORTRAN b.Row-majororder
3. Python c.Tableoftables
4. MATLAB d.Listoflists
A. 1-a;2-b;3-c;4-d
B. 1-d;2-b;3-c;4-c
C. 1-b;2-a;3d;4-a
D. Noneoftheabove
Solution:OptionC.1-b;2-a;3d;4-a
Explanation:Multidimensionalarraysarestoredinroworcolumnmajorformtostorethematrix
formofdatainalinearstoragespacelikeRAM.Thespatialitylocalityofreferenceisexploited
bythecachememorywhichpromptstheusageofsuchtechniques.
6.“TheloopinginDSPsishardwired.”
A. True
B. False
C. Cannotbedetermined
Solution:OptionA.True
Explanation:DSPshavehardwiredloopingunitsinordertoreducetheoverheadsandensurea
fastandsmoothcomputation.
7.Statement1:“Simulationisveryslow.”
Statement 2: “The complex circuits have a huge test bench that requires a lot of test runs
makingthesimulationslow.”
A. Statement1istrueandStatement2isthecorrectexplanationofStatement1.
B. Statement1istrueandStatement2isnotthecorrectexplanationofStatement1.
C. Bothstatementsarefalse.
Solution: Option A. Statement 1 is true and Statement 2 is the correct explanation of
Statement1.
Explanation:Fact
8. Suppose I build a calculator but the operations, addition and subtraction are swapped by
mistake.Whichofthefollowingarecorrect?
A. Thedevicedoesnotpassverification.
B. Thedevicedoesnotpassvalidation.
C. Thedevicepassesverificationbutnotvalidation.
D. Noneoftheabove.
Solution:OptionA.Thedevicedoesnotpassverification.
Explanation: Verification checks if the product works according to specifications. Validation
checks if the product tobebuiltwouldcompletethetaskathand.Thecalculatorperformsthe
calculationhencethedeviceisvalidatedbuttheoutputiswrongandthereforethedevicedoes
notpassverification.
9.WhichofthefollowingarepartsofaDSP?
A. AddressGeneratingUnit
B. Virtualmemory
C. BothAandB
D. Noneoftheabove.
Solution:OptionA.AddressGeneratingUnit
Explanation: Virtual memory is absent in DSP since it increasesthetimeofcontextswitching
anditaffectsperformance.
10. “Two FSMs are equivalent when they takeinthesameinputandforthesameinput,they
producethesameoutput.”
A. True
B. False
C. Cannotbedetermined
Solution:OptionA.True
Explanation:Fact
Short-Answertype(Alphanumericanswersonly):
11.Optimizethefollowingpieceofcode:
a=2^k(^referstotheexponentoperator)
Solution:a=1<<k
Explanation:<<istheleftshiftoperatorandhasafasterexecutiontimethanthe^operator.
12.Optimizethefollowingpieceofcode:
i=12
if(i>13){
i=i-1;
}
Solution:i=12
Explanation:Theif-blockisapieceofdeadcode,whichdoesnotgetexecutedsincethevalue
ofi=12whichislessthan13.