The TCS Digital profile is a highly sought-after position for freshers, as it offers an attractive salary package of 7 LPA. Candidates are matched to various units based on their interests, such as IoT, AI, ML, Big Data, Virtual Reality, Blockchain, NLP, and more. The selection process for the TCS Digital profile begins with the TCS Xplore course and quizzes, which are used to assess candidates' performance.
The TCS Digital Hiring Test is a national-level exam that is conducted to hire candidates for the TCS Digital profile. The test results are used to assign a percentile to each candidate, which is used to decide their candidature. Candidates with a percentile of more than 90 are guaranteed an interview call from TCS Digital. Additionally, students who perform exceptionally well in the TCS Digital Hiring Test may also be considered for the TCS Innovator Role.
TCS Ninja: TCS Ninja is a profile name given by TCS to recruit fresh graduates across India via a National Qualifier Test (NQT). Students who qualify for TCS Ninja receive a package of around 3.5 LPA.
TCS Digital: TCS Digital is a profile name given by TCS to recruit fresh graduates across India via a National Qualifier Test (NQT). Students who qualify for TCS Digital receive a package of around 7 LPA.
TCS uses the TCS ion platform to conduct the NQT.
Candidates often face problems during the online registration and some of them are unable to find the official website of Tata Consultancy Services.
Follow these instructions for registering for the TCS Off Campus Drive 2021 :
Please note that the benefits may vary based on the location, role, and other factors.
Aptitude:
Programming Logic:
Advanced Coding:
Verbal Ability:
Quantitative Aptitude:
Advanced Coding:
After taking the TCS Digital exam, candidates move on to the selection process which includes two rounds of interviews.
The first interview round, known as the Technical Round, assesses the candidate's technical skills and knowledge of programming languages. The interviewer will ask questions related to the candidate's programming experience, projects, and problem-solving abilities.
The final round of the interview process, known as the HR round, focuses on evaluating the candidate's communication skills, attitude, and overall fit with the company culture. The interviewer will also provide an overview of the company's benefits and other relevant information about the role.
Based on the results of these interviews, TCS selects candidates for the job. It's worth noting that the selection process may vary depending on the role and location and the company reserves the right to add or remove stages as per the requirement.
#Question 1
Write a program to find the longest common prefix among an array of strings.
#Answer:
```sh
def longest_common_prefix(strs):
if len(strs) == 0:
return ""
if len(strs) == 1:
return strs[0]
strs.sort()
first = strs[0]
last = strs[-1]
for i, char in enumerate(first):
if char != last[i]:
return first[:i]
return first
print(longest_common_prefix(["flower","flow","flight"])) #"fl"
```
#Popular Question
Problem Description -: Given an array Arr[ ] of N integers and a positive integer K. The task is to cyclically rotate the array clockwise by K.
Note : Keep the first of the array unaltered.
Example
#Input:
```sh
```
#Output :
```sh
40 50 10 20 30
```
#Question2
Write a program to find the second highest number in an array.
#Answer:
```sg
def second_highest(arr):
first = max(arr)
arr.remove(first)
return max(arr)
print(second_highest([1, 2, 3, 4, 5, 6])) #5
```
#Popular Question
Problem Description -: Given two non-negative integers n1 and n2, where n1
For example:
Suppose n1=11 and n2=15.
There is the number 11, which has repeated digits, but 12, 13, 14 and 15 have no repeated digits. So, the output is 4.
Example
#Input:
```sh
```
#Output:
```sh
```
#Question 3
Write a program to implement a stack using a queue.
#Answer:
```sh
class Stack:
def __init__(self):
self.queue = []
def push(self, item):
self.queue.append(item)
def pop(self):
for i in range(len(self.queue) - 1):
item = self.queue.pop(0)
self
```
#Popular Question
Given a maximum of 100 digit numbers as input, find the difference between the sum of odd and even position digits.
#Input :
```sh
4567
```
#Expected output:
```sh
2
```
#Question 4
Write a program to find the number of vowels in a given string.
#Answer:
```sh
def count_vowels(string):
vowels = "aeiouAEIOU"
return sum(1 for c in string if c in vowels)
print(count_vowels("Hello World")) #3
```
#Question5
Write a program to find the most frequent element in an array.
#Answer:
```sh
from collections import Counter
def most_frequent(arr):
return Counter(arr).most_common(1)[0][0]
print(most_frequent([1, 2, 3, 4, 2, 2, 3, 4, 5, 4])) #4
```
Being a mechanical student and getting into an IT company is very tough. One of the main reason I could able to crack TCS CodeVita is because of Edyst.
Aneeq sir, your doubt clearing sessions, daily assignments & incredible mentors support really brushed up my skills.
“My software journey started because of Edyst. Edyst preparation and referrals helped me get my first internship and job. Thank you Edyst!”
Daily coding challenge and the doubt session helped me in staying consistent. Also, the leadership board kept me motivated. Edyst gave me the best guiding materials for all the cohorts I joined. I like everything done by Edyst for my success.
I really like the Company specific practice questions they turn out to be super helpfulduring my interview, I didn't face any difficulty, the variety and range of practice questions (especially on arrays) got me my dream job. Also, the online live session were very interactive and helped me in revision and solving doubts. Thank you Edyst.
I practice a lot at Edyst platform and what I learnt is how to code, self-learning and more & more about the practical knowledge which gradually increased my confidence level. Edyst was great platform which changed my career.
Edyst platform gave a place to practice as many questions as possible, and their live sessions were highly informative; most importantly, they resolved all students' queries.
#Question 1
Write a program to find the longest common prefix among an array of strings.
#Answer:
```sh
def longest_common_prefix(strs):
if len(strs) == 0:
return ""
if len(strs) == 1:
return strs[0]
strs.sort()
first = strs[0]
last = strs[-1]
for i, char in enumerate(first):
if char != last[i]:
return first[:i]
return first
print(longest_common_prefix(["flower","flow","flight"])) #"fl"
```
#Popular Question
Problem Description -: Given an array Arr[ ] of N integers and a positive integer K. The task is to cyclically rotate the array clockwise by K.
Note : Keep the first of the array unaltered.
Example
#Input:
```sh
```
#Output :
```sh
40 50 10 20 30
```
#Question2
Write a program to find the second highest number in an array.
#Answer:
```sg
def second_highest(arr):
first = max(arr)
arr.remove(first)
return max(arr)
print(second_highest([1, 2, 3, 4, 5, 6])) #5
```
#Popular Question
Problem Description -: Given two non-negative integers n1 and n2, where n1
For example:
Suppose n1=11 and n2=15.
There is the number 11, which has repeated digits, but 12, 13, 14 and 15 have no repeated digits. So, the output is 4.
Example
#Input:
```sh
```
#Output:
```sh
```
#Question 3
Write a program to implement a stack using a queue.
#Answer:
```sh
class Stack:
def __init__(self):
self.queue = []
def push(self, item):
self.queue.append(item)
def pop(self):
for i in range(len(self.queue) - 1):
item = self.queue.pop(0)
self
```
#Popular Question
Given a maximum of 100 digit numbers as input, find the difference between the sum of odd and even position digits.
#Input :
```sh
4567
```
#Expected output:
```sh
2
```
#Question 4
Write a program to find the number of vowels in a given string.
#Answer:
```sh
def count_vowels(string):
vowels = "aeiouAEIOU"
return sum(1 for c in string if c in vowels)
print(count_vowels("Hello World")) #3
```
#Question5
Write a program to find the most frequent element in an array.
#Answer:
```sh
from collections import Counter
def most_frequent(arr):
return Counter(arr).most_common(1)[0][0]
print(most_frequent([1, 2, 3, 4, 2, 2, 3, 4, 5, 4])) #4
```
All TCS Digital Questions
All TCS Digital Questions