Add office photos
Engaged Employer

LTIMindtreeVerified

3.7
based on 22k Reviews
Video summary
Filter interviews by

20+ Lupin Interview Questions and Answers

Updated 25 Apr 2025
Popular Designations

Q1. Write an SQL query to find all employees in the table who have the third-highest salary.

Ans.

Use SQL query to find employees with third highest salary in table

  • Use ORDER BY clause to sort salaries in descending order

  • Use LIMIT and OFFSET to skip first two highest salaries

  • Example: SELECT employee_name FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2

Add your answer

Q2. What is the difference between .py and .pyc files?

Ans.

The .py files contain Python code, while the .pyc files are compiled bytecode files generated by Python.

  • The .py files are human-readable text files containing Python code.

  • The .pyc files are compiled bytecode files created by Python when a .py file is imported or executed.

  • The .pyc files are platform-independent and can be executed on any system with a compatible Python interpreter.

Add your answer

Q3. What is a lambda function in Python?

Ans.

Lambda function is an anonymous function in Python that can have any number of arguments, but can only have one expression.

  • Lambda functions are defined using the lambda keyword.

  • They are commonly used for small, one-time tasks where defining a full function is unnecessary.

  • Lambda functions can take any number of arguments, but can only have one expression.

  • Example: add = lambda x, y: x + y

Add your answer

Q4. What is the difference between a Data Scientist and a Data Engineer?

Ans.

Data scientists analyze and interpret complex data to inform business decisions, while data engineers design and build data pipelines to collect and store data.

  • Data scientists focus on analyzing and interpreting data to extract insights and make predictions.

  • Data engineers focus on designing and building data pipelines to collect, store, and transform data.

  • Data scientists often use machine learning algorithms and statistical models to analyze data.

  • Data engineers work with tool...read more

Add your answer
Discover Lupin interview dos and don'ts from real experiences

Q5. What are the four pillars of the OOPS concept?

Ans.

The 4 pillars of OOPS concept are Inheritance, Encapsulation, Abstraction, and Polymorphism.

  • Inheritance: Allows a class to inherit properties and behavior from another class. Example: Parent class 'Animal' and child class 'Dog'.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Using private variables and public methods.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features. Example: Interface...read more

Add your answer

Q6. What is DBMS and what are its use cases?

Ans.

DBMS stands for Database Management System. It is a software system that allows users to interact with a database.

  • DBMS helps in storing, retrieving, and managing data efficiently.

  • It provides data security, data integrity, and data consistency.

  • Use cases include online transaction processing (OLTP), data warehousing, and customer relationship management (CRM).

Add your answer
Are these interview questions helpful?

Q7. What is DBMS and what are its types?

Ans.

DBMS stands for Database Management System. It is a software system that allows users to define, create, maintain and control access to databases.

  • DBMS helps in managing data efficiently and ensures data integrity.

  • Types of DBMS include relational, hierarchical, network, object-oriented, and NoSQL databases.

  • Examples of DBMS include MySQL, Oracle, SQL Server, MongoDB, and PostgreSQL.

Add your answer

Q8. What is meant by polymorphism?

Ans.

Polymorphism is the ability of a single function or method to operate on different types of data.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

  • Example: Inheritance in object-oriented programming languages like Java allows for polymorphism.

  • Example: A method 'draw()' can be implemented differently in various subclasses of a 'S...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. generate 15 test cases for given requirement

Ans.

Generate 15 test cases for a given requirement in a Graduate Trainee interview.

  • Test case 1: Input is null

  • Test case 2: Input is an empty string

  • Test case 3: Input contains only numbers

  • Test case 4: Input contains special characters

  • Test case 5: Input contains both uppercase and lowercase letters

  • Test case 6: Input is a long string

  • Test case 7: Input is a short string

  • Test case 8: Input is a single character

  • Test case 9: Input is a sentence with punctuation marks

  • Test case 10: Input is...read more

Add your answer

Q10. What is OOP, explain in detail?

Ans.

Opps stands for Object-oriented Programming Principles, which are a set of programming concepts that help in organizing and designing code.

  • Opps includes concepts like inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance allows a class to inherit properties and methods from another class.

  • Encapsulation involves bundling data and methods that operate on the data into a single unit.

  • Polymorphism allows objects to be treated as instances of their parent class.

  • Abstr...read more

Add your answer

Q11. How do you manage data?

Ans.

I manage data by organizing, analyzing, and storing it efficiently.

  • I use database management systems to store and retrieve data.

  • I ensure data accuracy and integrity through regular audits and validations.

  • I analyze data using statistical tools and techniques to derive insights.

  • I organize data into structured formats for easy access and interpretation.

  • I prioritize data security and confidentiality to protect sensitive information.

Add your answer

Q12. What is CNN? What are its use cases?

Ans.

CNN stands for Convolutional Neural Network. It is a type of deep learning algorithm used for image recognition and classification.

  • CNNs are commonly used in computer vision tasks such as image classification, object detection, and facial recognition.

  • They are designed to automatically and adaptively learn spatial hierarchies of features from data.

  • CNNs consist of multiple layers including convolutional layers, pooling layers, and fully connected layers.

  • Examples of CNN applicati...read more

Add your answer

Q13. What is multiple inheritance?

Ans.

Multiple inheritance is a feature in object-oriented programming where a class can inherit attributes and methods from more than one parent class.

  • Allows a class to inherit attributes and methods from multiple parent classes

  • Can lead to the diamond problem where ambiguity arises if two parent classes have a method with the same name

  • Languages like C++ support multiple inheritance

Add your answer

Q14. Is it possible to cut a cake into 8 pieces with only 3 slices?

Ans.

Cut the cake into 8 pieces by making 3 slices, creating 8 equal-sized slices.

  • Make two vertical cuts to divide the cake into 4 equal quarters.

  • Then make one horizontal cut through the middle of the cake to create 8 equal-sized slices.

  • Each slice will be a triangular piece of cake.

Add your answer

Q15. What is Big Data?

Ans.

Big Data refers to large volumes of data that cannot be easily managed or analyzed using traditional data processing tools.

  • Big Data involves processing and analyzing massive amounts of data to uncover patterns, trends, and insights.

  • It typically includes structured, semi-structured, and unstructured data from various sources.

  • Examples of Big Data include social media data, sensor data, financial transactions, and healthcare records.

Add your answer

Q16. What are the disadvantages of using cloud computing?

Ans.

Disadvantages of cloud computing include security risks, dependency on internet connection, and potential downtime.

  • Security risks: Data stored in the cloud can be vulnerable to cyber attacks and breaches.

  • Dependency on internet connection: Users need a stable internet connection to access cloud services, which can be a limitation in areas with poor connectivity.

  • Potential downtime: Cloud service providers may experience outages, leading to disruptions in access to data and appl...read more

Add your answer

Q17. Why is Object-Oriented Programming (OOP) used?

Ans.

OOP is used for organizing code into reusable objects, promoting code reusability, modularity, and easier maintenance.

  • Encapsulation: Data and methods are bundled together in objects, promoting data security and code organization.

  • Inheritance: Allows for the creation of new classes based on existing ones, promoting code reuse and reducing redundancy.

  • Polymorphism: Objects can be treated as instances of their parent class, allowing for flexibility and extensibility.

  • Modularity: Co...read more

Add your answer

Q18. Explain the code logic.

Ans.

Code logic refers to the reasoning behind the structure and flow of a program's code.

  • Code logic involves understanding the sequence of steps in a program to achieve a desired outcome.

  • It includes the use of conditional statements, loops, functions, and variables to control the flow of execution.

  • Good code logic is efficient, readable, and maintainable.

  • Example: If-else statements are used to make decisions in code logic.

Add your answer

Q19. What are React Hooks?

Ans.

React Hooks are functions that let you use state and other React features without writing a class.

  • Hooks are introduced in React 16.8 to allow developers to use state and other React features in functional components.

  • useState() is a Hook that lets you add state to functional components.

  • useEffect() is a Hook that lets you perform side effects in functional components.

  • Hooks provide a more concise and readable way to work with React components compared to class components.

Add your answer

Q20. What are the pillars of Object-Oriented Programming (OOP)?

Ans.

The pillars of Object-Oriented Programming (OOP) are encapsulation, inheritance, and polymorphism.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (object).

  • Inheritance: Allowing a new class to inherit properties and behavior from an existing class.

  • Polymorphism: The ability for objects of different classes to respond to the same message in different ways.

Add your answer

Q21. Explain the projects you have worked on.

Ans.

Projects are specific tasks or assignments undertaken to achieve a particular goal or objective.

  • Projects are temporary in nature with a defined start and end date.

  • They involve a unique set of activities, resources, and constraints.

  • Projects are typically aimed at delivering a specific outcome or result.

  • Examples include developing a new product, implementing a software system, or organizing an event.

Add your answer

Q22. Write a program to check if a number is divisible by 2.

Ans.

Write a code to check if a number is divisible by 2.

  • Use the modulo operator (%) to check if the remainder is 0 when divided by 2.

  • If the remainder is 0, then the number is divisible by 2.

  • Example: if(num % 2 == 0) { // divisible by 2 }

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

Interview Process at Lupin

based on 94 interviews
4 Interview rounds
Aptitude Test Round
Technical Round
HR Round - 1
HR Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Graduate Trainee Interview Questions from Similar Companies

3.6
 • 22 Interview Questions
3.7
 • 10 Interview Questions
View all
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
75 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