Infosys
Tata Power Interview Questions and Answers
Q1. Write a code if number is series and in ascending order then number 1 is add and continue with another adding number and so on
Add 1 to each number in an ascending series
Check if the numbers are in ascending order
If yes, start with 1 and add it to the first number
Continue adding subsequent numbers with increasing values of 1
Q2. What is lambda in python
Lambda is a shorthand way of defining anonymous functions in Python.
Lambda functions are defined using the keyword 'lambda'.
They can take any number of arguments, but can only have one expression.
Lambda functions are often used as arguments for higher-order functions.
Example: lambda x: x**2 defines a function that squares its input.
Q3. What is data structures
Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.
Data structures are used to manage and manipulate data in computer programs.
They can be implemented using arrays, linked lists, trees, graphs, and other techniques.
Examples of data structures include stacks, queues, hash tables, and binary search trees.
Choosing the right data structure for a particular problem can greatly improve the efficiency of a program.
Q4. What is tulip in python
Tulip is a library for asynchronous programming in Python.
Tulip provides a set of high-level APIs for writing concurrent code using coroutines and futures.
It is included in Python 3.4 and later versions as the asyncio module.
Tulip allows for efficient and scalable I/O operations, making it useful for network programming.
Example: Using the asyncio module to create a simple HTTP server that handles multiple requests concurrently.
Q5. Define a types of oops
There are four types of OOPs: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation: Hiding the implementation details of an object from the outside world.
Inheritance: Creating a new class from an existing class, inheriting all the properties and methods of the parent class.
Polymorphism: The ability of an object to take on many forms. It allows objects of different classes to be treated as if they were objects of the same class.
Abstraction: The process of hi...read more
Q6. Difference in c and c++
C++ is an extension of C with object-oriented programming features.
C++ supports classes and objects while C does not.
C++ has better support for function overloading and templates.
C++ has a standard library that includes many useful functions.
C++ allows for both procedural and object-oriented programming.
C++ is generally considered to be more complex than C.
Interview Process at Tata Power
Top Technical Specialist Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month