Data Structures (DS) — MCQ প্রশ্ন
অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Data Structures (DS)। এই অধ্যায়ে মোট 499টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।
এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন
Which of these best describes an array?
- A data structure that shows a hierarchical behaviour
- Container of objects of similar types
- Arrays are immutable once initialised
- Array is not a data structure
উত্তর যাচাই করতে প্র্যাকটিসে যান।
How do you initialize an array in C?
- int arr[3] = (1,2,3);
- int arr(3) = {1,2,3};
- int arr[3] = {1,2,3};
- int arr(3) = (1,2,3);
উত্তর যাচাই করতে প্র্যাকটিসে যান।
How do you instantiate an array in Java?
- int arr[] = new int(3);
- int arr[];
- int arr[] = new int[3];
- int arr() = new int(3);
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which of the following is a correct way to declare a multidimensional array in Java?
- int[] arr;
- int arr[[]];
- int[][]arr;
- int[[]] arr;
উত্তর যাচাই করতে প্র্যাকটিসে যান।
When does the ArrayIndexOutOfBoundsException occur?
- Compile-time
- Run-time
- Not an error
- Not an exception at all
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which of the following concepts make extensive use of arrays?
- Binary trees
- Scheduling of processes
- Caching
- Spatial locality
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What are the advantages of arrays?
- Objects of mixed data types can be stored
- Elements in an array cannot be sorted
- Index of first element of an array is 1
- Easier to store elements of same data type
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What are the disadvantages of arrays?
- Data structure like queue or stack cannot be implemented
- There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
- Index value of an array can be negative
- Elements are sequentially accessed
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Assuming int is of 4bytes, what is the size of int arr[15];?
- 15
- 19
- 11
- 60
উত্তর যাচাই করতে প্র্যাকটিসে যান।
In general, the index of the first element in an array is
- 0
- -1
- 2
- 1
উত্তর যাচাই করতে প্র্যাকটিসে যান।