Add office photos
TCS logo
Engaged Employer

TCS

Verified
3.7
based on 90.4k Reviews
Video summary
Filter interviews by
Software Engineer Trainee
Clear (1)

10+ TCS Software Engineer Trainee Interview Questions and Answers

Updated 28 Oct 2024

Q1. if u brought a pen for 50rs and then u sold it for 60rs what is your percentage of profit or loss?

Ans.

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%

View 3 more answers
right arrow

Q2. what is mean by stress and strain and what are its units?

Ans.

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

Add your answer
right arrow

Q3. how will you print any statement in python language?

Ans.

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.

View 1 answer
right arrow

Q4. what is prime numbers definition?

Ans.

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.

View 2 more answers
right arrow
Discover TCS interview dos and don'ts from real experiences

Q5. Explain software development life cycle each phase requirements,design, development, testing,?

Ans.

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

Add your answer
right arrow

Q6. What is inheritance and encapsulation?

Ans.

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

Add your answer
right arrow
Are these interview questions helpful?

Q7. Why do we need databases?

Ans.

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.

Add your answer
right arrow

Q8. What is a pointer?

Ans.

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.

View 1 answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. What are databases?

Ans.

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.

Add your answer
right arrow

Q10. explain the difference between tuple an list in python

Ans.

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]

Add your answer
right arrow

Q11. Difference between primary key and unique

Ans.

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.

Add your answer
right arrow

Q12. What are the java operators

Ans.

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)

Add your answer
right arrow

Q13. What is polymorphism?

Ans.

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.

Add your answer
right arrow

Q14. What is abstraction?

Ans.

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

Add your answer
right arrow

Q15. What is SQL?

Ans.

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

Add your answer
right arrow

Q16. diff between c and c++

Ans.

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.

Add your answer
right arrow

Q17. What is predicate

Ans.

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; }

Add your answer
right arrow

Q18. Project explain architecture

Ans.

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.

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

Interview Process at TCS Software Engineer Trainee

based on 15 interviews
3 Interview rounds
Technical Round - 1
HR Round
Technical Round - 2
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Trainee Interview Questions from Similar Companies

View all
Recently Viewed
SALARIES
Om Innovation Call Services
INTERVIEWS
Dr. Reddy's
No Interviews
INTERVIEWS
Indiamart Intermesh
No Interviews
INTERVIEWS
Ajanta Pharma
10 top interview questions
SALARIES
Torry Harris Integration Solutions
REVIEWS
Plada Infotech Services
No Reviews
INTERVIEWS
Zydus Lifesciences
No Interviews
SALARIES
Magus Customer Dialog
SALARIES
Optimus Global Services
JOBS
Sun Pharmaceutical Industries
No Jobs
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
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