Pointers Solved MCQs Questions AnswersBy: Prof. Dr. Fazal Rehman | Last updated: April 30, 2025 14 Score: 0 Attempted: 0/14 Subscribe 1. : We can manipulate data stored in other variables ________ with pointer variables. (A) All of these (B) Never (C) Seldom (D) Indirectly 2. : The following statement has the same meaning as int *ptr; (A) int* ptr; (B) int ptr; (C) int ptr; (D) int ptr; 3. : Which of the following options can be used as pointers? (A) All of these (B) Array names (C) Numeric constants (D) Punctuation marks 4. : Which of the following operators are used to increment or decrement a pointer variable? (A) Modulus, Division (B) Addition, Subtraction (C) ++, — (D) +-, -+ 5. : ________ is used to initialize a pointer. (A) All of these (B) The address of an existing object (C) The value of an integer variable (D) The value of a floating-point variable 6. : What is the function of the following statement? double *num2; (A) Declares a pointer variable named num2. (B) Declares a double variable named num2. (C) Declares and initializes a pointer variable named num2. (D) Initializes a variable named *num2. 7. : The delete operator can be used on the pointers: (A) Dereferenced inappropriately (B) Never used (C) Not correctly initialized (D) Created with the new operator 8. : Which of the following are invalid statements? (A) float num1 = &ptr2; (B) int ptr = &num1; (C) int ptr = int *num1; (D) All of these are invalid 9. : What is stored in a pointer variable? (A) An integer (B) A memory address (C) Only floating-point values (D) Any C++ value 10. : Pointer variables may be changed with mathematical statements that perform ___________. (A) Special operations (B) All mathematical operations (C) Multiplication and division (D) Addition and subtraction 11. : Reference is not the same as a pointer because (A) A reference can never be null (B) A reference once established cannot be changed (C) Reference doesn’t need an explicit dereferencing mechanism (D) All of the above 12. : Size of generic pointer is _______. (A) 0 (B) 1 (C) 2 (D) 3 13. : Referencing a value through a pointer is called (A) All of them (B) Direct calling (C) Indirection (D) Pointer referencing 14. : Generic pointers can be declared with __________. (A) void (B) asm (C) auto (D) All of the above 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:Pointers Easy TutorialPointers exercises with solutions in C++How to use Pointers in Structure? C++ Factorial Program with structures and pointers C++Write a program in C++ to add two numbers using pointersC++ Pointers, structures and user define function in a single program