Robert Bosch Interview Questions in C and CPP

These are interview questions for for Embedded softwre Engineer (1-10 Exp) position in Robert Bosch in C and Micro Controllers.

  1. What is an inline function?
  2. How are macros different from functions?
  3. In embedded systems perspective which is better to use. Macro or function?
  4. What is a volatile keyword? How it helps in the embedded perspective?
  5. How ISR is serviced?
  6. What is interrupt latency?
  7. What are the stages of compilation?
  8. What is booting?
  9. What is PID?
  10. What is hysterysis?
  11. Co-relation between pointers and arrays?
  12. If A and B finishes a work in 5 days. Where is does the work twice that of B. Suppose they finished the work in 3 days and B is doing the work normally then at what rate should A work to finish the work in 3 days?
  13. if(x)

   y=a;

else

   y=b;

 

For x=0, 1 evaluate a expression satisfying the above condition?

  1. What is a constant pointer?
  2. What is a memory leak in structures? How can we rectify that?
  3. When the execution id going to service a interrupt what happens to stack and what are the registers saved?
  4. Without using pointer write a program to print the elements of an array?
  5. How are unions useful in embedded systems?
  6. What is optimization?
  7. How many pins are used in SPI? What are they?
  8. Explain the Start and Stop operation of I2C protocol?
  9. Is it possible to access or modify PC (program counter)?
  10. If int data type is occupying 4 bytes then on how many bit  uC does the code is running?
  11. Is C++ a superset of C?
  12. All C programs are executable in C++? True or False Why?
  13. What is a static storage class? How is it useful?
  14. How static is different from auto?
  15.  

  16.  

 

 

 

 

 

 

 

 


Attachments

Comments (21)

mohamed nazar
Said this on 6-1-2008 At 11:27 am
i will update my khowledge
dhaya
Said this on 6-17-2008 At 05:55 pm
it is very useful to me and as like as
rajesh
Said this on 7-9-2008 At 01:28 pm
very useful and clearly mentioned the questions
MeeraN
Said this on 8-1-2008 At 08:17 pm
ya very fine.
narayana
Said this on 8-15-2008 At 10:04 am
i require some more knowledge
priya
Said this on 8-26-2008 At 06:40 pm
i need with answers
lak
Said this on 9-1-2008 At 03:26 pm
What to prepare in technical area for bosch?
k.s.sreekanth
Said this on 9-11-2008 At 04:53 pm
marvelous,excellent ama!!!
selvarathinam
Said this on 10-7-2008 At 12:49 pm
not useful
vinnoth
Said this on 10-7-2008 At 07:19 pm
b'coz no solved ans is given...
Said this on 2-8-2009 At 08:54 pm
excellent, very useful if ans are given
the raj
Said this on 9-22-2009 At 02:15 pm
keka....it would be better if some more questions were added
Shiva
Said this on 11-12-2009 At 12:16 pm

usefull knowledge for interview seekers

kunal
Said this on 5-8-2010 At 01:55 pm

Thanks for updating on net ..

sraven
Said this on 8-3-2010 At 01:28 pm

thanks mama

durga
Said this on 10-18-2010 At 01:15 pm

Hai all !!!!!!!! i recently attend the Robert Bosch campus drive in chennai i.e on oct 15th 2010 in AVIT college .They conducted only written test in that college.How did we know wether we selected in the written test or not  ?......The staff in that college  told us that the selected names will be displayed in that college website on oct 18th 2010 i.e monday but they didnt placed in the college website till now.....if any one of you knows that please reply me.....its very urgent .

lakshmi
Said this on 10-23-2010 At 03:34 pm

i ve cleared written test at robert bosch please help me to prepare for technical round

Said this on 2-14-2011 At 05:33 pm
very very useful..
sushma m.p
Said this on 4-12-2011 At 09:18 pm

hi...my name is sushma m.p...i attended test in robert bosch on 9th of this month in the year 2011....for the position of embedded software.....i clrd written test....pls  tel FAQ in robert bosch..and send to my mail id

santhosh
Said this on 7-1-2011 At 02:35 pm

wat r the question they asked in written test whether it is objective type r question and answer

M S Trinadh kumar
Said this on 11-15-2011 At 11:54 pm
  1. What is an inline function?

Ans: when a function is used frequently for more number of times in our program, we declare the function with a keyword called “inline”. So that the function will be placed in RAM for easy accessing rather than accessing from the program memory all the time.

  1. How are macros different from functions?

Ans: macros with operands looks similar to a function. But what makes the macros vary from functions is macros gets executed before the actual program is processed and functions are processed during the execution of program. Hence the time is saved in the case of macros rather than in the case of functions.

  1. In embedded systems perspective which is better to use. Macro or function?

Ans: In embedded systems, since we deal with real time functioning, macros are said to be better compared to functions.

  1. What is a volatile keyword? How it helps in the embedded perspective?

Ans:

  1. How ISR is serviced?

Ans: Whenever an interrupt occurs in the embedded system, the program stops the execution of the program and saves the address of the current instruction in ACC and points to the ISR, thereby it services the instructions in the ISR and when the routine is completed, it returns back to the address saved in Acc as if nothing is happened and continues processing the remaining instructions in the program.

  1. What is interrupt latency?

Ans:

  1. What are the stages of compilation?

Ans:

  1. What is booting?

Ans:

  1. What is PID?

Ans: PID is the product ID issued for various products which used USB specifications. An USB device is recognized by its PID and VID.

  1. What is hysterysis?

Ans:

  1. Co-relation between pointers and arrays?

            Ans: an array is a group of continuous address locations. The address of the first element  

            In array is the address of the array. A pointer also refers to some address location;

            The relation between a pointer to array is:

Let us suppose p=&a[0];

Then &a[1]=p+1;

And  &a[2]=p+2;

  1. If A and B finishes a work in 5 days. Where is does the work twice that of B. Suppose they finished the work in 3 days and B is doing the work normally then at what rate should A work to finish the work in 3 days?

Ans: 1.3 times.

Explanation: A+B=5;

                     2B+B=5;

                     B=5/3;

If   A+B=3;

     A+5/3=3;

     A=3-5/3;

     A=4/3= 1.333333333;

  1. if(x)

   y=a;

else

   y=b;

For x=0, 1 evaluate a expression satisfying the above condition?

Ans: for x=0, y will be b

        For x=1, y will be a

  1. What is a constant pointer?

Ans:When a pointer is declared as constant the address of the pointer or the value in the pointer cannot be changed.

  1. What is a memory leak in structures? How can we rectify that?

Ans: memory leak comes in a situation whenever the variable referred by a pointer is present but the variable is not used again, simply “object present and path destroyed”.

The problem is rectified by using free(); simply by freeing the memory allocated to the variable if there is no further use of it.

  1. When the execution id going to service a interrupt what happens to stack and what are the registers saved?
  2. Without using pointer write a program to print the elements of an array?
  3. How are unions useful in embedded systems?
  4. What is optimization?

Ans: optimization is a technique of saving the memory by avoiding the unused memory deallocation and by making the efficient use of available memory just for the needed instructions.

  1. How many pins are used in SPI? What are they?

Ans: 4 pins. MISO,MOSI,CLK, SS

  1. Explain the Start and Stop operation of I2C protocol?

Ans: a high to low pulse of sda when scl is high is the start;

        A low to high pulse of sda when scl is high is the stop;

  1. Is it possible to access or modify PC (program counter)?
  2. If int data type is occupying 4 bytes then on how many bit  uC does the code is running?
  3. Is C++ a superset of C?
  4. All C programs are executable in C++? True or False Why?
  5. What is a static storage class? How is it useful?

Ans: Static storage class whose default value is 0, remains  valid aslong as the current program is running.it is useful when updation of state of the variable is needed for multiple function in the same program.

  1. How static is different from auto?

Ans: for auto the intital value is garbage where as for static it is 0, static is valid through the program and auto is valid in the function where it is declared.

these are a few answers which i know in this very moment. hope these are useful for u dear friends.

Post a Comment
* Your Name:
* Your Email:
(not publicly displayed)
Reply Notification:
Approval Notification:
Website:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image:
* Message:

Email to Friend

Fill in the form below to send this article to a friend:

Email to Friend
* Your Name:
* Your Email:
* Friend's Name:
* Friend's Email:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image
* Message: