Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

TCS has kick-started its select-campus TCS Digital recruitment process for 2022 pass-outs this year.

If
you’re appearing for the drive through your colleges, this Ready Reckoner document, covering the
Recruitment Process, Test Pattern, Syllabus and Most Recently Asked Questions, will help you.

Content Page
TCS Digital Roles and Packages 1
TCS Digital Eligibility Criteria 1
TCS Digital Recruitment Process & Pattern 2
Detailed Syllabus for TCS Digital Recruitment 3
TCS Digital English Questions 4
TCS Digital Quantitative Aptitude Questions 11
TCS Digital Advance Coding Questions 21

TCS Digital Role and Package

TCS Digital hires for the Digital Technology Domain, which specializes in technologies such as IoT, AI, ML,
Big Data, Virtual Reality, BlockChain, NLP, etc.
Packages
• UG - Rs. 7,00,022 + 60,000*
• PG - Rs. 7,30,034 + 60,000*
*Additional one-time incentive (upto Rs. 60,000) basis performance in Xplore

Alternative pathways to TCS Digital


1. TCS CodeVita Pre-Qualifier - top performers get a direct TCS Digital interview call
2. TCS Ninja - toppers get a chance to upgrade their package through an additional Coding test

TCS Digital Eligibility Criteria

Criteria Detail
Min 60% or 6 CGPA throughout academics and an
aggregate of 70% or 7 CGPA in the highest
Percentage
qualification, till the semester for which results have
been declared.
No active backlogs/ arrears/ ATKT at the time of
appearing for the process
Backlogs/ Arrears / ATKT No pending backlogs/ arrears/ ATKT at the time of
joining. If anything – to be cleared within the final
semester.
The break should not be due to extended education
Gap/ Break in Education Break to not exceed 24 months (Permissible only for
valid reasons)
Course Type Only full-time courses

P a g e 1 | 34
Students with secondary or senior secondary from
NIOS are also eligible (if other courses are full-time)
Work Experience up to 2 Years
Work Experience Up to 2 Years
Age 18 to 28 Years

Allowed Streams for TCS Digital Hiring

Degree Stream
• Computer Science
• Information Technology
• Software Engineering
• Electronics and Communication
UG/PG • Electrical and Electronics
• Electronics and Telecommunication
• Electronics and Instrumentation
• Mechanical
• Applied Electronics
• Mechatronics
MSc • BSc with Math/Statistics Background
• BCA with Computer Science/ Information
MCA
Technology/ Software

TCS Digital Recruitment Process

1. Online Test
2. Technical and HR Interview

TCS Digital Online Test Pattern

Section #Qs Duration (In Mins)


English 15 10
Quantitative Aptitude 15 40
Advance Coding 2 60

P a g e 2 | 34
TCS Digital Online Test Assessment Platform

Inter-sectional Intra-sectional
Assessment Platform Marking Scheme
Navigation Navigation
Negative mark for
TCS - iON Not Allowed Allowed incorrect MCQ
response
Note:
1. Calculator is present on-screen.
2. C/C++/Java/Python/Perl languages are allowed for Coding.

TCS Digital Online Test Syllabus

Section Syllabus
• Para-jumbles
• Sentence Completion
• Sentence Correction
• Cloze Passage
English • Vocabulary – Synonyms, Antonyms
• Tenses
• Phrasal Verbs
• Prepositions
• Forms of Voice and Speech
• Geometry
• Mensuration
• Progressions
• Logarithms
• Numbers
Quantitative Aptitude • Probability
• Permutation and Combination
• Time and Work
• Time Speed and Distance
• Percentages, SI and CI
• Profit and Loss
Scenario based questions of following types:
• Math-Based
• Arrays
Advanced Coding
• Strings
• Data Structures
• Algorithms Based

P a g e 3 | 34
TCS Digital English Questions

1. Select the option that is most nearly OPPOSITE in meaning to the word that is underlined.
I really love that movie since it was very DREADFUL to watch and I like such movies.
A. Pleasant
B. Atrocious
C. Awful
D. Beastly
Answer: A
Explanation:
‘Dreadful’ means ‘Terrible’
The word opposite to ‘Terrible’ is ‘Pleasant’.
Atrocious – Brutal
Awful – Bad
Beastly – Horrible
Thus, all the other three options are synonymous to ‘dreadful’

2. Rearrange the six sentences a, b, c, d, e, and f in the proper sequence so as to form a meaningful
paragraph and answer the question below.
a. You will probably have to sign a form promising to take care of the books.
b. Go to the library and see the clerk become a member.
c. When you have chosen the books you wish to take home, you take them to the clerk with the
tickets.
d. Then you are usually given two or three tickets with your name and address on them.
e. He stamps the book with the date.
f. The clerk keeps the tickets until you return the books.
Which would be the FIRST sentence in the paragraph?
A. a
B. b
C. c
D. d
E. f
Answer: B
Explanation:
The given sentences give the details of procedures to be followed in a library.
The first step must be Statement b. (One has to first go to the library)
By going with the sequence of events, the first step for becoming a member would be to sign a form
promising to take care of the books. So, the second statement would be Statement a.
After becoming a member, the membership is acknowledged by giving the tickets. So, the third
statement must be Statement d.
Going by the sequence, the next set of statements would be of the order: Statement c, Statement e,
and Statement f.
So, the final order is: badcef
Thus, the first sentence in the paragraph is ‘b’.
P a g e 4 | 34
3. Directions: The given sentence is divided into parts, select the part which has an error in it as the
correct answer.
The Vice-President of India and (a)/ the Vice-Chancellor of this university (b)/ have given (c)/ his
consent to join the meeting. (d)
A. a
B. b
C. c
D. d
Answer: D
Explanation:
The subject of the sentence is: The Vice-President of India and the Vice-Chancellor of this university
This is a plural subject. But the pronoun given is ‘his’ consent, which is a singular pronoun. So, there
is a Pronoun Antecedent agreement error in part D of the sentence.

4. Directions: Choose the most appropriate option which can replace the underlined part of the
sentence.
A large rise in the number of housing apartments in the coming year should boost new construction
dollars by several billion dollars, making the construction industry’s economic health much more
robust than five years ago.
A. making the construction industry’s economic health much more robust than five years ago
B. and make the construction industry’s economic health much more robust than five years ago
C. making the construction industry’s economic health much more robust than it was five years ago
D. to make the construction industry’s economic health much more robust than five years ago
E. in making the construction industry’s economic health much more robust than it as five years ago
Answer: C
Explanation:
Here the units compared are: The construction industry’s economic health and Five years ago
We can’t compare an industry’s health with five years ago. An industry’s health can be compared
only with how it was five years ago. This specification of the industry’s health five years ago was
given in option C and hence is the answer.

5. Fill in the blank.


He wants to stay ______ home on his mother’s birthday.
A. at
B. in
C. on
D. with
Answer: A
Explanation:
‘Home’ is a very specific location. In the case of very specific information, the preposition of place to
be used is ‘at’. Hence option A is the correct answer.
6. Choose the correct preposition/ prepositional phrase from the options to fill in the blank.

P a g e 5 | 34
Telecare is a telephone support service in the US that provides contact with people who are alone
and isolated ____ they are aged or have disabilities.
A. in contrast to
B. because
C. con the other hand
D. despite
Answer: B
Explanation:
The part following the blank gives the reason for the action given in the part preceding the blank. In
order to specify reasons, the correct preposition to be used is ‘because’. Hence, option B is the
answer.

7. Fill in the blank.


Nowadays people ______ text messages instead of phoning.
A. send
B. will be sending
C. sent
D. are sending
Answer: D
Explanation:
From the part ‘instead of phoning,’ it is understood that the action specified by the word to be fitted
on the blank is in contrast to the earlier conventional action of ‘phoning’. The new actions which are
in contrast to conventional actions are to be represented in the present continuous tense. This
required verb form is given only in option D and hence the answer.

8. Fill in the blank.


If Jack ______, they would probably win.
A. played
B. had played
C. plays
D. was playing
Answer: C
Explanation:
The given sentence is a conditional statement. Here the main clause is given in future tense (would
win). So, the conditional clause should be represented is present tense. One such verb form is given
only in option C and hence the answer.

9. Fill in the blank.


I wish we could sell the grand piano; it _______ too much space here.
A. takes out
B. takes up
C. takes on
D. takes off
Answer: B
P a g e 6 | 34
Explanation:
Take out means Obtain service
Take up means Occupy
Take on means Become very upset
Take off means Succeed
The meaning that logically fits the blank is ‘occupy’. The grand piano occupies too much space.
Hence the answer is option B, ‘takes up’.

10. Fill in the blank.


The people ought to learn their lesson. They should not _______ all the promises made by politicians.
A. fall in
B. fall at
C. fall for
D. fall into
Answer: C
Explanation:
Fall in – Take one’s place in a military formation
Fall at – There is no such phrasal verb
Fall for – Trust
Fall into – To be caught in a trap
The meaning that logically fits the blank is ‘trust’.
They should not trust all the promises made by politicians.
Hence the answer is option C, ‘fall for’.

Direction (11-15): In the passage given below, there are blanks. Every blank has four alternative
words given in options (A), (B), (C) and (D). Find the word which best suits the place.
Information technology training for IT managers and systems analysts may seem superfluous; these
___1__ are usually well-learned in their areas of ____2____ . But, do they understand how a
company's technology fits into the bigger picture from a business __3__ ?
That's where management training becomes important. Every manager who plays a role in
researching, selecting or implementing enterprise technology needs to have a firm___4___ on the
basics of emerging technologies, as well as how they serve a larger business purpose, to ensure that
technology is being used to the company's best strategic advantage. Information technology training
can help managers determine the impact of new technologies and how to ___5___ their business
processes.

11. Fill in the 1st blank.


A. ideas
B. folks
C. men
D. veterans
Answer: B

P a g e 7 | 34
Explanation:
The statement talks about people, thus ‘folks’ and ‘men’ are two possible choices, but ‘folks’ is gender
neutral and thus is more acceptable. So, option B is correct.

12. Fill in the 2nd blank.


A. appeal
B. aspiration
C. expertise
D. comforts
Answer: C
Explanation:
The statement is about the working competencies of the professionals, thus ‘areas of expertise’ is
more than appropriate here. So, option C is correct.
Appeal means to make a serious, urgent, or heartfelt request.
Aspiration means a hope or ambition of achieving something.
Comfort means a state of physical ease and freedom from pain or constraint.

13. Fill in the 3rd blank.


A. benefits
B. approach
C. requirement
D. perspective
Answer: D
Explanation:
The statement is questioning the competencies of the professionals according to their suitability to
the business scenario. ‘Requirements’ and ‘perspective’ seem appropriate; on close analysis we see
that ‘requirements’ is a very closely defined word and does not leave much scope for the abstract
stuff; ‘perspective’ is better fitted. So, option D is correct.

14. Fill in the 4th blank.


A. grasp
B. reach
C. support
D. handle
Answer: A
Explanation:
The statement sets the context of gaining advantage through having basic knowledge of the
technologies. Hence, from the given options A, ‘grasp’ suits blank the most.

15. Fill in the 5th blank.


A. adapt
B. adopt
C. adept
D. accept
P a g e 8 | 34
Answer: A
Explanation:
The statement talks about the changing scenarios in the business models and also the need for the
businesses to get in sync with the contemporary requirements; ‘adapt’ is the perfect word for it. So,
option A is correct.
Adopt means choose to take up or follow (an idea, method, or course of action)
Adept means very skilled or proficient at something

16. Choose the best meaning to the word that is underlined.


I rather like the quaint little house at the end of the street.
A. old
B. quiet
C. haunted
D. unusual
Answer: D
Explanation:
Quaint means attractive or unusual because it seems to belong to the past
Option A; Old means - that has existed for a long time; connected with past times.
Option B; Quiet means - making little or no noise.
Option C; Haunted means - (used about something unpleasant or sad) to be always in your mind
Option D; Unusual means - interesting because it is different
From the given options, Option D matches the meaning of word 'quaint'.
Hence Option D, 'Unusual' is the correct option.

17. Choose the best meaning to the word that is underlined.


The football coach had a sympathetic presence, albeit a commanding one.
A. although
B. furthermore
C. because
D. not only
Answer: A
Explanation:
The key words here are 'sympathetic' and 'commanding'.
These two words, present in two clauses, give contrasting meaning.
Hence the albeit which is a conjunction should be replaced by a conjunction which gives contrast.
From the option 'Although' fulfil this condition.
Thus, option A is the correct answer.

18. Inspect the following sentence. For it, select the option that best expresses the same sentence with
the form of speech changed.
He said, "I clean my teeth twice a day."
A. He said that he cleaned his teeth twice a day.
B. He said that he cleans his teeth twice a day.
C. He said that he used to clean his teeth twice a day.
P a g e 9 | 34
D. He said that he is used to cleaning his teeth twice a day.
Answer: C
Explanation:
In the given speech, "I clean my teeth twice a day" shows habitual activity. Hence, there will be no
change in the tense.
As per the rule of pronoun change, 'I' should be changed to 'He' and likewise 'my' should be changed
to 'his'
Hence the correct in-direct speech would be:
He said that he cleans his teeth twice a day.
Thus, option C is the correct answer.

19. The given sentence is divided in parts, select the part which has error in it as the correct answer.
Two miles beyond (a)/ that pasture was seen hundreds(b)/ of cattle including(c)/ some lambs.(d)
A. a
B. b
C. c
D. d
Answer: B
Explanation:
Rule: Verb must agree with subject in the sentence.
If subject is singular, verb should represent the singularity in the sentence.
If subject is plural, verb should represent the plurality in the sentence.
In the given sentence:
Subject - hundreds of cattle (Plural)
Verb - was (represent singularity)
Hence, part b of the sentence has an error.
Thus, option B is the correct answer.

20. Fill in the blank(s).


Most people ______ being disturbed while they _______.
A. don’t like / are working
B. would like / worked
C. like / worked
D. don’t like / didn’t like
Answer: A
Explanation:
Word ‘being’ denotes the progressive verb. Hence, the last blank must be in ‘Verb’+’ing’ form. The
option which satisfies this condition is option A.
Hence, option A is the correct answer.

P a g e 10 | 34
TCS Digital Quantitative Aptitude Questions

1. The average age of five persons in a group is 18 years. The group has an additional member, such
that the new average is 25 years less than the age of the new member. What is the age (in years) of
the new member?
A. 48
B. 38
C. 50
D. 42
Answer: A
Explanation:
Let us consider the age of new member be x, then new average of the group = x-25
By applying the concepts of weighted average,
18 × 5 + 𝑥
= 𝑥 − 25
6
=> 18 x 5 + x = 6(x-25)
=> 90 + x = 6x-150
=> 90 + 150 = 6x-x
=> 240 = 5x
=> x = 48
Hence, the new member age is 48 years.

2. What is the average of all the natural numbers from 31 to 50, both inclusive?
A. 39.5
B. 40.5
C. 40
D. 38
Answer: B
Explanation:
Given number series is 31, 32, 33,.......50 the given number series is in arithmetic progression,
(𝐹𝑖𝑟𝑠𝑡 𝑇𝑒𝑟𝑚 +𝐿𝑎𝑠𝑡 𝑇𝑒𝑟𝑚)
The average when series is in A.P = 2
So, on applying the same,
(31 +50)
Average = 2
81
= 2
= 40.5

3. A restaurant serves small pizzas of 6-inch diameter and regular pizzas of 9-inch diameter. If a small
pizza is priced at ₹200, then what is a fair price for a regular pizza of the same type?
A. ₹450
B. ₹350
C. ₹300
D. ₹400
Answer: A

P a g e 11 | 34
Explanation:
Considering the cost is directly proportional to the area of pizza.
Area of small pizza : Area of regular pizza,
= 𝜋62 : 𝜋92
= 36 : 81
= 4:9 if 4x = 200
x = 50
Then, cost of regular pizza = 9x = 9×50 = ₹450.

4. While presenting the data in the form of a positive number, I committed a mistake by mentioning the
cube of the number. If the error due to this mistake was 800%, what was the number?
A. 2
B. 4
C. 5
D. 3
Answer: D
Explanation:
Let's consider the correct no as a then cube of it will be a3
Given that error = 800%
𝐷𝑖𝑓𝑓𝑟𝑒𝑛𝑐𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑣𝑎𝑙𝑢𝑒𝑠
Which can be calculated as 𝐴𝑐𝑡𝑢𝑎𝑙 𝑉𝑎𝑙𝑢𝑒
× 100
𝑎 3 −𝑎
𝑎
× 100 = 800/100
=> a -a = 8a
3

=> a3 = 9a
=> a2 = 9
=> a = 3

5. A retailer gives a discount of 20% on an item, and yet makes a profit of 10%. What is the ratio of the
cost price to the list price?
A. 7 : 12
B. 8 : 11
C. 4 : 5
D. 1 : 2
Answer: B
Explanation:
Let us consider C.P. = 100
Then,
S.P. = C.P. + P%(C.P.)
S.P. = 100 + 10%(100)
S.P. = 110….(i)
Let’s assume M.P = x,
We know that, M.P. = S.P. + D%(M.P.)
x = S.P+20%(x)
x - 0.2x = S.P

P a g e 12 | 34
0.8x = S.P. ….(ii)
Equating both equations (i) & (ii)
0.8x = 110
x = 110/0.8
x = 1100/8
C.P : M.P = 100/(1100/8)
C.P. : M.P. = 800/1100
C.P. : M.P. = 8/11 i.e. 8 : 11

6. X goes to the office by driving at 5/7 times of his usual speed. If he normally takes half an hour to
reach his office, by how many minutes will he be late?
A. 12
B. 8
C. 10.5
D. 13.5
Answer: A
Explanation:
Let us consider usual speed as s then time taken as t, given that he is going to office 5/7 of usual
speed so now,
Speed = 5/7 s,
We know that, speed is inversely proportional to time so now time taken to reach office with 5/7s
Speed = 7/5 t
New time = 7/5 t = (5/5)t+ (2/5)t (given t = 30 mins)
New time = t+(2/5)t ,
t is the usual time so delay time = (2/5)t
Delay time = (2/5) x 30 = 2×6 = 12 minutes.

7. A set of mugs consists of 5 plastic mugs each of a different design and 2 glass mugs each of a
different design. In how many ways can these 7 mugs be arranged in a row if the glass mugs are
separated from each other?
A. 4320
B. 1440
C. 3600
D. 5040
Answer: C
Explanation:
No. of ways of arranging 7 mugs with 2 glass mugs separated = Total ways of arranging 7 mugs -
Total no. of arranging 2 glass mugs together
Total no. of ways of arranging 7 mugs = 7! = 5040
No. of ways of arranging 2 glass mugs together
= G G _ _ _ _ _ _ or _ G G _ _ _ _and so on.
= 6! × 2 ( internally we can arrange two glass in 2! ways=2)
= 720×2 = 1440
So, no. of ways of arranging 7 mugs with 2 glass mugs separated = 5040-1440 = 3600.
P a g e 13 | 34
8. P is five times as efficient as Q in respect of doing work. Together, they complete it in 20 days. In
how many days can P alone do it?
A. 26
B. 24
C. 25
D. 30
Answer: B
Explanation:
Considering efficiency of Q=1 unit/day
Then, efficiency of P = 5 × efficiency of Q = 5 × 1 = 5units/day
Given that, together they can complete the work in 20 days.
By applying the man days concept,
N×D=W
Total work = (1 + 5) × 20 = 120 units.
No. of days P require to complete the work alone = Total work / Efficiency of P
Time taken by P to complete the work = 120/5 = 24 days.

9. Apples cost L rupees per kilogram for the first 30 kilograms and Q rupees per kilogram for each
additional kilogram. If the price paid for 33 kilograms of apples is Rs. 1167 and for 36 kilograms of
apples is Rs. 1284, then the cost of the first 10 kilograms of apples is:
A. Rs. 117
B. Rs. 1053
C. Rs. 350
D. Rs. 281
Answer: C
Explanation:
Cost of 33 kilograms of apples = Rs. 1167
Cost of 36 kilograms of apples = Rs. 1284
3 kilograms of apples cost (after 30kg) = 1284 – 1167 = Rs. 117
Cost of 30 kilograms of apples = 1167 – 117 = Rs. 1050
Cost of 10 kilograms of apples = (1050/30) x 10
Cost of 10 kilograms of apples = Rs. 350

10. The king’s summer house is being rewired. The house has 11 rooms. To avoid wires getting enlarged
and creating short circuits, the electricians have been asked to observe the following rules.
• Room 1 must be rewired before rooms 3 and 4.
• Room 2 must be rewired before room 6.
• Room 3 must be rewired before room 5.
• Room 5 must be rewired before rooms 8 and 9.
• Room 6 must be rewired before room 7.
• Room 7 must be rewired before room 5.
• Room 8 must be rewired before room 10.
• Room 9 must be rewired before room 11.
P a g e 14 | 34
It takes one full day to rewire a room. There are enough electricians to rewire as many rooms as can
be rewired in parallel, keeping in mind the constraints above. What is the minimum number of days
required to complete the job?
A. 5
B. 6
C. 7
D. 8
Answer: B
Explanation:
From the given data room 2 should be rewired before room 6 which should be rewired before room
7 which in turn should be rewired before 5. Thus, the following order is followed:
2→6→7→5
For the number of days to complete the job to be minimum, the number of rooms rewired on a
particular day should be as maximum as possible.
As room 5 should be rewired before rooms 8 and 9, on the day immediately after rewiring room 5,
rooms 8 and 9 can be rewired. Thus, we get the order as:
2 → 6 → 7 → 5 → 8, 9
Rooms 10 and 11 can be rewired only after rewiring rooms 8 and 9 respectively. As rooms 8 and 9
are rewired as per the above order, on the immediate next day rooms 10 and 11 can be rewired.
Thus, we get the order as:
2 → 6 → 7 → 5 → 8, 9 → 10, 11
If we consider the remaining rooms 1, 3 and 4, given that room 1 should be rewired before rooms 3
and 4. Also room 3 should be rewired before room 5. So, we get the following possible orders:
2 → 6, 1 → 7, 3, 4 → 5 → 8, 9 → 10, 11
(or)
2, 1 → 6 → 7, 3, 4 → 5 → 8, 9 → 10, 11
(or)
2, 1 → 6, 3, 4 → 7 → 5 → 8, 9 → 10, 11
(or)
2, 1 → 6, 3 → 7, 4 → 5 → 8, 9 → 10, 11
(or)
2, 1 → 6, 4 → 7, 3 → 5 → 8, 9 → 10, 11
In all the above possibilities we have the minimum possible number of days to complete the job as 6
days

11. In case of a transaction, there was a loss of 18.75%. What was the ratio of the cost price to the selling
price?
A. 4:3
B. 8:5
C. 32:25
D. 16:13
Answer: D
Explanation:
Let’s assume C.P. = Rs.100,
P a g e 15 | 34
Given that loss occurred is 18.75%
So,
S.P. = C.P. - L%(C.P)
S.P. = 100 - 18.75%(100)
S.P. = 100-18.75
S.P. = 81.25
C.P : S.P = 100/81.25 = 100×100/8125 = 4×4/13 = 16/13
C.P. : S.P.= 16:13

12. A sum of ₹10,00,000 was invested in a scheme where it got compounded annually and the sum
increased to ₹11,06,704 in 2 years. What is the rate of interest?
A. 5.2%
B. 5.4%
C. 4.8%
D. 4.4%
Answer: A
Explanation:
Given P = 10,00,000, n = 2 years, A = 11,06,704, r = ?
𝑟 𝑛
As mentioned, compounded annually amount in 𝐴 = 𝑃 (1 + 100
)
Substituting the known values,
𝑟 2
11,06,704 = 10,00,000 (1 + )
100
By solving the equation with trial-and-error method,
Substitute option A, r = 5.2%
5.2 2
11,06,704 = 10,00,000 (1 + )
100
105.2 2
11,06,704 = 10,00,000 ( 100 )
11,06,704 = 100×11067.04
11,06,704 = 11,06,704
∴L.H.S = R.H.S
Hence, Option A is the correct answer.

13. Mita and Geeta jointly start a small business Mita invests ₹15,000, whereas Geeta invests ₹10,000.
After 2 months, Mita withdrew ₹2,500 from her investment in the business. After 8 more months,
Mita again withdrew ₹2,500. Geeta does not withdraw any money in 1 year. After 1 year, they make
a profit of ₹8,100 from their business. If they want to share this profit in the ratio of their money in
the business, then how much money, in ₹, should Mita get as her share of the profit?
A. ₹4400
B. ₹4200
C. ₹4500
D. ₹4300
Answer: C
Explanation:

P a g e 16 | 34
Mita’s Gita’s Duration
Explanation
Investment Investment (In Months)
For the 2 months none of them
15,000 10,000 2
withdrew their money
After 2 months Mita withdrew amount
2,500. So, balance with Mita would be
12,000 10,000 8
15,000 – 2,500 = 12,500
And amount with Gita will remain same.
After 8 months Mita withdrew 2,500
again. So, balance with Mita would be
10,000 10,000 2
12,500 – 2,500 = 10,000
And amount with Gita will remain same.

When duration and investment are different, the ratio of profit is calculated as:
The ratio of product of, Duration × Investment
On applying the same,
Mita’s Profit : Geeta’s Profit = (15,000 × 2 + 12,500 × 8 + 10,000 × 2) : (10,000 × 12)
Mita’s Profit : Geeta’s Profit =(30,000 + 1,00,000+20,000) : 1,20,000
Mita’s Profit : Geeta’s Profit = 1,50,000 : 1,20,000
Mita’s Profit : Geeta’s Profit = 5:4
Given, total profit = 8,100 which should be divided in 9x parts
9x = 81,000
x = 900
So, Mita should get 5x as her share = 5 × 900 = 4,500

14. A sum invested at simple interest amounts to ₹18375 and ₹20125 in 5 and 7 years, respectively.
What was the interest (in ₹) earned in 1 year?
A. 950
B. 925
C. 875
D. 975
Answer: C
Explanation:
Given that, S.I. for 5 years = 18,375
And S.I. for 7 years = 20,125
Different in no. of years is 2 years and difference in interest = 20,125 - 18,375 = 1,750
We know that, simple interest will be same for all years hence interest for 1 year = 1,750/2
So, interest for 1 year = Rs.875

15. I asked my daughter how many students are there in her class. She said it is equal to the sum of 3
consecutive natural numbers. Moreover, it is also equal to the sum of the two natural numbers
following those 3 consecutive natural numbers. What is the answer to my question?
A. 15
B. 16
P a g e 17 | 34
C. 14
D. 17
Answer: A
Explanation:
Let us consider those three consecutive numbers as n-1, n, n+1 and the total no of students be x,
Given that sum of these 3 consecutives is equal to sum of next 2 consecutive numbers are n+2, n+3
So, (n - 1) + n + (n + 1) = n + 2 + n + 3
⇒ 3n = 2n + 5
⇒n=5
If n = 5, the three consecutive numbers will be,
n-1 = 5-1 = 4, n= 5, n+1 = 5+1 = 6
Therefore, no. of students in the class = 4+5+6 = 15.

16. You want to pick two distinct numbers from the set {1, 2, 3, 4}. In how many ways can you do this
so that the product is even?
A. 5
B. 6
C. 4
D. 8
Answer: A
Explanation:
We know that, product of 2 even numbers = Even
And product of even and odd = Even,
Following the same from the given set {1, 2, 3, 4}
All the possible combinations to get a product of 2 numbers as even as:
1 × 2, 1 × 4, 2 × 3, 2 × 4, 3 × 4 (excluding the mirror pairs.)
= 5 ways.

17. Find the number of different ways in which the 8 letters of the word STACCATO can be arranged in
a sequence if the first letter is O.
A. 2570
B. 5040
C. 630
D. 24
Answer: C
Explanation:
If the 1st letter is O the O _ _ _ _ _ _
The remaining 7 blanks can be filled in 7! Ways but among those 7 letters there are repetitions of 3
letters(T, A, C) for 2 times each.
So,
The remaining 7 letters can be arranged in 7!/(2!×2!×2!) = 5040/(2×2×2)
= 2520/(2×2)
= 1260/2
= 630
P a g e 18 | 34
Hence, the correct answer is Option C.

18. A valuable sword belonging to the Grand King was stolen, and the three suspects were Ibn, Hasan
and Abu. Ibn claimed that Hasan stole it, and Hasan claimed that Abu stole it. It was not clear that
one of them stole it, but it was later learnt that no innocent person had lied. It was also learnt that
the sword was stolen by only one person. Who stole the sword?
A. Hasan
B. Abu
C. Ibn
D. None of these
Answer: A
Explanation:
Given that “no innocent person had lied”, Ibn and Hasan made the claims.
If lbn is the culprit then he must be lying but then why is Hasan lying?
Our assumption of Ibn as the culprit is wrong.
Now, let us assume Abu as the culprit, both Hasan and Ibn must be pointing towards the same
person because they both must be telling the truth.
So, our assumption of Abu being the culprit is also wrong.
Assuming Hasan is the culprit, he is lying and Ibn is pointing towards Hasan as Ibn is innocent.

19. Eesha’s father was 34 years of age when she was born. Shashank (younger brother of Eesha), is 13
years old and he is very proud of the fact that he is as tall as Eesha, even though he is three years
younger than her. Eesha’s mother, who is shorter than Eesha was only 29 when Shashank was born.
What is the sum of the ages of Eesha’s parents now?
A. 92 years
B. 76 years
C. 66 years
D. 89 years
Answer: A
Explanation:
Age difference of Eesha and her father = 34
Age difference of Shashank and his mother = 29
Eesha’s current age = Shashank’s age + 3
Eesha’s current age = 16
Eesha’s father’s age = 34 + 16 = 50
Eesha’s mother’s age = 13 + 29 = 42
Sum of parents ages = 50 + 42 = 92 years

20. A 70-foot pole stands vertically in a horizontal plane supported by three 490 foot wires, all attached
to the top of the pole, pulled up and anchored to three equally spaced points in the plane. How many
feet apart are any two of those anchor points?
A. 740
B. 840
C. 960
P a g e 19 | 34
D. 1024
Answer: B
Explanation:

The wires will be equally space at the circumference of a circle in the plane as shown in the figure
above.
The three points will form an equilateral triangle, with the sides of the triangle equal to the shortest
distance between the points.
Let the side of the triangle be ‘a’.
‘r’ is the radius of the circum-circle of the given triangle
Thus, a = √3 r ---(1)
Now,
4902 = r2 + 702
r2= 702(72 – 1)
r2 = 702(48)
r = 70(4√3) = 280√3, putting in (1)
a = √3 x 280√3
a = 840 ft
Hence, the distance between the points is 840 ft.

P a g e 20 | 34
TCS Digital Advance Coding Questions

1. Hack the money

Constraints
1<=T<=100
1<=N<=1012

Input:
The first line of the input contains a single integer T denoting the number of test cases.
The description of T test cases follows. The first and only line of each test case contains a single
integer N.

Output:
For each test case, print a single line containing the string "Yes" if you can make exactly N rupees or
"No" otherwise.

Sample Input:
5
1
2
10
25
200

Output:
Yes
No
Yes
No
Yes

Explanation:
In the last case hacker can get Rs. 200 by first using 10x hack and then using 20x hack once.
1 -> 10 -> 200

P a g e 21 | 34
Test Cases:

S.No. Input Output


5
Yes
1
No
2
Test Case 1 Yes
10
No
25
Yes
200
3
No
101
Test Case 2 No
52
No
124
5
No
1820
No
513
Test Case 3 No
450
No
884
Yes
2000
2
Yes
Test Case 4 2000
No
3000
3
Yes
1
Test Case 5 Yes
10
Yes
200
2
Yes
Test Case 6 20
Yes
200
5
Yes
2000
Yes
200
Test Case 7 No
2
Yes
10
Yes
1
2
Yes
Test Case 8 20
Yes
10000
1
Test Case 9 No
1001

P a g e 22 | 34
Code Solution in C++

P a g e 23 | 34
2. Lowest Common Ancestor

Write a program to find a common ancestor of a given two numbers in the tree. Let T be the root of
a tree. The lowest common ancestor between two nodes n1 and n2 is defined as the lowest node in
T. Which has both n1 and n2 as descendants (where we allow a node to be a descendant of itself).
The LCA of n1 and n2 in T is the shared ancestor of n1 and n2, which is located farthest from the
root. Computation of the Lowest common ancestor is useful. For instance, as part of a procedure for
determining the distance between the pairs of a node in a tree. The distance from n1 to n2 can be
computed as a distance from a root to n1. Plus, the distance from a root to n2. Later, subtract two
times the distance from a root to their lowest common ancestor.

Format:
Input:
6
3
1
4
2
-1
36

Output:
6

Test Cases:

S.No. Input Output


5 3 7 2 4 6 8 -1
Test Case 1 3
24
6 3 1 4 2 -1
Test Case 2 6
36
20 8 4 12 10 14 22 -1
Test Case 3 8
4 12
20 8 4 12 10 14 22 -1
Test Case 4 12
10 14
20 8 4 12 10 14 22 -1
Test Case 5 20
10 22

P a g e 24 | 34
Code Solution in C++

P a g e 25 | 34
3. Robot Move

A Robot wants to move through a cave grid of size M x N. (M- Rows N- Columns). It starts from (0,0)
and destination is (M-1,N-1). It can only move right or down. Calculate the total number of ways
robot can reach the destination.

Sample Input:
55

Output:
70

Test Cases:

S.No. Input Output


5
Test Case 1 70
5
10
Test Case 2 48620
10
2
Test Case 3 5
5
3
Test Case 4 6
3
4
Test Case 5 20
4
6
Test Case 6 462
7
6
Test Case 7 252
6
15
Test Case 8 40116600
15
9
Test Case 9 12870
9
11
Test Case 10 184756
11

P a g e 26 | 34
Code Solution in C++

P a g e 27 | 34
4. Nearest Prime

Joy is a hacker at hackerclub and he got a new problem on prime numbers. The problem states that
given an integer N find the nearest prime number to N. If multiple answer is possible then output the
smallest one of them. There are T number of test cases.
1<=N<106
1<=T<=2*106

Input:
First line of input contains an Integer T denoting the number of test cases.
Next each of the T lines contain one integer N.

Output:
Output the nearest prime number possible to N in a new line

Sample Input:
3
51
12
65

Output:
53
11
67

Test Cases:

S.No. Input Output


3
53
51
Test Case 1 11
12
67
65
2
449
Test Case 2 452
523
526
5
1423
1425
8521
8521
Test Case 3 457
456
251
254
997
1000
1
Test Case 4 53239
53246
P a g e 28 | 34
3
13
14
Test Case 5 23
25
31
32
6
53
52
43
45
61
Test Case 6 63
97
98
79
78
31
32
4
751
752
2371
Test Case 7 2365
8963
8963
5
6
1
Test Case 8 100003
99999
5
5
5
5
6
Test Case 9 7
9
7
8
7
7
1
Test Case 10 557
555

P a g e 29 | 34
Code Solution in C++

P a g e 30 | 34
5. Permutations - All of them

"I'm not a fan of having kids memorize formulas, and I'm even less of a fan of pushing them to learn
those formulas," says Mr. John, 7th grade Math teacher. Maybe he has got a point. He believes in
teaching the logic rather than the formula. Anyway, we aren't here to weigh/debate about his
opinions. All we gotta do is help Mr. John and his students by writing an algorithm that can
calculate & print all the permutations of a given number in strictly sorted order. Remember, Mr. John
is gonna use your algorithm to demonstrate permutations in his next class.

Input Format:
The input consists of a string

Output Format:
Print all the permutations of the given string

Refer the sample output for formatting

Sample Input:
abc

Sample Output:
abc
acb
bac
bca
cab
cba

Test Cases:
S.No. Input Output
abc
acb
bac
Test Case 1 abc
bca
cab
cba
abcd
abdc
acbd
acdb
Test Case 2 abcd
adbc
adcb
bacd
badc
P a g e 31 | 34
bcad
bcda
bdac
bdca
cabd
cadb
cbad
cbda
cdab
cdba
dabc
dacb
dbac
dbca
dcab
dcba
123
132
213
Test Case 3 123
231
312
321
12
Test Case 4 12
21
Test Case 5 a a
aet
ate
eat
Test Case 6 eat
eta
tae
tea
ot
Test Case 7 to
to
ehl
elh
hel
Test Case 8 hel
hle
leh
lhe
cde
ced
cde
Test Case 9 dce
dec
ecd
P a g e 32 | 34
edc
Test Case 10 s s

Code Solution in C++

P a g e 33 | 34
P a g e 34 | 34

You might also like