Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by TCS Team. If you also belong to the team, you can get access from here

TCS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Clear (1)

TCS SDE-2 Interview Questions and Answers

Updated 16 Sep 2021

TCS SDE-2 Interview Experiences

3 interviews found

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Dec 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

It was in the morning about 10:00AM-10:40AM. The platform used for this round was hackerrank. There are 15 MCQ's which cover portions of Aptitude, Data Structures, DBMS, SQL

  • Q1. 

    Minimum Operations Problem Statement

    You are given an array 'ARR' of size 'N' consisting of positive integers. Your task is to determine the minimum number of operations required to make all elements in t...

  • Ans. 

    Minimum number of operations to make all elements in the array equal by performing addition, subtraction, multiplication, or division.

    • Iterate through the array to find the maximum and minimum values.

    • Calculate the difference between the maximum and minimum values.

    • The minimum number of operations needed is the difference between the maximum and minimum values.

  • Answered by AI
Round 2 - HR 

Round duration - 15 minutes
Round difficulty - Easy

It was in the night around 7:00PM-7:20PM. Platform used for this round was skype. Interviewer was very serious while taking my interview.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in DelhiEligibility criteriaAbove 7 CGPATata Consultancy Services (TCS) interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, OOPS, Data Science, Aptitude, DBMSTime required to prepare for the interview - 3.5 monthsInterview preparation tips for other job seekers

Tip 1 : Practice as much as you can
Tip 2 : Try to get a good hold in Data Structures
Tip 3 : Do atleast 2 projects

Application resume tips for other job seekers

Tip 1 : It should not be too long or too short.
Tip 2 : Each skill should be mentioned properly.

Final outcome of the interviewSelected

Sopra Steria

Rated 4 for Job Security by our employees on AmbitionBox

Secure your future with a company that values your job stability.

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 180 minutes
Round difficulty - Hard

Timing: 8 a.m. to 11a.m.
Environment was optimum.
No significant activity.

  • Q1. 

    Edit Distance Problem Statement

    Given two strings S and T with lengths N and M respectively, your task is to find the "Edit Distance" between these strings.

    The Edit Distance is defined as the minimum nu...

  • Ans. 

    The task is to find the minimum number of operations required to convert one string into another using delete, replace, and insert operations.

    • Use dynamic programming to solve the problem efficiently.

    • Create a 2D array to store the minimum edit distance for substrings of the two input strings.

    • Iterate through the strings and update the array based on the operations needed for each character.

    • Return the value in the bottom ...

  • Answered by AI
Round 2 - Video Call 

Round duration - 30 minutes
Round difficulty - Medium

Timing: 12:00 p.m. to 12:30 p.m.
The environment was quite good.
No significant activity.
Interviewers were very friendly. They were behaving like friends.

Round 3 - HR 

Round duration - 15 minutes
Round difficulty - Easy

Timing: 3:00 p.m. to 3:20 p.m.
Environment was very good.
No significant activity was monitored.
HR was very good and friendly.

Interview Preparation Tips

Professional and academic backgroundI completed Civil Engineering from Heritage Institute of Technology. I applied for the job as SDE - 2 in KolkataEligibility criteriaAbove 6.5 CGPATata Consultancy Services (TCS) interview preparation:Topics to prepare for the interview - Data Structures, Dynamic Programming, OOPS, Computer Networks, System DesignTime required to prepare for the interview - 7 monthsInterview preparation tips for other job seekers

Tip 1 : Do minimum 3 projects
Tip 2 : Prepare every topic of DSA for interview
Tip 3 : Hands on experience in performing MySql commands

Application resume tips for other job seekers

Tip 1 : Be precise and don't bluff
Tip 2 : Learn atleast 2 programming languages
Tip 3 : Do projects on latest technologies like Artificial Intelligence and Machine Learning

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions Asked at Other Companies

asked in Walmart
Q1. Maximum Frequency Number Problem Statement Given an array of inte ... read more
asked in Atlassian
Q2. K Most Frequent Words Problem Statement Given an array of N non-e ... read more
Q3. Reverse String Operations Problem Statement You are provided with ... read more
asked in KhataBook
Q4. Alien Dictionary Problem Statement Ninja is mastering an unusual ... read more
asked in Zoho
Q5. Make Palindrome Problem Statement You are provided with a string ... read more

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 15 Sep 2021

I was interviewed before Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 360 minutes
Round difficulty - Hard

Timing- Any 6 hours of my choice in the 24 hour window. (10:00 p.m. to 4:00 a.m. I selected)
Environment was very friendly and easy to use.
No significant activity.
This was the only coding round.

  • Q1. 

    Prime Time Again Problem Statement

    You are given two integers DAY_HOURS and PARTS. The integer 'DAY_HOURS' represents the number of hours in a day, and the day can be divided into 'PARTS' equal parts. You...

  • Ans. 

    Find total instances of equivalent prime groups in a day divided into equal parts.

    • Iterate through each part of the day and check for prime pairs in different parts

    • Use a helper function to check if a number is prime

    • Ensure the day is evenly divided by parts and each prime group has hours from different parts

  • Answered by AI
Round 2 - Telephonic Call 

Round duration - 10-15 minutes
Round difficulty - Easy

Timing- 12:15 p.m. 
Environment was very good .
Not any significant activity.
The interviewer was very friendly and talked like friends.

Round 3 - HR 

Round duration - 20 minutes
Round difficulty - Medium

Timing- 12:30 p.m. to 12:45 p.m
Environment was very comfortable.
No other significant activity.
Interviewer was very good and talking very politely & friendly.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from D Y Patil School Of Engineering Academy,Ambi.. I applied for the job as SDE - 2 in PuneEligibility criteriaAbove 6.75 CGPA, No running backlogsTata Consultancy Services (TCS) interview preparation:Topics to prepare for the interview - DBMS, Sorting Algorithms, SDLC, Computer Networks, Basics of DSATime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Make sure what you have learnt in DSA you can do it practically by writing codes.
Tip 2 : Must have a hands-on experience in writing SQL commands.
Tip 3 : Do atleast 3-4 projects so that you have an option to explain any one of them if the interviewer asks.

Application resume tips for other job seekers

Tip 1 : Write only true data in resume. Don't bluff as you may get caught which will be very embarrassing.
Tip 2 : Have some latest technology related projects in your resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

I was interviewed before May 2021.

Round 1 - Telephonic Call 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

  • Q1. 

    Remove Consecutive Duplicates Problem Statement

    Given a string S, your task is to recursively remove all consecutive duplicate characters from the string.

    Input:

    String S

    Output:

    Output string

    Constr...

  • Ans. 

    Recursively remove consecutive duplicate characters from a string.

    • Use recursion to check if the current character is the same as the next character, if so, skip the next character

    • Base case: if the string is empty or has only one character, return the string

    • Recursive case: if the current character is the same as the next character, call the function recursively with the string excluding the next character

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 90 minutes
Round difficulty - Easy

  • Q1. 

    Reverse String Operations Problem Statement

    You are provided with a string S and an array of integers A of size M. Your task is to perform M operations on the string as specified by the indices in array A...

  • Ans. 

    Perform a series of reverse string operations on a given string based on specified indices.

    • Iterate through the array of indices and reverse the substring of the string based on the given indices.

    • Ensure to reverse the substring from the starting index to len(S) - starting index - 1.

    • Continue the operations in the sequence specified by the array of indices to get the final string.

  • Answered by AI
Round 3 - HR 

Round duration - 50 minutes
Round difficulty - Medium

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in BangaloreEligibility criteria60%Tech Mahindra interview preparation:Topics to prepare for the interview - Java, Data Structures, Oops Concept, Angular, Basic fundamental of Computer ScienceTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Prepare well for resume & confidence for basic part of CS.
Tip 2 : Good knowledge of skills set which mentioned in CV.
Tip 3 : Explain about projects which you have worked earlier & your roles and responsibilities.

Application resume tips for other job seekers

Tip 1 : Mentioned all the skills & certificate till date update your resume every 3 month's. 
Tip 2 : Proper skills set with project explanation and duration of project which you have worked on

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

Mphasis user image Anonymous

posted on 17 Dec 2021

I was interviewed in Aug 2021.

Round 1 - Video Call 

(3 Questions)

Round duration - 45 minutes
Round difficulty - Medium

Technical Interview round that lasted for about 45 minutes. Questions were based on Java, Java design Patterns and OOPS Concepts.

  • Q1. What are static methods in interfaces?
  • Ans. 

    Static methods in interfaces are methods that can be called without creating an instance of the interface implementation.

    • Static methods in interfaces were introduced in Java 8.

    • They are used for providing utility methods that are related to the interface but do not require an instance of the implementing class.

    • Static methods in interfaces cannot be overridden by implementing classes.

    • Example: interface MyInterface { stat...

  • Answered by AI
  • Q2. Why was a new version of Java (Java 8) needed in the first place?
  • Ans. 

    Java 8 was needed to introduce new features like lambda expressions, streams, and default methods.

    • Introduction of lambda expressions for functional programming

    • Streams API for processing collections in a functional style

    • Default methods in interfaces for backward compatibility

    • Improved performance with the introduction of the Nashorn JavaScript engine

    • Date and Time API for better handling of date and time operations

  • Answered by AI
  • Q3. In how many ways can you create a singleton pattern in Java?
  • Ans. 

    There are multiple ways to create a singleton pattern in Java, including using static initialization, lazy initialization, and enum.

    • Using static initialization: Create a private static instance of the class and a public static method to return that instance.

    • Lazy initialization: Create a private static instance of the class and a public static method to check if the instance is null before creating it.

    • Using enum: Create...

  • Answered by AI
Round 2 - Video Call 

(4 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round that lasted for about 45 minutes. Questions were based on Spring boot and Microservices Concepts.

  • Q1. What is the difference between the Bridge Pattern and the Adapter Pattern in Java?
  • Ans. 

    Bridge Pattern decouples abstraction from implementation, while Adapter Pattern adapts an interface to another.

    • Bridge Pattern separates abstraction and implementation using composition, while Adapter Pattern adapts an interface to another without changing its original structure.

    • Bridge Pattern allows for changes in both abstraction and implementation independently, while Adapter Pattern allows incompatible interfaces to...

  • Answered by AI
  • Q2. What is the difference between @RestController and @Controller in Spring Boot?
  • Ans. 

    Difference between @RestController and @Controller in Spring Boot

    • 1. @Controller is used to create web MVC controllers while @RestController is used to create RESTful web services.

    • 2. @Controller returns the view to be rendered while @RestController returns the object and data is written directly to the HTTP response as JSON or XML.

    • 3. @RestController is a specialized version of @Controller that includes @Controller and @...

  • Answered by AI
  • Q3. What is the difference between Spring and Spring Boot?
  • Ans. 

    Spring is a framework for building Java applications, while Spring Boot is an extension that simplifies the setup and configuration.

    • Spring is a comprehensive framework for building Java applications, providing features like dependency injection, aspect-oriented programming, and more.

    • Spring Boot is an extension of the Spring framework that aims to simplify the setup and configuration of Spring applications.

    • Spring Boot i...

  • Answered by AI
  • Q4. What is the difference between Monolithic and Microservices Architecture?
  • Ans. 

    Monolithic architecture is a single-tiered software application where all components are tightly coupled, while microservices architecture is a distributed approach where the application is broken down into smaller, loosely coupled services.

    • Monolithic architecture has a single codebase and database, while microservices have multiple smaller services with their own codebase and database.

    • Monolithic applications are harde...

  • Answered by AI
Round 3 - HR 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

This was a typical HR round with some standard Behavioral questions

  • Q1. Why should we hire you?

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMphasis interview preparation:Topics to prepare for the interview - Java, Spring Boot Framework, Data Structures, Algorithms, System Design, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Campus Placement and was interviewed before Feb 2021. There were 3 interview rounds.

Round 1 - Aptitude Test 

Aptitude round consists Logical reasoning, General Aptitude, Grammar related questions etc. All are moderate level questions.

Round 2 - Technical 

(3 Questions)

  • Q1. Explain OOPs w.r.t Java
  • Ans. 

    OOPs is a programming paradigm that uses objects to represent real-world entities. Java is an OOPs language.

    • OOPs stands for Object-Oriented Programming System

    • Java is a class-based OOPs language

    • Encapsulation, Inheritance, Polymorphism, and Abstraction are the four pillars of OOPs

    • Objects have state and behavior

    • Java supports interfaces, which allow for multiple inheritance

    • Example: A car can be represented as an object wit...

  • Answered by AI
  • Q2. Explain about the projects that you have worked on
  • Q3. Explain how Java solves machine dependency of code execution
  • Ans. 

    Java solves machine dependency by using bytecode and virtual machine.

    • Java code is compiled into bytecode which is platform-independent

    • The bytecode is executed by the Java Virtual Machine (JVM) which is platform-specific

    • JVM translates bytecode into machine code for the specific platform

    • This allows Java code to run on any platform with a JVM installed

    • Example: A Java program compiled on Windows can run on Linux or Mac as

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. Why should we hire you?
  • Q2. Tell me about yourself.

Interview Preparation Tips

Topics to prepare for Infosys System Engineer interview:
  • Java
Interview preparation tips for other job seekers - Keep it simple, Prepare basics of 1st preferred Programming Language.

Skills evaluated in this interview

I applied via Campus Placement and was interviewed before Feb 2021. There were 3 interview rounds.

Round 1 - Aptitude Test 

The medium level questions are present

Round 2 - Group Discussion 

There was no gd

Round 3 - HR 

(5 Questions)

  • Q1. What is your family background?
  • Q2. Why should we hire you?
  • Q3. What are your strengths and weaknesses?
  • Q4. Tell me about yourself.
  • Q5. Hr round and the technical discussion was combined into one round

Interview Preparation Tips

Interview preparation tips for other job seekers - Try to enhance your skills and be prepared for hard work

I applied via Campus Placement and was interviewed before May 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

Numerical ability and logical reasoning followed by some coding mcqs

Round 2 - Technical 

(1 Question)

  • Q1. Print 1 to 100 without for loop
  • Ans. 

    Printing 1 to 100 without for loop

    • Use recursion to print numbers from 1 to 99

    • Print 100 outside the recursion

    • Use a base case to stop recursion at 100

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare from interview bit and practice mcqs

I applied via Campus Placement and was interviewed before Jun 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

Simple aptitude test

Round 2 - One-on-one 

(1 Question)

  • Q1. General questions as per your cv

Interview Preparation Tips

Topics to prepare for Infosys System Engineer interview:
  • Aptitude
Interview preparation tips for other job seekers - Great company for freshers.. lot to learn and experience

I applied via Campus Placement and was interviewed before Aug 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

It was a basic aptitude test.

Round 2 - One-on-one 

(1 Question)

  • Q1. Interview was fine. Mostly asked about my final year project.

Interview Preparation Tips

Interview preparation tips for other job seekers - Attend the interview with cool head. All the best.
Contribute & help others!
anonymous
You can choose to be anonymous

Recently Viewed

SALARIES

PolicyBazaar

REVIEWS

Adrosonic

No Reviews

SALARIES

Adrosonic

No Salaries

INTERVIEWS

Clumio

No Interviews

INTERVIEWS

Unbxd

No Interviews

LIST OF COMPANIES

Adrosonic

Overview

COMPANY BENEFITS

Adrosonic

No Benefits

Tell us how to improve this page.

HCLTech

There's no stopping you

Interview Questions from Similar Companies

Accenture Interview Questions
3.8
 • 8.1k Interviews
Infosys Interview Questions
3.6
 • 7.5k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Cognizant Interview Questions
3.8
 • 5.6k Interviews
Capgemini Interview Questions
3.7
 • 4.7k Interviews
Tech Mahindra Interview Questions
3.5
 • 3.8k Interviews
HCLTech Interview Questions
3.5
 • 3.8k Interviews
Genpact Interview Questions
3.8
 • 3.1k Interviews
LTIMindtree Interview Questions
3.8
 • 2.9k Interviews
IBM Interview Questions
4.0
 • 2.3k Interviews
View all
TCS SDE-2 Salary
based on 4 salaries
₹15 L/yr - ₹33.2 L/yr
43% less than the average SDE-2 Salary in India
View more details
System Engineer
1.1L salaries
unlock blur

₹0 L/yr - ₹0 L/yr

IT Analyst
66.6k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

AST Consultant
51.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Assistant System Engineer
29.8k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Associate Consultant
29.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare TCS with

Amazon

4.1
Compare

Wipro

3.7
Compare

Infosys

3.6
Compare

Accenture

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview
Rate your experience using AmbitionBox
Terrible
Terrible
Poor
Poor
Average
Average
Good
Good
Excellent
Excellent