C# Interview Questions - 32 | Snaprecruit.com

C# Interview Questions - 32 | Snaprecruit.com

C SHARP interview questions part 32

C SHARP interview questions part 32

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

Total Questions: 20

1. Which is the correct syntax of defining a pure virtual function?

Correct Answer is : typeof

2. Which is the correct statement about pure virtual functions?

Correct Answer is : System.IO.StreamReader

3. Pick the correct statement.

Correct Answer is : m = static variable, n = instance variable, x = value parameter, y = reference parameter, j = local variable, z =output parameter , a[0] = array element

4. What is the output of the following C++ code? #include #include using namespace std; class A { int a; public: virtual void func() = 0; };   class B: public A { public: void func(){ cout<<"Class B"<
Correct Answer is : 0, 1, 2, 3, 4


5. What is the output of the following C++ code? #include #include using namespace std; class A { int a; public: virtual void func() = 0; };   class B: public A { public: void func(){ cout<<"Class B"<
Correct Answer is : 5


6. What is the output of the following C++ code? #include #include using namespace std; class A { int a; public: virtual void func() = 0; };   class B: public A { public: void func(){ cout<<"Class B"<func(); return 0; }

Correct Answer is : 0, 1, 2, 3, 4, 5

7. Which access specifier is use where one wants data members to be accessed by other classes but not from outside objects?

Correct Answer is : Compile time error

8. To which of the following access specifiers are applicable?

Correct Answer is : Compile time error

9. Members of which access specifiers are not inherited?

Correct Answer is : 546, 70

10. What is the importance of mutable keyword?

Correct Answer is : Substring()

11. Where are allocators used?

Correct Answer is : Ilove CSHARP

12. Where are allocators implemented?

Correct Answer is : Trim()

13. Which operator is used to allocate the memory?

Correct Answer is : ve CSHARP

14. Which operator is used to deallocate the memory?

Correct Answer is : replace() method replaces all occurrences of one character in invoking strings with another character

15. Which header file is used to manipulate the allocater?

Correct Answer is : yo

16. What is the correct syntax for declaring an allocator?

Correct Answer is : Object

17. What kind of library is Standard Template Library?

Correct Answer is : We cannot modify characters contained in the string

18. To what type of object does the container can be instantiated?

Correct Answer is : All of the mentioned

19. What type of class template is list?

Correct Answer is : H

20. What type of access does deque and vector provide?

Correct Answer is : Object.ToUpper()

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon