Software Developer Ii Interview Questions

3,997 software developer ii interview questions shared by candidates

Tele : ------ 1. What is a process ? Difference between process and thread ? What are the advantages of multithreaded systems ? ... Why cant you fork multiple processes instead of having multithreading ? 2. Can you set a pointer to variable in stack ? .. And pass it across multiple functions ? 3. What do you mean by context switch and explain the complete process. 4. Why VMM ? .. Role of address translation unit. Who should handle address translation and why ? .. why special previledges to kernel? 5. What are Interrrupts ? What do you mean by code being reentrant ? .. How do code a reentrant code ? 6. What is page fault ? Translation lookaside buffers ? 7. TCP 3 way handshake ? 8. What is the significance of sequence number in TCP header ? 9. What happens when you type google.com on your browser ? 10. You are given with 3 files which are taken as dumps from tcpdump. Write an algorithm to merge them in the order of their timestamp. 11. What is the difference between structure and union? In C, you dont have unioin(not a native data type in C), how do you implement / make use of ? 12. Explain address space of a process. Round 1 : --------- 1. You are given with a string. If string has any extra spaces at the end, remove it (write a C program) 2. Given with 2 linked lists (singly). Write a program to find the intersection of them 3. What are hash functions ? Explain with example. 4. You are given with group of strings. Remove all the similar strings (Say your group of strings has it, kat, for, it, kat then output should be it, kat, for). How do you write optimised code ? 5. Explain TCP 3 way handshake Round 2 : --------- 1. Suppose you have a process with heap segment in which 300contiguous pages free. You want to malloc 200 pages. How does kernel return those 200pages? . How kernel cleans up small chunks of free pages in its heap ? 2. In your program you can create a struct of dynamic size. How to you allocate memory chunk in malloc ? .. (struct s*)malloc(sizeof(struct s)) would not work 3. Write a program to delete an element in doubly linked list. 4. You are given with array of characters. Write a program to recognize the first unique element with complexity of O(N) 5. What is segmentation and reassembly in TCP 6. What would happen if there is ACK loss in TCP 3 way handshake ? 7. Round 3 : --------- 1. Write a program to write traceroute utility (Hint : using TTL in TCP) 2. What is Binary search tree? Given a tree , write a function to find if its binary search tree or not. 3. Write program for pre, in, post order traversals of BST. Write the outputs of them 4. Given a circular linked list, write a program to remove 2nd, 4th, 6th etc elements. 5. Suppose there are hundreads of clients to single server. Server has received multiple syn requests from clients, but not acks. There can be n/w buffer overflow. How to code to handle such situations. 6. Do you know about sync cookies ?
avatar

Software Engineer II

Interviewed at ADD

3.3
Oct 27, 2015

Tele : ------ 1. What is a process ? Difference between process and thread ? What are the advantages of multithreaded systems ? ... Why cant you fork multiple processes instead of having multithreading ? 2. Can you set a pointer to variable in stack ? .. And pass it across multiple functions ? 3. What do you mean by context switch and explain the complete process. 4. Why VMM ? .. Role of address translation unit. Who should handle address translation and why ? .. why special previledges to kernel? 5. What are Interrrupts ? What do you mean by code being reentrant ? .. How do code a reentrant code ? 6. What is page fault ? Translation lookaside buffers ? 7. TCP 3 way handshake ? 8. What is the significance of sequence number in TCP header ? 9. What happens when you type google.com on your browser ? 10. You are given with 3 files which are taken as dumps from tcpdump. Write an algorithm to merge them in the order of their timestamp. 11. What is the difference between structure and union? In C, you dont have unioin(not a native data type in C), how do you implement / make use of ? 12. Explain address space of a process. Round 1 : --------- 1. You are given with a string. If string has any extra spaces at the end, remove it (write a C program) 2. Given with 2 linked lists (singly). Write a program to find the intersection of them 3. What are hash functions ? Explain with example. 4. You are given with group of strings. Remove all the similar strings (Say your group of strings has it, kat, for, it, kat then output should be it, kat, for). How do you write optimised code ? 5. Explain TCP 3 way handshake Round 2 : --------- 1. Suppose you have a process with heap segment in which 300contiguous pages free. You want to malloc 200 pages. How does kernel return those 200pages? . How kernel cleans up small chunks of free pages in its heap ? 2. In your program you can create a struct of dynamic size. How to you allocate memory chunk in malloc ? .. (struct s*)malloc(sizeof(struct s)) would not work 3. Write a program to delete an element in doubly linked list. 4. You are given with array of characters. Write a program to recognize the first unique element with complexity of O(N) 5. What is segmentation and reassembly in TCP 6. What would happen if there is ACK loss in TCP 3 way handshake ? 7. Round 3 : --------- 1. Write a program to write traceroute utility (Hint : using TTL in TCP) 2. What is Binary search tree? Given a tree , write a function to find if its binary search tree or not. 3. Write program for pre, in, post order traversals of BST. Write the outputs of them 4. Given a circular linked list, write a program to remove 2nd, 4th, 6th etc elements. 5. Suppose there are hundreads of clients to single server. Server has received multiple syn requests from clients, but not acks. There can be n/w buffer overflow. How to code to handle such situations. 6. Do you know about sync cookies ?

Viewing 2751 - 2760 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 3,997 interview questions and reports from Software developer ii interviews. Prepare for your interview. Get hired. Love your job.