HCL



HCL Telephonic, Skype & f-2-f Interview


1. Write a macro to find maximum of two numbers. enhance it for 3 numbers.
2. Debugging command to add breakpoint.
3. How to debug a thread in gdb.
4. How to attach a core file in gdb.
5. What is priority inversion ? explain.
6. Tasks A,B,C are having priorities 100, 200, 255 respectively. Task C is holding a semaphore. Assuming priority inheritance is in place, if Task C wants a resource held by Task B, will it get the resource? if so what would be the priority of each task for that to be achieved. If not why?
7. How will free know how many bytes of memory to be freed? How is the sanity check implemented.
8. Write a program to delete a node in a Linked list.
9. Explain the timer library implementation, for a granularity of 1 sec given the efficiency should be only by time.
10. How will the interface number on which the response has to be sent is known to the SNMP Agent once it needs to send a reply?
11. Port numbers used for SNMP. What is inform?
12. Difference in SNMP v2 trap and v1 trap.
13. Questions related to VLAN, STP, RSTP, MSTP, LAG, ACL as discussed above in other companies.
14. How the Multicast Mac address is mapped from multicast IP address.
15. How are the control packets identified?
16. Ether type of VLAN, and QinQ. What is QinQ used for.
17. Use of Volatile keyword?
18. How a multicast communication happen. 
19. Declare a function pointer. What is the difference between (void *func)() and void (*func)(). 



CLICK --> For more fresh question being asked in various company follow us at facebook.



HCL 2nd Round Interview Over Webex

1. write your own strtok program in c.
2. write stack overflow program in c.
3. Write a program in c,where memory leak happen.
4. Find the middle node in circular linklist. 
5. write your own strncpy program in c.
6. Difference in mutex and semaphore.
7. marco as variable argument.
8. write a prototype of function pointer. use of it. 
9. what is pointer to array and array to pointer. write a program for same. 

CLICK --> For more fresh question being asked in various company follow us at facebook.



HCL Interview Question  

1. Use of register Keyword. Can it be declared globally.
2. Can a Macro be declared with variable arguments ? if so How?
3. Can a Nested function be declared? How?
4. Can a Macro with a goto statement and a label be defined? If so, what happens, if the same macro is called repeatedly thrice?






Click for question asked in HCL.


CLICK --> For more fresh question being asked in various company follow us at facebook.




No comments:

Post a Comment