| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. What are the operators available in C++ for dynamic allocation and de-allocation of memories?

Correct Answer is : 4 1 2 3

2. Which is used to solve the memory management problem in c++?

Correct Answer is : 10 20 30 20 10

3. What is the Run-Time Type Information?

Correct Answer is : 33

4. Which operators are part of RTTI?

Correct Answer is : Range

5. To which type of class, We can apply RTTI?

Correct Answer is : like

6. What is meant by type_info?

Correct Answer is : Maximum finite value for a float type

7. At which time does the static_cast can be applied?

Correct Answer is : FALSE

8. What is sequence container arrays?

Correct Answer is : FALSE

9. Which of the following is/are advantage(s) of Sequence Container arrays over C-like arrays?

Correct Answer is : 32767

10. Which of the follwoing function(s) of Array classes are similar to [] operator?

Correct Answer is : 32767

11. How many different ways are there to access an element of array classes at the ith position?

Correct Answer is : 11

12. What header file is included to use array classes?

Correct Answer is : 11

13. What is the correct syntax of declaring an array class?

Correct Answer is : All of the mentioned

14. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { array arr = {1,2,3,4,5}; cout<<"Printing Using [] operator: "; for(int i=0;i<5;i++){ cout<
Correct Answer is : All of the mentioned

15. What is the syntax of printing the first element of an array Arr using get() function?

Correct Answer is : -125

16. Which header file is required to use get() function?

Correct Answer is : -125

17. What is the difference between get() and at()?

Correct Answer is :

18. Which function is used to access the first element of an array class?

Correct Answer is :

19. Which function is used to access the last element of an array class?

Correct Answer is : max_finite

20. Which of the following function(s) is/are used to get the size of the array class?

Correct Answer is : max_finite