Team Lead and Developer

Team Lead and Developer Interview Questions and Answers

Updated 5 Nov 2024

Q1. What is C data structure, write a program to reverse single linked list.

Ans.

C data structure is a way to organize and store data in memory. Reversing a single linked list involves changing the direction of pointers to traverse the list in reverse order.

  • Define a struct Node with data and next pointer

  • Initialize three pointers prev, current, and next to NULL, head, and head->next respectively

  • Iterate through the list, updating pointers to reverse the list

  • Update head to point to prev at the end of the iteration

Q2. What is cursor stored procedure and function different type of joins and complex queries

Ans.

Cursor stored procedure is used to iterate through a result set. Different types of joins include inner, outer, left, right, and cross. Complex queries involve multiple tables and conditions.

  • Cursor stored procedure is used to fetch and process each row of a result set one at a time

  • Inner join returns only the matching rows from both tables

  • Outer join returns all the rows from one table and matching rows from the other table

  • Left join returns all the rows from the left table and ...read more

Q3. What is a socket explain with different calls

Ans.

A socket is a communication endpoint that allows two processes to communicate with each other.

  • A socket is identified by an IP address and a port number.

  • Different socket calls include socket(), bind(), listen(), accept(), connect(), send(), and recv().

  • socket(): Creates a new socket.

  • bind(): Binds a socket to a specific IP address and port number.

  • listen(): Listens for incoming connections on a socket.

  • accept(): Accepts an incoming connection on a socket.

  • connect(): Initiates a con...read more

Q4. What is fork, explain.

Ans.

Fork is a system call in Unix-like operating systems that creates a new process by duplicating the existing process.

  • Fork is used to create a new process that is a copy of the calling process.

  • The new process created by fork has its own memory space and runs independently of the parent process.

  • Fork returns different values in the parent and child processes to distinguish between them.

  • Commonly used in creating multi-process applications or forking a process to run in the backgro...read more

Team Lead and Developer Jobs

Team Lead and Developer 4-6 years
Vasudhaiva Kutumbakam Group
1.0
₹ 10 L/yr - ₹ 20 L/yr
Noida
Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 8.2k Interviews
3.5
 • 3.9k Interviews
3.9
 • 1.6k Interviews
3.4
 • 1.1k Interviews
3.3
 • 520 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Team Lead and Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter