Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is the meaning of the following declaration?
int(*p[5])();
Correct Answer is : Marks the elements in a sequence
2. What is size of generic pointer in C++ (in 32-bit platform) ?
Correct Answer is : Function template
3. Which is referred by pointers to member?
Correct Answer is : 2
4. What should be used to point to a static class member?
Correct Answer is : #ERROR!
5. Which operator is used in pointer to member function?
Correct Answer is : abstract classes
6. Which is the best design choice for using pointer to member function?
Correct Answer is : pure abstract class
7. What is the operation for .*?
Correct Answer is : header files
8. Which header file is used to create the pseudo random generator?
Correct Answer is : all of the mentioned
9. Which is a constant defined in header file?
Correct Answer is : multimap
10. How many parameters are available in srand function?
Correct Answer is : set
11. Which operator is used to produce a certain number in a specific range?
Correct Answer is : deque
12. Which can be used to create a random number without duplication?
Correct Answer is : Multimap can have same keys whereas the map cannot
13. Which value can we not assign to reference?
Correct Answer is : Deriving a derived class from more than one base class
14. Identify the incorrect statement
Correct Answer is : Comma
15. What does a reference provide?
Correct Answer is : 20
16. Identify the correct sentence regarding inequality between reference and pointer.
Correct Answer is : Inherited
17. What are the references in C++?
Correct Answer is : Both 100 & 200
18. What is the output of the following C++ code?
#include
#include
#include
using namespace std;
int main(int argc, char const *argv[])
{
int &q = 5;
cout<
Correct Answer is : Adapter and observer pattern
19. What is the output of the following C++ code?
#include
#include
#include
using namespace std;
int main(int argc, char const *argv[])
{
int &p;
int a = 5;
&p = a;
cout<
Correct Answer is : All of the mentioned
20. What is the output of the following C++ code?
#include
#include
#include
using namespace std;
int main(int argc, char const *argv[])
{
int a = 5;
int &p = a;
cout<