Author: koolprogrammer | Posted on: 7/9/2008 12:21:20 PM | Views : 1197

Question:
You are developing an application to assist the user in conducting electronic surveys.
The survey consists of 25 true-or-false questions. You need to perform the following tasks:
- Initialize each answer to true.
- Minimize the amount of memory used by each survey.
Which storage option should you choose?
A. BitVector32 answers = new BitVector32(1);
B. BitVector32 answers = new BitVector32(-1);
C. BitArray answers = new BitArray(1);
D. BitArray answers = new BitArray(-1);Answer: B I think BitVector32 needs less memory than BitArray.. what about -1? -1 stands for True?
...

Go to the complete details ...