Interview Questions #4



C Programming 


Write a program to print the current stack functions in horizontal order.
How to find the list is circular or not
Write a program to print the size of the structure using pointers
Write a hashing algorithm name and how to find the hash key
What is dangling pointer
Difference between memcpy and memmove
Write own function to implement printf
Write own functionality to implement free()
What is the use of typedef and where it is getting implemented
What is the difference between semaphore and mutex
What is the difference between thread and process
What is the use of binary tree and where it is used
Find the middle node and print the value in the linked list using a single for loop
Mask the bit in a given number
What is the static, how long it will exist
If a function want to be used in other file, does the function need to be specified extern.

Networking 


How the mac learning is done in L2 using any protocol
Explain the 7 layers functionality in a router or switch architecture
Explain dhcp messages
How the dhcp server will understand the multicast packets
If the DHCP server is down how the client recognize it ?
RIP explanation
What is STP and how to elect its components in the stp process
What is OSPF
Difference between STP and RSTP
Minimum no of ports in switch
No of vlans a switch can support ?


OS 


Write a socket functionality,
Types of sockets
How to determine to which port it should listen
Where the IP address should be mentioned in the socket connection step
Store this value in int  unsigned char a[] = "172.167.189.190", b
What is the diffrence between process and thread
What are the various types of IPC messages
Where the global variable will be stored and what is the scope of it
What is the diffrence between shared memory and and global memory
In the crash decode how the thread will be difined in live GDB
Arguments passed in msgqueue initialization and pthread create
Purpose of function-entrant
What is semaphore and mutex
How the message gets identified on the receivingside of message queue

Comments