Arrays MCQs Questions Answers – C++By: Prof. Dr. Fazal Rehman | Last updated: April 16, 2025 25 Score: 0 Attempted: 0/25 Subscribe 1. An element referring outside array bounds is a ___? (A) Logical error (B) Syntax error (C) Execution time error (D) Both A and C 2. Every element in an array is searched against some searching key, special for? (A) Linear search (B) Bubble sort (C) All of them (D) Binary search 3. A one-dimensional array contains one-dimensional arrays is called? (A) Two-dimensional array (B) Multi-casting array (C) Multi-dimensional array (D) Three-dimensional array 4. Objects in a sequence that have the same type, is called? (A) Arrays (B) Operators (C) Functions (D) Stacks 5. A binary search algorithm is an algorithm that is used for? (A) Divide and conquer method (B) Linear way to search values (C) Bubble sorting technique (D) None of them 6. With the help of which character array can be initialized using? (A) A string literal (B) Integer values (C) Floats value (D) None of them 7. In an array starting from the beginning and inspecting each element one after another for finding an object, until the object is found is called as? (A) Linear search algorithm (B) Searching (C) Inspecting (D) All of them 8. Consecutive group of memory locations containing all same name and same type, is called as? (A) Structures (B) Arrays (C) Classes (D) Functions 9. For finding value in an array which of the following technique is used? (A) Binary search algorithm (B) Bubble sort (C) Linear search algorithm (D) All of them 10. Programmer’s uses _______ for defining their own types? (A) Algorithms (B) Operators (C) Enumerations (D) None of them 11. Choose one of the best options from the following: Position number contained within square brackets e.g., my_array[5], is referred to as ____? (A) Sub-scripts (B) Post-scripts (C) Elements of an array (D) None of them 12. A one-dimensional array is always considered as ____? (A) Complex (B) Sequential (C) Linear (D) Both C and B 13. When ______ array that are declared static are initialized? (A) The first element is zero (B) Program is about to end (C) Program is loaded into the memory (D) None of them 14. A one-dimensional array having two-dimensional arrays is called? (A) Two-dimensional array (B) Multi-dimensional array (C) One-dimensional array (D) Three-dimensional array 15. To identify a particular element, tables or arrays that require two subscripts are called? (A) Multiple subscripted array (B) Double subscripted array (C) Two way array (D) None of them 16. Objects in an array are called as? (A) Functions of an array (B) Elements of an array (C) Indexes of an array (D) All of them 17. An array having arrays is called? (A) Uni-casting array (B) Multi-dimensional array (C) One-dimensional array (D) Multi-casting array 18. An array can contain how many kinds of elements? (A) Only int type (B) Only char type (C) Char and int type (D) All of them have the same type 19. Example of___ is Float a[3] = {10.2, 33.4, 44.4}? (A) Initializing array (B) Initializing variables (C) Initializing functions (D) None of them 20. Array containing elements are numbered as 0, 1, 2, 3? These numbers are called? (A) Subscripts of the array (B) Index values (C) Members of an array (D) Both A and B 21. _______ is correctly declares an array? (A) int array; (B) int array[10]; (C) array{10}; (D) array array[10]; 22. Index number of the last element of an array having 9 elements is ______? (A) 9 (B) Programmer-defined (C) 0 (D) 8 23. Array is defined as? (A) An array is a series of elements (B) An array is a series of elements of the same type in contiguous memory locations (C) An array is a series of elements of the same type placed in non-contiguous memory locations (D) None of the mentioned 24. How do we access the seventh element stored in an array? (A) array[6]; (B) array(7); (C) array[7]; (D) array; 25. The memory address of the first element in the array is _____? (A) array[0]; (B) array(2); (C) array[1]; (D) array; More Array MCQs Data Structures MCQs Basic Concepts Introduction to Data Structures Abstract Data Types (ADT) MCQs Complexity Analysis MCQs Time complexity MCQs Space complexity MCQs Big O, Big Ω, Big Θ notations MCQs Linear Data Structures MCQs Arrays MCQs One-dimensional arrays MCQs Multi-dimensional arrays MCQs Operations: traversal, insertion, deletion MCQs Linked Lists MCQs Singly linked list MCQs Doubly linked list MCQs Circular linked list MCQs Stacks MCQs Stack operations (push, pop, peek) MCQs Applications of stacks (expression evaluation, recursion) MCQs Queues MCQs Queue operations (enqueue, dequeue, front, rear) MCQs Types: Simple queue, circular queue, priority queue, deque MCQs Non-Linear Data Structures MCQs Trees MCQs Binary trees MCQs Binary Search Trees (BST) MCQs AVL Trees MCQs B-trees and B+ trees MCQs Tree traversal methods (in-order, pre-order, post-order) MCQs Heaps MCQs Min-heap MCQs Max-heap MCQs Heap operations (insertion, deletion, heapify) MCQs Applications of heaps (priority queues, heap sort) MCQs Graphs MCQs Graph representation (adjacency matrix, adjacency list) MCQs Graph traversal algorithms (DFS, BFS) MCQs Shortest path algorithms (Dijkstra’s, Bellman-Ford) MCQs Minimum Spanning Tree (Kruskal’s, Prim’s) MCQs Hashing MCQs MCQs Hash Tables Hash functions MCQs Collision resolution techniques (chaining, open addressing) MCQs Applications of hashing MCQs Sorting and Searching Algorithms MCQs Sorting Algorithms MCQs Bubble sort MCQs Selection sort MCQs Insertion sort MCQs Merge sort MCQs Quick sort MCQs Heap sort MCQs Searching Algorithms MCQs Linear search MCQs Binary search MCQs Interpolation search MCQs Miscellaneous Memory Management in data structures MCQs Dynamic memory allocation MCQs Garbage collection MCQs String Manipulation Algorithms MCQs Pattern matching (KMP, Rabin-Karp) MCQs String hashing MCQs Data Structures MCQs 1 Data Structures MCQs 2 Data Structures MCQs 3 Data Structures MCQs 4 Data Structures MCQs 5 Stacks Solved MCQs Queues MCQs pointer mcqs Array MCQs Programming C Plus Plus MCQs Homepage Low-level and high-level languages MCQs Procedural and non Procedural languages MCQs C++ STANDARD LIBRARY MCQs Array MCQs Arrays MCQs 2 Pointers Solved MCQs Inline Function MCQs – C++ Top 50 Programming C++ MCQs MCQs of introduction to programming Past Papers 2022 C++ MCQs Past Papers 2021 C++ MCQs Past Papers 2020 C++ MCQs Past Papers 2019 C++ MCQs Highly Recommended C++ Important MCQs with Explanation OOP OOP intro & examples MCQs Classes and Inheritance MCQs Friend Function MCQs Virtual Function MCQs Polymorphism MCQs Polymorphism MCQs 2 Related Posts:2 Dimensional Arrays in C / C++ with Sum of ArraysArrays MCQsMulti-dimensional arrays MCQsOne-dimensional arrays MCQsField Programmable Gate Arrays (FPGAs) MCQsArrays in C++