Data Structure
SWE · Quiz · Fall 25
Paper 5 of 5Section A · Jobayer Ahmed Usamah - SWE (251) (3)Switch
Section A
Paper 5 of 5
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
SE 131 Data Structure Section-A Quiz-1 Time-20 min Batch-43 Marks-15, Fall-2025
1. Suppose you have to store 60 Character data typically 2, bytes (16 bits). How those data will be stored in Computer memory? 4
2. Suppose you have an array of characters: {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}. Apply binary search to find the character 'k'. Explain the steps and write the corresponding C code. 6
3. Suppose you have an array with some elements such as 50, 20, 10, 55, 5, 33. Now you have to apply binary search to find out "20". How can you do it? No need to apply Binary search. Also calculate the complexity 5