TCS Ninja Numerical Ability Questions
TCS Ninja Numerical Ability Questions
13%
Answer: C
Q1. What is the value of (a + b + c)2 : (a3 + b3 + c3) if (ab + bc + ca) = 131, (a2 + b2 + c2) = 138 and abc =
Q6. If 20% apples from a cart are rotten and the remaining apples are sold at 20% discount, the seller gets
280?
92% profit on the cost price of the whole cart. By what percent above the cost price has the seller marked
A. 15 : 43
up the apples?
B. 18 : 41
A. 180%
C. 20 : 49
B. 250%
D. 17 : 434
Answer: C C. 200%
D. 280%
Q2. By which of the following is 19541742 divisible? Answer: C
I. 11
II. 9 Q7. Selling an item at 5/6th of its marked price results in a loss of 10%. What is the % of profit/loss, if a
III. 12 discount of 5% is offered on the marked price?
om
om
A. 2.6% loss
A. Both I and III B. 2.6% profit
B. Only III C. 3% profit
.c
.c
C. Both II and III D. 3% loss
Answer: B
w
w
D. Only I
Answer: D
no
no
Q8. The simple interest earned on a sum of Rs. 3650 at some rate after 4 years is Rs. 584. Find the rate of
interest (in p.a.)
Q3. Simplify
A. 3.5%
rs
rs
0.7 x 0.7 x 0.7 + 0.3 x 0.3 x 0.3 + 0.3 x 0.7 x 3
B. 4.5%
--------------------------------------------------
he
he
C. 3%
0.7 x 0.7 + 0.3 x 0.3 + 0.42
D. 4%
A. 1
Answer: D
es
es
B. 1/3
C. -⅓
Q9. If a : b = 3 : 4, b : c = 2 : 3, c : d = 1 : 2, find the value of ((a+b+c+d)/(b+d))^½
D. 3
.fr
.fr
A. 5 : 4
Answer: A
B. 4 : 5
w
w
C. 1 : 1
Q4. In an examination, 62% candidates passed in physics and 60% candidates passed in Mathematics. If
D. 2 : 3
w
w
37% candidates passed in both these subjects, what percent of the candidates failed in both the subjects?
Answer: A
A. 5%
w
w
B. 20%
Q10. Which of the following statements is true?
C. 25%
I)27840 is divisible by 12
D. 15%
Answer: D II) 7329753 is divisible by 9
Q5. If price of petrol increases by 35% and Rajesh intends to spend only an additional 25% on petrol, by A. Statement I is true, but II is not
how much % will he reduce the quantity of petrol purchased?(Approx) B. Statement I is not true, but II is true
A. 14% C. Both the statements are true
B. 9% D. Both the statements are not true
C. 11% Answer: C
Q11. What is the value of the following expression? Q16. Rahul and Sachin can complete a work in 60 days and 45 days respectively. Rahul starts working with
120% of his capacity and Sachin with 80% of his capacity. In how many days will they complete 75% of the
work if they work together?
A. 25.71
B. 19.85
A. 10 C. 17.64
B. 12 D. 16.24
C. 8 Answer: B
D. 9
Answer: A Q17. The ratio of the speed of a bus and a car is 2:5. The car covers a distance of 280 km in some time and
the bus covers a distance of d km less in the same time. What is the distance covered by the bus?
Q12. A sum amounts to Rs. 16,000 at the end of three years and to Rs. 25,600 at the end of six years under A. 132 km
compound interest (interest being compounded annually). Find the simple interest earned if the same sum B. 168 km
is invested at 15% p.a. for two years. C. 112 km
om
om
A. Rs. 3,000 D. 144 km
B. Rs. 4,000 Answer: C
C. Rs. 3,500
.c
.c
D. Rs. 4,500 Q18. A boat travels 12 km downstream and 6 km upstream in 3 hours. The same boat takes fifty percent
extra time to cover 10 km downstream and 16 upstream. If the same boat travels 20 km downstream and z
w
w
Answer: A
km upstream in 4 hours, find z.
no
no
Q13. A flask is filled with 20% acid. 49 ml of that solution is taken out and is replaced with 40% acid to A. 8 km
make it a solution of 27% acid. Find the initial volume of the solution in the flask. B. 4.5 km
rs
rs
A. 140 ml C. 7.5 km
B. 175 ml D. 9 km
he
he
C. 70 ml Answer: B
D. 105 ml
Q19. Ranjeet’s present age is half of his brother Manjeet’s age after 10 years. After 5 years, the ratio of ages
es
es
Answer: A
of Manjeet and Ranjeet will be 7 : 5. Find Ranjeet’s age 2 years ago.
A. 25 yrs
.fr
.fr
Q14. Disha and Patni entered into a partnership. Disha invested as much money as was earned by Patni a
B. 20 yrs
share from the profit. If the profit was Rs. 18,000 and the money invested by Disha was Rs. 3,000 more
C. 15 yrs
w
w
than Patni, What is the investment made by Disha if it is less than Rs. 5,000?
D. 18 yrs
A. Rs. 4,500
w
w
Answer: D
B. Rs. 7,500
w
w
C. Rs. 6,000
D. Rs. 5,500 Q20. A plane is cutting a cone parallel to the base in such a way that the radius of the new cone is half of
Answer: A the radius of the original cone. Find the ratio of the volume of the original cone to that of the volume of the
portion of the cone left after being cut by the plane ( the part other than the new cone).
Q15. If the 9-digit number 807x6y9z8 is divisible by 99, then the value of (x + y + z)^½ is ______ A. 8 : 7
A. 4 B. 9 : 7
B. 3√3 C. 7 : 6
C. 6 D. 8 : 5
D. √5 Answer: A
Answer: A
Q21. Find the geometric mean of the data 5, 75 and 9.
A. 15
B. 5 Q26. If the arithmetic mean of 23, 15, 19, p, 12, 7, is 16 while the arithmetic mean of 37, 28, 53, q, 42 is 41,
C. 45 then find (p+q)/(q-p)
D. 3 A. 2.6
Answer: A B. 2.2
C. 3.5
Q22. In a circular ground of radius 28m, the shaded portion area in the circle represents forest area while D. 3.2
the remaining part of the circle is available for construction purposes. Find the area reserved for construction Answer: A
purpose(approx).
om
om
A. 1764 m²
B. 3120 m²
.c
.c
C. 1850 m²
w
D. 2053 m²
Answer: D
no
no
Q23. Find the difference between arithmetic mean and median of the first seven consecutive natural
rs
rs
numbers.
A. 1
he
he
B. 3.5
C. 2
es
es
D. 0
Answer: D
.fr
.fr
Q24. Find the quartile deviation of the observations 16, 2, 8, 24, 4, 32, 18.
A. 8
w
w
B. 12
w
w
C. 6
D. 10
w
w
Answer: D
Q25. The standard deviation of a series of ‘n’ observations is σ. If each observation is multiplied by 12, the
respective ratio of the standard deviation and the variance is:
A. 1 : 9σ
B. 1 : 12σ
C. 3σ : 1
D. σ : 1
Answer: B
TCS Ninja Verbal Ability Questions Sailing is fun. But it takes work and muscles to keep the sailboat moving. One will have to constantly ___1___
the weather and adjust the sails to turn the boat in the required direction. It also takes a lot of ___2___ to
raise the mast and sails before you start enjoying the freedom of exploring new places in your sailboat.
Q1. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose
‘No error’.
Blank 1: a. search b. scrutinise c. check d. scan
Blank 2: a. attempt b. effort c. strive d. endeavour
Riya finally declined the proposal which she were eagerly waiting for.
A. 1-c, 2-b
A. She were eagerly waiting for.
B. No error. B. 1-b, 2-a
C. Riya finally declined C. 1-c, 2-d
D. the proposal which D. 1-a, 2-a
Answer: A Answer: B
om
om
Q2. Read the following passage and fill in the blanks by selecting the most appropriate option.
Q5. Abdul is confident ____ the scholarship.
Experts warn that tourists should stay as far away as possible from wild elephants. They do not look violent A. of winning
.c
.c
or ____ 1 _____when compared to the big cats. But, a five ton _____2_____ elephant can do serious damage. B. to win
C. in winning
w
w
Blank 1: a. provoking b. angry c. powerful d. threatening D. for winning
no
no
Blank 2: a. excited b. enraged c. pacific d. roaring
Answer: A
rs
rs
A. 1-c, 2-b
Q6. The train arrived ____ time.
B. 1-b, 2-a
he
he
A. After
C. 1-a, 2-b
B. by
D. 1-d, 2-b
C. at
es
es
D. on
Answer: A
.fr
.fr
Answer: D
Q3. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose
‘No error’.
w
w
w
w
As little pieces of debris and space-dust burn up in Earth’s atmosphere, it causes spectacular shooting stars.
Q7. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose
w
w
‘No error’.
A. No error
B. It causes spectacular shooting stars
All the students of the class decided to head to the Principal’s office to complain for the new teacher’s
C. As little pieces of debris and space-dust
D. burn up in Earth’s atmosphere misconduct.
Answer: C
Q11. Read the following passage and fill in the blanks by selecting the most appropriate option.
Q8. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and
R, choose the appropriate sentences for S2 and S3 respectively. Did you know that most of the mothers in the animal kingdom feed on their new borns? It comes as a __1__
for many humans who have always overly __2__ the role of a mother. The animal kingdom, especially the
S1. The colour of the ocean is due to the absorption and scattering of the sunlight. species of the lower strata like reptiles and insects , lack emotions like mammals.
S2.
S3.
S4. This water now scatters both blue and yellow light, producing the characteristic green colour of the Blank 1: a. shock b. revelation c. miracle d. marvle
Atlantic Ocean. Blank 2: a. glorified b. amplified c. personified d. characterised
P. When sunlight strikes the water, the red wavelength is absorbed and blue wavelength is scattered, A. 1-a, 2-b
making the ocean appear blue. B. 1-d, 2-a
Q. However, in the case of the Atlantic Ocean, the decaying plants on the ocean bed release yellow pigments C. 1-b, 2-a
that dissolve in the water. D. 1-c, 2-b
om
om
R. The colour of the water depends on the light scattered and substances dissolved in it.
Answer: B
A. PQ
.c
.c
B. QR Q12. Select the appropriate option to fill in the blank.
C. RQ Kamlesh wanted to argue and __________ to rebel, but the fear of Mr. Rattan, his teacher, always stopped
w
w
D. QP him.
no
no
A. longed
Answer: A B. is longing
C. has longed
rs
rs
Q9. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose D. longs
‘No error’.
he
he
Answer: C
The soldiers, in an attempt of showing their loyalty towards their king, fought ruthlessly until the end of war.
es
es
A.No error Q13. Rathan than ________ stones on the mad man, people should be ____ with him and providing him with
B.fought ruthlessly until the end of war. the appropriate treatment.
.fr
.fr
C.The soldiers, in an attempt of showing A. pelting, sympathized
D.their loyalty towards their king, B. pelting, sympathizing
w
w
C. pelted, sympathizing
Answer: C D. pelt, sympathize
w
w
w
w
Q10. Select the most appropriate option to fill in the blank. Answer: B
The world __________ for the vaccines eagerly before they were launched last month.
A. have been waiting
B. was waiting Q14. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and
C. has been waiting R, choose the appropriate sentences for S2 and S3 respectively.
D. had been waiting
S1. In the early years when long trade voyages were undertaken that would take months or maybe even a
Answer: D year to reach the destination, coconuts were granted a special place.
S2.
S3.
S4. Its popularity has recently increased although they were grown in tropical regions for more than 4,500
yrs. P. Data analytics utilizes powerful algorithms to analyse current and past customer data to come up with
solutions
P. By and large, the coconut water was drunk and the pulp eaten. Q. They have adapted to digitalization and have customized their products in line with current trends
Q. The best part of this fruit was that there were no chances of it going bad. R. Low cost of implementing data analytics driven software is an added advantage
R. The voyages were rife with difficulties and hardships
A. RQ A. QP
B. PQ B. RQ
C. QP C. QR
D. RP D. PR
Answer: B Answer: A
om
om
Q15. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and Q17. You are going to read a text about the history of working women. Some sentences are missing from
R, choose the appropriate sentences for S2 and S3 respectively. the text. Choose from the list (A-C) the most appropriate sentence for each gap (1-2) in the text. There is
S1. Probably dating back to the early Neolithic and even the Palaeolithic age, the mythology of Greek one extra sentence that you do not need to use.
.c
.c
goddesses is considered to be the oldest mythologies of the world, even a precursor to Indo-European
mythologies. Women started working in the time of the war during the period of 1914-1918 and 1939-1945, when the
w
w
S2. need of the hour was manpower at the factories and other industries. ___1___ While their husbands and
no
no
S3. brothers were away at war, women fulfilled their new roles, ___2___. Many other women were inspired by
S4. She was a symbol of regenerative powers of nature such as fertility, birth, rebirth and death. those women who were able to perform both the roles adeptly. A much greater increase in the percentile of
working women was seen after the industrial revolution, when the industrial society was doing extremely
rs
rs
P. The Biblical snake is one of the many remaining symbols that demonise the old female snake death. well.
he
he
Q. It is largely been censored by the scientific community and yet there is extensive reliable research on the
subject. A. Back at home, they were still performing their own roles which were looking after kids, running the house,
R. A 20th century archaeologist, Marija Gimbutas developed a theory on an evolved and pastrola Old etc.
es
es
European civilisation that worshipped Goddesses in the form of a bird, feline or a snake B. Women came out of their houses and picked up shovels
A. RQ C. Industrial revolution empowered women and gave them more freedom of thought
.fr
.fr
B. QP
C. RP A. 1-A, 2-A
w
w
D. PQ B. 1-B, 2-A
w
w
C. 1-C, 2-A
Answer: A D. 1-B, 2-C
w
w
Q16. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and Answer: B
R, choose the appropriate sentences for S2 and S3 respectively.
Q18. Which one of the following sentences uses the formal language?
S1. Using data analytics has helped companies identify trends and purchase patterns at various levels and A. I am shocked at your rowdy behaviour.
helped customise various styles. B. Hey! Let’s grab a cup of joe.
S2. C. Heck! I lost all my data.
S3. D. I am greatly devastated to learn about the demise of your mother.
S4. It is correct to say that many business owners will have a lot on their minds post lockdown and till the
pandemic dies down. Answer: D
Q19. The Following sentence pair can be combined into one better sentence. Choose the option that good mental health depends on a delicate balance of factors and that several elements of life and the world
combines the two sentences best without changing the meaning. at large can work together to contribute to disorders.
Aniruddh has been playing the tabla throughout the day. This explains the pain in his fingers.
A. The pain in his fingers explains that he has been playing the tabla throughout the day.
B. Aniruddh was playing the tabla all day long so he can get pain in his fingers. Q21. What is understood by ‘mental health disruptions’?
C. Aniruddh has been playing the tabla all day long, which explains the pain in his fingers. A. Abnormal functioning of the mind
D. Aniruddh has been playing the tabla throughout the day so he can’t explain the pain in his fingers. B. Extreme illness of the mind and the body
C. Disorientation of the rain
Answer: C D. Lack of coordination between the brain and other parts of the body
Q20. You are going to read a text about transformation of self. Some sentences are missing from the text. Answer: A
Choose from the list (A-C) the most appropriate sentence for each gap (1-2) in the text. There is one extra
sentence that you do not need to use. Q22. Which is not true according to the passage?
Transformation is usually painful because it involves a process, a means to find an end. 1 ___________ In A. Social and financial circumstances, biological factors, and lifestyle choices cannot shape a person’s mental
om
om
pain is our true enlightenment as our crucial lessons are learnt here. 2 ______________ For humans, evolution health.
is painfully slow as we take the longest to learn. B. Mental health involves reaching a balance between life activities, responsibilities and efforts to achieve
A. Attainment, on the other hand, is happiness because you gained what you wanted. psychological resilience.
.c
.c
B. Without process, however, there is no achievement, so there is no gain without pain. C. Preserving and restoring mental health is crucial on an individual basis, as well as throughout different
C. How long the process continues will depend on how fast we learn our lessons. communities and societies the world over.
w
w
A. (1)-A, (2)-B D. Mental health is about not only avoiding active conditions, but also looking after ongoing wellness and
no
no
B. (1)-A, (2)-C happiness.
C. (1)-C, (2)-B
D. (1)-B, (2)-C Answer: A
rs
rs
he
he
Answer: D Q23. What is the tone of the passage?
A. Prescribing
Read the passage and answer the following questions. B. Incendiary
es
es
Mental health can affect daily living, relationships and physical health. Factors in people’s lives, interpersonal C. Laudatory
connections and biological factors can all contribute to mental health disruptions. Looking after mental health D. Analytical
.fr
.fr
can preserve a person’s ability to enjoy life. Doing this involves reaching a balance between life activities, Answer: D
responsibilities and efforts to achieve psychological resilience. Conditions such as stress, depression and
w
w
anxiety can all affect mental health and disrupt a person’s routine. Although mental health is in everyday
use, many conditions that doctors recognize as psychological disorders have physical roots. Q24. What do you mean by “Mental health is about not only avoiding active conditions but also looking after
w
w
ongoing wellness and happiness”?
w
w
Mental health is about not only avoiding active conditions but also looking after ongoing wellness and
happiness. Preserving and restoring mental health is crucial on an individual basis and throughout different A. Mental health care is about looking after ongoing wellness and happiness on a day-to-day basis.
communities and societies the world over. In the United States, the National Alliance on Mental Illnesses B. Mental health care is about treatment of active mental health disruptions as well as general mental well-
estimates that almost 1 in 5 adults experience mental health problems each year. being.
C. Mental health care is not about taking care of mental disruptions but bodily diseases.
According to the National Institute of Mental Health (NIMH), in 2017, an estimated 11.2 million adults in the D. Mental health care is about avoiding active mental disruptions only.
USor about 4.5 % of adults, had a severe psychological condition. Everyone has some risk of developing a
mental health disorder, no matter their age, sex, income or ethnicity. In the US and much of the developed Answer: B
world, mental health disorders are one of the leading causes of disability. Social and financial circumstances,
biological factors, and lifestyle choices can all shape a person’s mental well-being. A large proportion of
people with a mental health disorder have more than one condition at a time. It is important to note that
TCS Ninja Reasoning Ability Questions
Answer: A
Q1. Which is the WRONG term in the following series?
LAT, OES, QIR, SOQ, UUP
Q4. Given below is a question followed by two statements, I and II each containing some information. Decide
A. QIR
which of the statement(s) is/are sufficient to answer the question.
B. LAT
Five persons - A, B, C, D and E - sit around a circular table, facing the centre not necessarily in that order.
C. UUP
Who sits second to the right of D?
D. SOQ
I. A sits to the immediate right of E, who is not a neighbour of D.
Answer: A
II. B is to the immediate left of D.
A. If only statement II is sufficient to answer the question
Q2. The table shows the total number of 10th class students in 5 different schools [P, Q, R, S and T] B. If the data in both the statements I and II together are necessary to answer the question.
and the ratio of the number of students in Art, Commerce and Science respectively. C. If only statement I is sufficient to answer the question.
The students study only the above subjects in the class of each school. D. If the data either in statement I alone or in statement II alone is sufficient to answer the question.
om
om
Answer: B
School Total Students Arts : Commerce : Science
Q5. Given below is a question followed by two statements, I and II each containing some information. Decide
P 240 1:2:3
.c
.c
which of the statement(s) is/are sufficient to answer the question.
Six persons P, Q, R, S, T and U have different scores in a classroom test, who scored the 2nd highest marks?
w
w
Q 450 7:1:1
I. P scores better than T and Q, who scores better than S. S scores better than U. R scores better than P.
no
no
R 360 5:4:3 II. S scores better than at least one person, P scores better than S and T.
A. The data is statement I alone is sufficient to answer the question, while the data in statement II alone is
S 180 2:5:3 not sufficient to answer the question
rs
rs
B. The data given in both statements I and II together is not sufficient to answer the question
T 330 6:4:1
he
he
C. The data either in statement I alone or in statement II alone is sufficient to answer the question
What is the total number of Science students in school P, Q and R together? Q. The data is statement II alone is sufficient to answer the question, while the data in statement I alone is
A. 290 not sufficient to answer the question.
es
es
B. 220
C. 260 Answer: A
.fr
.fr
D. 240
Q6. In a certain code, if:
w
w
Answer: C I. J @ K means J is K’s daughter.
II. J % K means J is K’s wife.
w
w
Q3. In each of the five pairs of letter-clusters, the letters in the second term are a rearranged/transformed III. J + K means K is J’s father.
w
w
form of the letters in the first term in a particular pattern. In which two pairs, has the transformation been IV. J ÷ K means K is J’s mother.
done in the same way? F@R%I÷E%N
A. PLANT : PLZMG How is R related to N in the given expression?
B. MANGO : MAMTL A. Daughter-in-law
C. BLACK : BLBDP B. Mother-in-law
D. TABLE : ATLBE C. Son-in-law
E. CHEER : HCREE D. Mother
A. A and B Answer: A
B. D and A
C. B and C Q7. The annual salary of a person consists of two parts - basic salary and allowance. The allowance is always
D. C and D calculated as a fraction of the basic salary. Every year, his basic salary increases by Rs.5000 and his
allowance, as a percentage of his basic salary, increases by 5 percentage points. The present basic salary of
the person is Rs. 30,000 and his present allowance is 20% of his present basic salary. After how many Answer: D
months from now will the Annual salary of the person be Rs. 60,750?
Q10. Three statements are given followed by two conclusions numbered I and II. You have to consider these
A. 33 statements to be TRUE, even if they seem to be at variance with commonly known facts. Decide which of
B. 30 the given conclusions logically follows from the given statement.
C. 36
D. 24 Statements:
Some books are cars.
Answer: C No bus is a car.
Some cars are motors.
Q8. In a certain code, if:
K @ L means K is L’s father. Conclusions:
K # L means K is daughter of L. I. Some motors are not buses.
om
om
K % L means L is mother of K. II. Some books are buses.
K + L means K is grandson of L.
K × L means L only child of K. A. If either I or II follows
.c
.c
K © L means K is L’s sister. B. If neither I or II follows
C. If only II follows
w
w
R+A×E@F#G© T
D. If only I follows
Which of the following is a CORRECT conclusion drawn from the expression?
no
no
A. F is daughter of A
Answer: B
B. R is father of T.
rs
rs
C. E is mother of T.
D. R is son of G.
he
he
Q11. A statement is followed by two assumptions numbered I and II. Consider the statement and decide
which of the given assumptions is/ are implicit in the statement.
Answer: D
es
es
Statement:
Country X will talk on every issue and try to resolve every conflict with its neighbouring country.
.fr
.fr
Q9. The given question consists of six statements followed by 4 options consisting of three statements put
Assumptions:
w
w
together in a specific order. Choose the option, which indicates a valid argument that is, when the third
I. Country X wants a peaceful relation with its neighbouring country.
statement is a conclusion drawn from the preceding two statements.
II. Country X will appear weaker than the neighbouring country if it tries to solve the matter by talking.
w
w
w
w
a. Magazines are published weekly.
A. Neither I nor II is implicit.
b. Some magazines are not newspapers.
B. Only II is implicit.
c. Newspapers are published daily.
C. Only I is implicit.
d. Magazine is not published daily.
D. Both I and II are implicit.
e. Magazines are not newspapers.
f. Some newspapers are not published weekly.
Answer: C
A. b f e
B. a f c
Q12. A statement is followed by two arguments numbered I and II. Decide which of the argument(s) is/ are
C. d c f
strong (important and directed related to the question) and which is/ are weak (not important and not related
D. a c e
to the central message of the question).
Tanmay has passed high school with 9.2 CGPA. He has scored 92 percent in university entrance test and
Statement: he was born on 27th April 2004.
Should young children be exposed to virtual gaming?
A. His case will be sent to the Sr Admission Officer.
Arguments: B. His case will be sent to the Head of the Department.
I. Yes. It will prepare them for leadership. C. He will be selected.
II. No. Young minds cannot take violence. D. He will not be selected.
om
om
d. If any pizza is satisfying all the criteria given above except c, but it is a cheese burst pizza, then he needs
Q13. Two statements are given followed by two conclusions numbered I and II. You have to consider these permission from his uncle.
statements to be TRUE even if they seem at variance with commonly known facts. Decide which of the e. If any pizza is satisfying all the criteria given above except b, but provides mushroom and corn for free,
.c
.c
conclusions logically follows from the given statement. then he needs permission from his mother.
w
Statements: “Pizza on the spot” house is providing a new hand toasted non-veg pizza which costs Rs.550. It provides
no
no
All runs are overs. free toppings of onion, capsicum, corn, paneer and tomato.
Some overs are bats.
A. He will need to take permission from his uncle.
rs
rs
Conclusions: B. It will not be selected.
he
he
I. All bats are runs. C. He will need to take permission from his mother.
II. No bat is a run. D. It will be selected.
es
es
A. If either I or II follows. Answer: B
B. If neither I nor II follows.
.fr
.fr
C. If only I follows. Q16. Five persons A,B,C,D, and E are comparing the number of books which they have bought recently. A
D. If only II follows. bought more number of books than C and E, but not the highest. B bought more number of books than
w
w
exactly one person. Then which of the following bought the highest numbers of books?
w
w
Answer: B
A. C
w
w
Q14. Following are the selection criteria for any student to get admission in “Central University of India” for B. E
any undergraduate program. C. D
D. B
a. Must have completed high school with at least 8.0 CGPA.
b. Must have been at least 17 years 8 months old on Jan 1st 2021. Answer: Option C
c. Must have scored more than 80 percentage in university entrance test.
d. If students fulfill all the criteria except a, but have more than 6.5 CGPA in high school, his case will be sent Q17. Rajpal is going to buy a laptop. Following are the criteria of selection of the laptop given by his father.
to the Sr. Admission Officer. a. Must be < Rs.38,000.
e. If students fulfill all the criteria except b, but have more than 90 percentage in the university entrance test, b. Must have RAm equal to or more than 8 GB.
his case will be sent to the Head of the Department. c. Must have intel processor of version i3 or above.
d. If any laptop is satisfying all of the above criteria except a, it will need his dad’s permission if it is less than Answer: Option D
Rs.45,000.
e. If any laptop is satisfying all of the above criteria except b, it will need his mom’s permission if it has storage Q20. Six friends L, M, N, O, P and Q are sitting around a circular table and facing outside. Q is sitting fourth
of more than 512 GB. to the left of M, who is sitting to the immediate left of N. P is sitting opposite to N and and adjacent to O. O
is not sitting adjacent to Q.
ATC58 is a new laptop in the market that costs Rs.36,000and having 16 GB RAM. It consists of Pentium 8
processor and pre-installed Windows 10. Which of the following statements is TRUE?
Which of the following options below is CORRECT for the laptop given above? A. L is adjacent to P
B. M is between O and P
A. He needs his dad’s permission to buy it. C. P is sitting opposite to Q
B. He needs his mom’s permission to buy it. D. There are 3 friends sitting between M and L.
C. He will buy the laptop.
D. He will not buy the laptop. Answer: A
om
om
Answer: D
.c
.c
Q18. I, J, K, L, M and N have their birthdays not in the same order but in different months such as January,
w
w
February, April, July, August and December.
no
no
Two people have their birthdays between N and J’s birthday. M’s birthday is not in the second half of the
year. The birthday of N is either in January or August. K’s birthday falls in the month having the minimum
rs
rs
number of days. At the most, 3 people have birthdays between N and I’s birthday.
he
he
Whose birthday falls exactly between N and I’s birthday?
A. Person I
es
es
B. J, birthday in July
C. Person J
.fr
.fr
D. The one whose birthday is in April.
w
w
Answer: D
w
w
Q19. Eight persons A,B,C,D,E,F,G and H are sitting around a square table . All of them are facing towards
w
w
the centre. Only one person sits on each of the sides and only one person sits on each of the corners. Four
of them sit on the sides and four of them sit on the corners. C is sitting 3rd to the left of B, who sits on a side.
D is sitting opposite to H, who is sitting 3rd to the right of B. A is sitting 2nd to the right of G. G is not sitting
opposite to either E or F, F is not an immediate neighbor of H.
om
om
D. == B. Hello World
Answer: D C. Compilation error
D. Infinite loop
.c
.c
Answer: C
w
3. Which of the below SDLC models does not incorporate any changes? 7. Convert the following Infix to Postfix expression:
no
no
W+x*y+(z*a)
A. Build and Deploy Model
A. Wxy+*za*+
B. RAD Model
B. Wxy*+(za)*+
rs
rs
C. Waterfall Model
C. Wxy*+za*+
D. Automatic Deployment Model
he
he
D. W+xy*za
Answer: C
Answer: C
es
es
4. Which of the below techniques is used in merge sort?
8. Which SDLC model ensures about risk analysis?
A. Divide and Conquer
A. Waterfall Model
B. Brute Force
.fr
.fr
B. Spiral Model
C. Backtracking
C. V Model
D. Greedy Algorithm
w
w
D. Incremental Model
Answer: A
w
w
Answer: B
w
w
9. What is the output of the following JAVA code snippet?
5. What will be the output of the following pseudocode?
Class Main
integer x, y, z
{
x=2
y=1 public static void main (String args[]) {
z=5 String t = “Technical Knowledge test”;
do int i = t.indexOf(‘T’);
print z-- int j = t.lastIndexOf(“t”);
while( (x&y) || (z+1) ) System.out.print(i+” “+j);
End Loop }
}
Enter your answer only as a NUMERAL in the box.
Answer: 0 23
TCS Ninja Hands-on Coding Questions
10. What will be the output of the following code?
#Include <iostream>
Q1. Given a non-negative integer array Arr having size N. Each element of the array will carry a different
using namespace std;
value. This means no two elements can have the same values.The candidate has to do this with minimal
int incrementT(int t)
changes in the original value of the elements, making every element as least as much value as it originally
{
had.
return ++(--(++t));
} Find the minimum sum of all elements that can be set the array for:
int main() Example 1:
{ Input
int t = 11; 3 -> Value of N, represents size of Arr
cout<<incrementT(t); 2 -> Value of Arr[0]
} 2-> Value of Arr[1]
om
om
Enter your answer only as a NUMERAL in the box. 4-> Value of Arr[2]
Answer: 12
Output
.c
.c
11. What will be the output of the following code? 9
#include <iostream>
w
w
using namespace std; Explanation:
no
no
#define pi 3.14159
As two elements have the same value, max value for the one of them needs to be incremented to 3.
int main ()
He can set the array with 2+3+4=9
{
rs
rs
float r = 3;
Example 2:
he
he
float circular_area;
Input
circular_area = pi * r * r;
2 -> Value of N, represents size of Arr
cout<<circular_area;
es
es
3 -> Value of Arr[0]
return 0;
4-> Value of Arr[1]
}
5-> Value of Arr[2]
.fr
.fr
A. 28
B. 28.2743
Output
w
w
C. 29
Wrong Input
D. 18.7564
w
w
Answer: B
Explanation:
w
w
Here N=2, so we need to provide value of only two elements but we are providing value of three elements
so result is “Wrong Input”
om
om
} Example 2
for(int i = 0; i < n; i++) Input:
{ 101 ---> Integer
.c
.c
for(int j = i+1; j < n; j++) Output:
{ Wrong input → result - String
w
w
if(arr[i] == arr[j])
no
no
{ Explanation:
arr[i] = arr[i]+1; Given integer “101” is out of range. Hence the output will print “Wrong input”.
}
rs
rs
if(arr[j] < 0) The input format for testing
he
he
flag = 1; The candidate has to write the code to accept one input(s).
} 1. First Input - First line contains an integer
}
es
es
for(int i = 0; i < n; i++) The output format for testing
{ 1. Print integer value based on the number got after toggling all the bits of given input.
.fr
.fr
sum = sum + arr[i]; 2. Print “Wrong input if the string length is out of the range.
} 3. Additional messages in output will cause the failure of test cases.
w
w
if(flag == 1)
cout << "Wrong Input";
w
w
Instructions
else 1. The system doesn’t allow any kind of hard-coded input value.
w
w
cout << sum; 2. Written program code by the candidate will be verified against all the inputs which are supplied from
} the system.
Solution in C++:
#include<iostream>
Q2. Joseph is learning digital logic subject which will be for his next semester. He usually tries to solve unit using namespace std;
assignment problems before the lecture. Today, he got one tricky question. The problem statement is “A void toggle(int &n)
positive integer has been given as an input. Convert decimal value to binary representation. Toggle all bits {
of it after the most significant bit including the most significant bit. Print the positive integer value after int temp = 1;
toggling all bits”. while (temp <= n)
{
n = n ^ temp; #*** → Value of S
temp = temp << 1; Output
} 2 ---> number of * is more than #
}
int main() The input format for testing
{ The candidate has to write the code to accept one inputs separated by a new line.
int n; First input: Accept a string S without any spaces (consisting of only * and #)
cin >> n;
if(n <= 100) The output format for testing
{ The output should be a positive integer number (check in e.g.s 1, 2 and 3). Additional messages in output
toggle(n); will cause the failure of test cases.
cout << n;
} Constraints
else S = {*,#}
om
om
cout << "Wrong Input"; 0<len(S)<=50
return 0;
} Solution in C++:
.c
.c
#include<iostream>
using namespace std;
w
w
int main()
no
no
{
Q3. Given a string S(input) consisting of * and #. The length of the string is variable. The task is to find the string str;
minimum number of * and # required to make it a valid string. The string is considered valid if the number of int count = 0, count1 = 0;
rs
rs
* and # are equal. The * and # can be at any position in the string. cin >> str;
he
he
for(int i = 0; str[i] != '\0'; i++)
Note: The output will be a positive or negative integer based on number of * and # in the input string. {
if(str[i] == '#')
es
es
(* > #) : Positive integer count++;
(# > *) : Negative integer if(str[i] == '*')
.fr
.fr
(#=*): 0 count1++;
}
w
w
Example 1: if(count == count1)
cout << "0";
w
w
Input
###*** → Value of S else
w
w
Output cout << count1-count;
0 ---> number of * and # are equal }
Example 2:
Input
###***# → Value of S
Output
-1 ---> number of # is more than *
Example 3:
Input
Answer: b
TCS NQT Programming Logic Questions Explanation: Since the given date is 22nd of June, 2017. Since June is the sixth
month of the year, the output will be 5. (0-Jan, 1-Feb, 2-March, 4-April, 5-May,
and Answers 6-June……..) https://www.freshersnow.com/placement-papers-download/
2. What will be the output of the following C code if the current system date is 4. What will be the output of the following C++ code?
6/22/2017?
a) 8
b) 7
c) 5
d) 6
a) A function taking a single generic parameter and returning a generic type
b) A function taking a single generic parameter and returning nothing
c) A function taking single int parameter and returning a generic type
d) A function taking a single generic parameter and returning a specific non-void
type https://www.freshersnow.com/placement-papers-download/
Answer: b
Explanation: As the return type of function is void therefore function is not
returning anything. Now as the function is taking a template T as its argument
which is a general type, therefore, it is accepting a single general type argument.
Java
6. In the following Java code, which code fragment should be inserted at line 3 so
that the output will be: “123abc 123abc”?
a) 119
b) 102.5
a) sb1.append(“abc”); s1.append(“abc”);
c) 123.4
b) sb1.append(“abc”); s1.concat(“abc”);
d) 128.4
c) sb1.concat(“abc”); s1.append(“abc”);
d) sb1.append(“abc”); s1 = s1.concat(“abc”);
Answer: b
Explanation: In this program, We are overloading the function and getting the
Answer: d
output as 10 and 2.5 by division and multiplication.
Explanation: append() is stringbuffer method and concat is String class method.
Output:
append() is stringbuffer method and concat is String class method.
a) 0
b) 3
c) 3.0 c) O (n2)
d) 3.1 d) O (1)
Answer: b
Answer: d
Explanation: Suffix tree is also known as PAT tree or position tree. It allows fast
string operation. Total time taken for construction of suffix tree is linear to the
Data Structures length of the tree. The time complexity for inserting an alphabet in the tree using
hash maps is constant, O (1).
9. What is a time complexity for inserting an alphabet in the tree using hash maps?
a) O (log n!)
b) O (n!)
CPP
TCS NQT Questions and Answers
3. Which of the header file is used to implement algorithms provided by C++ STL?
for Programming Logic a) <algorithm>
b) <header>
C Programming c) <algos>
d) <Algorithm>
1. What will be the data type returned for the following C function? Answer: a
Explanation: <algorithm> header is provided by the C++ to use STL algorithms.
Answer: d
a) Before memmove place= string1, src = string2 After memmove place = string2, Explanation: C++ allows to append more characters to string using both inbuilt
src = string2 append() function and using operator overloaded += operator.
b) Before memmove place = string2, src = string2 After memmove place= string1,
src = string2
c) Before memmove place = string2, src = string1 After memmove place= string2,
src =string2 Java
d) Before memmove place= string1, src = string2 After memmove place=string1,
src = string1 6. Which of these is an incorrect array declaration?
a) int arr[] = new int[5]
b) int [] arr = new int[5]
Answer: a
c) int arr[] = new int[5]
Explanation: In the C library function void *memmove(void *str1, const void *str2,
d) int arr[] = int [5] new
size_t n) copies n characters from str2 to str1.
Answer: d b) B-tree
Explanation: Operator new must be succeeded by array type and array size. c) B+ -tree
d) Splay tree
7. In the following Java code, which code fragment should be inserted at line 3 so
that the output will be: “123abc 123abc”? Answer: c
Explanation: The database-system implementations use B+ -tree data structure
because they can be used for multilevel indexing.
a) sb1.append(“abc”); s1.append(“abc”);
b) sb1.append(“abc”); s1.concat(“abc”);
c) sb1.concat(“abc”); s1.append(“abc”);
d) sb1.append(“abc”); s1 = s1.concat(“abc”);
Answer: d
Explanation: append() is stringbuffer method and concat is String class method.
append() is stringbuffer method and concat is String class method.
Data Structures
9. The essential condition which is checked before deletion in a linked queue is?
a) Underflow
b) Overflow
c) Front value
d) Rear value
Answer: a
Explanation: To check whether there is element in the list or not.
10. Which one of the following data structures are preferred in database-system
implementation?
a) AVL tree
TCS NQT Model Question Paper TCS NQT Model Question Paper
= 22 mm (1 cm = 10 mm)
Answer: Option B
Relative speed when bodies move in opposite directions = Sum of the speeds
Explanation:
=2+3
Let the fourth proportional be x
= 5 mm per second
Then,
Time taken to cross each other = Relative distance / Relative speed
0.006: 1.2 :: 6/25 : x
= 22/5
0.006 * x = 1.2 * 6/25 (Since Product of means = Product of extremes)
= 4.4 seconds
x = (1.2*6)/(25*0.006)
Q3. The index numbers of five commodities are 121, 123, 125, 126, 128 and the weights
x = 7.2/0.15 assigned to these are respectively 5, 11, 10, 8, 6. Then what is the weighted average index
number?
x = 48
A. 123.8
Q2. Two ants of length 1 cm and 1.2 cm crawl in opposite directions with average speeds of 2
and 3 mm per second respectively. How many seconds will they take to cross each other? B. 124.2
A. 4.4 C. 124.6
B. 2.8 D. 125.2
C. 0.4
TCS NQT Model Question Paper TCS NQT Model Question Paper
Answer: Option C
√77 - √76 * (√77 + √76)/(√77 + √76) = 1/(√77 + √76)
Explanation:
√75 - √74 * (√75 + √74)/(√75 + √74) = 1/(√75 + √74)
Weighted average = Sum of all the weights / Total number of weights
Comparing all the fractions, 1/(√77 + √76) is the least value as its denominator is the greatest
Sum of all the weights = 121*5 + 123*11 + 125*10 + 126*8 + 128*6
Q5. A sum was lent to Ravi for three years by an organization that fixed a yearly rate of 10%
= 605 + 1353 + 1250 + 1008 + 768 compound Interest for repayment along with the condition of recovery in equal installments of
Rs.31944. What percentage (correct to two decimal places) above the borrowed amount Ravi
= 4984 had to pay the organization?
= 40 B. 21.25
= 124.6 D. 20.63
Q4. Which one among the following has the least value? Answer: Option D
D. √76 - √75 Amount remaining after paying the first installment = 1.1x - 31944
Answer: Option C After second year amount will be = 1.1 (1.1x - 31944)
Rationalizing the options Amount remaining after paying the second installment = 1.21x - 35138.4 - 31944
√74 - √73 * (√74 + √73)/(√74 + √73) = 1/(√74 + √73) This acts as principal for the third year
TCS NQT Model Question Paper TCS NQT Model Question Paper
A. Q
After third year, amount will be = 1.1(1.21x - 67082.4)
B. S
= 1.331x - 73790.64
C. P
This amount should exactly be equal to the final installement.
D. R
Hence, 1.331x - 73790.64 = 31944
Answer: Option B
1.331x = 105734.64
Explanation:
x = 105734.64/1.331
From statement (i), R = 2T --- Eq (1)
x = 79440
From statement (ii), S = 1.5Q --- Eq (2)
Borrowed amount = 79440
From statement (iii), Q+R = S+T --- Eq (3)
Amount paid = 31944*3
From statement (iv), P+S = 1.5(Q+T) --- Eq (4)
= 95832
Substitute Eq (1) and Eq (2) in Eq (3)
Percentage of extra amount paid = (95832-79440)/79440 * 100
Q+2T = 1.5Q+T
= (16392/79440) * 100
0.5Q = T
= 20.63%
Q = 2T --- Eq (5)
Reasoning Questions
Substitute Eq (5) in Eq (2)
Q1. Among 5 objects P, Q, R, S and T
S = 1.5(2T)
i. R is twice as heavy as T
S = 3T --- Eq (6)
ii. S is one and half times as heavy as Q
Substitute Eq (5) and Eq (6) in Eq (4)
iii. Q and R together weigh as much as S and T together
P+3T = 1.5(2T+T)
iv. P and S together are one and half time as heavy as Q and T together
P+3T = 4.5T
Which among the five is the heaviest of all?
P = 1.5T
TCS NQT Model Question Paper TCS NQT Model Question Paper
A. 120 kg K = 15
C. 105 kg L = 15 + 30 = 45
O = 2(45) = 90
Answer: Option D
Q3. Which is the odd term in the following series?
Explanation:
CMQ, FPT, JTX, OYC, UFI
Given,
M = 2K --- Eq (3)
Answer: Option D
The weight of N is three times the weight of M
N = 3M --- Eq (4)
Explanation:
TCS NQT Model Question Paper TCS NQT Model Question Paper
CMQ: The difference between C and M is 10. The difference between M and Q is 4.
Answer: Option A
FPT: The difference between F and P is 10. The difference between P and T is 4.
Explanation:
JTX: The difference between J and T is 10. The difference between T and X is 4.
In order to find the appropriate sentences to be fixed as S-2 and S-3, let us first try to relate the
OYC: The difference between O and Y is 10. The difference between Y and C is 4 (Here, the given optional sentences (P, Q, R) with respect to the fixed ones (S-1 and S-4).
place value of C is 29 because, after Z which is the 26th letter, the 27th letter will be A, the 28th
letter will be B and so on) If we consider the last sentence (i.e. S-4), there is a pronoun ‘They’ (They were similar in size,
small and durable). We know that a pronoun can be introduced only after the introduction of a
UFI: The difference between U and F is 11 (Here the place value of F is 32). The difference noun. Is the noun for this pronoun ‘They’ introduced in any of the fixed part of the paragraph?
between F and I is 3.
No. If we consider the first sentence S-1, there is a noun, ‘objects from nature’. But this is not
the noun for the pronoun in S-4. Because the noun in S-1, in general, represents some objects
from nature which are considered as currencies. But S-4, in specific, describes a particular
So, UFI is the odd term of the given series. object that is similar in size, small and durable. One such specific object from nature is
introduced as a noun in which of the given four optional sentences?
Verbal Ability
Yes. One such specific object from nature is introduced in sentence Q (A notable example is
Q1. For the four sentence (S1 to S4) paragraph given below, sentences S1 & S4 are given. cowrie shells first used as money about 1200 BCE). So, the noun for the pronoun in S-4 is
From the options P, Q and R, choose appropriate sentences for S2 & S3. ‘Cowrie shells’ which is introduced in sentence Q. So, sentence Q should definitely be included
as a part in the answer option.
S-1: Some of the earliest currencies were objects from nature.
Now in order to find the order for sentence Q, we have to first find the other sentence to be
S-2: related to the paragraph. Between the remaining two optional sentences P and R, which one
can be related to the paragraph?
S-3:
Yes. The phrase given in R is not even a sentence. It can be a title to the paragraph, but it
S-4: They were similar in size, small and durable. cannot be related as a part of the paragraph. So, the other sentence to be related to the
paragraph is sentence P. Also in sentence P, there is a pronoun ‘they’ (Although they may
seem). The noun for this pronoun should also be ‘Cowrie shells’ which is introduced in sentence
Q. As a pronoun can only follow the noun, the order in which the sentences are to be fixed in
S-2 and S-3 is Q and P respectively (The sentence P with the pronoun can only follow the
Although they may seem a pretty random choice the shells had a number of advantages. sentence Q with the noun). One such required order of QP is given in option A and hence is the
A notable example is cowrie shells first used as money about 1200 BCE. correct answer.
Counterfeiting dates to the invention of money.
QP Q2. Select the part of the sentence with error.
RQ
PQ Since sunrise to sunset my grandmother would sit by her wheel spinning and reciting prayers.
PR
TCS NQT Model Question Paper TCS NQT Model Question Paper
No error
My grandmother would sit by her wheel The word that precedes the blank is ‘The candidates’ and the word that follows the blank is
Spinning and reciting prayers ‘certificates’. From the context it can be understood that ‘the certificates belong to the
Since sunrise to sunset candidates’ or ‘the candidates possess the certificates’.
If we consider the given options, all the options (whom, whose, who, which) are relative
Answer: Option D pronouns.
Explanation: So, from the context it can be understood that the required relative pronoun to be fitted in the
blank should reflect the sense of possession.
In the given sentence the time period is represented as ‘Since sunrise to sunset’.
One such relative pronoun that reflects the sense of possession is ‘whose’ which is given in
Here the given time period is a specific duration with a definite start and end time. In order to option B. Hence option B is the correct answer. If we relate the same, the correct sentence is
represent a specific time duration with a definite start and end time we use the prepositions ‘The candidates whose certificates the office could not verify were not permitted to appear
‘from’ and ‘to’. Example: From 5 a.m. to 10 a.m., From Monday to Thursday etc.. before the interview board.’
Also the preposition ‘since’ is used to represent the start time of an action/ a happening which Use of other options:
had started some time in the past and is still in progress even at the time of reporting. Example:
The unit has been functioning great since 2013. ‘Whom’ is used to represent a person when the person is in the object position of the verb.
Example: I submitted the proposal to the person whom I met yesterday.
As the time reference presented in the question is with respect to a definite start and end time
(sunrise and sunset) the appropriate preposition to be used in the given context is ‘From … ‘Who’ is used to represent a person when the person is in the subject position of the verb.
to…’. Example: The person who received the proposal has approved the project.
Thus, the use of the preposition ‘since’ in the sentence is not correct and so the part ‘Since ‘Which’ is used to represent things and animals. Example: I read the letter which was delivered
sunrise to sunset’ is the one which has error in it. This part is given in option D and hence is the today.
correct answer. If we correct the error, the correct sentence is ‘From sunrise to sunset my
grandmother would sit by her wheel spinning and reciting prayers.’ Q4. Read the passage given below and answer the questions.
Q3. Choose the option that best fits the blank(s). It’s apparently humankind’s fate never to stop writing the history of pandemics. No matter how
often they occur - and they do occur with great frequency - we collectively refuse to think about
The candidates ___________ certificates the office could not verify were not permitted to them until circumstances demand it. Then, when the immediate crisis passes, we put it out of
appear before the interview board. our minds as quickly as possible. And so, we again are unprepared when the next contagion - in
this case, COVID-19 - bursts upon us. Richard Conniff traces this alarming cycle in “How
Whom devastating pandemics change us,” this month’s cover story. It examines our long relationship
Whose with infectious diseases, from the hard lessons we’ve been forced to learn to the brave, and
Who often difficult, characters who’ve risked their lives to save us.
Which
Answer: Option B Smallpox taught us that we could prevent disease through inoculation and, as the 1700s ended,
vaccination. By the mid-1800s, cholera’s lesson was about sanitation and the need for
Explanation: centralized water and sewer systems. About the same time, one man we’ve all heard of, Louis
TCS NQT Model Question Paper TCS NQT Model Question Paper
Pasteur, and one many of us haven’t, Robert Koch, became the co-fathers of germ theory. Tools From these lines, it can be understood that according to the author, if we put the learnings from
they created are still used to identify and fight what Conniff calls “an astonishing rogues’ gallery a crisis out of our minds, we become unprepared for the next one. So, the learnings are
of deadly pathogens.” required to be retained to be prepared for the forthcoming crisis. This requirement also validates
the fact that the upcoming crisis are also associated with ill features. In that case it is
And yet here we are, again, fighting on two fronts: the first, against a new coronavirus sweeping inappropriate to say that all pandemics are not to be feared. So, option B is not true according to
the planet to devastating effect; the second, with each other, over domestic and international the passage. https://www.freshersnow.com/placement-papers-download/
politics and whether we’re willing to pay the price of prevention.
It’s an important question for our planet. While we debate, the next pandemic draws nearer. Option C:
Q4. Which statement is CORRECT according to the passage? Option C is given as: ‘Pandemics keep occurring periodically’.
Research about vaccines is not reliable In the first paragraph it is stated that, ‘No matter how often they occur - and they do occur with
All pandemics are not to be feared great frequency - we collectively refuse to think about them until circumstances demand it.’
Pandemics keep occurring periodically
There is no solution for a pandemic From these lines, it can be understood that the statement ‘Pandemics keep occurring
periodically’ is true according to the passage. So, option C is the correct answer.
Explanation: The statement given in option D is: ‘There is no solution for a pandemic’.
Option A: The second paragraph altogether describes solutions achieved for different pandemics in the
past. In that case, the statement given in option D (There is no solution for a pandemic) is also
In option A, it is stated that ‘Research about vaccines is not reliable’. But the author did not not true according to the passage. So, it cannot be the correct answer.
represent one such idea of the vaccines being not reliable in any part of the passage.
In the second paragraph, it is also presented that ‘Tools they created (related to germ theory
and vaccination) are still used to identify and fight what Conniff calls “an astonishing rogues’
gallery of deadly pathogens”.’ From this statement it can be understood that the concept of
vaccination is originally supported in the passage. As this idea contradicts the one given in
option A, it cannot be the correct answer.
Option B:
If we consider the first paragraph, it is presented that ‘when the immediate crisis passes, we put
it out of our minds as quickly as possible. And so, we again are unprepared when the next
contagion - in this case, COVID-19 - bursts upon us.’
TCS Ninja Numerical Ability Questions D. 13%
Answer: C
Q1. What is the value of (a + b + c)2 : (a3 + b3 + c3) if (ab + bc + ca) = 131, (a2 + b2 + c2) = 138 and abc =
Q6. If 20% apples from a cart are rotten and the remaining apples are sold at 20% discount, the seller gets
280?
92% profit on the cost price of the whole cart. By what percent above the cost price has the seller marked
A. 15 : 43
up the apples?
B. 18 : 41
A. 180%
C. 20 : 49
B. 250%
D. 17 : 434
Answer: C C. 200%
D. 280%
Q2. By which of the following is 19541742 divisible? Answer: C
I. 11
II. 9 Q7. Selling an item at 5/6th of its marked price results in a loss of 10%. What is the % of profit/loss, if a
III. 12 discount of 5% is offered on the marked price?
om
om
A. 2.6% loss
A. Both I and III B. 2.6% profit
B. Only III C. 3% profit
.c
.c
C. Both II and III D. 3% loss
Answer: B
w
w
D. Only I
Answer: D
no
no
Q8. The simple interest earned on a sum of Rs. 3650 at some rate after 4 years is Rs. 584. Find the rate of
interest (in p.a.)
Q3. Simplify
A. 3.5%
rs
rs
0.7 x 0.7 x 0.7 + 0.3 x 0.3 x 0.3 + 0.3 x 0.7 x 3
B. 4.5%
--------------------------------------------------
he
he
C. 3%
0.7 x 0.7 + 0.3 x 0.3 + 0.42
D. 4%
A. 1
Answer: D
es
es
B. 1/3
C. -⅓
Q9. If a : b = 3 : 4, b : c = 2 : 3, c : d = 1 : 2, find the value of ((a+b+c+d)/(b+d))^½
D. 3
.fr
.fr
A. 5 : 4
Answer: A
B. 4 : 5
w
w
C. 1 : 1
Q4. In an examination, 62% candidates passed in physics and 60% candidates passed in Mathematics. If
D. 2 : 3
w
w
37% candidates passed in both these subjects, what percent of the candidates failed in both the subjects?
Answer: A
A. 5%
w
w
B. 20%
Q10. Which of the following statements is true?
C. 25%
I)27840 is divisible by 12
D. 15%
Answer: D II) 7329753 is divisible by 9
Q5. If price of petrol increases by 35% and Rajesh intends to spend only an additional 25% on petrol, by A. Statement I is true, but II is not
how much % will he reduce the quantity of petrol purchased?(Approx) B. Statement I is not true, but II is true
A. 14% C. Both the statements are true
B. 9% D. Both the statements are not true
C. 11% Answer: C
Q11. What is the value of the following expression? Q16. Rahul and Sachin can complete a work in 60 days and 45 days respectively. Rahul starts working with
120% of his capacity and Sachin with 80% of his capacity. In how many days will they complete 75% of the
work if they work together?
A. 25.71
B. 19.85
A. 10 C. 17.64
B. 12 D. 16.24
C. 8 Answer: B
D. 9
Answer: A Q17. The ratio of the speed of a bus and a car is 2:5. The car covers a distance of 280 km in some time and
the bus covers a distance of d km less in the same time. What is the distance covered by the bus?
Q12. A sum amounts to Rs. 16,000 at the end of three years and to Rs. 25,600 at the end of six years under A. 132 km
compound interest (interest being compounded annually). Find the simple interest earned if the same sum B. 168 km
is invested at 15% p.a. for two years. C. 112 km
om
om
A. Rs. 3,000 D. 144 km
B. Rs. 4,000 Answer: C
C. Rs. 3,500
.c
.c
D. Rs. 4,500 Q18. A boat travels 12 km downstream and 6 km upstream in 3 hours. The same boat takes fifty percent
extra time to cover 10 km downstream and 16 upstream. If the same boat travels 20 km downstream and z
w
w
Answer: A
km upstream in 4 hours, find z.
no
no
Q13. A flask is filled with 20% acid. 49 ml of that solution is taken out and is replaced with 40% acid to A. 8 km
make it a solution of 27% acid. Find the initial volume of the solution in the flask. B. 4.5 km
rs
rs
A. 140 ml C. 7.5 km
B. 175 ml D. 9 km
he
he
C. 70 ml Answer: B
D. 105 ml
Q19. Ranjeet’s present age is half of his brother Manjeet’s age after 10 years. After 5 years, the ratio of ages
es
es
Answer: A
of Manjeet and Ranjeet will be 7 : 5. Find Ranjeet’s age 2 years ago.
A. 25 yrs
.fr
.fr
Q14. Disha and Patni entered into a partnership. Disha invested as much money as was earned by Patni a
B. 20 yrs
share from the profit. If the profit was Rs. 18,000 and the money invested by Disha was Rs. 3,000 more
C. 15 yrs
w
w
than Patni, What is the investment made by Disha if it is less than Rs. 5,000?
D. 18 yrs
A. Rs. 4,500
w
w
Answer: D
B. Rs. 7,500
w
w
C. Rs. 6,000
D. Rs. 5,500 Q20. A plane is cutting a cone parallel to the base in such a way that the radius of the new cone is half of
Answer: A the radius of the original cone. Find the ratio of the volume of the original cone to that of the volume of the
portion of the cone left after being cut by the plane ( the part other than the new cone).
Q15. If the 9-digit number 807x6y9z8 is divisible by 99, then the value of (x + y + z)^½ is ______ A. 8 : 7
A. 4 B. 9 : 7
B. 3√3 C. 7 : 6
C. 6 D. 8 : 5
D. √5 Answer: A
Answer: A
Q21. Find the geometric mean of the data 5, 75 and 9.
A. 15
B. 5 Q26. If the arithmetic mean of 23, 15, 19, p, 12, 7, is 16 while the arithmetic mean of 37, 28, 53, q, 42 is 41,
C. 45 then find (p+q)/(q-p)
D. 3 A. 2.6
Answer: A B. 2.2
C. 3.5
Q22. In a circular ground of radius 28m, the shaded portion area in the circle represents forest area while D. 3.2
the remaining part of the circle is available for construction purposes. Find the area reserved for construction Answer: A
purpose(approx).
om
om
A. 1764 m²
B. 3120 m²
.c
.c
C. 1850 m²
w
D. 2053 m²
Answer: D
no
no
Q23. Find the difference between arithmetic mean and median of the first seven consecutive natural
rs
rs
numbers.
A. 1
he
he
B. 3.5
C. 2
es
es
D. 0
Answer: D
.fr
.fr
Q24. Find the quartile deviation of the observations 16, 2, 8, 24, 4, 32, 18.
A. 8
w
w
B. 12
w
w
C. 6
D. 10
w
w
Answer: D
Q25. The standard deviation of a series of ‘n’ observations is σ. If each observation is multiplied by 12, the
respective ratio of the standard deviation and the variance is:
A. 1 : 9σ
B. 1 : 12σ
C. 3σ : 1
D. σ : 1
Answer: B
TCS Ninja Verbal Ability Questions Sailing is fun. But it takes work and muscles to keep the sailboat moving. One will have to constantly ___1___
the weather and adjust the sails to turn the boat in the required direction. It also takes a lot of ___2___ to
raise the mast and sails before you start enjoying the freedom of exploring new places in your sailboat.
Q1. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose
‘No error’.
Blank 1: a. search b. scrutinise c. check d. scan
Blank 2: a. attempt b. effort c. strive d. endeavour
Riya finally declined the proposal which she were eagerly waiting for.
A. 1-c, 2-b
A. She were eagerly waiting for.
B. No error. B. 1-b, 2-a
C. Riya finally declined C. 1-c, 2-d
D. the proposal which D. 1-a, 2-a
Answer: A Answer: B
om
om
Q2. Read the following passage and fill in the blanks by selecting the most appropriate option.
Q5. Abdul is confident ____ the scholarship.
Experts warn that tourists should stay as far away as possible from wild elephants. They do not look violent A. of winning
.c
.c
or ____ 1 _____when compared to the big cats. But, a five ton _____2_____ elephant can do serious damage. B. to win
C. in winning
w
w
Blank 1: a. provoking b. angry c. powerful d. threatening D. for winning
no
no
Blank 2: a. excited b. enraged c. pacific d. roaring
Answer: A
rs
rs
A. 1-c, 2-b
Q6. The train arrived ____ time.
B. 1-b, 2-a
he
he
A. After
C. 1-a, 2-b
B. by
D. 1-d, 2-b
C. at
es
es
D. on
Answer: A
.fr
.fr
Answer: D
Q3. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose
‘No error’.
w
w
w
w
As little pieces of debris and space-dust burn up in Earth’s atmosphere, it causes spectacular shooting stars.
Q7. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose
w
w
‘No error’.
A. No error
B. It causes spectacular shooting stars
All the students of the class decided to head to the Principal’s office to complain for the new teacher’s
C. As little pieces of debris and space-dust
D. burn up in Earth’s atmosphere misconduct.
Answer: C
Q11. Read the following passage and fill in the blanks by selecting the most appropriate option.
Q8. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and
R, choose the appropriate sentences for S2 and S3 respectively. Did you know that most of the mothers in the animal kingdom feed on their new borns? It comes as a __1__
for many humans who have always overly __2__ the role of a mother. The animal kingdom, especially the
S1. The colour of the ocean is due to the absorption and scattering of the sunlight. species of the lower strata like reptiles and insects , lack emotions like mammals.
S2.
S3.
S4. This water now scatters both blue and yellow light, producing the characteristic green colour of the Blank 1: a. shock b. revelation c. miracle d. marvle
Atlantic Ocean. Blank 2: a. glorified b. amplified c. personified d. characterised
P. When sunlight strikes the water, the red wavelength is absorbed and blue wavelength is scattered, A. 1-a, 2-b
making the ocean appear blue. B. 1-d, 2-a
Q. However, in the case of the Atlantic Ocean, the decaying plants on the ocean bed release yellow pigments C. 1-b, 2-a
that dissolve in the water. D. 1-c, 2-b
om
om
R. The colour of the water depends on the light scattered and substances dissolved in it.
Answer: B
A. PQ
.c
.c
B. QR Q12. Select the appropriate option to fill in the blank.
C. RQ Kamlesh wanted to argue and __________ to rebel, but the fear of Mr. Rattan, his teacher, always stopped
w
w
D. QP him.
no
no
A. longed
Answer: A B. is longing
C. has longed
rs
rs
Q9. One part of the sentence below may contain an error. Identify the part. If there is no error, please choose D. longs
‘No error’.
he
he
Answer: C
The soldiers, in an attempt of showing their loyalty towards their king, fought ruthlessly until the end of war.
es
es
A.No error Q13. Rathan than ________ stones on the mad man, people should be ____ with him and providing him with
B.fought ruthlessly until the end of war. the appropriate treatment.
.fr
.fr
C.The soldiers, in an attempt of showing A. pelting, sympathized
D.their loyalty towards their king, B. pelting, sympathizing
w
w
C. pelted, sympathizing
Answer: C D. pelt, sympathize
w
w
w
w
Q10. Select the most appropriate option to fill in the blank. Answer: B
The world __________ for the vaccines eagerly before they were launched last month.
A. have been waiting
B. was waiting Q14. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and
C. has been waiting R, choose the appropriate sentences for S2 and S3 respectively.
D. had been waiting
S1. In the early years when long trade voyages were undertaken that would take months or maybe even a
Answer: D year to reach the destination, coconuts were granted a special place.
S2.
S3.
S4. Its popularity has recently increased although they were grown in tropical regions for more than 4,500
yrs. P. Data analytics utilizes powerful algorithms to analyse current and past customer data to come up with
solutions
P. By and large, the coconut water was drunk and the pulp eaten. Q. They have adapted to digitalization and have customized their products in line with current trends
Q. The best part of this fruit was that there were no chances of it going bad. R. Low cost of implementing data analytics driven software is an added advantage
R. The voyages were rife with difficulties and hardships
A. RQ A. QP
B. PQ B. RQ
C. QP C. QR
D. RP D. PR
Answer: B Answer: A
om
om
Q15. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and Q17. You are going to read a text about the history of working women. Some sentences are missing from
R, choose the appropriate sentences for S2 and S3 respectively. the text. Choose from the list (A-C) the most appropriate sentence for each gap (1-2) in the text. There is
S1. Probably dating back to the early Neolithic and even the Palaeolithic age, the mythology of Greek one extra sentence that you do not need to use.
.c
.c
goddesses is considered to be the oldest mythologies of the world, even a precursor to Indo-European
mythologies. Women started working in the time of the war during the period of 1914-1918 and 1939-1945, when the
w
w
S2. need of the hour was manpower at the factories and other industries. ___1___ While their husbands and
no
no
S3. brothers were away at war, women fulfilled their new roles, ___2___. Many other women were inspired by
S4. She was a symbol of regenerative powers of nature such as fertility, birth, rebirth and death. those women who were able to perform both the roles adeptly. A much greater increase in the percentile of
working women was seen after the industrial revolution, when the industrial society was doing extremely
rs
rs
P. The Biblical snake is one of the many remaining symbols that demonise the old female snake death. well.
he
he
Q. It is largely been censored by the scientific community and yet there is extensive reliable research on the
subject. A. Back at home, they were still performing their own roles which were looking after kids, running the house,
R. A 20th century archaeologist, Marija Gimbutas developed a theory on an evolved and pastrola Old etc.
es
es
European civilisation that worshipped Goddesses in the form of a bird, feline or a snake B. Women came out of their houses and picked up shovels
A. RQ C. Industrial revolution empowered women and gave them more freedom of thought
.fr
.fr
B. QP
C. RP A. 1-A, 2-A
w
w
D. PQ B. 1-B, 2-A
w
w
C. 1-C, 2-A
Answer: A D. 1-B, 2-C
w
w
Q16. For the four sentence (S1 to S4) paragraph, sentences S1 and S3 are given. From the options P, Q and Answer: B
R, choose the appropriate sentences for S2 and S3 respectively.
Q18. Which one of the following sentences uses the formal language?
S1. Using data analytics has helped companies identify trends and purchase patterns at various levels and A. I am shocked at your rowdy behaviour.
helped customise various styles. B. Hey! Let’s grab a cup of joe.
S2. C. Heck! I lost all my data.
S3. D. I am greatly devastated to learn about the demise of your mother.
S4. It is correct to say that many business owners will have a lot on their minds post lockdown and till the
pandemic dies down. Answer: D
Q19. The Following sentence pair can be combined into one better sentence. Choose the option that good mental health depends on a delicate balance of factors and that several elements of life and the world
combines the two sentences best without changing the meaning. at large can work together to contribute to disorders.
Aniruddh has been playing the tabla throughout the day. This explains the pain in his fingers.
A. The pain in his fingers explains that he has been playing the tabla throughout the day.
B. Aniruddh was playing the tabla all day long so he can get pain in his fingers. Q21. What is understood by ‘mental health disruptions’?
C. Aniruddh has been playing the tabla all day long, which explains the pain in his fingers. A. Abnormal functioning of the mind
D. Aniruddh has been playing the tabla throughout the day so he can’t explain the pain in his fingers. B. Extreme illness of the mind and the body
C. Disorientation of the rain
Answer: C D. Lack of coordination between the brain and other parts of the body
Q20. You are going to read a text about transformation of self. Some sentences are missing from the text. Answer: A
Choose from the list (A-C) the most appropriate sentence for each gap (1-2) in the text. There is one extra
sentence that you do not need to use. Q22. Which is not true according to the passage?
Transformation is usually painful because it involves a process, a means to find an end. 1 ___________ In A. Social and financial circumstances, biological factors, and lifestyle choices cannot shape a person’s mental
om
om
pain is our true enlightenment as our crucial lessons are learnt here. 2 ______________ For humans, evolution health.
is painfully slow as we take the longest to learn. B. Mental health involves reaching a balance between life activities, responsibilities and efforts to achieve
A. Attainment, on the other hand, is happiness because you gained what you wanted. psychological resilience.
.c
.c
B. Without process, however, there is no achievement, so there is no gain without pain. C. Preserving and restoring mental health is crucial on an individual basis, as well as throughout different
C. How long the process continues will depend on how fast we learn our lessons. communities and societies the world over.
w
w
A. (1)-A, (2)-B D. Mental health is about not only avoiding active conditions, but also looking after ongoing wellness and
no
no
B. (1)-A, (2)-C happiness.
C. (1)-C, (2)-B
D. (1)-B, (2)-C Answer: A
rs
rs
he
he
Answer: D Q23. What is the tone of the passage?
A. Prescribing
Read the passage and answer the following questions. B. Incendiary
es
es
Mental health can affect daily living, relationships and physical health. Factors in people’s lives, interpersonal C. Laudatory
connections and biological factors can all contribute to mental health disruptions. Looking after mental health D. Analytical
.fr
.fr
can preserve a person’s ability to enjoy life. Doing this involves reaching a balance between life activities, Answer: D
responsibilities and efforts to achieve psychological resilience. Conditions such as stress, depression and
w
w
anxiety can all affect mental health and disrupt a person’s routine. Although mental health is in everyday
use, many conditions that doctors recognize as psychological disorders have physical roots. Q24. What do you mean by “Mental health is about not only avoiding active conditions but also looking after
w
w
ongoing wellness and happiness”?
w
w
Mental health is about not only avoiding active conditions but also looking after ongoing wellness and
happiness. Preserving and restoring mental health is crucial on an individual basis and throughout different A. Mental health care is about looking after ongoing wellness and happiness on a day-to-day basis.
communities and societies the world over. In the United States, the National Alliance on Mental Illnesses B. Mental health care is about treatment of active mental health disruptions as well as general mental well-
estimates that almost 1 in 5 adults experience mental health problems each year. being.
C. Mental health care is not about taking care of mental disruptions but bodily diseases.
According to the National Institute of Mental Health (NIMH), in 2017, an estimated 11.2 million adults in the D. Mental health care is about avoiding active mental disruptions only.
USor about 4.5 % of adults, had a severe psychological condition. Everyone has some risk of developing a
mental health disorder, no matter their age, sex, income or ethnicity. In the US and much of the developed Answer: B
world, mental health disorders are one of the leading causes of disability. Social and financial circumstances,
biological factors, and lifestyle choices can all shape a person’s mental well-being. A large proportion of
people with a mental health disorder have more than one condition at a time. It is important to note that
TCS Ninja Reasoning Ability Questions
Answer: A
Q1. Which is the WRONG term in the following series?
LAT, OES, QIR, SOQ, UUP
Q4. Given below is a question followed by two statements, I and II each containing some information. Decide
A. QIR
which of the statement(s) is/are sufficient to answer the question.
B. LAT
Five persons - A, B, C, D and E - sit around a circular table, facing the centre not necessarily in that order.
C. UUP
Who sits second to the right of D?
D. SOQ
I. A sits to the immediate right of E, who is not a neighbour of D.
Answer: A
II. B is to the immediate left of D.
A. If only statement II is sufficient to answer the question
Q2. The table shows the total number of 10th class students in 5 different schools [P, Q, R, S and T] B. If the data in both the statements I and II together are necessary to answer the question.
and the ratio of the number of students in Art, Commerce and Science respectively. C. If only statement I is sufficient to answer the question.
The students study only the above subjects in the class of each school. D. If the data either in statement I alone or in statement II alone is sufficient to answer the question.
om
om
Answer: B
School Total Students Arts : Commerce : Science
Q5. Given below is a question followed by two statements, I and II each containing some information. Decide
P 240 1:2:3
.c
.c
which of the statement(s) is/are sufficient to answer the question.
Six persons P, Q, R, S, T and U have different scores in a classroom test, who scored the 2nd highest marks?
w
w
Q 450 7:1:1
I. P scores better than T and Q, who scores better than S. S scores better than U. R scores better than P.
no
no
R 360 5:4:3 II. S scores better than at least one person, P scores better than S and T.
A. The data is statement I alone is sufficient to answer the question, while the data in statement II alone is
S 180 2:5:3 not sufficient to answer the question
rs
rs
B. The data given in both statements I and II together is not sufficient to answer the question
T 330 6:4:1
he
he
C. The data either in statement I alone or in statement II alone is sufficient to answer the question
What is the total number of Science students in school P, Q and R together? Q. The data is statement II alone is sufficient to answer the question, while the data in statement I alone is
A. 290 not sufficient to answer the question.
es
es
B. 220
C. 260 Answer: A
.fr
.fr
D. 240
Q6. In a certain code, if:
w
w
Answer: C I. J @ K means J is K’s daughter.
II. J % K means J is K’s wife.
w
w
Q3. In each of the five pairs of letter-clusters, the letters in the second term are a rearranged/transformed III. J + K means K is J’s father.
w
w
form of the letters in the first term in a particular pattern. In which two pairs, has the transformation been IV. J ÷ K means K is J’s mother.
done in the same way? F@R%I÷E%N
A. PLANT : PLZMG How is R related to N in the given expression?
B. MANGO : MAMTL A. Daughter-in-law
C. BLACK : BLBDP B. Mother-in-law
D. TABLE : ATLBE C. Son-in-law
E. CHEER : HCREE D. Mother
A. A and B Answer: A
B. D and A
C. B and C Q7. The annual salary of a person consists of two parts - basic salary and allowance. The allowance is always
D. C and D calculated as a fraction of the basic salary. Every year, his basic salary increases by Rs.5000 and his
allowance, as a percentage of his basic salary, increases by 5 percentage points. The present basic salary of
the person is Rs. 30,000 and his present allowance is 20% of his present basic salary. After how many Answer: D
months from now will the Annual salary of the person be Rs. 60,750?
Q10. Three statements are given followed by two conclusions numbered I and II. You have to consider these
A. 33 statements to be TRUE, even if they seem to be at variance with commonly known facts. Decide which of
B. 30 the given conclusions logically follows from the given statement.
C. 36
D. 24 Statements:
Some books are cars.
Answer: C No bus is a car.
Some cars are motors.
Q8. In a certain code, if:
K @ L means K is L’s father. Conclusions:
K # L means K is daughter of L. I. Some motors are not buses.
om
om
K % L means L is mother of K. II. Some books are buses.
K + L means K is grandson of L.
K × L means L only child of K. A. If either I or II follows
.c
.c
K © L means K is L’s sister. B. If neither I or II follows
C. If only II follows
w
w
R+A×E@F#G© T
D. If only I follows
Which of the following is a CORRECT conclusion drawn from the expression?
no
no
A. F is daughter of A
Answer: B
B. R is father of T.
rs
rs
C. E is mother of T.
D. R is son of G.
he
he
Q11. A statement is followed by two assumptions numbered I and II. Consider the statement and decide
which of the given assumptions is/ are implicit in the statement.
Answer: D
es
es
Statement:
Country X will talk on every issue and try to resolve every conflict with its neighbouring country.
.fr
.fr
Q9. The given question consists of six statements followed by 4 options consisting of three statements put
Assumptions:
w
w
together in a specific order. Choose the option, which indicates a valid argument that is, when the third
I. Country X wants a peaceful relation with its neighbouring country.
statement is a conclusion drawn from the preceding two statements.
II. Country X will appear weaker than the neighbouring country if it tries to solve the matter by talking.
w
w
w
w
a. Magazines are published weekly.
A. Neither I nor II is implicit.
b. Some magazines are not newspapers.
B. Only II is implicit.
c. Newspapers are published daily.
C. Only I is implicit.
d. Magazine is not published daily.
D. Both I and II are implicit.
e. Magazines are not newspapers.
f. Some newspapers are not published weekly.
Answer: C
A. b f e
B. a f c
Q12. A statement is followed by two arguments numbered I and II. Decide which of the argument(s) is/ are
C. d c f
strong (important and directed related to the question) and which is/ are weak (not important and not related
D. a c e
to the central message of the question).
Tanmay has passed high school with 9.2 CGPA. He has scored 92 percent in university entrance test and
Statement: he was born on 27th April 2004.
Should young children be exposed to virtual gaming?
A. His case will be sent to the Sr Admission Officer.
Arguments: B. His case will be sent to the Head of the Department.
I. Yes. It will prepare them for leadership. C. He will be selected.
II. No. Young minds cannot take violence. D. He will not be selected.
om
om
d. If any pizza is satisfying all the criteria given above except c, but it is a cheese burst pizza, then he needs
Q13. Two statements are given followed by two conclusions numbered I and II. You have to consider these permission from his uncle.
statements to be TRUE even if they seem at variance with commonly known facts. Decide which of the e. If any pizza is satisfying all the criteria given above except b, but provides mushroom and corn for free,
.c
.c
conclusions logically follows from the given statement. then he needs permission from his mother.
w
Statements: “Pizza on the spot” house is providing a new hand toasted non-veg pizza which costs Rs.550. It provides
no
no
All runs are overs. free toppings of onion, capsicum, corn, paneer and tomato.
Some overs are bats.
A. He will need to take permission from his uncle.
rs
rs
Conclusions: B. It will not be selected.
he
he
I. All bats are runs. C. He will need to take permission from his mother.
II. No bat is a run. D. It will be selected.
es
es
A. If either I or II follows. Answer: B
B. If neither I nor II follows.
.fr
.fr
C. If only I follows. Q16. Five persons A,B,C,D, and E are comparing the number of books which they have bought recently. A
D. If only II follows. bought more number of books than C and E, but not the highest. B bought more number of books than
w
w
exactly one person. Then which of the following bought the highest numbers of books?
w
w
Answer: B
A. C
w
w
Q14. Following are the selection criteria for any student to get admission in “Central University of India” for B. E
any undergraduate program. C. D
D. B
a. Must have completed high school with at least 8.0 CGPA.
b. Must have been at least 17 years 8 months old on Jan 1st 2021. Answer: Option C
c. Must have scored more than 80 percentage in university entrance test.
d. If students fulfill all the criteria except a, but have more than 6.5 CGPA in high school, his case will be sent Q17. Rajpal is going to buy a laptop. Following are the criteria of selection of the laptop given by his father.
to the Sr. Admission Officer. a. Must be < Rs.38,000.
e. If students fulfill all the criteria except b, but have more than 90 percentage in the university entrance test, b. Must have RAm equal to or more than 8 GB.
his case will be sent to the Head of the Department. c. Must have intel processor of version i3 or above.
d. If any laptop is satisfying all of the above criteria except a, it will need his dad’s permission if it is less than Answer: Option D
Rs.45,000.
e. If any laptop is satisfying all of the above criteria except b, it will need his mom’s permission if it has storage Q20. Six friends L, M, N, O, P and Q are sitting around a circular table and facing outside. Q is sitting fourth
of more than 512 GB. to the left of M, who is sitting to the immediate left of N. P is sitting opposite to N and and adjacent to O. O
is not sitting adjacent to Q.
ATC58 is a new laptop in the market that costs Rs.36,000and having 16 GB RAM. It consists of Pentium 8
processor and pre-installed Windows 10. Which of the following statements is TRUE?
Which of the following options below is CORRECT for the laptop given above? A. L is adjacent to P
B. M is between O and P
A. He needs his dad’s permission to buy it. C. P is sitting opposite to Q
B. He needs his mom’s permission to buy it. D. There are 3 friends sitting between M and L.
C. He will buy the laptop.
D. He will not buy the laptop. Answer: A
om
om
Answer: D
.c
.c
Q18. I, J, K, L, M and N have their birthdays not in the same order but in different months such as January,
w
w
February, April, July, August and December.
no
no
Two people have their birthdays between N and J’s birthday. M’s birthday is not in the second half of the
year. The birthday of N is either in January or August. K’s birthday falls in the month having the minimum
rs
rs
number of days. At the most, 3 people have birthdays between N and I’s birthday.
he
he
Whose birthday falls exactly between N and I’s birthday?
A. Person I
es
es
B. J, birthday in July
C. Person J
.fr
.fr
D. The one whose birthday is in April.
w
w
Answer: D
w
w
Q19. Eight persons A,B,C,D,E,F,G and H are sitting around a square table . All of them are facing towards
w
w
the centre. Only one person sits on each of the sides and only one person sits on each of the corners. Four
of them sit on the sides and four of them sit on the corners. C is sitting 3rd to the left of B, who sits on a side.
D is sitting opposite to H, who is sitting 3rd to the right of B. A is sitting 2nd to the right of G. G is not sitting
opposite to either E or F, F is not an immediate neighbor of H.
om
om
D. == B. Hello World
Answer: D C. Compilation error
D. Infinite loop
.c
.c
Answer: C
w
3. Which of the below SDLC models does not incorporate any changes? 7. Convert the following Infix to Postfix expression:
no
no
W+x*y+(z*a)
A. Build and Deploy Model
A. Wxy+*za*+
B. RAD Model
B. Wxy*+(za)*+
rs
rs
C. Waterfall Model
C. Wxy*+za*+
D. Automatic Deployment Model
he
he
D. W+xy*za
Answer: C
Answer: C
es
es
4. Which of the below techniques is used in merge sort?
8. Which SDLC model ensures about risk analysis?
A. Divide and Conquer
A. Waterfall Model
B. Brute Force
.fr
.fr
B. Spiral Model
C. Backtracking
C. V Model
D. Greedy Algorithm
w
w
D. Incremental Model
Answer: A
w
w
Answer: B
w
w
9. What is the output of the following JAVA code snippet?
5. What will be the output of the following pseudocode?
Class Main
integer x, y, z
{
x=2
y=1 public static void main (String args[]) {
z=5 String t = “Technical Knowledge test”;
do int i = t.indexOf(‘T’);
print z-- int j = t.lastIndexOf(“t”);
while( (x&y) || (z+1) ) System.out.print(i+” “+j);
End Loop }
}
Enter your answer only as a NUMERAL in the box.
Answer: 0 23
TCS Ninja Hands-on Coding Questions
10. What will be the output of the following code?
#Include <iostream>
Q1. Given a non-negative integer array Arr having size N. Each element of the array will carry a different
using namespace std;
value. This means no two elements can have the same values.The candidate has to do this with minimal
int incrementT(int t)
changes in the original value of the elements, making every element as least as much value as it originally
{
had.
return ++(--(++t));
} Find the minimum sum of all elements that can be set the array for:
int main() Example 1:
{ Input
int t = 11; 3 -> Value of N, represents size of Arr
cout<<incrementT(t); 2 -> Value of Arr[0]
} 2-> Value of Arr[1]
om
om
Enter your answer only as a NUMERAL in the box. 4-> Value of Arr[2]
Answer: 12
Output
.c
.c
11. What will be the output of the following code? 9
#include <iostream>
w
w
using namespace std; Explanation:
no
no
#define pi 3.14159
As two elements have the same value, max value for the one of them needs to be incremented to 3.
int main ()
He can set the array with 2+3+4=9
{
rs
rs
float r = 3;
Example 2:
he
he
float circular_area;
Input
circular_area = pi * r * r;
2 -> Value of N, represents size of Arr
cout<<circular_area;
es
es
3 -> Value of Arr[0]
return 0;
4-> Value of Arr[1]
}
5-> Value of Arr[2]
.fr
.fr
A. 28
B. 28.2743
Output
w
w
C. 29
Wrong Input
D. 18.7564
w
w
Answer: B
Explanation:
w
w
Here N=2, so we need to provide value of only two elements but we are providing value of three elements
so result is “Wrong Input”
om
om
} Example 2
for(int i = 0; i < n; i++) Input:
{ 101 ---> Integer
.c
.c
for(int j = i+1; j < n; j++) Output:
{ Wrong input → result - String
w
w
if(arr[i] == arr[j])
no
no
{ Explanation:
arr[i] = arr[i]+1; Given integer “101” is out of range. Hence the output will print “Wrong input”.
}
rs
rs
if(arr[j] < 0) The input format for testing
he
he
flag = 1; The candidate has to write the code to accept one input(s).
} 1. First Input - First line contains an integer
}
es
es
for(int i = 0; i < n; i++) The output format for testing
{ 1. Print integer value based on the number got after toggling all the bits of given input.
.fr
.fr
sum = sum + arr[i]; 2. Print “Wrong input if the string length is out of the range.
} 3. Additional messages in output will cause the failure of test cases.
w
w
if(flag == 1)
cout << "Wrong Input";
w
w
Instructions
else 1. The system doesn’t allow any kind of hard-coded input value.
w
w
cout << sum; 2. Written program code by the candidate will be verified against all the inputs which are supplied from
} the system.
Solution in C++:
#include<iostream>
Q2. Joseph is learning digital logic subject which will be for his next semester. He usually tries to solve unit using namespace std;
assignment problems before the lecture. Today, he got one tricky question. The problem statement is “A void toggle(int &n)
positive integer has been given as an input. Convert decimal value to binary representation. Toggle all bits {
of it after the most significant bit including the most significant bit. Print the positive integer value after int temp = 1;
toggling all bits”. while (temp <= n)
{
n = n ^ temp; #*** → Value of S
temp = temp << 1; Output
} 2 ---> number of * is more than #
}
int main() The input format for testing
{ The candidate has to write the code to accept one inputs separated by a new line.
int n; First input: Accept a string S without any spaces (consisting of only * and #)
cin >> n;
if(n <= 100) The output format for testing
{ The output should be a positive integer number (check in e.g.s 1, 2 and 3). Additional messages in output
toggle(n); will cause the failure of test cases.
cout << n;
} Constraints
else S = {*,#}
om
om
cout << "Wrong Input"; 0<len(S)<=50
return 0;
} Solution in C++:
.c
.c
#include<iostream>
using namespace std;
w
w
int main()
no
no
{
Q3. Given a string S(input) consisting of * and #. The length of the string is variable. The task is to find the string str;
minimum number of * and # required to make it a valid string. The string is considered valid if the number of int count = 0, count1 = 0;
rs
rs
* and # are equal. The * and # can be at any position in the string. cin >> str;
he
he
for(int i = 0; str[i] != '\0'; i++)
Note: The output will be a positive or negative integer based on number of * and # in the input string. {
if(str[i] == '#')
es
es
(* > #) : Positive integer count++;
(# > *) : Negative integer if(str[i] == '*')
.fr
.fr
(#=*): 0 count1++;
}
w
w
Example 1: if(count == count1)
cout << "0";
w
w
Input
###*** → Value of S else
w
w
Output cout << count1-count;
0 ---> number of * and # are equal }
Example 2:
Input
###***# → Value of S
Output
-1 ---> number of # is more than *
Example 3:
Input
TCS Ninja Numerical Ability Questions Q6. A shopkeeper marks the sale price of all items in his shop at 20% above the cost price of those items.
However, he offers a discount of 15% on the sale price of these items to his customers. Calculate the profit
earned by him, in percentage.
Q1. The LCM and HCF of the three numbers 48, 144 and p are 720 and 24 respectively, find the least value
A. 5%
of p.
B. 2%
A. 192
C. 10%
B. 120
D. 2.5%
C. 360
Answer: B
D. 180
Answer: B
Q7. Plant A of a factory, during audit 6% of parts got rejected from the total production. In Plant B, the same
Q2. Simplify and find the value number of parts were rejected with 96 units of parts rejected less than Plant A. What was the number of
0.0217 x 3.18 parts produced by each factory?
---------------------- A. 4800
0.0053 x 15.5 x 0.7 B. 10000
om
om
A. 1.2 C. 9600
B. 0.12 D. 7200
C. 12 Answer: A
.c
.c
D. 0.012
Answer: A Q7. Amounts at the end of 2 yrs and 3 yrs are Rs. 1170 and Rs. 1305 on a certain sum, at a certain rate of
w
w
simple interest. Find the rate of interest.
no
no
A. 12% p.a.
Q3. What value should come in the place of question mark (?) in the following equation?
B. 9% p.a.
8 / [2 x 2 - {14 + (2 / 4 x 4) - 13}] = ¾ + ?
C. 15% p.a.
rs
rs
A. 2
D. 18% p.a.
B. 1/4
Answer: C
he
he
C. 29/4
D. 5/16
Q8.
Answer: C
es
es
Q4. Simplify and find the value,
.fr
.fr
216 x 216 + 216 x 194 + 194 x 194
--------------------------------------
w
w
216 x 216 x 216 - 194 x 194 x 194
w
w
A. 1/11
B. 2/11
w
w
C. 1/22
D. 1/33 If the number of males and females in town P are equal and the number of females in town Q is 50% more
Answer: C than the number of males in the town Q, then what is the difference between the average age of males and
females together in town P and the average age of males and females together in town Q?
Q5. Boy scored 90 marks in his mid-term exam and 105 in his end-term exam. If the maximum marks in A. 6 years
both the examinations are 150, then find the increase in his marks in percentage points. B. 8 years
A. 10% C. 5 years
B. 15% D. 9 years
C. 14.28%
Answer: A
D. 16.66%
Answer: A
Q9. In a certain amount, compound interest at the rate of 12.5% per annum for the fifth year 2048. If the B. 120 ml
interest is compounded annually. What is the compound interest for the 8th year? C. 160 ml
A. $ 2592 D. 140 ml
B. $ 2304 Answer: C
C. $ 2916
D. $ 3280 Q13. Two taps A and B fill an empty tank in 40 mins and 60 mins respectively. If both the taps are opened
Answer: C at 5 am, then at what time A be closed so that the tank is filled in 36 mins?
A. 5.22 am
Q10. R and company has two directors, X and Y who have invested Rs. 1,25,000 and 1,00,000 respectively. B. 5.12 am
X is the working partner and hence takes 5% of the profit as his salary. Find X’s share of the profit, if their C. 5.16 am
annual profit is Rs. 72,000. D. 5.05 am
A. 40,000 Answer: C
B. 32,000
C. 38,000 Q14. 6 men together can complete a one-third of work in 12 days. Four women together can complete half
om
om
D. 42,000 of the same work in 27 days and nine boys together can complete three-fourth of the same work in 54 days.
Answer: C In how many days can three men, 2 women and 3 boys together complete the work?
A. 30 days
.c
.c
Q10. In how many given years is the income of P in a year, more than then the average of the income of P B. 36 days
and Q in the same year? C. 24 days
w
w
D. 45 days
no
no
Answer: B
Q15. Sindhu, Madhavi and Jayanthi are participating in a 3 x 900 metres relay race. Sindhu covered her
rs
rs
distance in 3 minutes. Madhavi covered her distance in 4 minutes. How much time should Jayanathi take to
he
he
finish the race to maintain the team’s average speed at 4 m/s?
A. 4 minutes
B. 5.25 minutes
es
es
C. 4.25 minutes
D. 3.75 minutes
.fr
.fr
A. 4 Answer: C
B. 2
w
w
C. 3
D. 5
w
w
Q16. A box contains a total of 45 coins of one rupee, five rupees and two rupees. The total value of all the
Answer: A coins in the box is Rs. 91. The number of one rupee coin is one more than the total number of 5 rupees and
w
w
two rupees coins. What is the number of five rupees coins in the box?
Q11. Two numbers having their LCM 480 are in a ratio 3 : 4. What will be the smaller number of this pair? A. 12
A. 180 B. 8
B. 120 C. 6
C. 160 D. 10
D. 240 Answer: B
Answer: B
Q17. Akshat’s walking speed is 5 km/h. The bus stop is 1 kilometre away from his house. Akshat walks to
Q12. Quantity of wine in a mixture (wine + water + soda) is 24 ml more than water and 40 ml less than soda.
the bus stop and then takes a bus to school. The speed of the bus is 40 Km/h. Akshat’s school is 10
When 20% mixture is replaced by water, the total quantity of water in the mixture becomes 208 ml. What
Kilometers away from the bus stop. How much time will Akshat take to reach his school form his house, if
is the initial quantity of wine in the mixture?
he boards a bus as soon as he reaches the bus stop?
A. 180 ml
A. 20 minutes
B. 34 minutes TCS Ninja Verbal Ability Questions
C. 27 minutes
D. 30 minutes
Q1. The part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
Answer: C
error’.
World Health Organisation must intensify their efforts to vaccinate people in African countries.
Q18. A park is square in shape with its perimeter four times the perimeter of a rectangle having length 15
metres and breadth 10 metres. There is a semi-circular lawn inside the park that has a diameter equal to the A. World Health Organisation must
side of the square. Calculate the perimeter of this lawn.(Take n = 3.14). B. people in African countries.
A. 140 metres C. No error
B. 50 metres D. intensify their efforts to vaccinate
C. 128.5 metres Answer: D
D. 125.5 metres
Answer: C Q2. The part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
error’.
om
om
Q19. A magician wants to hide his magical rod inside a cubical box whose total surface area is 3042 cm2. A paramedic is expected to be highly skilled into dealing with emergency patients.
What can be the maximum length of the rod?
A. 37 cm A. highly skilled into dealing with
.c
.c
B. 42 cm B. No error
C. emergency patients
w
w
C. 33 cm
D. 39 cm D. A paramedic is expected to be
no
no
Answer: D Answer: A
Q3. The part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
rs
rs
Q20. The average of 13 consecutive natural numbers in x. If the seventh number is 22, find x.
A. 20 error’.
he
he
B. 22 The rise in the price of oil and an increase in demand has forced some farmers to harvest oil crops for biofuels.
C. 28
A. farmers to produce oil crops for biofuels.
es
es
D. 14
Answer: B B. No error
C. in demand has forced some
.fr
.fr
Q21. The standard deviation of prime numbers between 60 and 80 is 6.72. If each observation is multiplied D. The rise in the price of oil and an increase
Answer: C
w
w
by the median of the numbers, then find the difference of standard deviations of the obtained observations
and median of the numbers.
w
w
A. 484.68 Q4. Select the most appropriate option to fill in the blank.
B. 412.36
w
w
C. 406.12 I have a lot of work to do. I can’t leave the office ___________ one hour.
D. 477.12 A. by
Answer: D B. until
C. for
D. since
Answer: C
Q5. Read the following passage and fill in the blanks by selecting the more appropriate options.
By 2025, marketing campaigns ___1___ relied on Artificial Intelligence to enhance customer experience.
Companies will be communicating their ___2___ only through personalised and curated content.
Blank 1: A. will B. will have C. would D. wil being Q. “The word ‘Dard’ is derived from the Sanskrit word, ‘Daradas’, which means people who live on hillsides”,
Blank 2: A. uniqueness B. marketing C. future D. products said Virendra Bangroo, assistant professor at Indira Gandhi National Centre for the Arts (IGNCA), who has
extensively researched on their lives.
A. 1-B, 2-A R. There is also a line of thought that the “Aryans of Ladakh” might have descended from soldiers in
B. 1-B, 2-B Alexander’s army who had come to the region over 2,000 years ago.
C. 1-D, 2-B
D. 1-A, 2-C A. RP
Answer: A B. QP
C. PR
Q6. Read the following passage and fill in the blanks by selecting the more appropriate options. D. PQ
Answer: D
The main cause of teachers leaving the workforce is not tough and rigid work contract in schools, but
_________ is poor working condition__________ meagre salaries. Q9. For the four sentence (S1-S4) paragraph below, sentences S1 and S4 are given. From the options P, Q
and R choose the appropriate sentences for S2 and S3 respectively.
om
om
Blank 1: A. rather B. however C. so D. then
Blank 2: A. aroused B. worsened C. aided D. eased
S1. When employees are constantly working for a long time, they start getting influenced by others’ moods
and vibes.
.c
.c
A. 1-A and 2-B
S2.
B. 1-B and 2-B
w
w
S3.
C. 1-A and 2-D
S4. But this emotional transfer also happens through digital communication.
no
no
D. 1-D and 2-C
Answer: 1-A 2-C (Not in option)
P. This phenomenon is known as emotional contagion.
rs
rs
Q. Positive emotions lead to higher productivity, creativity, and job performance.
Q7. Select the most appropriate option to fill in the blank.
R. Emotional contagion is most pronounced when employees are together physically.
he
he
A. PQ
Almost all colonial buildings have been so altered and developed that their _________ structure is no longer
B. PR
______.
es
es
C. QP
A. external, necessary
D. RP
B. original, recognisable
Answer: B
.fr
.fr
C. main, found
D. Internal, attractive
w
w
Q10. You are going to read a text. Parts of two sentences are missing from the text. Choose from the list
Answer: B
(A-C) the most appropriate part to complete the sentence for each gap (1-2) in the text. There is one extra
w
w
part that you do not need to use.
w
w
Q8. For the four sentence (S1-S4) paragraph below, sentences S1 and S4 are given. From the options P, Q
and R choose the appropriate sentences for S2 and S3 respectively. Those who are concerned about society may be troubled by the idea of overdependence on technology
____(1)_____ We have made technology our primary religion and culture. _____(2)______
S1. Some 200 km from Leh are the villages of Dha, Hanu, Garkone and Darchik on both sides of the Indus
river, inhabited by the Buddhist Dard Tribes. A. It has started to overtake us because it has crippled our ability to keep a track of events around us.
S2. B. Our new religion and culture is making us more confident and productive.
S3. C. Our deviation from our roots affects our ability to trust each other.
S4. He added people of this region are culturally and linguistically different from those in other parts of
Ladakh. A. (1) B and (2) C
B. (1) C and (2) A
P. The villages are together called the “Aryan valley” C. (1) A and (2) B
D. (1) A and (2) C
Answer: D
TCS Ninja Reasoning Ability Questions
Q11. Which of the following sentences uses formal language?
Q1. Which is the WRONG term in the following series?
A. Numerous research methods were considered for the study.
mkl, imj, gqh, csf, awd, wyb, udw
B. It was raining cats and dogs.
C. She uses loads of examples in the class.
A. csf
D. The improvements can’t be introduced due to funding restrictions.
B. udw
Answer: A
C. awd
D. wyb
Q12. The following sentence pair can be combined into one better sentence. Choose the option that Answer: B
combines the two sentences best.
Q2. In each of the five pairs of letter clusters, the letters in a second term are a rearranged/transformed form
I completed the assignment. I submitted the assignment. of the letters in the first term in a particular pattern. In which two pairs, has the transformation been done in
the same way?
om
om
A. I completed but submitted the assignment A. ACTOR:CROTA
B. I completed the assignment and submitted it B. BENCH:CEHBN
C. I completed the assignment, however, I submitted the assignment C. CHAIR:ARHCI
.c
.c
D. Although I completed the assignment, I submitted the assignment D. DIRTY:RYITD
Answer: B E. ENJOY:JYNEO
w
w
no
no
Q13. You are going to read a text. Partes of two sentences are missing from the text. Choose from the list
A. A and C
(A-C) the most appropriate part to complete the sentence for each gap (1-2) in the text. There is one extra
B. B and D
part that you do not need to use.
rs
rs
C. E and C
D. B and E
In order to conduct clinical trials of medical treatments, scientists gather a huge amount of information of
he
he
Answer: D
their patients. ___1___ Some researchers argue that medical research can be massively improved by a shift
toward artificial Intelligence. ___2___.
Q3. Given below is a question followed by two statements, I and II each containing some information. Decide
es
es
which of the statement(s) is/are sufficient to answer the question.
A. This can result in more efficient and less complicated clinical trials of medical treatments.
.fr
.fr
B. This can pave the way for more innovative and cost-efficient treatment.
How many persons are sitting in the row?
C. This practice increases the costs of collecting, storing and analysing data.
w
w
Statements:
A. 1-A, 2-C
w
w
I. Ghazi, who is 5th to the right of Anish, is 12th from the left end. Anish is 15th from the right end.
B. 1-B, 2-A
II. Zenia is 4th to the left of Karan, who is 15th from the right end.
w
w
C. 1-B, 2-C
D. 1-C, 2-A
A. Statement I alone is sufficient.
Answer: D
B. Statement I alone or statement II alone is sufficient.
C. Statement II alone is sufficient.
D. Both the statements I and II together are not sufficient.
Answer: A
Q4. Given below is a question followed by two statements, I and II each containing some information. Decide
which of the statement(s) is/are sufficient to answer the question.
Six persons P to Q are sitting in a row facing north direction. Who among the following sits at extreme right
end?
Statement I: A. F
P sits third to the left of U. Q sits two places away from P but not adjacent to U. T sits immediate left of S. B. E
Statement II: C. C
There are two persons between Q and T. S sits to the immediate left of U but to the right of T. Neither S nor D. A
U is adjacent. Answer: C
A. If the data in statement II alone is sufficient to answer the question Q7. Eight persons A, B, C, D, E, F, G and H are sitting around a circular table. The following is the information
B. If the data either in statement I or statement II alone is sufficient to answer the question. known about them. B is opposite E who is neither adjacent to C nor to D. H is to the right of E and D is to
C. If the data in statement I alone is sufficient to answer the question. the right of B. C does not sit near D and H. A does not sit near H and E. Two people sit between G and D,
D. If the data in both statements I and II together are not sufficient to answer the question. when counted from the right of G. Who is sitting opposite G?
A. F
Answer: B B. C
C. A
om
om
D. H
Q5. In a certain code, if: Answer: C
S#T means S is the father of T
.c
.c
S@T means S is the wife of T
S%T means S is the brother of T Q8. Six persons Vinay, Vijay, Varun, Varsha, Vinod and Vartika were seated in a row not necessarily in the
w
w
S$T means S is the sister of T same order. They were seated facing the north, Vijay was 2nd to the right of Varsha who was seated at a
no
no
S&T means S is the daughter of T gap of 3 from Vartika.Vinay was 2nd to the right of Varun who was not neighbouring Vijay. Who was seated
S*T means S is the son of T to the immediate right of Vinod?
rs
rs
I. E*C A. Varsha
II. H@F B. Vartika
he
he
III. J*G C. Varun
IV. F%E D. Vijay
es
es
V. L$K Answer: B
VI. J%I
.fr
.fr
VII. I&E Q9. Mahendra is going to buy a laptop, following are the criteria of selection of the laptop given by his father.
VIII. K*F a) must be for less than Rs. 40,000
w
w
IX. F*D b) must have RAM equal or more than 8GB
c) must have Intel processor of version i3 or above
w
w
Who among the following is not a male? d) If any laptop is satisfying all the above criteria except (a), he will need his dad’s permission if ir is for less
w
w
than Rs. 50,000
A. J e) If any laptop is satisfying all the above criteria except (b), he will need his mom’s permission if it has
B. F storage of more than 512 GB.
C. L
D. E Acer AT20 is a new laptop in the market costing Rs. 35,000 and having 8GB RAM. It consists of processor
Answer: C i5 and pre-installed windows 10.
Which of the following options below is CORRECT for the laptop given above?
Q6. A, B, C, D, E, F and G are standing in a row facing north. B is to the left of D. There are two persons C
and G. E is adjacent of B and C. F is to the immediate right of G. A. He needs mom’s permission to buy it
B. He will buy the laptop
Who is standing exactly in the middle? C. He will not buy the laptop
D. He needs dad’s permission to buy it Q12. Two statements are followed by two conclusions numbered I and II. You have to consider these
Answer: B statements to be true, even if they seem to be at variance with commonly known facts. Decide which
of the given conclusions logically follows from the given statement.
Q10. Shekar asked his girlfriend to book a hotel in Udaipur for their trip. Following are the selection of hotel
they have decided: Statements:
All paths are roads
(a) Price of hotel must be less than Rs. 5000 per night. Some roads are highway
(b) Couple should be allowed.
(c) It should be within 10km from the railway station. Conclusions:
(d) If a hostel satisfies all the criteria except (a) but it is providing online payment option, she will ask her I. Some highways are paths
friend for finalization. II. All paths being highway is a possibility
(e) If a hotel satisfies all the criteria except (c) but it provides free breakfast, she will ask Shekhar for
finalisation. A. Both conclusions I and II follow
B. Only conclusion I follow
om
om
“Hotel Disaster Inn” is offering super deluxe room at the price os Rs. 4500 per night. Its rating on Google is C. Neither conclusion I nor II follow
4.5 and it is 12 km from railway Station. Hotel policy allows couple to check in with original ID card and pay D. Only conclusion II follows
in cash. Free breakfast, sofas, swimming pool, parking, lift and AC are mentioned in the facilities. Answer: D
.c
.c
Which of the following options below is CORRECT for the selection of hotel above?
w
A. It will not be finalised by her friend. Q13. A statement is followed by two arguments numbered I and II. Decide which of the argument(s)
no
no
B. She will ask Shekar for finalisation. is/ are strong (important and directed related to the question) and which is/ are weak (not important
C. It will be selected by her. and not related to the central message of the question).
D. She will ask her friend for finalization
rs
rs
Statement : Should the Government of India privatise their shares of public entities?
Answer: B Argument I. No, it will reduce their assets, which can help them in the difficult time.
he
he
Argument II. Yes. Mixed economies like India will be in better condition if they do so.
Q11. Three statements are followed by three conclusions number I, II and III. Assuming the statements A. Only argument II is strong
es
es
to be TRUE, even if they do not confirm world knowledge, decide which of the conclusion(s) possibly B. Neither I nor II is strong
follows/follow from the statements. C. Both I and II are strong
D. Only Argument I is strong
.fr
.fr
Statements: Answer: A
w
w
1. Some vehicles are trucks.
2. All aeroplanes are vehicles. Q14. The given question consists of six statements followed by 4 options consisting of three
w
w
3. No truck is car. statements put together in a specific order. Choose the option, which indicates a valid argument that
w
w
is, when the third statement is a conclusion drawn from the preceding two statements.
Conclusions: (a) Some mails are falis
I. No car is aeroplane. (b) Bail is a fail
II. It is possible that some trucks are aeroplanes. (c) Some jail is mail
III. Some cars are aeroplanes. (d) Fail is jail
(e) No mail is a fail
A. Only II follows (f) No bail is mail
B. Only I and II follow A. b e f
C. Only II and III follow B. c b a
D. Only II and either I or III follow C. a f b
D. c d e
Answer: A Answer: A
Q15. The ratio of the number of executive and non-executive employees working in a company is 2:5. 50% employees staying in rented houses travel to their workplace by two-wheelers and the rest 40% travel by
of the executives and 30% of the non-executives stay outside the company campus. 350 of the employees the company bus. The number of executives travelling by the company bus is 15.
staying outside the campus live in their own houses with the ratio of 2:3 between executives and non-
executives, while the rest live in rented houses. 60 non-executives stay in rented houses. 60% of the How many executives are staying outside?
employees staying in rented houses travel to their workplace by two-wheelers and the rest 40% travel by
the company bus. The number of executives travelling by the company bus is 15. A. 210
B. 180
I. How many employees are working in the company? C. 120
D. 140
A. 1080 Answer: D
B. 1180
C. 1320
D. 1260
Answer: D
om
om
II. How many non-executives travel by the company bus to their workplace?
.c
.c
A. 35
B. 15
w
w
C. 40
no
no
D. 25
Answer: D
rs
rs
he
he
Q16. If the given figure is folded to form a cube, which symbol will come opposite to “Z”?
es
es
.fr
.fr
w
w
w
w
w
w
A. L
B. B
C. R
D. K
Answer: D
Q17. The ratio of the number of executive and non-executive employees working in a company is 2:5. 50%
of the executives and 30% of the non-executives stay outside the company campus. 350 of the employees
staying outside the campus live in their own houses with the ratio of 2:3 between executives and non-
executives, while the rest live in rented houses. 60 non-executives stay in rented houses. 60% of the
TCS Ninja Programming Logic Questions int i = 5, j = 6;
int k=0;
Q1. What is the output of the prefix expression +, -, *, 7, 2, /, 9, 3, 1?
A. 13 f(&i,&j);
B. 10
C. 11 k=(i*j);
D. 12
Answer: D printf(“%d”, k);
Integer digit = 0; }
if digit A. 134
om
om
print “1” B. 126
else C. 125
.c
.c
print “digit” D. 138
w
w
Answer: B
no
no
end if
rs
B.0 #include <iostream>
he
he
C.digit using namespace std;
es
es
D.Nothing will print int main ()
.fr
.fr
Answer: C {
w
w
Q3. What is the output of the code? Int skip_num;
w
w
#include <stdio.h> for (skip_num = 1; skip_num<=5; skip_num++){
w
w
void f(int*p, int*m) if(skip_num = =2 || skip_num = =4){
{*m=*m+3; continue;
*p=*p+*m; }
return; cout<<skip_num;
} cout<<’’
int main () }
{ return 0;
} Void main ()
{
A. 1 3 5 Int rate = 15, piece = 10, interim, result = 0;
interim = rate % piece;
B. 1 3 4 5
result + = interim / 5
printf(“%d, result);
C. 1 2 5
}
D. 2 4 6 A. 10
B. 2
Answer: A C. 5
D. 1
Q5. Below is the JSON format to share the employee data. Answer: D
{
Q8. What will be the output of the given program?
om
om
“id”: “001”, #include <iostream>
using namespace
“Name’: “John” std;
.c
.c
int main ()
“Department”: “QA”
w
w
{
A JSON format, designed with a collection of (key, value) and pairs in which each of the key appears at once
no
no
Int sides = 3;
in the collection.
rs
rs
Which type of data structures is most suitable to implement JSON format? Int lines = 3;
he
he
A. Doubly Linked List If (!(sides^lines)}
es
C. Single Linked List else
.fr
.fr
D. Associative Array cout<<”Others”;
w
w
Answer: B
return 0;
w
w
Q6. Evaluation of cyclomatic complexity comes under which type of testing?
w
w
}
A. Black Testing
Enter your answer in the box.
B. White Testing
Answer: Triangle
C. Stress Testing
Q9. Predict the output of the following code
D. Gray Testing
#include<iostream>
Answer: B
using namespace std;
Q7. What is the output of the below code?
#include <stdio.h>
int main()
{ TCS Ninja Hands-on Coding Questions
int a = 3, b = 5;
Q1. Airport security officials have confiscated several items of the passenger at the security checkpoint. All
the items have been dumped into a huge box(array). Each item possessed a certain amount of risk(0,1,2).
while(b--)
Here is the risk severity of the item representing an array[] of N number of integer values. The risk here is to
sort the item based on their level of risk values range from 0 to 2.
a++;
Example 1:
cout << a;
Input:
return 0;
7 ----- Value of N
}
[1,0,2,0,1,0,2] -> Element of arr[0] to arr[N-1], while input each element is separated by new line
Answer: 8
om
om
Output:
.c
.c
Example 2:
w
w
Input:
no
no
10 ----- Value of N
rs
rs
[2,1,0,2,1,0,0,1,2,0] -> Element of arr[0] to arr[N-1], while input each element is separated by new line
he
he
Output:
es
es
0 0 0 0 0 1 1 1 2 2 2 -> Element after sorting based on the risk severity.
.fr
.fr
Constraints
w
w
0<N<=100
w
w
0<=arr[i]<=2
w
w
Code Solution:
#include<iostream>
int main()
int n;
cin >> n;
int arr[n]; Q2. Given N gold wires, each wire has a length associated with it. At a time, only two adjacent small wres
assembled at the end of a large wire and the cost of forming is the sum of their length. Find the minimum
for(int i = 0; i < n; i++) cost when all wires are assembled to form a single wire.
{
For Example:
cin >> arr[i];
Suppose, Arr[] = {7, 6, 8, 6, 1, 1}
} {7, 6, 8, 6, 1, 1} - {7, 6, 8, 6, 2}, cost = 2
{7, 6, 8, 6, 2} - {7, 6, 8, 8}, cost = 8
for(int i = 0; i < n; i++) {7, 6, 8, 8} - {13, 8, 8}, cost =13
{13, 8, 8} - {13, 16}, cost = 16
{ {13, 16} - {29}, cost = 29
2 + 8 + 13 + 16 + 29 = 68
for(int j = i+1; j < n; j++)
om
om
Hence, the minimum cost to assemble all gold wires is : 68
{
.c
.c
{ 1 <= N <= 30
w
w
1<= Arr[] <= 100
int temp = arr[i];
no
no
Example 1:
arr[i] = arr[j];
rs
rs
Input:
arr[j] = temp;
he
he
} 6 -> Value of N, represents size of Arr
7 -> Value of Arr[0], represents length of 1st wire
es
es
} 6 -> Value of Arr[1], represents length of 2nd wire
8 -> Value of Arr[2], represents length of 3rd wire
.fr
.fr
} 6 -> Value of Arr[3], represents length of 4th wire
-1 -> Value of Arr[4], represents length of 5th wire
w
w
for(int i = 0; i < n; i++)
1 -> Value of Arr[5], represents length of 6th wire
w
w
{
Output:
w
w
cout << arr[i] << “ ”;
68
}
Example 2:
}
Input:
om
om
unsigned capacity; return (minHeap->size == 1);
int* harr; }
};
.c
.c
int extractMin(struct MinHeap* minHeap)
w
w
struct MinHeap* createMinHeap(unsigned capacity) {
no
no
{ int temp = minHeap->harr[0];
struct MinHeap* minHeap = new MinHeap; minHeap->harr[0] = minHeap->harr[minHeap->size - 1];
minHeap->size = 0; --minHeap->size;
rs
rs
minHeap->capacity = capacity; minHeapify(minHeap, 0);
minHeap->harr = new int[capacity]; return temp;
he
he
return minHeap; }
}
es
es
void insertMinHeap(struct MinHeap* minHeap, int val)
.fr
.fr
void swapMinHeapNode(int* a, int* b) {
{ ++minHeap->size;
w
w
int temp = *a; int i = minHeap->size - 1;
*a = *b; while (i && (val < minHeap->harr[(i - 1) / 2])) {
w
w
*b = temp; minHeap->harr[i] = minHeap->harr[(i - 1) / 2];
w
w
} i = (i - 1) / 2;
}
minHeap->harr[i] = val;
void minHeapify(struct MinHeap* minHeap, int idx) }
{
int smallest = idx;
int left = 2 * idx + 1; void buildMinHeap(struct MinHeap* minHeap)
int right = 2 * idx + 2; {
int n = minHeap->size - 1;
if (left < minHeap->size int i;
&& minHeap->harr[left] < minHeap->harr[smallest]) for (i = (n - 1) / 2; i >= 0; --i)
smallest = left; minHeapify(minHeap, i);
} int size = sizeof(arr) / sizeof(arr[0]);
cout << minCost(arr, size);
return 0;
struct MinHeap* createAndBuildMinHeap( }
int len[], int size)
{
struct MinHeap* minHeap = createMinHeap(size);
for (int i = 0; i < size; ++i)
minHeap->harr[i] = len[i];
minHeap->size = size;
buildMinHeap(minHeap);
return minHeap;
}
om
om
int minCost(int len[], int n)
{
.c
.c
int cost = 0;
w
no
no
struct MinHeap* minHeap = createAndBuildMinHeap(len, n);
rs
rs
while (!isSizeOne(minHeap)) {
he
he
int min = extractMin(minHeap);
int sec_min = extractMin(minHeap);
es
es
cost += (min + sec_min);
.fr
.fr
w
w
insertMinHeap(minHeap, min + sec_min);
}
w
w
w
w
return cost;
}
int main()
{
int n;
cin >> n;
int arr[n];
for(int i = 0; i < n; i++)
cin >> arr[i];
TCS Ninja Numerical Ability Questions A. 108
B. 112
C. 96
Q1. What is the remainder when 1383 is divided by 11?
D. 84
A. 6
Answer: A
B. 3
C. 8
Q7. A shopkeeper incurs a loss of Rs. 90 if he marked up the price of an article by 10% and offered x%
D. 5
discount. He gains Rs. 70 on the same article if he exchanges the marked price with discount percent. Find
Answer: B
the value of x?
Q2. If p = (√6 - √5) and q = (√10 + √3), then what is the value of (p2+q2)/6? A. 50
A. 9 B. 25
B. 6 C. 60
C. 4 D. 40
D. 3 Answer: A
om
om
Answer: C
Q8. A lady bought two sarees of Rs. 2000 each. She sold one at a loss of 10% and the other at a profit after
offering a discount of 5%. She incurred an overall loss of 3.7%. What percentage above the cost price was
Q3. What will come in place of the question mark (?) in the following question?
.c
.c
the marked price of the second saree?
1610 × 2? = 88 × 324 A. 4
w
w
A. 5 B. 8
B. 2
no
no
C. 3.2
C. 4 D. 3.6
D. 3 Answer: B
rs
rs
Answer: C
Q9. Mahendra invested certain amount in scheme for 3(⅕) years at 24(½)% Simple Interest, and the interest
he
he
Q4. amount received is Rs. 11760. For how much more time must he invest his capital to obtain Rs. 5880 more
interest?
es
es
A. 1.2 years
A. -4/27 B. 1.5 years
.fr
.fr
B. -8/27 C. 1.6 years
C. -16/81 D. 1.8 years
w
w
D. -2/9 Answer: C
w
w
Answer: A
Q10. What is the interest (in Rs.) on Rs. 20 lakhs, at the rate of 4%, compounded annually of 27 months?
w
w
Q5. In measuring time using a device the percentage error is 0.1%. What will be the percentage error in the A. 393424
measurement of square of a time interval by using the same device, when the CORRECT value (in second B. 384176
square) is 16? C. 276168
A. 0.2001 D. 356128
B. 0.201 Answer: 184514.89 (Options are wrong)
C. 0.2002
D. 0.2004 Q11. If a:b = 5:7 and 1/c:1/b = 8:9; which among the following represents a:b:c?
Answer: D A. 40:63:56
B. 20:35:24
Q6. A Shopkeeper has initially 400 Cookies. He sold 15% Cookies to Bindhu, 20% more Cookies than Bindhu C. 40:56:63
to Preet, 40% Cookies to Raju and remaining Cookies to Karan. How many Cookies did Karan buy? D. 20:24:35
Answer: C Q17. A motor cyclist sets out for a journey of length 50km. After 42 mins it is observed that he has covered
7/18 of the remaining distance. With how much speed should he travel the remaining distance, so that his
Q12. The respective ratio between the present daily wages of a Harsh and Pankaj is 7:8. After 8 years, this average speed for the entire journey is 31.25 km/h?
will be 9:10 respectively. If at the time of joining, the ratio of their wages was 11 :13 respectively, how many A. 45
years ago they were joined the work? B. 36
A. 4 C. 40
B. 8 D. 30
C. 10 Answer: C
D. 6
Answer: D Q18. The difference between two numbers is 76. Thrice the smaller number is less than the larger number
by 37.5% of the smaller number. What is the larger number?
Q13. X, Y, Z started a partnership business by investing capitals in the proportion 4:5:8. At the end of the A. 108
business term, the profits earned by Y, Z, X turned out to be in the proportion 8:9:12. What was the B. 120
proportion of the periods for which the investments were made by Z, X, Y? C. 126
om
om
A. 18:45:25 D. 102
B. 3:5:4 Answer: A
C. 48:75:50
.c
.c
D. 45:120:64 Q19. A hollow ,metallic cube of uniform thickness 1 cm, and outer edge 10cm melted and recast for getting
Answer: D it into a solid spherical shape. But in the process only 11/21 of the material could be recovered.Then what is
w
w
22
the radius (nearest to integer in cm) of the spherical shape so obtained (Take 𝛱 = 7
)
no
no
Q14. A and B, working alone, can do a work in 8 and 5 days respectively. They work together and a total A. 3
payment of Rs. 6500 is made to them. What is the share (in Rs.) of B? B. 5
A. 3900
rs
rs
C. 4
B. 2500 D. 6
C. 4000
he
he
Answer: A
D. 2600
Answer: B Q20. The difference between the circumference and the radius of a circular playground is 185cms. If one
es
es
fence is needed around the ground, what will be the cost of fencing if the price for fencing is Rs. 12 per cm?
Q15. 12 girls can complete a work in 21 days. 7 boys can finish the three-fifths of the same work in 30 days. A. Rs. 2720
.fr
.fr
Find the time taken by 3 girls and 1 boy to complete the (31/42)th of the work? B. Rs. 2160
A. 30 days C. Rs. 2280
w
w
B. 45 days D. Rs. 2640
C. 50 days
w
w
Answer: D
D. 60 days
w
w
Answer: 50 Q21. The range of the data 10, 8, 12, 23, 18, 35, 56, 82, 49 and 76 is how much less than its maximum
value?
Q16. A person has to cover 720km distance. If he decreases his speed by 12 km/h, he reaches 2 hr late. Find A. 9
the ratio of his initial and final time to reach the destination respectively. B. 10
A. 4:5 C. 8
B. 7:9 D. 12
C. 5:6 Answer: C
D. 6:7
Answer: C Q22. The sum of the consecutive even numbers is 240. What is the least number of another set of seven
consecutive even numbers whose average is the second highest number of the given set?
A. 44
B. 72 TCS Ninja Verbal Ability Questions
C. 68
D. 66
Q1. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
Answer: A
error’.
Q23. If x is the arithmetic mean of the first 4 prime numbers, Y is the arithmetic mean of the first 4 composite
Everyone has been talking about how well he plays a guitar.
numbers and Z is the arithmetic mean of the first 4 multiples of 11 then, find the mode of the following
numbers.
A. No error.
7, 3, 9, 11, 3, X, Y, Z, 9, 7, 8 and 7 B. Everyone has been talking
A. 11 C. about how well
B. 7 D. he plays a guitar.
C. 9 Answer: D
D. 3
Answer: B Q2. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
om
om
error’.
Q24. The cost of one share of 6 different companies is Rs. 46, Rs. 42, Rs. 51, Rs. 43, Rs. 40 and Rs. 53 The art of good film-making lies into knowing where to focus your camera.
respectively. How much more is the mean deviation about the median of the given costs than the mean of
.c
.c
the costs? A. where to focus your camera.
A. 43.83 B. lies into knowing
w
w
B. 41.67 C. No error
no
no
C. 45.83
D. The art of good film-making
D. 46.33
Answer: B
Answer: B
rs
rs
Q3. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
Q25. The following line graph represents the percentage distribution of people of Madhya-Pradesh and
he
he
error’.
Bihar in different employment areas. Study the line graph carefully and answer the question.
By analysing the sediment from the Bay of Bengal, researchers are finding that the present Indian monsoon
system dates back at least 27 million years.
es
es
A. that the present Indian monsoon system
.fr
.fr
B. researches are finding
C. dates back at least 27 million years
w
w
D. By analysing the sediment from the Bay of Bengal,
w
w
Answer: B
w
w
Q4. Complete the given sentence by filling in the blanks with the most appropriate pair of words from the
options given.
If the population of Madhya-Pradesh and Bihar is same, how much more is the number of people doing Delhi’s Indira Gandhi International airport is likely to throw open ________ fourth runway for operations in
private job in Madhya Pradesh than the number of people doing business in Bihar? September __________ year.
A. 180% A. the / that
B. 225% B. its / this
C. 160% C. their / previous
D. 200% D. its / last
Answer: A Answer: B
P. The IPL, however has proved to be a true game-changer, with a distinct pre-and post IPL eras of sports
Q5. Select the most appropriate option to fill in the blank marketing.
I wish someone ________ me to buy some sugar when we were all in the shop. Q. The success of IPL proved to be catalyst for the T20 boom across the sporting world of cricket.
A. remind R. But, for India it marked the beginning of a different journey--- a journey towards becoming a sporting
B. would remind nation.
C. reminds A. S2: P, S3:R
D. reminded B. S2:Q, S3:P
Answer: B C. S2:R, S3:P
D. S2:Q, S3:R
Q6. Read the following paragraph and fill in the blanks by selecting the appropriate words. Answer: A
If you are a public figure and enjoy some popularity, it becomes imperative for you to ___1___ directly with Q9. For the four sentence (s1 to S4) paragraph given below, sentences S1 and S4 are given. From the
your followers. This allows you to communicate your feelings and opinion candidly and ___2___ information options P, Q and R, choose the appropriate sentences for S2 and S3 respectively.
authentically. When there is a medium between you and your fan base, information is filtered and edited
om
om
without your control. S1. There is no denial of the fact that recycling plastic is essential but believing that it will help to save the
Earth will be a misconception.
Blank 1: A. entertain B. encourage C. engage D. encounter S2.
.c
.c
Blank 2: A. give B. pass C. write D. disseminate S3.
S4. The actual and grave problem is that single-use plastic is a gross abuse of advanced technology and
w
w
A. 1-A and 2-B massive production of it should be avoided at all costs
no
no
B. 1-A and 2-D options:
C. 1-D and 2-B P. But our effort is absolutely insufficient and distracts us from the real issue.
D. 1-C and 2-D Q. The bigger role is played by the corporate polluters in plastic problem
rs
rs
Answer: D R. We all make an effort to find a place to recycle our waste plastic and feel overjoyed if we succeed in doing
so
he
he
Q7. Select the most appropriate option to fill in the blank A. PQ
B. QR
es
es
Not only did ______ late, but he was also completely unprepared and looked as though he had ____ that kind C. RP
of task before. D. PR
.fr
.fr
Answer: C
A. he came, never saw
w
w
B. he come, never seen Q10. For the four sentence (s1 to S4) paragraph given below, sentences S1 and S4 are given. From the
options P, Q and R, choose the appropriate sentences for S2 and S3 respectively.
w
w
C. he is, never see
D. he was, never seen
w
w
Answer: B S1. Dams that divert water out of rivers may have significant additional climate change impacts.
S2.
S3.
Q8. For the four-sentence (S1 to S4) paragraph below, sentence S1 and S4 are given. From the options P,Q
S4. A proposal for a dam on the Cache Ia Poudre River in Colorado would dry up 1,700 acres of wetlands
and R, choose the most appropriate sentences for S2 and S3 respectively.
thus emitting about 7,000 metric tons of CO2 equivalents.
S1. With its sensational launch in 2008, IPL added a new word to India’s vocabulary : “Sportainment”.
Options:
S2.
P. This is because they tend to drain and dry up downstream wetland that are “carbon sinks” holding vast
S3.
amounts of greenhouse gases in soils.
S4. In addition to the economic growth, it generated employment both directly and indirectly.
Q. Besides, such draining and dry-up causes carbon and methane to be released and emitted into the air.
R. When Colorado river, to site one example, was diverted the dams dried up 2 million acres of wetlands.
A. S1:P, S2:Q Q13. The following sentence can be redrafted to make it read better. Choose the sentence that is the best
B. S1:R, S2:Q answer.
C. S1:P, S2:R
D. S1:Q, S2:R I have been a counsellor for 5 yrs now, but I can say I have learned much more from my interactions with
Answer: D clients than the theories I read in books.
Q11. You are going to read a text about counselling. Some sentences are missing from the text. Choose from A. On being a counsellor for 5 yrs now, but I can say I have learned much more from my interactions with
the list (A-C) the most appropriate sentence for each gap (1-2) in the text. clients than the theories I read in books.
There is one extra sentence/part that you do not need to use. B.Since being a counsellor for 5 yrs now, but I can say I have learned much more from my interactions with
clients than the theories I read in books.
Confidence is the key to success in the sports industry. A player who sustains injury during a match may C. After being a counsellor for 5 yrs now, but I can say I have learned much more from my interactions with
tend to lose his confidence ___1___ in such a situation a sports psychologist can help immensely ___2___. clients than the theories I read in books.
Counsellors have a better grip over the players with sports injuries. That is why they are extremely important D. Having been a counsellor for 5 yrs now, but I can say I have learned much more from my interactions with
to be included in a team. clients than the theories I read in books.
om
om
Answer: D
A. He can help clear out the mental scars and help the player restore his lost confidence Q14. Which of the following sentences uses the most formal language?
.c
.c
B. He helps young athletes mental skills to enhance their performance A. The Government will do everything it can to support the initiative.
C. As a result, he may not be able to perform at the same pace again B. It had been raining cats and dogs when we returned.
w
w
C. With the popularity of the Internet, everyone’s into DIY projects now.
no
no
A. 1-C, 2-A D. I employed a lot of unconventional methods for the research.
B. 1-B, 2-C Answer: A
C. 1-C, 2-B
rs
rs
D. 1-A, 2-B
Answer: A
he
he
Q15. You are going to read a text about the Sun. Some sentences are missing from the text. Choose from
the list (P -R) the most appropriate sentence for each gap (1-2) in the text. There is one extra sentence that
you do NOT need to use .
es
es
Q12. You are going to read a text. Some parts of sentences are missing from the text. Choose from the list
(A -C) the most appropriate sentence for each gap (1-2) in the text. There is one extra sentence that you do From the cosmological studies of the structure of stars, we realize that, since its beginnings, the sun’s
.fr
.fr
NOT need to use . brightness has slowly increased by about 30% ___1____ That is, if the Sun were even a few percentage
points less bright in the past, the Earth might have been covered by ice. _____ 2 _______ Although many
w
w
In recent years, there has been a growing trend among young children to rely heavily on a diet of junk food. theories have been proposed against the Earth’s ability to evade the “weak youthful Sun” issue, but how the
Once addicted, ___________ 1 _________ it is essential, therefore, __________ 2 __________
w
w
Earth really got away from the ice fiasco remains dubious.
w
w
A. that parents encourage healthy eating from an early age. P. These volcanic aerosols spread north and eventually decreased the atmospheric transmission over a large
B. that parents make them informed about food decisions. part of the terrain and helped maintain conditions temperature and pressure.
C. they find it extremely difficult to change this habit later in life. Q. This alarming change has raised the so-called young-sun climate issue.
A. (1) B and (2) A R. In this frozen state, it probably wouldn’t have warmed up because the ice would reflect the greater part
B. (1) B and (2) C of the emergent sun-rays back into space.
C. (1) A and (2) C
D. (1) C and (2) A A. 1-P, 2-R
Answer: D B. 1-Q, 2-R
C. 1-R, 2-Q
D. 1-R, 2-Q
Answer: D
TCS Ninja Reasoning Ability Questions Q4. Given below is a question followed by two statements, I and II each containing some information. Decide
which of the following statement(s) is/are sufficient to answer the question.
Q1. Which is the WRONG term in the following series?
A, B, C and D have different heights and weights. Who is the heaviest among them?
SBNQ, UEMO, WHLM, YKKJ, ANJI
Statements:
I. The heaviest person is also the 2nd shortest. A is heavier than C, who is shorter than B but not shortest
A. WHLM
and D is the lightest.
B. YKKJ
C. UEMO II. The 2nd shortest person is the heaviest person. C is lighter than B, who is the tallest. A is heavier than D.
D. ANJI
Answer: B A. I alone is sufficient but II alone is not sufficient.
B. II alone is sufficient but I alone is not sufficient.
Q2. In each of the four pairs of letter-clusters, the letters in the second term are in a rearrange/transformed C. Either statement I or II alone is sufficient.
form of the letters from the first term in a particular pattern. In which two pairs, has the transformation been D. Both the statements together are necessary.
om
om
done the same way? Answer: C
[A] TUESDAY - DAYTUES
[B] FRIDAY - RFDIAY Q5. Given below is a question followed by three statements I, II and III, each containing some information.
.c
.c
[C] MONDAY - OMDNAY Decide which of the given statements is CORRECT.
[D] THURSDAY - TUSADYHR Who amongst P,Q,R,S and T is the third youngest person?
w
w
no
no
I. Q is the second eldest person.
A. A and C
II. Neither P nor R is the youngest, and P nor R is the youngest, and P is not the eldest.
B. B and C
III. S is the second youngest person.
rs
rs
C. B and D
D. C and D
A. If the data in statements II and III are sufficient to answer the question, while the data in statement I is not
he
he
Answer: B
required to answer the question.
B. If the data in statements I and II are sufficient to answer the question, while the data in statement III is not
Q3. Given below is a question followed by two statements, I and II each containing some information. Decide
es
es
required to answer the question.
which of the following statement(s) is/are sufficient to answer the question.
C. If the data in all the statements I, II and III together are necessary to answer the question.
Amongst five friends seated in a straight line facing North, is Q sitting at extreme left end?
.fr
.fr
D. If the data in statements I and III are sufficient to answer the question, while the data in statement II is not
required to answer the question.
1. Q, S are immediate neighbours of each other. Similarly, T, R are also immediate neighbours of each other.
w
w
Answer: C
P sits exactly in the middle of the line.
w
w
2. P who sits exactly in the middle of the line is second to the left of R. Q is not an immediate neighbour of
P.
w
w
Q6. Biswas is the father of Tilak. Biswas has only two children. Tilak is the brother of Rani. Rani is the
daughter of Pratiksha. Anvi is the granddaughter of Pratiksha. Shoban is the father of Anvi. Rani is married
A. The data in statement I alone is sufficient to answer the question, while the data in Statement II alone is
to Shoban. How is Shoban related to Tilak if ‘%’ is son, ‘$’ is son-in-law, ‘*’ is brother, ‘&’ is brother-in-law?
not sufficient to answer the question.
B. The data in Statement II alone is sufficient to answer the question, while the data in Statement I alone is
not sufficient to answer the question. A. *
C. The data either in Statement I alone or in Statement II alone are sufficient to answer the question. B. $
D. The data in both the statements I and II are not sufficient to answer the question C. %
Answer: B D. &
Answer: D
Q7. In a certain code, if: science. Nirupama and Archana are good at Cryptography and Wavelet theory. Pallavi and Sarayu are good
at Data science and image processing.
Q @ R means R is the daughter of Q.
Q # R means R is the son of Q. Who is good at signal processing, data science and image processing?
Q $ R means R is the sister of Q.
Q % R means Q is the brother of R. A. Nirupama
Q + R means Q is the mother of R. B. Archana
C. Mohan
S%T-O$N-E D. Sarayu
Answer: D
If O and E are male members of the family. Which of the following is a CORRECT conclusion drawn from the
expression? Q11. National cricket league for upcoming England Test series was held in seven different cities of India -
Jaipur, Varanasi, Mysuru, Agra, Shimla, Madurai and Visakhapatnam - not necessarily in the same order
A.E is son of T during the first seven months of the year (starting from January and ending in July). The matches were held
om
om
B. N is daughter of O. only in one city during a month.
C. S is sister of T. Matches in only four cities were held between the Visakhapatnam match and the Mysuru match. The
D. E is son of N Visakhapatnam match was not held in June. Only one match was held between the Vishakhapatnam match
.c
.c
Answer: D and the Varanasi match. The Jaipur match was held immediately after the Vishakhapatnam match, The
Shimla match was held immediately before the Madurai match. The Madurai match was not held in May.
w
w
Q8. Some students of a school are stand in a row, if Anvesha who is 15th from the left and Kush who is 6th
no
no
from the right interchange their positions, Anvesha becomes 24th from the left. How many students are How many matches were held between the Agra match and the Jaipur match?
there in a row? A. Two
A. 28 B. One
rs
rs
B. 27 C. Three
C. 30 D. More than three
he
he
D. 29 Answer: B
Answer: D
es
es
Q12. A carpenter takes an order to make some chairs in 3 days. He made in following manner.
Q9. Read the following information carefully and answer the question that follows.
.fr
.fr
1. Five persons - Anmol, Bipin, Chaya, Disha and Manoj. Day1 - He made one third of the total chairs plus 4 chairs.
2. One of them is a nutritionist, one is a dentist, one is a filmmaker, one is a politician and one is an economist. Day2 - He made one fourth of the remaining chairs plus 4 chairs.
w
w
3. Three of them - Anmol, Chaya and economist prefer tea to coffee and two of them - Bipinand the Day3 - He made half of the remaining chairs plus 4 chairs.
filmmaker prefer coffee to tea.
w
w
4. The politician, Disha and Anmol are friends to one another but two of them prefer coffee to tea. What part of the order he makes on day 2?
w
w
5. The nutritionist is Chaya’s brother.
4
A.
15
A. Bipin 7
B. 15
B. Anmol 2
C. Disha C. 5
5
D. Chaya D. 9
Answer: B Answer: A
Q10. Mohan and Sarayu are good at image processing and signal processing. Archana and Mohan are good
at signal processing and Cryptography. Archana, Pallavi and Nirupama are good at Cryptography and data
Q13. Following is the selection criteria for a candidate to get selected for the role of Mathematics Trainer in
ABC organization:
Conclusions:
(a) Must have completed Master’s in Mathematics. I. ‘Some scientists are engineers’ is a possibility .
(b) Must have work experience of at least 4 years of Mathematics teaching. II. ‘Some technicians are not players’ is a possibility.
(c) If a candidate full fills criteria (b) and not (a) but have done B. Tech with 90 percent marks then case will
be sent to Chief Hiring Manager. A. Only the conclusion II follows
(d) If a candidate full fills criteria (a) and not (b) but have a B. Ed. degree then he will be in waiting list. B. Both the conclusions I and II follow.
C. Neither the conclusions I nor the conclusion II follows.
Reetika has completed her B. Tech from ICE in 2014 with 92 percent. She is working as mathematics teacher D. Only the conclusion I follows.
for last 6 years in reputed organisation. Reetika applied for maths teacher role in ABC Organisation. Answer: B
om
om
C. She will be selected. Lassi, 8 people like Coffee and Lassi. All the people like at least one of the three drinks and the number of
D. She will not be selected. people who like exactly one of the three is 4 more than the number of people who like more than one of the
Answer: B three drinks. How many people like Tea?
.c
.c
A. 8
Q14. Two statements are followed by three conclusions numbered I, II and III. You have to consider these B. 7
w
w
statements to be TRUE, even if they seem to be at variance with commonly Known facts. Decide which of C. 2
no
no
the given conclusions logically follow/s from the given statement. D. 5
Answer: D
Statement
rs
rs
No pot is jug. Q17. In the question given below, four Statements: are followed by four Conclusions. One of which definitely
All pots are tubes. logically follows(or is a possibility of occurrence) from the given Statements. That conclusion is your answer:
he
he
Courses of Action Statements:
es
es
I. Some tubes are jugs. All glasses are rooms.
II. Some jugs are tubes. Some rooms are planes.
.fr
.fr
III. No jug is tube. All planes are ducks.
Some ducks are lanterns.
w
w
A. Only III follow
B. Either II and III follow Conclusions:
w
w
C. Only II follow I. Some lanterns are planes.
w
w
D. Only I follow II. Some ducks are rooms.
Answer: B III. Some rooms are glasses.
IV. Some ducks are glasses.
Q15. Read the given statements and conclusions carefully. Assuming that the information given in the
statements is TRUE, even if they appear to be a variance with commonly known facts, decide which of the A. I and II follows
given conclusions logically follow(s) from the statements. B. II and III follows
C. All follows
Statements: D. I, II and III follows
Some engineers are players. Answer: B
Some players are scientists.
No scientist is a technician.
TCS Ninja Programming Logic Questions {
while(!0 || !1)
{
Q1. What is the output of the following pseudocode?
if(~1)
{
Integer n
printf(“A”);
String s
break;
Set s =”readwrite”
}
n = stringofLength(s)
Print (n ^ 1) else
{
A. Error printf(“B”);
B. 8 continue;
C. 1 }
D. 9 }
om
om
Answer: B return 0;
}
Q2. Which algorithm technique is most suitable to implement to solve travelling salesman problem?
.c
.c
A. A
A. Divide and Conquer. B. Nothing will print.
w
w
B. Floyd Warshall Algorithm. C. B will print infinite time.
no
no
D. B
C. Backtracking Algorithm.
Answer: A
D. Greedy Algorithm.
rs
rs
Answer: D
Q5. What is the average case time complexity of Radix Sort, if n is the number of elements in the array, k is
the maximum number of digits in any element of the array?
he
he
Q3. What is the output of the below code?
#include <stdio.h>
A. O(n+k)
int main()
es
es
{
B. Θ(n+k)
int i, j;
.fr
.fr
for(i=1, j=1; i<=j; i++, j--) C. Θ(nk)
{
w
w
printf(“%d”,(i)); D. O(nk)
w
w
}
return 0;
w
w
Answer: C
}
A. Compilation Error. Q6. In which stage are the master test plan artifacts required to be completed and reviewed in SDLC model?
B. Nothing will print.
C. 1 A. Deployment into Production stage
D. Loop will execute infinite time.
Answer: C B. Testing sign-off stage
int main() 2. {
{ 3. float num=2.0;
if(x == 30); 5. {
x = 50; 6. case 1:
om
om
if(x == 25) 7. printf(“Case1: Value is : %1”, num);
.c
.c
x = x + 1; 8. case2;
w
else 9. printf(Case1: Value is: %1”, num);
no
no
x = x - 1; 10. case 3;
rs
rs
printf(“%d”, x); 11. printf(“Case1: Value is: %1”, num);
he
he
return 0; 12. default;
es
es
} 13. printf(“Default: Value is: %1”, num);
.fr
.fr
Answer: 49 }
w
w
Q8. How can you prevent memory leak in ‘C’ which you would have allocated using dynamic memory return 0;
w
w
allocation?
}
w
w
A. erase(ptr)
The above program doesn’t compile and execute to give the output. Identify which line has the error.
B. free(ptr)
Answer: Line 4
C. deallocate(ptr)
Q10. What will be the missing steps of the algorithm to search.
D. end
Step 1: set ptr = head
Answer: B
Step 2 : Set i =0
Step 3 : If ptr = null End if
om
om
write i+1 Step 6 : i = i + 1
.c
.c
End if Step 7 : ptr = ptr -> next
w
Step 6 : i = i + 1 [End Loop]
no
no
Step 7 : ptr = next -> ptr Answer: B
rs
rs
[End Loop]
he
he
B. Step 4 : Repeat Step 5 to 7 until ptr !=null
es
es
Step 5: if ptr -> data=item
.fr
.fr
write i+1
w
w
End if
w
w
Step 6 : i = i + 1
w
w
Step 7 : ptr = ptr -> next
[End Loop]
write i+1
TCS Ninja Hands-on Coding Questions Q2. An event management company has come up with a unique idea of printing their event tickets. Based
on the ticket number combination (str1), the visitor is directed towards a particular class of audience. The
task is to create a program/application to fetch the ticket number based on the following conditions:
Q1. A supermarket maintains a pricing format for all its products. A value N printed on each product. When
Any occurrences of digits EF, 56 and G, & should be deleted
the scanner reads the value N on the item, the product of all the digits in the value N is the price of the item.
The characters EF should be in the same format.
The task is to design a software such that given the code of any item N the product(multiplication) of all the
digits of value should be computed(price).
Example 1:
Example 1:
Input:
Input:
4523EF58G -> Value of STR1
5244 -->Value of N
Output:
Output:
om
om
452358 -> After removal of characters
160 -->Price ‘EF’ and ‘G’
.c
.c
Explanation: Example 2:
w
From the input above: Input:
no
no
Product of the digits: 5,1,4,4 E12F35G58 -> Value of STR1
rs
rs
5*2*4*4 = 160 Output:
he
he
Hence Output is 160 E12F3558 -> After removal of character ‘G’
es
es
Code Solution: Explanation:
#include<iostream>
.fr
.fr
using namespace std; In the above example, characters E and F are not together. So, they won’t be deleted. The output will be with
int main() only character G removal.
w
w
{
int n, rem, mul = 1;
w
w
The Input format for testing
cin >> n; The candidate has to write the code to accept 1 input(s).
w
w
while(n!=0) First input - Accept value for str1 which is a string consisting of numbers and uppercase alphabets without
{ any spaces.
rem = n%10;
mul = mul * rem; The output format for testing
n = n/10; The output should be a string without any spaces (Check the output in Example 1 and Example 2)
} Additional messages in output will cause the failure of test cases.
cout << mul;
} Constraints:
Str={(A,Z),(0-9)}
No spaces and special characters allowed.
Only uppercase alphabets in the input string
TCS Ninja Numerical Ability Questions
Code Solution:
#include<iostream>
Q1. If the 5-digit number 776xy is divisible by 3, 7 and 11, then the value of (5x+3y)?
#include<string.h>
A. 13
using namespace std;
B. 21
int main()
C. 23
{
D. 26
string T, F;
Answer: C
cin>>T;
int len = T.length();
int j=0;
for(int i=0; i<len; i++) Q2.
{
if((T[i]=='E'&&T[i+1]=='F') || (T[i]=='5'&&T[i+1]=='6'))
om
om
{ Find the relation between x and y
i++; A. x - y = 1
continue; B. x + y = 1
.c
.c
} C. x/y=1
else if(T[i]=='G' || T[i]=='7') D. x . y = 1
w
w
{ Answer: A
no
no
continue;
} 5 2 1 3 2 3 4 1 8
Q3. The value of 36 ÷ 7of 23-(40 ÷ 15of 8) ÷ (5 ∗ 1 9 ÷ 15) is:
else
rs
rs
A. 3.85
{
B. 3.45
F[j]=T[i];
he
he
C. 4.35
j++;
D. 4.85
}
es
es
Answer: D
}
for(int i=0; i<j; i++)
Q4. If a3 + b3 = 539 and a+b = 11, the value of √{(a+b)2+7ab} is:
.fr
.fr
cout<<F[i];
A. 18
}
B. 17
w
w
C. 13
w
w
D. 19
Answer: B
w
w
Q5. In an examination, 55% of the students passed and 621 failed. If the number of students for the exam
was 69% of those who had applied for the exam, how many students applied for the examination?
A. 1960
B. 1380
C. 2000
D. 1800
Answer: C
Q6. In 2020, a certain number of students for institute A appeared in the annual examination and 35% of B. 8:9
the students failed. In the same year, 250% more students than that of A appeared in the same examination C. 4:7
from institute B. If 70% of the total students of A and B, passed the examination, then the fail percentage of D. 1:4
students of institute B is ________ . (correct to one decimal place) Answer: A
A. 31.4
B. 25.7 Q12. Aditya, Bhaskar and Chandu divide an amount of Rs. 10,200 among themselves in the ratio 4:7:6.
C. 32.2 Aditya and Chandu give Rs.600 each to charity and Bhaskar lent Rs. 3,000 to Pradeep and earned an interest
D. 28.6 of Rs. 1,200. Find the ratio of amounts with them now.
Answer: D A. 5:4:6
B. 3:5:9
Q7. A milkman adds 20% water to a given quantity of milk. He marks the price of adulterated milk by 25% C. 4:5:6
of price of pure milk. What discount should he offer on the marked price for no profit no loss situation? D. 3:9:5
A. 25% Answer: B
B. 20%
om
om
C. 16% Q13. Pipes A and B can fill an empty tank in 20 mins and X mins respectively, whereas C can empty the full
D. 33.33% tank in 60mins. When pipes A, B and C are opened simultaneously the tank will be filled in 15 minutes. What
Answer: A is the value of X?
.c
.c
A. 40
Q8. A shopkeeper gains 20% by selling an article at 25% discount on its marked price. If the cost price of B. 30
w
w
the article increases by 20%, how much discount percentage should he give now on the same marked price C. 20
no
no
to get a profit of 8%? D. 45
A. 20 Answer: B
B. 19
rs
rs
C. 12.5 Q14. The lengths of trains X and Y are 240m and 300m respectively. X and Y pass a static pole in 6 and 12
D. 16.5 seconds respectively. In what time (in seconds) will they cross each other, if they move in the same direction?
he
he
Answer: B A. 36
B. 24
es
es
Q9. The difference between the simple interests accrued on a sum at p% p.a. and (p-5)% p.a. after four C. 18
years will be Rs. 12,000. Find the sum? D. 30
.fr
.fr
A. Rs. 80,000 Answer: A
B. Rs. 72,000
w
w
C. Rs. 60,000 Q15. A boat can go 48km upstream and 36km downstream in 5.8 hrs. The speed of the boat in still water
D. Rs. 50,000 is 16km/h. How much time (in hrs) will the boat take to go 54km upstream and 40km downstream?
w
w
Answer: C A. 6.8
w
w
B. 6.5
Q10. What is the difference between the compound interest on Rs.60000 at the rate of 12% per annum C. 7.2
compounded annually in 2 years and simple interest earned on Rs.50000 at 16% per annum in 2 years? D. 7.5
A. Rs. 746 Answer: B
B. Rs. 856
C. Rs. 816 Q16. A box contains 25 paise coins and 50 paise coins. If the number of 25 paise coins is tripled, amount of
D. Rs. 736 money in box will increase by 50%, then number of 50 paise coins CANNOT be equal to
Answer: D A. 36
B. 28
Q11. If a:b = 2:3; b:c = 4:5; and d is 20% more than c, find the ratio between a and d? C. 32
A. 4:9 D. 25
Answer: D C. 16
D. 14
Q17. The sides of a triangular park are 36 m, 105 m and 111m. The cost (in INR) of levelling the park at INR. Answer: D
2
8.50 per 𝑚 is ______________ .
Q22. 30 packets of sugar of the same weight are kept in a storeroom. If 6 more packets of 35 kg each are
A. INR 15.980
kept in the storeroom, the average weight increases by 2.5 kg. Find the arithmetic mean of the initial total
B. INR 16,065
weight of sugar and the final total weight of sugar in the storeroom.
C. INR 17,010
A. 600 kg
D. INR 15,120
B. 750 kg
Answer: B
C. 810 kg
D. 705 kg
Q18. The volume of a solid right circular cone of height 16 cm is 15085(5/7) cm3. What is the curved surface
Answer: D
area (in cm2) of the cone? (Take ℼ = 22/7) (correct to one decimal place)
A. 3300.2
Q23. Distribution (degree wise) of persons in a colony playing different sports:
B. 3205.7
om
om
C. 3200.4
D. 3105.8
Answer: B
.c
.c
w
w
Q19. If the mean of the following distributions is 50, then what is the value of R?
no
no
Class 0-20 20-40 40-60 60-80 80-100
rs
rs
Frequency 6 2 3 R 5
he
he
A. 4
B. 8
es
es
C. 6
D. 5
.fr
.fr
Answer: A
w
w
Q20. What is the difference between Range and Quartile deviation of the following 11 items: 8, 10, 16, 22, (Data are in Degree)
Total number of persons playing sports = 450
w
w
28, 18, 34, 35, 40, 26 and 12?
A. 22 Study the following poe chart and answer the question
w
w
B. 32 The number of persons playing Cricket exceeds the average number of persons playing Tennis, Hockey and
C. 11 Football by
D. 21 A. 50
Answer: D B. 55
C. 60
Q21. The mean of the first 7 multiple of smallest composite number is K, then find the median of the following D. 65
numbers. Answer: A
10, K, 13, 12, 16, 14 and 18 Q24. Study the following table and answer the questions:
A. 15 Revenue and Expenditure of companies X and Y during 2014 to 2018 (in INR crores)
B. 13
TCS Ninja Verbal Ability Questions
Year Company X Company Y
Q1. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
Revenue Expenditure Revenue Expenditure error’.
When Shailja will come, we will have to talk about the issue together.
2014 400 320 350 275
A. No error
2015 475 350 400 300 B. about the issue together.
C. we will have to talk
2016 450 400 420 350 D. When Shailja will come,
Answer: D
2017 500 390 480 400
2018 540 420 500 425 Q2. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
error’.
om
om
.
What percent is the average expenditure of company Y during 2014, 2016, 2018 less than 40% of total Real Madrid brilliantly played against Barcelona last night.
revenue of company X during 2015 and 2017?
.c
.c
A. 10.1 A. brilliantly played
B. 10.3 B. against Barcelona last night.
w
w
C. 9.8 C. Real Madrid
no
no
D. 11.4 D. No error.
Answer: B Answer: A
rs
rs
Q3. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
he
he
error’.
es
A. Tyrion Lannister is better
.fr
.fr
B. of the queen
C. No error
w
w
D. of the two advisors
w
w
Answer: C
w
w
Q4. Select the most appropriate option to fill in the blank.
A. up to
B. since
C. until
D. unless
Answer: C
Q5. Select the most appropriate option to fill in the blank Q. It is made from whole tea leaves and packed with antioxidants.
R. Green tea gets its signature green colour from chlorophyll, which is a powerful detoxifier.
I ___________ waiting for two hours and I cannot wait any longer. A. RP
B. PQ
A. have been C. QP
B. would been D. RQ
C. would have been Answer: C
D. should be
Answer: A Q9. Some sentences are missing from the given text. Choose from the list (A-C) the most appropriate for
each gap (1-2) in the text. There is one extra sentence/part that you do not need to use.
Q6. Select the most appropriate option to fill in the blanks
Srikant _______ his corporate job and joined the TASC force to ____ his country. Krupabai Satthianadhan was India’s pioneering writer in English. ____1____ She also authored a novel
Saguna--A story of Native Christian life. ___2___ Krupabai then went on to write another novel Kamala--A
story of Hindu Life before her untimely death at the age of 31. This was published posthumously.
om
om
A. relinquish; serve
B. has relinquish; served A. A native of the Bombay Presidency, she wrote articles for periodicals under the by-line An Indian Lady.
C. relinquished; serve B. Queen Victoria is believed to have read this novel and been impressed.
.c
.c
D. relinquished: served C. Krupbai received a scholarship to study medicine in the Madras Medical College.
Answer: C
w
w
A. (1)-A, (2)-B
no
no
B. (1)-A, (2)-C
Q7. For the four-sentence (S1 to S4) paragraph below, sentence S1 and S4 are given. From the options P,Q
C. (1)-C, (2)-A
and R, choose the most appropriate sentences for S2 and S3 respectively.
D. (1)-B, (2)-C
rs
rs
S1. Although we commonly say that fire ants bite, fire ants actually sting.
Answer: A
S2.
he
he
S3.
Q10. Which one of the following sentences uses formal Language?
S4. But the younger ones, whose stingers and skeletons are not fully developed, play dead.
A. Can I sit beside you?
es
es
B. I would be grateful if you consider my leave application.
P. Adult fire ants are aggressive and attack in swarms.
C. Let’s go to the park today.
Q. They sting humans who disturb their nest.
.fr
.fr
D. Hey! What are you doing here?
R. Their nest consists of a loose mound with small cavities for ventilation.
Answer: B
w
w
A. RP
B. PR
Q11. The following sentence can be revised into one better sentence. Choose the sentence that is the best
w
w
C. QP
answer.
D. PQ
w
w
Answer: C
The principal met the students. The principal had won an award.
Q8. For the four sentence (s1 to S4) paragraph given below, sentences S1 and S4 are given. From the
A. The principal met the students and they had won an award.
options P, Q and R, choose the appropriate sentences for S2 and S3 respectively.
B. The principal who had won an award met the students.
C. The principal met the students who had won an award.
S1. Matcha tea is a variant of the Japanese green tea.
D. The principal met the students and won an award.
S2.
Answer: B
S3.
S4. According to many sources, the main antioxidant in green tea, EGCG, boosts metaback.
P. One serving of Matcha tea has 10 times more antioxidants than one cup of brewer green tea.
TCS Ninja Reasoning Ability Questions Q4. Given below is a question followed by three statements, I, II and III,each containing some information.
Decide which of the following statement(s) is/are sufficient to answer the question.
Q1. Which is the WRONG term in the following series?
How is B related to C?
bfj, ddl, gao, iyq, lwt, ntv
Statements:
I. E is sister-in-law of A and wife of B.
A. ntv
II. C and B are males and C is unmarried.
B. lwt
C. gao III. D is grandfather of C and B is the only child of D.
D. iyq
Answer: C A. If the data in statement I alone or in statement II alone or in statement III alone is sufficient to answer the
question
Q2. In each of the four pairs of letter-clusters, the letters in the second term are in a rearrange/transformed B. If the data in statements II and III are sufficient to answer the question, while the data in statement I is not
form of the letters from the first term in a particular pattern. In which two pairs, has the transformation been required to answer the question.
om
om
done the same way? C. If the data in statements I and II are sufficient to answer the question, while the data in statement III is not
[A] FLOWER:EKNVDQ required to answer the question
[B] TONGUE:SNMFTD D. If the data in statements I and II are sufficient to answer the question, while the data in statement II is not
.c
.c
[C] COMMON:XPNNPM required to answer the question.
[D] ARTIST:TISTAR Answer: B
w
w
[E] PRAYER:YREPRA
no
no
Q5. In a certain code,
A. B and C
P + Q means Q is the brother of P.
rs
rs
B. A andC
P x Q means Q is the father of P.
C. D and A
P ÷ Q means Q is the sister of P.
he
he
D. A and B
P - Q means P is the mother of Q.
Answer: D
es
es
If K+LxM÷N-P, which of the following would definitely be NOT true?
Q3. Given below is a question followed by two statements, I and II each containing some information. Decide
which of the following statement(s) is/are sufficient to answer the question.
.fr
.fr
A. K is the daughter of M.
B. P is the brother of K.
How is Q related to T?
w
w
C. K is the nephew of N.
D. N is the aunt of K.
w
w
Statements
Answer: B
1. M is the brother of N and N’s mother T is the mother-in-law of P. P is the mother of Q who is the nephew
w
w
of M.
Q6. In a coded form:
2. Q is the sister of the daughter of P who is married to N, the son ofT.
Q8. A team of four is to be selected from batsmen K, L, M, N and four bowlers W, X, Y, Z such that there Q11. Three statements are followed by two conclusions numbered I and II. You have to consider these
om
om
would be at least two batsmen in the team using the following criteria. statements to be TRUE, even if they seem to be at variance with commonly Known facts. Decide which of
the given conclusions logically follow/s from the given statement.
i. L and Y cannot be put together
.c
.c
ii. K and Z must be together Statements
iii. X cannot go with M and vice versa If All dogs are lion
w
w
iv. W and N must go together No lion is a tiger
no
no
Which of the following four cannot be selected as a team? Some tigers are cat
A. KZLM Conclusions
rs
rs
B. MWYN I. All dogs being cat is a possibility
C. LKXZ II. No dog is a tiger
he
he
D. LWMY
Answer: D
es
es
A. If both conclusion I and II follow
Q9. In a football ground, eight players G, H, I, J, K, L, M and N are standing in the following manner. N stands B. If neither conclusion I nor II follow
.fr
.fr
15 m to the south of H. I and J form a straight line. M divides IJ, in 1:3 ratio. I divides HN, in 1:2 ratio. C. If either conclusion I or conclusion II follow
The distance between N and G and G and L are in the ratio of 1:3. G divides MK, in 2:1. J stands 10 m to the D. If only conclusion II follow
w
w
north of L. M is 5 m to the east of I. At what distance does K stand with respect to G? Answer: D
w
w
A. 10 m
w
w
B. 5 m Q12. Three statements are followed by two conclusions numbered I and II. You have to consider these
C. 15 m statements to be TRUE, even if they seem to be at variance with commonly Known facts. Decide which of
D. 20 m the given conclusions logically follow/s from the given statement.
Answer: B
Statements:
Q10. Two statements are followed by three conclusions numbered I, II and III. You have to consider these Only few Mops are Brooms.
statements to be TRUE, even if they seem to be at variance with commonly Known facts. Decide which of No Bucket is Broom.
the given conclusions logically follow/s from the given statement. All Buckets are Brushes.
Statements
.All pens are red
Conclusions: valid votes cast by male and female voters was 3:2. The number of valid female votes in favor of A was 2000
I. All Mops are Brushes. more than that for B and 1600 more than that for C.
II. Some Buckets are Mops.
What was the population of the state?
A. Only the conclusion I follow.
B. Only the conclusion II follow. A. 62,500
C. Either conclusion I and II follow. B. 45,000
D. Neither conclusion I nor II follow. C. 52,000
Answer: D D. 48,000
Answer: C
Q13. Three statements are followed by three conclusions numbered I, II and III. You have to consider these
statements to be TRUE, even if they seem to be at variance with commonly Known facts. Decide which of
the given conclusions logically follow/s from the given statement.
om
om
Statements:
1. All watches are clocks
.c
.c
2. Some clocks are wall hangings
3. No watch is a wrist band
w
w
no
no
Conclusions:
I. No wall hanging is a wrist band.
II. A wrist band may also be a clock.
rs
rs
III. Some watches are wall hangings.
he
he
A. Only I follows
B. Only II follows
es
es
C. Only I and II follow
D. Only II and III follow.
.fr
.fr
Answer: B
w
w
Q14. Mr. X has a certain number of gold coins, 24 silver coins and 36 copper coins. Value of gold coins is
equal to value of copper coins. The value of silver coins is one third the value of gold coins. Total number of
w
w
gold coins is half the number of total silver and gold copper coins together. If total value of the coins he has
w
w
is 4200. What is the value of 1 copper coin?
A. 25
B. 50
C. 45
D. 60
Answer: B
Q15. In an election, 80% of the votes voted for three candidates, A, B and C. The voters constituted 80% of
the population of the state. 10% of the votes cast were declared invalid. B won the election and twice the
number of votes of what C got. A got 4000 votes more than C and 4000 votes less than B. The ratio of the
TCS Ninja Programming Logic Questions if (condition 2)
{//
Statement A
Q1. What is the output of the following pseudocode?
}
else
FUNCTION fun()
if (condition 3)
INTEGER x,y,z;
{
x=2; y=4; z=5
// Statement B
z+= x^y&z
print z ; }
END FUNCTION else
{
A. 12 // Statement C
B. 11 }
C. 4 else
om
om
D. 7 if (condition 4)
Answer: B {// Statement D}
else
.c
.c
Q2. Which of the following data structures is used in DFS? {
A. Stack // Statement E
w
w
B. Link list }
no
no
}
C. Array
D. Queue
A. NOT(Condition 1) AND NOT(Condition 4)
rs
rs
Answer: A
B. Condition 1 AND NOT(Condition 2) AND NOT(Condition 3)
C. Only Condition 3
he
he
Q3. Match the following:
D. Condition 2 AND Condition 3
Answer: B
es
es
1. Trivial Graph a. Any number of vertices but no edge
Q5. Which among the following options is a compiler optimisation technique that splits any problematic first
2. Null Graph b. Multiple edges with self-loop
.fr
.fr
(or last) few iterations from the loop and performs.
3. Pseudo graph c. Each edge is labelled with a value A. Loop inversion
w
w
B. Loop unrolling
4. Weighted graph d. Only one vertex and no edge C. Loop peeling
w
w
D. Loop correcting
w
w
Answer: C
A. 1-c, 2-a, 3-b, 4-d
B. 1-b, 2-c, 3-d, 4-a
Q6. Mark the correct statement regarding the pivot in quick sort algorithm.
C. 1-d, 2-a, 3-b, 4-c
D. 1-a, 2-b, 3-c, 4-d A. It must be a last element
Answer: C B. It must be a first element
C. It may first, last or any random element
Q4. Based on what conditions, will the statement C execute? D. It must be first or last element.
Answer: C
if(condition 1)
{
Q7. Q9.
import java.io.*;
import java.lang.*; #define VAR_A 4
import java.util.*; #define VAR_B 4
class One{ #define ALL_VAR VAR_A + VAR_B
public void travel_greece() Consider the above macros and evaluate the result of the following.
{
int miles = 6000; Res=ALL_VAR * ALL_VAR
} A. 8
} B. 64
class Two extends One { C. 24
public void print_for() {System.out.println(“Greece”) D. 16
}
public class Main { Answer: B
om
om
Public static void main(String[] argos)
{
Two gr = new Two();
.c
.c
gr.travel_greece();
gr.print_for();
w
w
}
no
no
}
Answer: Greece
rs
rs
Q8. What is the output of the below code snippet?
he
he
#include <stdio.h>
es
es
float foo(int i);
int main()
.fr
.fr
{
float x;
w
w
x = foo(10);
printf(“%0.2f\t”, x);
w
w
}
w
w
float foo(int i)
{
float j = 5;
j = j / i;
printf(“%0.3f ”, j);
return j;
}
om
om
Example 1: return 0;
}
Input:
.c
.c
4 → Value of N(No. of cuts)
w
w
Q2. A family is about to break their piggy bank to use the money for different purposes. The piggy bank here
no
no
Output: represents an array (arr[]) consisting of N coins. The family has to split the coins of piggy bank into smaller
stack (sub-array) of coins such that the sum of the difference between the maximum value and the minimum
9 → maximum number of equal squares or rectangles value of the coins for all the stacks (sub-arrays) is maximum.
rs
rs
Note: Each value of the array can be used only once that is only in one subarray.
Explanation:
he
he
Constraints:
es
es
Solution 2 1 <= N <= 500
.fr
.fr
1 <=arr[i] <= 100
Maximum number of squares/rectangles that can be obtained with N=4 is 9(Solution 1)
w
w
Example 1:
Hence, output is 9
w
w
Input:
w
w
Example 2:
5 → Value of N
Input:
{8,1,7,9,2} → arr[] elements from arr[0] to arr [N-1],
Where each element is separated by new line.
1 → Value of N(No. of teams)
Output:
Output:
14
2 → maximum number of equal squares or rectangles
Explanation:
Let us break the array elements into following subarrays: for(int i = 0; i < n; i++)
1. (8,1) → Max:8 Min:1 {
2. (7,9,2) → Max:9 Min:2 cin >> arr[i];
So, the difference between the maximum and minimum elements in each subarrays is }
1. 8-1=7 for(int i = 0; i < n; i++)
2.9-2=7 {
for(int j = i+1; j < n; j++)
Now, the sum of the differences of subarray is: {
7+7=14 if(arr[i] < arr[j])
Hence, output is 14. {
int temp = arr[i];
Example 2: arr[i] = arr[j];
Input: arr[j] = temp;
5 → Value of N }
om
om
{1,2,1,0,5} → arr[], elements from arr[0] to arr [N-1], }
where each elements is separated by a new line. }
for(int i = 0; i < n/2; i++)
.c
.c
Output: {
6 sum = sum+(arr[i]-arr[n-i-1]);
w
w
}
no
no
Explanation: cout << sum;
Let us break the array elements into following subarrays: }
1. (1,2,1) → max:2, min:1
rs
rs
2. (0,5) → max:5, min:0
he
he
So, the difference between the max and min elements in each subarray is
1. 2-1 = 1
es
es
2. 5-0 = 5
Now, the sum of the differences of subarraya is:
.fr
.fr
1+5 = 6
Hence, output is 6.
w
w
w
w
The input format for testing
The candidate has to write the code to accept 2 inputs.
w
w
First input - Accept value for N(positive integer number)
Second input - Accept N number of values (arr[]), where each value is separated by a new line.
Code solution:
#include<iostream>
using namespace std;
int main()
{
int n, sum = 0;
cin >> n;
int arr[n];
TCS Ninja Numerical Ability Questions
Q6. The expenditure of Rashmi is equal to 225% of her savings. If her income increases by 20% and the
expenditure increases by 40%, then her savings will _______
Q1. A number 452p36 is such that it is divisible by 36. What can the value of p2 be?
A. decrease by 20%
A. 36
B. increase by 25%
B. 49
C. increase by 33(⅓)%
C. 25
D. decrease by 25%
D. 16
Answer: D
Answer: B
Q2. Find the value of (5.7)4+(3.3)4+(18.81)2 Q7. A business lady bought 400 handbags. She sold 100 of them at a profit of 20% and the rest at 10%
------------------------ = ? profit. Find her overall profit %.
(5.7)2+(3.3)2-(18.81) A. 11.25%
A. 53.89 B. 12.5%
B. 61.79 C. 16.75%
om
om
C. 59.59 D. 13.75%
D. 62.19 Answer: B
Answer: D
.c
.c
Q8. Rajesh runs a shop where he sells articles which are of equal marked prices. Rajesh had bought each of
these articles at an equal cost price. Even after selling articles at a discount of 20%, Rajesh earns a profit of
w
w
Q3.
20%. If on a particular day Rajesh earned a profit equal to the cost price of 100 articles by selling articles at
no
no
marked price, how many articles did Rajesh sell on that day?
A. 200
A. 2/15
B. 150
rs
rs
B. 2 1/6
C. 100
C. 6 2/3
he
he
D. 300
D. 3 1/3
Answer: A
Answer: 1.899999 (Options are wrong)
es
es
Q9. Simple interest on a sum after 32 months at 24 (4/9) % rate of interest is Rs. 7040. What is the
Q4. The value of (8.3)2+(7.9)2+6.2(6.2+7.9+8.3)-8.3x7.9
compound interest on 28 ⅓ % more sum at 20% rate of interest after 2 years?
-------------------------------------------
.fr
.fr
A. Rs. 5575.4
(83)3+(79)3-(62)3+83x237x62
B. Rs. 5447.4
A. 0.001
w
w
C. Rs. 6098.4
B. 0.1
D. Rs. 6194.4
w
w
C. 0.0001
Answer: C
D. 0.01
w
w
Answer: C
Q10. A loan of Rs. 52160 has to be returned in two equal annual installments. If the rate of interest is 3.75%
p.a., compounded yearly, the total interest to be paid is
Q5. The price of a commodity is reduced by 40% but its consumption is increased by 35%. What percent of
A. Rs. 2824
the consumption should be increased so as to keep the same expenditure as before? ( correct to one decimal
B. Rs. 2842
place)
C. Rs. 2925
A. 24.2
D. Rs. 2952
B. 15.4
Answer: D
C. 18.5
D. 23.5
Answer: D
Q10. In a school, a total of 12 cakes of 1.5 kg each are ordered for the distribution of cakes to the children. ten hours. All the three pipes are opened simultaneously, when the tank is empty. In how much time will the
Each boy is given 20 grams of a piece of cake and each of the girls is given a piece of 30 grams of cake. The tank be filled completely?
number of girls in the school is twice the number of boys. Find the total number of children in the school. A. 6 hours
A. 675 B. 8 hours
B. 650 C. 7 hours
C. 475 D. 9 hours
D. 525 Answer: B
Answer: A
Q16. Two persons were approaching each other at 12 km/hr and 24 km/hr respectively. A train moving in
Q11. 30L container has pure milk. 3L of milk is taken out and replaced with water. How many times this the same direction as the faster man took 25 seconds to cross him and 15 seconds to cross the other one.
process must be done so that the concentration of pure milk reduces by 27.1%? Find the speed of the train (in km/hr).
A. 3 A. 60
B. 4 B. 45
C. 2 C. 78
om
om
D. 1 D. 66
Answer: A Answer: C
.c
.c
Q12. Vessels A and B contain solutions of only alcohol and water. The ratio of alcohol and water A is 3:5 Q17. At a shop, the price of rice per kg is Rs. 15 less than the price of wheat per kg, while the price of black
and in B, it is 9:7. The contents of A and B are mixed in the ratio 3:2. How much water(in mL) should be gram is Rs. 10 more than the price of wheat per kg. A customer bought six kg each of rice, wheat, and black
w
w
added to 180 mL of the resulting solution to get a new solution containing alcohol and water in the ratio 1:2? gram for Rs. 780. What is the price of 2 kg of rice and 3 kg of black gram?
no
no
A. 68 A. Rs. 225
B. 63 B. Rs. 165
C. 65
rs
rs
C. Rs. 195
D. 70 D. Rs. 255
he
he
Answer: B Answer: A
Q13. Working 9 hours daily, 32 men can complete a piece of work in 25 days. In how many days, can 40 Q18. Two parallel sides of a trapezium are in the ratio of 4:3 and the distance between the two parallel sides
es
es
men complete 2.5 times the same work working 6 hours daily? is 50% less than the sum of the lengths of the two parallel sides. Find the sum of the lengths of the two
A. 75 parallel sides if the area of the trapezium is 784 sq.cm.
.fr
.fr
B. 72 A. 35 cm
C. 60 B. 28 cm
w
w
D. 80 C. 42 cm
w
w
Answer: A D. 56 cm
Answer: B
w
w
Q14. A water taxi requires 9 hrs to cover 20 km upstream or 120 km downstream. Find the total time it
takes for a round trip between city A and city B, separated by a distance of 40 km. Q19. A candle in the shape of a cylinder has a radius of 12 cm and is 4 cm long.By how many centimeters
A. 15 can the length be increased so that when the radius is increased by the same amount, the weight of the
B. 21 candle increases equally?
C. 22.5 A. 12 cm
D. 18 B. 6 cm
Answer: B C. 4 cm
D. 8 cm
Q15. Two-fifth of a tank can be filled by pipe A in six hours, three-eighth of the tank can be filled by pipe B Answer: B
in four and a half hours, while pipe C attached at the bottom of the tank can empty one-fifth of the tank in
Q20. Let x, y and z be the mean, median and range, respectively of the following data:
10, 7, 12, 21, 37, 14, 19, 28, 18, 12 and 42. D. 998
What is the value of (x+y-z)? Answer: C
A. 3
B. 4 Q24. Study the following table which shows the number of computers sold by stores A and B in January to
C. 2 June 2020, and answer the question that follows:
D. 7
Answer: A
Months Stores
om
om
Q22. Three years ago, the average age of a family of four members was 26 years. The average age of the March 250 320
two children of the family five years ago was eight years. What is the age of the elder persons of the family?
A. 50 yrs April 200 265
.c
.c
B. 45 yrs
C. 35 yrs May 315 300
w
w
D. 40 yrs
June 425 320
no
no
Answer: B
The average number of computers (per month) sold by store B in February, April and June is what percent
Q23. The percentage wise distribution of teachers who teach six different subjects is as follows. more than the average number of computers sold by store A in January and May?
rs
rs
Total number of teachers = 1800
A. 12%
he
he
B. 10%
C. 12.5%
es
es
D. 7.5%
Answer: A
.fr
.fr
w
w
w
w
w
w
What is the total number of teachers teaching Chemistry, English and Biology?
A. 1226
B. 1176
C. 1116
TCS Ninja Verbal Ability Questions
Q5. Select the most appropriate option to fill in the blank
Eagles can fly _______ sparrows.
Q1. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
A. taller than
error’.
B. higher than
A sociologist studies the ways in which people live together, raise their family and follow community
C. taller then
structures and customs.
D. higher then
Answer: B
A. and follow community structures and customs.
B. A sociologist study the ways in which
C. people live together, raise their family Q6. Read the following paragraph and fill in the blanks by selecting the appropriate words.
D. No error
Answer: B There are many hobbies that one can practise for leisure. Travelling for exploration can be one of the most
1.___________ hobbies one can practise. Nevertheless, it is the most expensive too, as nowadays the airfares
Q2. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No are 2.________. However, one can still explore cheaper options and nearby destinations for travelling.
om
om
error’.
May you carry these books for me, please? Blank 1: A. nourishing B. glorifying C. dissatisfying D. fulfilling
Blank 2: A. distribution B. refunding C. decreasing D. skyrocketing
.c
.c
A. No error
A. 1-A, 2-B
w
w
B. carry these books
C. for me, please? B. 1-D, 2-A
no
no
D. May you C. 1-B, 2-C
Answer: D D. 1-D, 2-D
rs
rs
Answer: D
Q3. One part of the sentence below may contain an error. Identify the part. If there is no error, choose ‘No
he
he
error’. Q7. Read the following sentence and fill in the blank by selecting the appropriate word.
Neither of them are going to attend the meeting The most obvious evil of the advertisement industry lies in the exaggerated ___________ of the products
es
es
A. No error actual goodness.
B. going to A. misinformation
C. Neither of them are B. determination
.fr
.fr
D. attend the meeting C. judgement
Answer: C
w
w
D. portrayal
Answer: A
w
w
Q4. Read the following paragraph and fill in the blanks by selecting the appropriate words.
The cost of production of electricity has increased in the last two years. Because of high production changes,
w
w
Q8. Read the following sentence and fill in the blank by selecting the appropriate word.
the government has ___1___ the people to reduce their electricity ___2___. Hopefully, the situation will be at It is not easy to __________ the profoundness of a mother’s love for her child.
ease in the coming years.
Blank 1: A. persuaded B. funded C. resulted D. convinced A. overestimate
Blank 2: A. connection B. consumption C. station D. meter B. fluctuate
C. equate
A. 1-D, 2-C D. evaluate
B. 1-C, 2-D Answer: C
C. 1-A, 2-B
D. 1-B, 2-A
Q9. For the four-sentence (S1 to S4) paragraph below, sentence S1 and S4 are given. From the options P,Q
Answer: C
and R, choose the most appropriate sentences for S2 and S3 respectively.
S1. Recently a study was undertaken in the school of the UK to ascertain which country’s children have the S4. Which leaves no room for free-thinking, imagination, make-believe games and overall development of a
highest IQ. child’s wild mind
S2.
S3. P. Both free-play and structured play can be combined in suitable proportions for the optimal development
S4. Though the validity of IQ as a measure of the intelligence is debatable, this study surely lifted the spirit of a child’s mind
of the Indian children. Q. The former opens up a plethora of possibilities for widening the horizons of a child’s imagination
R. Whereas, the latter confines a child’s mind within certain rules of the game
P. The study revealed that the Indian children were superior to the natives of other countries.
Q. This result was mighty surprising for many education experts. A. RP
R. If this is the truth, then why is there a brain drain in India? B. QP
C. PQ
A. QR D. QR
B. PQ Answer: D
C. RP
om
om
D. PR Q12. You are going to read a text about anger management. Some sentences are missing from the text.
Answer: B Choose from the list (A-C) the most appropriate sentence for each gap (1-2) in the text.
There is one extra sentence/part that you do not need to use.
.c
.c
Q10. For the four sentence (s1 to S4) paragraph given below, sentences S1 and S4 are given. From the
options P, Q and R, choose the appropriate sentences for S2 and S3 respectively. Loving someone and receiving love are essential elements in emotional health. _______1_______ People tend
w
w
to harbour resentment and hatred against someone who wronged them. They would be surprised to see
no
no
S1. Research suggests that the price of products and advertisements motivate customers to try out new how close they feel to that person after releasing their negative emotions and energy. ________2________
products
S2. A. But expressing anger instead of repressing it is also necessary to vent frustration.
rs
rs
S3. B. This helps in building trust and mutual respect for others.
he
he
S4. Above all, the credibility of the source of the advertised message affects the consumers judgement of C. If only people can learn the art of managing their anger and resentment.
the performance risk associated with the product being advertised.
A. 1-C, 2-A
es
es
P. The conflicting findings may be due to the nature of advertisements B. 1-A, 2-C
Q. The relationship between price and perceived performance risk is also impacted by the presentation of C. 1-A, 2-B
.fr
.fr
an advertised message. D. 1-B, 2-A
R. A relatively high price will reduce the consumer’s perception of performance risk. Answer: D
w
w
A. QP
w
w
B. QR Q13. You are going to read about Health. Some sentences are missing from the text. Choose from the list (A
w
w
C. RQ -C) the most appropriate sentence for each gap (1-2) in the text. There is one extra sentence that you do
D. PQ NOT need to use .
Answer: A We do not understand the value of good health until is lost 1 _______ Good health is a blessing to cherish
and an asset to protect. 2 ________Eating healthy, having ample sleep, and not indulging in smoking or
Q11. For the four sentence (s1 to S4) paragraph given below, sentences S1 and S4 are given. From the drinking are a few of the rules of good health.
options P, Q and R, choose the appropriate sentences for S2 and S3 respectively.
A. It is human nature to disregard everything that is easily available to them.
S1. Free play is much better in benefits and scope than structured play during early childhood B. We must make efforts to keep our lifestyle in accordance with the rules of good health.
S2. C. We should also pay visits to the doctor for complete body check-ups at regular intervals.
S3. A. (1)-C, (2)-A
B. (1)-A, (2)-B
C. (1)-B, (2)-A TCS Ninja Reasoning Ability Questions
D. (1)-C, (2)-B
Answer: B
Q1. Which is the WRONG term in the following series?
BEG, DGI, GJL, KMP, PSU
Q14. You are going to read a text supplements. Some sentences are missing from the text. Choose from the
A. GJL
list (A-C) the most appropriate sentence for each gap (1-2) in the text. There is one extra sentence/part that
B. DGI
you do not need to use.
C. KMP
D. PSU
When one takes calcium supplement, one must also make sure that diet is rich in vitamin D, ___1___. If there Answer: C
is not sufficient vitamin D intake, body does not generate hormone calcitriol. Then the body starts to take
calcium from its deposits in the skeleton, ___2___ Q2. In each of the four pairs of letter-clusters, the letters in the second term are in a rearrange/transformed
form of the letters from the first term in a particular pattern. In which two pairs, has the transformation been
A. because this vitamin makes the absorption of the calcium possible done the same way?
B. because this vitamin is also very good for bone health [A] MASTER - RTSMAF
om
om
C. which weakens existing bone and gradually diminishes whole structure [B] POSTAL - LTOPSA
[C] HASTEN - NTSAHE
A. 1-A, 2-B [D] FATHER - RHAFTE
.c
.c
B. 1-C, 2-A
C. 1-A, 2-C
w
w
A. B and C
D. 1-B, 2-C B. A and D
no
no
Answer: C
C. B and D
D. A and C
rs
rs
Q15. The following sentence pair can be combined into one better sentence. Choose the option that Answer: B
combines the two sentences best without changing the meaning.
he
he
Q3. Given below is a question followed by two statements, I and II each containing some information. Decide
The father was happy on his son’s birthday. The son was feeding hundred poor men instead of throwing a which of the following statement(s) is/are sufficient to answer the question.
birthday party.
es
es
What is the sum of the roots of the quadratic equation ax2+bx+c = 0?
A. The father was happy to see his son feeding hundred poor men on his birthday instead of throwing a 1. The roots of ax²+bx+c = 0 are successive integers whose product is 30
.fr
.fr
birthday party. 2. The roots of ax²+bx+c = 0 are distinct integers such that the sum of their squares is 72
B. The father was happy to see his son throwing a birthday party instead of feeding hundred poor men.
w
w
C. The father was happy on his son’s birthday, so the son was feeding hundred poor men instead of throwing A. If the question cannot be answered even by using both the statements together
w
w
a birthday party. B. If the question can be answered by using both statements together but cannot be answered by using
D. The father was happy to see his son feeding hundred poor men on his birthday and throwing a birthday either statement alone
w
w
party. C. If the question can be answered by using either statement alone
Answer: A D. If the question can be answered by using one of the statements alone but cannot be answered by using
the other statement alone
Q16. Which of the following sentences uses formal language? Answer: D
A. You’re not a part of this project Q4. Given below is a question followed by two statements, I and II each containing some information. Decide
B. May I have your introduction? which of the following statement(s) is/are sufficient to answer the question.
C. Go on, prove yourself to the world
D. We’ll meet you in an hour What is the average age of the father, mother and son?
Answer: D
Statements: If ‘A x B’ means A is the son of B.
I. The ratio of the age of the mother and son is 5:3. Father is 4 years older than the mother, who was as old If ‘A + B’ means A is the father of B.
as the sons 22 years ago. If ‘A > B’ means A is the daughter of B.
II. The son is now as old as the father was 26 years ago. The average age of the father and mother is 57 If ‘A < B’ means A is the wife of B.
years.
Which of the following pairs of people represents cousins with regard to the relations given in the
A. Both the statements I and II together are not sufficient. expressions, if it is provided that A is the sister of J?
B. Statement I alone is sufficient. ‘L > V < J + P’ and ‘S X A < D + F < E + K’
C. Statement II alone is sufficient.
D. Both the statements I and II are necessary. A. SV
Answer: C B. SP
C. LP
Q5. Given below is a question followed by three statements I, II and III, each containing some information. D. SF
Decide which of the given statements is CORRECT. Answer: B
om
om
Six persons A, B, C, D, E and F are sitting around a circular table facing towards centre. Who sits second to Q8. Six movies are played on six consecutive days of the week, starting from Monday. Rambo is played after
the right of D? Diago, Noorie is telecast between Diago and Akira. Blade is played immediately after Hungaama but before
.c
.c
Akira. Which movie is played on Tuesday?
I. C and D are immediate neighbours and C is sitting opposite B. A. Noorie
w
w
II. A is not a neighbour of E, but is a neighbour of B. B. Hungaama
no
no
III. D is not a neighbour of A, but is second to the right of F. C. Blade
D. Akira
A. Only I and III Answer: C
rs
rs
B. Only I and II
he
he
C. Only II and III Q9. Seven coloured balls -Violet, Purple, Blue, Green, Yellow, Orange and Red are put together in a row
D. All three together during a game. Yellow ball is to the immediate left of Purple ball. Violet is to the left of Blue but not between
Answer: B Blue and Purple. Exactly four balls are between Blue and Purple. If Violet and Green have two balls between
es
es
them, how many balls do Orange and Red have between them.
A. 3
.fr
.fr
Q6. In a certain code, if; B. 0
A-B means, A is wife of B C. 1
w
w
A/B means, A is brother of B D. 2
A+B means, A is daughter of B
w
w
Answer: C
AxB means, A is son of B
w
w
Q10. In a class, seven students are given different ranks such that the one who got the highest marks was
Which of the following expressions represent that D is the father of B? ranked highest i,e. rank 1 and the one who got lowest was ranked lowest. Number of students ranked higher
that Q is same as that ranked lower than S. K’s marks are less than J’s. S is ranked just higher than J. D’s
A. B/D+I-K marks are lower than T but more thaQ, who is ranked higher than S. N’s marks are more than J. What is N’s
B. BxD/K-I rank?
C. B/I-DxK A. 4th
D. I-K+D+B B. 3rd
Answer: B C. 5th
D. 2nd
Q7. In a certain code, if: Answer: B
Q11. P, Q, R, S, T, U, V, W and X are nine industries. R is 2km to the east of Q. P is 1km to the north of Q A. If only II follows
and W is 2km to the south of P, V is 1km to the west of W, while S is 3km to the east of V. U is 2km to the B. If either I or II follows
north of V. X is situated exactly between Q and R while T is exactly between W and S. C. If only I follows
D. If neither I not
What is the distance between P and U? Answer: C
A. 1.41 km
B. 3 km Q14. A statement is followed by four courses of action numbered I, II, III and IV Assuming everything in the
C. 2 km statement to be TRUE, decide which of the suggested courses of action (a decision to be taken for follow up
D. 1 km /improvement in regard to the problem) logically follow(s) for pursuing.
Answer: D
Statement
Q12. Raman is planning to get married and he has decided following criteria for the selection of his life The voters in a panchayat in an assembly constituency in India said that they would not vote in the coming
partner. general election.
om
om
a) Girl must be a working professional Courses of Action
b) Girl must be a graduate
c) Girl’s home state must be Bihar 1. The election commission should be approached to issue orders so that all the voters of any panchayat
.c
.c
d) If a girl’s profile fulfills all the criteria except (a) but girl has completed her MBA, he will need permission cannot boycott voting in the general election.
from his father. 2. The present MLA should cut down on the privileges given to the people of this panchayat so that they
w
w
e) If a girl’s profile fulfills all the criteria except (c) but she is from either UP or MP, he will need permission would refrain from boycotting the election process.
no
no
from his mother. 3. The elected representatives should listen to their grievances and settle any anomalies at the earliest.
4. The government should announce incentives for those voters in this panchayat, who would participate in
Reshma’s profile is there on matrimonial site. She is a graduate and working in a logistics company earning the voting process.
rs
rs
8LPA. Her home state is UP and she is Brahmin in caste.
he
he
A. Only I follow
Which of the following options below is CORRECT for the selection of profile mentioned above? B. Only III follows
C. Only II and III follow
es
es
A. He will select the above profile D. Only I, III and II follow
B. He will need permission of his mother Answer: B
.fr
.fr
C. He will need permission of his father
D. He will not select the above profile Q15. A statement is followed by two assumptions numbered I and II. Consider the statement and decide
w
w
Answer: B which of the given assumption(s) is/are implicit in the statement.
w
w
Q13. Two statements are followed by two conclusions numbered I and II. You have to consider these Statement
w
w
statements to be TRUE, even if they seem to be at variance with commonly known facts. Decide which of In spite of normal demand-supply conditions, company X is reducing the price of sugar this year.
the given conclusions logically follow/s from the given statement.
Assumptions
Statements: I. Other companies are also reducing the price
All liquids are water. II. Quality of sugar this year by company X is not too good to put high price
Some solid are liquids.
A. Only assumption II is implicit
Conclusions: B. Both I and II are implicit
I. Some water is solid. C. Neither I nor II is implicit
II. Some water is not liquids. D. Only assumption I is implicit
Answer: D
Q19. Maxwell car manufacturing company produced 540, 360, 480 and 630 cars and sold 480, 380, 490
Q16. A statement is followed by two arguments numbered I and II. Decide which of the argument(s) is/are and 600 cars in January, February, March and April 2021 respectively. Johnson car manufacturing company
strong (important and directly related to the question) and which is/are important and not related to the produced 460, 320, 540 and 580 cars and sold 420, 350, 510 and 600 cars in January, February, March and
central message of the question). April 2021 respectively. During this 4-month period, the selling price of each car was Rs. 5 lakh by the
Maxwell company and Rs. 8 lakh by the Johnson company. But if a buyer purchased a car which was not
Statement: manufactured in the same month, the buyer got a discount of 10% by Maxwell company and 25% by
Should Naya Pradesh be divided into small states? Johnson company. Both the companies adopted a principle that the cars of the previous month must be sold
before the cars of the current month are sold.
Arguments:
I. Yes. It is a hugely populated state and so it is difficult to manage a state with such a large population. What was the revenue earned from selling cars by the Johnson company only in the month of April 2021?
II. No. Current state government is trying to rule at its best. A. Rs. 4720 lakh
B. Rs. 4870 lakh
A. Both I and II are strong C. Rs. 4060 lakh
om
om
B. Only argument I is strong D. Rs. 3360 lakh
C. Neither I nor II is strong Answer: A
D. Only argument II is strong
.c
.c
Answer: B Q20. The management of a school decided to renovate the school. The school is located in a ground of
dimensions 600m x 250m. The school has ten classrooms each of dimensions 10m x 6m. There are three
w
w
Q17. Given below are four sets of statements numbered I, II, III and IV. Each set has three statements. Select more rooms -one for the principal, one for the office and the third for the staff. The school has a playground
of dimensions 180m x 150m. The principal’s room has dimensions of 8m x 6m, the office has dimensions of
no
no
the set or sets in which the third statement follows as a possibility.
8m x 6m and the staff room has dimensions of 12m x 6m. All the classrooms have to be done stone following.
Sets of statements: The office and the staff room are to be done wooden flooring while the principal room is to be done marble
rs
rs
I. Some plants are trees. Some trees are shrubs. Some shrubs are not plants. flooring. The height of all the rooms is 2.5m. The cost of marble flooring is Rs. 280 per sqm, the cost of
he
he
II. Some windows are outlets. All outlets are doors. Some doors are not windows. wooden flooring is Rs.160 per sqm and the cost of stone flooring is Rs. 60 per sqm.
III. No mango is vegetable. All vegetables are eatables. Some eatables being mangoes is possible.
IV. All lions are forest animals. A few forest animals are pets. It is possible that some lions are pets. What is the difference between the cost of flooring of the principals room and the cost of flooring of the staff
es
es
room?
A. Only I and III
.fr
.fr
B. Only II and IV A. Rs. 1,920
C. Only III and IV B. Rs. 1,560
w
w
D. Only II, III and IV C. Rs. 1,780
Answer: C D. Rs. 2,140
w
w
Answer: A
w
w
Q18. The production by a company ‘xyz’ in the year 1997 was double than that in the year 1995 where the Q21. In the following diagram, the shape indicates different categories of persons and the numbers in
production in 1995 was 30000. The production in the year 1996, 1888, 1999 and 2000 were 46000, 70000, different segments show the number of persons.
50000 and 80000 respectively. How many women MBAs are either corporate managers or hardworking but not both?
For how many years was the production more than the average production of the given years? A. 18
A. 1 B. 13
B. 3 C. 15
C. 2 D. 16
D. 4 Answer: A
Answer: B
this->food = food;
TCS Ninja Programming Logic Questions }
void myFood() { cout<< food <<endl;}
};
Q1. When we traverse the binary search tree in inorder we get the output in which order?
A. Increasing order
int main()
B. Random order
{
C. Decreasing order
Food name;
D. Linear order
Answer: A string food = “pizza”;
string* fastfood = &food;
Q2. Which of following SDLC model is used in Risk handling in software development process? name.orderFood(*fastfood);
A. Spiral model name.myFood();
B. Waterfall model return 0;
C. Prototype model }
om
om
D. Iterative model Answer: pizza
Answer: A
.c
.c
Q3. What is the output of the below code? Q5. What is the output of the below code?
w
#include <stdio.h> #include <iostream>
no
no
using namespace std;
int main()
int main()
{
rs
rs
{
long nbr=21889, c=0;
int digit=8;
he
he
c = (nbr == 0) ? 1 : (21889^1);
printf(“%d”,digit<<1);
cout<<c;
return 0;
return 0;
es
es
}
}
A. 8
.fr
.fr
Answer: 21888
B. -18
C. -8
w
w
Q6. What is the element of the stack once all the elements listed below are pushed onto?
D. 16
w
w
Answer: D
First Element -> {4,2,1,4,5,3,7,8} ->Last Element
w
w
Q4. What will be the output of the following code?
Further operations ->
#include<iostream>
Pop, Pop, Push (3)
using namespace std;
class Food
{ A. 3
private: B. 7
string food; C. 4
public: D. 1
void orderFood (string food) Answer: 3
{
Q7. What is output of the following code?
#include(stdio.h> TCS Ninja Hands-on Coding Questions
int main()
{
Q1. A party has been organised on a cruise. The party is organised for a limited time(T). The number of
int x=1,y=1;
guests entering (E[i]) and leaving (L[i]) the party at every hour is represented as elements of the array. The
if(y<0) if(y>0) x=3;
task is to find the maximum number of guests present on the cruise at any given instance within T hours.
else x=5;
printf(“%d”, x); Example 1:
return 0;
} Input:
A. true
B. 0 5 ---> Value of T
C. false
D. 1 [7,0,5,1,3] ---> E[], element of E[0] to E[N-1], where input each element is separated by new line
om
om
Answer: 1
[1,2,1,3,4] -----> L[],element of L[0] to L[N-1], where input each element is separated by new line
Q8. What is the output of the following code?
.c
.c
Output:
#include<stdio.h>
w
w
int main() 8 -----> Maximum number of guests on cruise at an instance.
no
no
{ int x,y,z;
x=03;y=02;z=01;
printf(“%d”, x | y & z);
rs
rs
return 0; Explanation:
he
he
}
A. 10 1st hour
B. 11
es
es
C. 3 Entry: 7, Exit: 1
D. 01
.fr
.fr
No. of guests on the ship: 6
Answer: 3
w
w
2nd hour:
Q9. What is output of the following pseudocode?
FUNCTION funn()
w
w
1st hour
INTEGER x,y,z;
w
w
x=7; y=4; z=2;
Entry: 0, Exit: 2
x=x && y || z;
PRINT,x;
No. of guests on the ship: 6 -2 = 4
END FUNCTION
Hour 3:
A. False
B. 0 Entry: 5, Exit: 1
C. True
D. 1 No. of guests on the ship: 4 + 5 -1 = 8
Answer: 1
Hour 4:
Entry: 1, Exit: 3
Constraints:
No. of guests on the ship: 8 + 1 - 3 = 6
<=N<S<T
Hour 5:
Example -1:
Entry: 3, Exit: 4
Input:
No. of guests on the ship: 6 + 3 - 4 = 5
5. -> Number of elements i.e. T
Hence, Maximum Number of guests within 5 hours is 8. 0. -> Value of 1st element
1. -> Value of 2nd element
0. -> Value of 3rd element
1. -> Value of 4th element
om
om
;Code Solution: 1. -> Value of 5th element
#include<iostream>
using namespace std; Output:
.c
.c
int main()
{
5
w
w
int n, sum = 0, max;
cin >> n;
no
no
int a[n], b[n]; Explanation:
for(int i = 0; i < n; i++)
{ The 5 pairs are (Arr[0], Arr[1]), (Arr[0], Arr[3]), (Arr[0], Arr[4]), (Arr[2], Arr[3]) and (Arr[2], Arr[4]).
rs
rs
cin >> a[i];
}
he
he
Note that in all pairs first element is 0, second element is 1 and index of first element is smaller than index
for(int i = 0; i < n; i++)
{ of second element.
cin >> b[i];
es
es
} The Input format for testing:
max = sum;
.fr
.fr
for(int i = 0; i < n; i++) First input line: Accept a single positive integer value for T representing the size of Arr[].
{ Second input line:: Accept N number of integer values (0 or 1) separated by a new line.
w
w
sum = sum + a[i] - b[i];
if(max < sum)
w
w
max = sum; Output Format for Testing:
}
w
w
cout << max; The output must be a non-negative integer number only (See the output format in example).
} Additional messages in the output will result in the failure of test cases.
Q2. Given an array Arr[] of size T, contains binary digits. Code Solution
Where
0 represents a biker running to the north. #include <iostream>
1 represents a biker running to the south. using namespace std;
int main()
The task is to count crossing bikers in such a way that each pair of crossing bikers (N, S), where 0<=N<S<T, {
is passing when N is running to the north and S is running to the south. int n, count=0;
cin>>n;
int B[n];
for(int i=0; i<n; i++)
cin>>B[i];
for(int i=0; i<n; i++)
{
if(B[i]==0)
{
for(int k=i+1; k<n; k++)
{
if(B[k]==1)
count++;
}
}
om
}
cout<<count;
}
.c
w
no
rs
he
es
.fr
w
w
w