Hughes Systique (HSC) Interview experience

First Round (Telephonic Round)
Networking Questions:
1. What is used to translate domain name to IP Address? (DNS)
2. How to get the local address of the device ? (ARP)

Linux Command Questons ;

1. Command to write in a file as well as display ( tee)
2.Command to setup a firewall ..(i said i dont know,,answer:iptables)
3.Command to add route (route command)

C Language Questions:

1. How to get the  number of elements in an array( i said sizeof() operator)
2. How can you write ++ * ptr in another way?(i said ++(*ptr))
3. How to write a function pointer that takes a char *  and integer as
an argument and returns an int (int (*func)(char *, int)


Second Round(Telephonic)
1. Tell me about yourself

2. main(){ char *ptr = "worlds"; strcpy(p, "hello"); } o/p of this program

3. Difference between call by value and call by reference

4. Difference between structure and union

5. Storage classes in C

6. Can we use both extern and static

7. What happens when we use free() twice on the same pointer?

8. What is coredump file

9. Have you used gdb? What is the use of gdb?

10. What is RTP?

11. Socket internals and API's used. What is the significance of the
protocol field in socket()

12. How to handle multiple clients at the same time?

13. Difference between TCP and UDP? What is the difference between
connection oriented and connection less?

14. Can a application layer protocol use both TCP and UDP? Name it

15. What is the use of netstat command,route,traceroute? How
traceroute works internally?

16. What is the need for IPv6...why cant we use IPv4 with NAT



Third Round ( Skype)
1. What is neighbor discovery in ipv6?

2. What is static keyword in C?

3.

static int a;
int *p = &a;  Is it possible

4. Write a linked list{1,2,3,4,5,6,7,8,9 }which will keep even numbers
first  and odd numbers next

5.int a  = 0xaabbccdd; Write a program to convert it into aaddccbb?

I Wrote:


int temp = (a >> 16) & 0x000000ff;
int temp1 = (a) & 0x000000ff;

a = a & 0xff00ff00;
a |= (temp1 << 16);
a|= temp;

6. Difference between const char *p ,char const *p

7. How to do malloc?

8. Difference between malloc and calloc?

9. What is realloc?

10. O/P Of this program:

int main()
{

printf("1\n");
fork();
printf("2\n");
}

11. What is  a volatile keyword?

12. What are conditional variables in linux?

13. What happens when we declare a static variable in header file?

14. What is select api stands for?

15. What are the socket apis and meanings of each?

16. ipv6 header size and ipv4 header size..

17. What is the significance of TTL field in ipv4?

18. ARP

19. Pthread API's

20. Length field in ipv4 and ipv6 header

21. What is SOCK_RAW stands for?

22. How a socket can accept can packet from all the interfaces?INADDR_ANY

23. ENDIANESS . What is the network order?

24. What happens when we do htonl on big endian system?

25. What is htonl and ntohl?

Comments

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto