Youaredevelopinganapplicationtoassisttheuserinconductingelectronicsurveys.Thesurveyconsistsof25true-or-falsequestions.Youneedtoperformthefollowingtasks:Initializeeachanswertotrue.Minimizetheamountofmemoryusedbyeachsurvey.Whichstorageoptionshouldyouchoose?

题目

Youaredevelopinganapplicationtoassisttheuserinconductingelectronicsurveys.Thesurveyconsistsof25true-or-falsequestions.Youneedtoperformthefollowingtasks:Initializeeachanswertotrue.Minimizetheamountofmemoryusedbyeachsurvey.Whichstorageoptionshouldyouchoose?()

A.BitVector32answers=newBitVector32(1);

B.BitVector32answers=newBitVector32(-1);

C.BitArrayanswers=newBitArray(1);

D.BitArrayanswers=newBitArray(-1);


相似考题