Basics on C++ related Questions and Answers - Page 4

Question 31 : Which of the following is not a fundamental type is not present in C but present in C++?
1. int
2. float
3. bool
4. void
View Answer   Discuss with Members

Question 32 : Which of the following feature is not provided by C?
1. Pointers
2. Structures
3. References
4. Functions
View Answer   Discuss with Members

Question 33 : Which of the following type is provided by C++ but not C?
1. int
2. bool
3. float
4. double
View Answer   Discuss with Members

Question 34 : Which of the following is correct about new and malloc?
i) new is an operator whereas malloc is a function
ii) new calls constructor malloc does not
iii) new returns required pointer whereas malloc returns void pointer and needs to be typecast
1. i and ii
2. ii and iii
3. i and iii
4. i, ii and iii
View Answer   Discuss with Members

Question 35 : What is the correct syntax of declaring array of pointers of integers of size 10 in C++?
1. int arr = new int[10];
2. int **arr = new int*[10];
3. int *arr = new int[10];
4. int *arr = new int*[10];
View Answer   Discuss with Members

Question 39 : Which members are inherited but are not accessible in any case?
1. Private
2. Public
3. Protected
4. Both private and protected
View Answer   Discuss with Members


View 31 - 40 of 81 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter