Eduversity.bd — Learn with Us, Achieve Your Dreams

Data Structures (DS) — MCQ প্রশ্ন

অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Data Structures (DS)। এই অধ্যায়ে মোট 499টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।

এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন

  1. Which of these best describes an array?

    1. A data structure that shows a hierarchical behaviour
    2. Container of objects of similar types
    3. Arrays are immutable once initialised
    4. Array is not a data structure

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  2. How do you initialize an array in C?

    1. int arr[3] = (1,2,3);
    2. int arr(3) = {1,2,3};
    3. int arr[3] = {1,2,3};
    4. int arr(3) = (1,2,3);

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  3. How do you instantiate an array in Java?

    1. int arr[] = new int(3);
    2. int arr[];
    3. int arr[] = new int[3];
    4. int arr() = new int(3);

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  4. Which of the following is a correct way to declare a multidimensional array in Java?

    1. int[] arr;
    2. int arr[[]];
    3. int[][]arr;
    4. int[[]] arr;

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  5. When does the ArrayIndexOutOfBoundsException occur?

    1. Compile-time
    2. Run-time
    3. Not an error
    4. Not an exception at all

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  6. Which of the following concepts make extensive use of arrays?

    1. Binary trees
    2. Scheduling of processes
    3. Caching
    4. Spatial locality

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  7. What are the advantages of arrays?

    1. Objects of mixed data types can be stored
    2. Elements in an array cannot be sorted
    3. Index of first element of an array is 1
    4. Easier to store elements of same data type

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  8. What are the disadvantages of arrays?

    1. Data structure like queue or stack cannot be implemented
    2. There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
    3. Index value of an array can be negative
    4. Elements are sequentially accessed

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  9. Assuming int is of 4bytes, what is the size of int arr[15];?

    1. 15
    2. 19
    3. 11
    4. 60

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  10. In general, the index of the first element in an array is

    1. 0
    2. -1
    3. 2
    4. 1

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

← আগের অধ্যায়পরের অধ্যায় →