Memory savings: This approach significantly reduces memory usage compared to traditional arrays that store each element as a complete byte or larger data type.
Applications: Bit arrays are commonly used in various algorithms and data structures, such as bloom filters, bitmaps, and set representations.
Essentially, a bit array is like an array, but instead of storing elements like integers or characters, it stores individual bits.
If you think there is any confusion in the given MCQs, you can comment below.
docmcqs.com is Pakistan's No.1 online platform for preparing for all types of exams including PPSC, FPSC, KPSC, SPSC, Ministry of Defence, and for one-paper MCQs. This includes Pedagogy MCQs, general knowledge MCQs, current affairs MCQs, and much more.