Tata Consultancy Services (TCS) interview experience Real time questions & tips from candidates to crack your interview

Data Scientist

Tata Consultancy Services (TCS)
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: SQL, Python, Machine learning, Exploratory Data analysis(EDA), NLP, Data Modelling, Spark,
Tip
Tip

Tip 1 : Make your fundamental basics very strong especially pandas, machine learning and SQL.
Tip 2 : Have very very good command on SQL and EDA.
Tip 3 : Prepare at least 2-3 project and grab end to end understanding of these projects.
Tip 4 : SQL is the key. So do not underestimate SQL.
Tip 5 : Data visualization Tools like Tableau and Power BI will definitely add points to your profile.

Application process
Where: Referral
Eligibility: 6 CGPA. At least one project developed by us end to end. Python was must.
Resume Tip
Resume tip

Tip 1: Be apt while telling about your skills and work. No need to claim things which you haven't worked at.
Tip 2: Read your resume very thoroughly because resume is the only thing that will drive your interview for next 45 
minutes or 1 hour.
Tip 3: Format and naming convention should fit according to the role.
For ex: If you are fresher, you can mention projects undertaking. But if you are a experienced candidate, you 
should write experience highlights or Responsibilities etc.

Interview rounds

01
Round
Easy
Coding Test - Pen and paper
Duration90 minutes
Interview date22 Aug 2018
Coding problem1

It was for 90 minutes.
Mainly aptitude and logical round.

1. Python coding question

Stemming text words having ['ed','ly','ing'] at last without using NLTK package.

Problem approach

I split the text using text.split() and post that I apply the logic to remove suffixes like ed, ing, ly .
Finally i joined the string using + opearator.

Solution: 
def stemmer(text):
s=""
for i in text.split():
if i.endswith('ed'):
i=i[:(len(i)-len('ed'))]
elif i.endswith('ly'):
print("*****ly")
i=i[:(len(i)-len('ly'))]
elif i.endswith('ing'):
print("&&&&&&ingg")
i=i[:(len(i)-len('ing'))]
elif len(i)>8:
i=i[:8]
print("hello")
print(i)
s="".join(i)
print(s)
return s

text= "a boy is jumping quickly"
op=stemmer(text)
print(op)

02
Round
Easy
Face to Face
Duration60 minutes
Interview date2 Nov 2018
Coding problem2

Timing- It was in the evening 4-5 PM
The environment was quite positive.
Interviewer was quite interactive.

1. Reverse Words In A String

Easy
10m average time
90% success
0/40
Asked in companies
FacebookAmerican ExpressJP Morgan

You are given a string 'str' of length 'N'.


Your task is to reverse the original string word by word.


There can be multiple spaces between two words and there can be leading or trailing spaces but in the output reversed string you need to put a single space between two words, and your reversed string should not contain leading or trailing spaces.


Example :
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Problem approach

I applied split function and then I used slicing to reverse the substrings.
Solution: 
I/P: string = "This is Nishant"
Expected O/P: "Nishant is This"

# reversing words in a given string
s = string.split()[::-1]
l = []
for i in s:
# apending reversed words to l
l.append(i)
# printing reverse words
print(" ".join(l))

Try solving now

2. Puzzle

How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires burn non-uniformly. So, for example, the two halves of wire might burn in 10 minutes and 50 minutes respectively

Problem approach

Tip 1:If we light a stick, it takes 60 minutes to burn completely. What if we light the stick from both sides? It will take exactly half the original time, i.e. 30 minutes to burn completely.
Tip 2:0 minutes – Light stick 1 on both sides and stick 2 on one side.
Tip 3:30 minutes – Stick 1 will be burnt out. Light the other end of stick 2.
Tip 4:45 minutes – Stick 2 will be burnt out. Thus 45 minutes is completely measured.

03
Round
Medium
Face to Face
Duration50 minutes
Interview date16 Nov 2018
Coding problem1

This round was very specific to data science only.
It was revolving all around data. They asked me concepts about python, SQL, Machine Learning, NLP, Pandas, Spark

1. ML Question

Build a multilinear regression model for the predicting the sales growth for next quarter.

Problem approach

I first perform EDA and draw some insights about the data given.
Then I build multilinear regression model that was giving accuracy 82%. I checked R2 and RMSE Matrices and post that i changed the parameters again to perform hyperparameter tuning.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
System Engineer
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
Assistant System Engineer
2 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1315 views
1 comments
0 upvotes
company logo
Assistant System Engineer
4 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1019 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
681 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Data Scientist
3 rounds | 1 problems
Interviewed by Cognizant
1941 views
0 comments
0 upvotes
company logo
Data Scientist
2 rounds | 11 problems
Interviewed by Ernst & Young (EY)
2485 views
0 comments
0 upvotes
company logo
Data Scientist
2 rounds | 5 problems
Interviewed by Cognizant
1548 views
1 comments
0 upvotes