Tuesday 3 February 2015

Latest Embedded Systems Interview Questions and Answers (Part5)

21. What is the order of calling for the constructors and destructors in case of objects of inherited classes?
The constructors are called with base class first order and the destructors are called in the child first order. That is, the if we have 2 levels of inheritance A (base)-> B (inherit 1)-> C (inherit 2) then the constructor A is called first followed by B and C. The C destructor is called first followed by B and A

22. Explain the properties of  a Object oriented programming language.
• Encapsulation: The data that are related to the specific object are contained inside the object structure and hidden from the other entities of the environment
• Polymorphism: The mechanism by which the same pointer can refer to different types of objects, which are basically linked by some generic commonality.
• Abstraction: Hiding the data and implementation details from the real objects. The framework of reference is still present to be used by the other objects.
• Inheritance: The way to take out the common features and have them as separate object entities only to be reused by the other objects in a modular fashion.

23. What do you mean by interrupt latency?
Interrupt latency refers to the time taken for the system to start the handler for the specific interrupt. The time from the time of arrival of interrupt to the time it is being handled.

24. What typecast is applied when we have a signed and an unsigned int in an expression?
The unsigned int is typecast into the signed value.

25. How are variables mapped across to the various memories by the C compiler?
The compiler maintains the symbol table which has the related information of all the variable names along with the length of the allocated space, the access unit length for the pointer (type of pointer) and the starting address of the memory space.
More Questions & Answers :-
Part1  Part2  Part3  Part4  Part5  Part6  Part7

No comments:

Post a Comment