You can prepare effectively for Class 10 C++ Programming for Beginners with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: C++ Pointers". These 10 questions have been designed by the experts with the latest curriculum of Class 10 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
Detailed Solution: Question 1
Which one of the following is not a possible state for a pointer.
Detailed Solution: Question 2
What will happen in the following C++ code snippet?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
Detailed Solution: Question 3
The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is ____________
Detailed Solution: Question 4
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
char *ptr;
char Str[] = "abcdefg";
ptr = Str;
ptr += 5;
cout << ptr;
return 0;
}
Detailed Solution: Question 5
Detailed Solution: Question 6
Detailed Solution: Question 7
Detailed Solution: Question 8
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int *arr[ ] = {&a, &b, &c};
cout << arr[1];
return 0;
}
Detailed Solution: Question 9
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
char arr[20];
int i;
for(i = 0; i < 10; i++)
*(arr + i) = 65 + i;
*(arr + i) = '\0';
cout << arr;
return(0);
}
Detailed Solution: Question 10
15 videos|20 docs|13 tests |