| 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 will happen when introduce the interface of classes in a run-time polymorphic hierarchy?

Correct Answer is : Steve

2. Which classes are called as mixin?

Correct Answer is : They are same

3. What is the use of clog?

Correct Answer is : 1 or 2

4. How many types of guarantees are there in exception class can have?

Correct Answer is : 3

5. Which operator is used to create the user-defined streams in c++?

Correct Answer is : all of the mentioned

6. What does the cerr represent?

Correct Answer is : bitset b(12);

7. What is the class relationship?

Correct Answer is : bitset b(string(“1100”));

8. How many types of class relationships are there?

Correct Answer is : All bits are 0

9. Which type of relationship is modelled by Inheritance?

Correct Answer is :

10. How the relationship is made in Association?

Correct Answer is : 1111

11. How many types of Association can be there between classes?

Correct Answer is : Run-time error

12. Why do we need relationships between classes?

Correct Answer is : rightmost bit

13. Composition is also a type of _______________ relationship.

Correct Answer is : To count the number of 1’s

14. Which type of relationship is modelled by Composition?

Correct Answer is : To count the number of total bits used by bitset variable

15. Which type of relationship is modelled by Aggregation?

Correct Answer is : 1

16. Which of the following relationships is uni-directional?

Correct Answer is : Returns true if any bit is set 1

17. In which of the following relationship objects of related classes can occur independently?

Correct Answer is : Returns true if all bits is set 0

18. In which of the following relationship objects of related classes are strongly dependent?

Correct Answer is : 1

19. Composition is a __________ type of Association relationship.

Correct Answer is : Used to set bit(s) in a bitset

20. Aggregation is a __________ type of Association relationship.

Correct Answer is : All bits are set to 1 in a bitset