In the last set of MCQs, we were introduced to C++ Constants. There, we have discussed some questions. This set of multiple choice questions focuses on the C++ Pointers.
Firstly, read all the questions and after that select the appropriate option. Moreover, each question contains four options, out of them only one option will be correct. If you fail to select the correct option, don’t worry, you can try again at the end (by refreshing the page). You can use Previous and Next button to switch to a different set of questions.
C++ MCQ | POINTERS
TEST INSTRUCTIONS: Click on options to see the answer.
Now, start attempting the quiz.
#1. Which of the following is true about 'this' pointer?
#2. Which of the following is illegal?
#3. Prior to using a pointer variable, it should be
#4. The pointer can point to any variable that is not declared with which of these?
#5. ‘ptr’ is a pointer to a data type. The expression *ptr++ is evaluated as :
#6. 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 ____________
#7. How are the references different from the pointer?
#8. Which one of the following is not a possible state for a pointer?
#9. A pointer can be initialized with
#10. When does the void pointer can be dereferenced?
#11. Which of the following gives the [value] stored at the address pointed to by the pointer : ptr?
#12. Which of the followings is/are pointer-to-member declarator?
#13. Choose the right option string* x, y;
#14. What is the use of 'this' pointer?
#15. Which of the following is the correct way to declare a pointer ?
#16. What does the following statement mean?
#17. What will happen in the following C++ code snippet?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
#18. Void pointer can point to which type of objects?
#19. Generic pointers can be declared with__________
#20. The operator used for dereferencing or indirection is ____
<< Prev- C++ MCQs : C++ Constants
Are you curious to learn more about C++ Programming? If yes, then don’t forget to explore all the topics of C++ programming. Here, is the complete set of Multiple Choice Questions and Answers. These question sets are very helpful in preparing for Competitive Exams and University level exams.
For frontend projects, check and implements these beginner’s friendly projects :- TOP 7 PROJECTS FOR BEGINNERS TO PRACTICE HTML & CSS SKILLS
Want backlinks to your website? If yes, then follow this article and get to know in very easy way. How You Can Create High Quality Backlinks In 2021?
Learn about 404 ERROR page – EVERYTHING YOU NEED TO KNOW ABOUT 404 ERROR PAGE FOR SEO
Do practice of HTML questions :- Multiple choice questions on HTML
Do practice of C programming :- Multiple choice questions on C programming
All the answers in this set are correct. But in case, you find any typographical, grammatical or any other error in our site then kindly inform us. Don’t forget to provide the appropriate URL along with error description. So that we can easily correct it.
Thanks in advance.
For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.
2 thoughts on “C++ MCQ : C++ Pointers (MULTIPLE CHOICE QUESTIONS)”
Hello to all, how is all, I think every one is getting more from this web
site, and your views are nice in support of new people.
If some one needs to be updated with most up-to-date technologies then he must be go to see this
web page and be up to date all the time.