Add office photos
Engaged Employer

10405090xyzabc

3.8
based on 17 Reviews
Video summary
Filter interviews by

Larsen & Toubro Limited Interview Questions and Answers

Updated 18 Feb 2025

Q1. What is a use case diagram, and in what scenarios is it typically utilized?

Ans.

A use case diagram is a visual representation of the interactions between users and a system, showing the various use cases and actors involved.

  • Use case diagrams are typically utilized in software development to capture the functional requirements of a system.

  • They help in identifying the different ways users can interact with the system and the various scenarios that can occur.

  • Use case diagrams show the relationships between actors (users) and use cases, helping in understand...read more

Add your answer

Q2. What is a use case diagram, and in which scenarios is it typically used?

Ans.

A use case diagram is a visual representation of the interactions between users and a system, showing the different ways users can interact with the system.

  • Use case diagrams are typically used in software development to capture the functional requirements of a system.

  • They help in identifying the actors (users) and their interactions with the system.

  • Use case diagrams show the various use cases or scenarios in which the system can be used.

  • They are useful for communicating syste...read more

Add your answer

Q3. how to reverse a linklist

Ans.

To reverse a linked list, iterate through the list and change the direction of pointers.

  • Iterate through the linked list and keep track of the previous, current, and next nodes.

  • Update the pointers of each node to reverse the direction.

  • Set the head of the linked list to the last node encountered during iteration.

Add your answer

Q4. Define encapsulation and provide an example. Discuss the principles of inheritance and polymorphism.

Ans.

Encapsulation is the concept of bundling data and methods that operate on the data into a single unit. Inheritance allows a class to inherit attributes and methods from another class. Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • Encapsulation helps in data hiding and abstraction

  • Example: A class 'Car' encapsulates data like make, model, and methods like start(), stop()

  • Inheritance allows for code reusability and promotes the c...read more

Add your answer
Discover Larsen & Toubro Limited interview dos and don'ts from real experiences

Q5. Explain how to detect a cycle in a linked list.

Ans.

Use Floyd's Tortoise and Hare algorithm to detect a cycle in a linked list.

  • Start with two pointers, slow and fast, moving at different speeds.

  • If there is a cycle, the two pointers will eventually meet at some point.

  • If there is no cycle, the fast pointer will reach the end of the list.

  • Example: 1->2->3->4->5->2 (cycle at node 2), slow and fast pointers will meet at node 2.

Add your answer

Q6. What is a transaction in DBMS, what are ACID properties? Explain the difference between SQL and NoSQL databases. How would you optimize a slow running query?

Ans.

A transaction in DBMS is a unit of work that must be executed as a whole. ACID properties ensure data integrity. SQL is relational, NoSQL is non-relational.

  • A transaction in DBMS is a set of operations that must be executed as a single unit.

  • ACID properties (Atomicity, Consistency, Isolation, Durability) ensure data integrity in transactions.

  • SQL databases are relational and use structured query language, while NoSQL databases are non-relational and offer more flexibility.

  • To opt...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Larsen & Toubro Limited

based on 1.4k interviews
Interview experience
3.0
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.1
 • 276 Interview Questions
4.1
 • 148 Interview Questions
4.1
 • 146 Interview Questions
3.8
 • 144 Interview Questions
3.7
 • 142 Interview Questions
View all
Top 10405090xyzabc Interview Questions And Answers
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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