TCS
10+ Inmakes Infotech Interview Questions and Answers
Q1. if u brought a pen for 50rs and then u sold it for 60rs what is your percentage of profit or loss?
Bought a pen for 50rs and sold it for 60rs. What is the percentage of profit or loss?
Profit = Selling Price - Cost Price
Profit = 60 - 50 = 10
Profit Percentage = (Profit / Cost Price) * 100
Profit Percentage = (10 / 50) * 100 = 20%
Therefore, the percentage of profit is 20%
Q2. what is mean by stress and strain and what are its units?
Stress is the force applied to an object, while strain is the deformation caused by that force.
Stress is measured in units of force per unit area, such as pounds per square inch (psi) or newtons per square meter (N/m²).
Strain is a dimensionless quantity, typically expressed as a percentage or decimal, and is calculated as the change in length or shape divided by the original length or shape.
Stress and strain are related by a material's modulus of elasticity, which describes h...read more
Q3. how will you print any statement in python language?
To print a statement in Python, use the print() function.
Use the print() function followed by the statement you want to print.
Enclose the statement in quotes if it is a string.
You can also print variables or expressions by separating them with commas.
To print multiple statements on the same line, use the end parameter.
Q4. what is prime numbers definition?
Prime numbers are positive integers greater than 1 that are only divisible by 1 and themselves.
Prime numbers have only two factors: 1 and the number itself.
Examples of prime numbers include 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, and 97.
Prime numbers are important in cryptography and number theory.
Q5. Explain software development life cycle each phase requirements,design, development, testing,?
Software development life cycle consists of requirements, design, development, and testing phases.
Requirements phase involves gathering and analyzing user needs and defining system requirements.
Design phase involves creating a detailed plan for the software system, including architecture, modules, and interfaces.
Development phase involves writing code and implementing the design.
Testing phase involves verifying that the software meets the requirements and works as expected.
Ea...read more
Q6. What is inheritance and encapsulation?
Inheritance is a mechanism where a new class is derived from an existing class. Encapsulation is the process of hiding implementation details from the user.
Inheritance allows the new class to inherit properties and methods of the existing class.
Encapsulation helps in achieving data abstraction and security.
Inheritance promotes code reusability while encapsulation promotes data security.
Example of inheritance: class Car extends Vehicle
Example of encapsulation: private variable...read more
Q7. Why do we need databases?
Databases are essential for storing, organizing, and retrieving large amounts of data efficiently.
Databases provide a structured way to store and manage data.
They allow for efficient retrieval of data through queries.
Databases can handle large amounts of data and ensure data integrity.
They enable multiple users to access and modify data simultaneously.
Examples include MySQL, Oracle, MongoDB, and SQL Server.
Q8. What is a pointer?
A pointer is a variable that stores the memory address of another variable.
Pointers allow for dynamic memory allocation and manipulation.
They are commonly used in C and C++ programming languages.
Example: int *ptr; ptr = # *ptr = 10; //num now has a value of 10
Pointers can also be used to pass variables by reference in function calls.
Q9. What are databases?
Databases are organized collections of data that can be accessed, managed, and updated easily.
Databases store data in tables with rows and columns.
They allow for efficient data retrieval and manipulation.
Examples include MySQL, Oracle, MongoDB, and SQLite.
Q10. explain the difference between tuple an list in python
Tuple is immutable and enclosed in parentheses, while list is mutable and enclosed in square brackets in Python.
Tuple is immutable, meaning its elements cannot be changed once it is created.
List is mutable, meaning its elements can be modified after creation.
Tuple is enclosed in parentheses (), while list is enclosed in square brackets [].
Tuple is faster than list for iteration and accessing elements.
Example: tuple_example = (1, 2, 3) ; list_example = [1, 2, 3]
Q11. Difference between primary key and unique
Primary key uniquely identifies a record in a table, while unique constraint ensures no duplicate values in a column.
Primary key can't have NULL values, while unique constraint allows one NULL value.
A table can have only one primary key, but multiple unique constraints.
Primary key is automatically indexed, while unique constraint may or may not be indexed.
Primary key is used to establish relationships between tables, while unique constraint is used to enforce data integrity.
Q12. What are the java operators
Java operators are symbols used to perform operations on variables and values.
Arithmetic operators (+, -, *, /, %)
Assignment operators (=, +=, -=, *=, /=, %=)
Comparison operators (==, !=, >, <, >=, <=)
Logical operators (&&, ||, !)
Bitwise operators (&, |, ^, ~, <<, >>, >>>)
Ternary operator (condition ? value1 : value2)
Instanceof operator (object instanceof class)
Null coalescing operator (a ?? b)
Q13. What is polymorphism?
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It can be achieved through method overloading or method overriding.
Example: A shape class can have different subclasses like circle, square, and triangle, each with their own implementation of the draw method.
Polymorphism makes code more flexible and reusable.
Q14. What is abstraction?
Abstraction is the process of hiding complex implementation details and showing only the necessary information to the user.
Abstraction is a fundamental concept in object-oriented programming.
It helps in reducing complexity and increasing efficiency.
Abstraction can be achieved through abstract classes and interfaces.
For example, a car dashboard is an abstraction of the car's internal workings.
Another example is a TV remote, which abstracts the complex functions of the TV into ...read more
Q15. What is SQL?
SQL is a programming language used to manage and manipulate relational databases.
SQL stands for Structured Query Language
It is used to create, modify, and query databases
Common commands include SELECT, INSERT, UPDATE, and DELETE
Examples of relational databases include MySQL, Oracle, and SQL Server
Q16. diff between 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 polymorphism and inheritance.
C++ has a standard template library (STL) while C does not.
C++ allows function overloading while C does not.
C++ has exception handling while C does not.
Q17. What is predicate
Predicate is a function that returns a boolean value based on input parameters.
Predicate is commonly used in programming languages to filter data based on certain conditions.
It can be used with higher-order functions like filter, map, and reduce.
Example: A predicate function in JavaScript that checks if a number is even: function isEven(num) { return num % 2 === 0; }
Q18. Project explain architecture
The project architecture is designed to outline the structure and components of the software system.
The architecture includes high-level components and their interactions.
It defines the overall structure of the system and how different modules communicate.
It may involve layers such as presentation, business logic, and data access.
Examples: MVC architecture, microservices architecture, client-server architecture.
More about working at TCS
Interview Process at Inmakes Infotech
Top Software Engineer Trainee Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month