Motorola Placement Paper (Technical-C Test)
Q. Write a C code
1. To reverse a string using a recursive function, without swapping or using an extra memory.
2. To reverse a linked list as above.
3. What will MAX(i++,j),MAX(i,j++) return.
4. Difference between Macro and ordinary definition.
5. Difference between Class and Struct.
6. Give the outputs of a compiler and assembler and loader and linker etc.
7. If a new data structure, suppose a queue is to be added like int, long etc., Where shall the changes be -- lex or yacc or Where.
8. What is a Real Time OS.
9. Describe VRTX in few words.
10. How does the scheduler know the time How it should be scheduled.
11. Name some sockets, TLI, streams. and much about project.
12. What is deadlock? How do you avoid it?
13. What is a semaphore?
14. What exactly happens after each system call in sockets, both at the client and at the server.
15. What is the difference between widget & gadget in XWindows?
16. Tell about strtok & strstr functions.