CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
Embedded Systems Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM COMPUTER HARDWARE INTERVIEW QUESTIONS EMBEDDED SYSTEMS INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

Embedded Systems Interview Questions & Answers - Learning Mode

An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts. Embedded systems control many devices in common use today. An embedded system is a computer that has been built to solve only a few very specific problems and is not easily changed. In contrast, a general-purpose computer can do many different jobs, and can be changed at any time with new programs for new jobs.

Try Embedded Systems Interview Questions & Answers - Exam Mode

1 2 Next

Sort By : Latest First | Oldest First | By Rating

Embedded Systems Interview Questions & Answers - Learning Mode
Try Embedded Systems Interview Questions & Answers - Exam Mode
Question: Who to know whether system uses big endian or little endian format and how to convert among them?

Answer: Here is a small code segment to determine the endianess of a system at run time.

short int number = 0x1;
char *byte = (char*)&number;
if ( byte[0] )
printf("Little endian");
else
printf("Big endian");

Submitted by Pooja Agrawal (poojas@gmail.com) Source: CoolInterview.com
Question: What is interrupt latency? How can you recduce it?

Answer:
Question: Advantages and disadvantages of using macro and inline functions?

Answer: Advantage: Macros and Inline functions are efficient than calling a normal function. The times spend in calling the function is saved in case of macros and inline functions as these are included directly into the code.

Disadvantage: Macros and inline functions increased the size of executable code.

Submitted by Naveen Rao (naveen@voicesaver.com)

_____

Difference in inline functions and macro
1) Macro is expanded by preprocessor and inline function are expanded by c Source: CoolInterview.com
Question: What will this return malloc(sizeof(-10))

Answer: -10 is integer, so it return 4 bytes.... Source: CoolInterview.com
Question: What is the difference between hard real-time and soft real-time OS?

Answer:
Question: Can structures be passed to the functions by value?

Answer: Yes, we can do it.
consider the following code..

#include<stdio.h>
#include<conio.h>
struct emp
{
int no;
int empno;
};
typedef struct emp empdata;

main()
{

empdata edata;
void display( empdata );

clrscr();
edata.no = 1;
edata.empno = 2005;
display( edata );

return 0;
}

void display( empdata pst )
{
printf( "%d", pst.empno );
}


Submitted by Vijaya Kumar (vijay_star2000@yahoo Source: CoolInterview.com
Question: What is forward reference w.r.t. pointers in c?

Answer:
Question: Why cannot arrays be passed by values to functions?

Answer: Arrays can't be passed by values. Because , the array name is evaluated to be a pointer to the first element of the array. e.g. when we pass array x, its equivalent to &x[0] i.e. pointer to the first element. Its type is, therefore, int *, and a called function uses this pointer (passed as an argument) to indirectly access the elements of the array.
e.g . int main()
{
void function1(int A[],int n);

int x[10],i;
for(i=0;i<10; Source: CoolInterview.com
Question: malloc(sizeof(0)) will return ? valid pointer

Answer: sizeof(0) returns the size of integer whose value is 0. Hence malloc
would allocate sizeof(int) bytes and return a valid pointer.

Submitted by Kokila21 (kokila21@indiatimes.com) Source: CoolInterview.com
Question: What are the different storage classes in C?

Answer:
Question: Can you have constant volatile variable?

Answer:
Question: What are the features different in pSOS and vxWorks?

Answer:
Question: What are the 4 different types of inheritance relationship?

Answer:
Question: #define cat(x,y) x##y concatenates x to y. But cat(cat(1,2),3) does not expand but gives preprocessor warning. Why?

Answer: #define cat(x,y) x##y concatenates x to y. But cat(cat(1,2),3) does not expand but gives preprocessor warning. Why?

in this case the cat(x,y) is the macro which is defined by using the preprocessor directive , this will be substituted only at the place where it is called in this example it happens like this

cat(1,2)##3 which will once again become 1##2##3
here if we use ## in between we can join or concatenat only two variables that why it gives a preprocessor warning

__ Source: CoolInterview.com
Question: What are the different qualifiers in C?

Answer:
Question: How many nuclear plants are there in India and what are they? which place they are located?

Answer: 4 Source: CoolInterview.com
Question: a+++b -> (a++)+b

Answer:
Question: What is interrupt latency?

Answer:
Question: Can u have inline virtual functions in a class?

Answer:
Question: Order of constructor and destructor call in case of multiple inheritance?

Answer:

1 2 Next



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.03125 Seconds