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. Generic pointers can be declared with__________
#2. Void pointer can point to which type of objects?
#3. ‘ptr’ is a pointer to a data type. The expression *ptr++ is evaluated as :
#4. How are the references different from the pointer?
#5. What will happen in the following C++ code snippet?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
#6. What is the use of 'this' pointer?
#7. 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 ____________
#8. Which of the following gives the [value] stored at the address pointed to by the pointer : ptr?
#9. Which of the following is the correct way to declare a pointer ?
#10. The pointer can point to any variable that is not declared with which of these?
#11. A pointer can be initialized with
#12. Choose the right option string* x, y;
#13. When does the void pointer can be dereferenced?
#14. Which of the followings is/are pointer-to-member declarator?
#15. The operator used for dereferencing or indirection is ____
#16. Which of the following is true about 'this' pointer?
#17. Prior to using a pointer variable, it should be
#18. Which one of the following is not a possible state for a pointer?
#19. What does the following statement mean?
int (*fp)(char*)
#20. Which of the following is illegal?
Results
<< 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.
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.