lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code fragment?
var array = new BitArray(new byte[] { 1 }); foreach (var bit in array) { Console.Write(Convert.ToInt16(bit)); }
A. 1
B. False
C. 0
D. 00000000
E. True
Links:
BitArray Class
Collections and Data Structures