"a FACE
TCS NQT UPDATES
All TCS NQT 2020 Exam Related
Updates/Questions shared by students will be
updated in this document.
Last updated on: 3% Aug 2019, 12.40 PMPattern update:
Here Is the confirmed pattem of the TCS NQT, as per information from test-takers of
slot 1.
English - 15 Qs in 10 minutes - Cloze passage, vocabulary-based questions on
passages, inferential based questions on passages
Quantitative Aptitude - 15 Qs in 30 minutes
Advanced Programming Logic - 10 Qs in 20 minutes - Questions from C, C++, Java
and Compiler design TOC
Coding - 1Q in 30 minutes ~ Choice of languages are C, C++, Java, Python and
PERL
1. No advanced sub-sections
2. On-screen calculator available
3, Negative marking applicable for MCQ questions
4. FUB (Fill up the blank) questions were also present
English
sLOoL2—
|. Gillin the blanks with the appropriate prepositions — (Answers in bold)
After | met with an accident, | was looked after my uncle. | gave a complaint to the
police and they said they will look into it, White convalescing I read Oliver Twist,
This book runs upta two hundred pages. | also attended a program on yoga. The
program ran for three hours.
2. Cloze passage —
TCS' Journal of Innovation and Transformation (JIT) is our flagship Thought
Leadership artifact where in seasoned industry practioners from TCS bring
powerful insights and open up the windows for a wave of creative ideas in the new
world of manufacturing. In the previous editions of JIT, we have focused on key
themes such as customer experience, digital disruptions, digital forces in automotive
industry etc.
‘The theme of the jatest edition is “New Product Innavation in the Digital World”
through which we explore how digitization has revolutionized new product
development process. from product design and development to productFACE
Improvement. A key highlight for this ediition is a special article titied “Weaving the
future with Digital thread’ — a TCS collaboration with our esteemed partner -
CiMdata,
3. Fill in the blank with the right option.
One way to enable intelligent operations is to extract
generated by automated processes.
@ Assignable
bo Achievable
© Actable
d Actionable
insights from data
Answer; Actionable
SLOT 1—
PASSAGE: In the game of cricket, any side with a pair of bowlers of complementing
superior qualities prove invincible, The current generation would know Bhuvi,
Bumrah or Stare-Cummins pairs better than their own parents. So, let me dissect 3
pair that ruled the cricketing world during the fifties and early sixties. Brian Statham
and Fred Trueman of England proved to be a lethal combination that every batsman
wanted to avoid playing. Stantham was a bowler of immaculate accuracy, nagging
length and lyrical run-up. Oxymoronically, his virtues were the basis for his
misfortunes. Knowing that he would bowl ina manner that's unplayable, batsmen
were more smug in defending his balls than when playing an erratic bowler.
‘Trueman nicknamed as Fiery had a long delivery stride and made no bones about
his intentions to test batsman's physical and mental strength. The ball would flash
past the bat in moments of incredibility with the batsman thanking his Maker, if the
ball missed his limbs and occasionally the stumps.
1, Which one of the following sentences has an appropriate bold part that can
be replaced with lethal?
a. The series of never-ending bubbles rejoiced the children to any end
b, The never-say-die team won the tournament for the tenth time.
© “Mount vesuvius* eruption proved to be completely ruinous to pompeli
qd. The life-saving drug administered to the patient brought him back to his
elements
aAnswer:C
2. Any team with two bowlers sharing the required traits is:FACE
Arrogant to its opponents
b, vulnerable to choke
© hardto defeat
insignificant in its contribution.
Answer ©
3. Oxymoron is a special language device, where
a.
be
«
d
A tough idea is simplified by bringing a simple parallel to it
Two contrasting elements are placed side by side reinforcing an idea
A brilliant object issued in place of a dull entrance
‘An abstract entity is compared to an exact entity emphasising
similarity/difference
Answer: B
Cloze passage.
Digital twin in automotive industry presents an epportunity to pair virtual and
physical worlds leveraging different technologies such as loT, big data analytics, and
simulation techniques to re-engineer critical processes as below.
Vehicle development: Integrates data across the product lifecycle to enable data-
driven vehicle concept. informed design through rapid assessment of change
impacts and early detection of issues, and accurate and accelerated design
verification.
Vehicle manufacturing: Factory's digital twin in manufacturing enables real time
data gathering from machine sensors, facilitating flexible cell manufacturing, JoT-
driven maintenance strategies, and leveraging beacon data to ensure workers’
safety.
Vehicle sales and servic
Captures real-time field insights on driver preferences,
product features’ uptake, vehicle performance, and service history to create an
interactive user experience on the sales floor and enable proactive and predictive
after-sales service.
ide
1. The expression 3(xA2}-mx+10 leaves a remainder of -2 when divided by x-3.
What's the value of m?
Answer 13FACE
2.12 litres of water is poured Into an aquarium of dimensions 50 cm length, 30 cm
breadth and 40 cm height. By what height (in cm) will the water rise?
a 10
bn 8B
« 20
da 6
Answer: 8
3. Two finals are scheduled - The Wimbledon match and the World Cup Cricket at
the same time. Anu wants to watch the Wimbledon finals and her brother Vinu
wants to watch WCC final. They decide to roll a tetrahedral die twice. The
tetrahedral is numbered 1,2,3,4 on its four sides and all numbers are equally likely to
appear, Anu rolls first and then Vinu rolls. if the number on the first roll is strictly
Qreater than the number on the second roll. Anu wins and gets to watch
Wimbledon. What is the probability that Anu will get to watch Wimbledon?
a 7/16
b S/16
ch
do 4%
Answer: %
4. An electrical circuit has:
* Apower source
+ Aresistor Rand:
© Three parallelly connected resistors each of value 3R.
All these connected in series. if the current flowing through the circuit is five
amperes, what will be its value, if R is doubled and each of 3R is halved?
Answer: 4 amps
5, Twin brothers Lava and Kusha wrote the TCS NQT test. While Lava scored 45%
and got 4 marks below the cut off. Kusha scored 60% and got 8 marks above cut-
off and got selected for interview. What was the maximum marks in the test?
Answer 80
6. Ms Trikonapriya wants to decorate her abode's frontage with. triangular lawn,
The two sides of this lawn are af five and six meters, subtending an angle of 30
degrees. ifthe lawn maintainer charges Rs.10 per square meter, how much would
Trikonapriya pay to him for the entire lawn? You answer should contain only the
numeric value.
Answer: 75"a FACE
7. Bhaskar wanted to send some documents to Shakuntala. He had her address,
without the 6-digit pin code, He didn't want to risk sending documents without pin
code. Sa, he called Shakuntala. She did not give the pin code directly, she said, “The
first four digits are 1910 in hexadecimal and the last four digits are 3177 in octal”.
Bhaskar could courier the documents now. What is her pin code?
Answer, 641663
8. If it takes 10 3D printers 10 minutes to print 10 models, haw long will it take 100
printers to print 100 models?
Fill the correct answer in minutes. __
Answer: 10minutes
9. Eighty cricket balls have been packed equally into two bags A and B. 20 of these
balls have been signed by Kapil Dev - some of the signed balls are in bag A and the
rest in bag 8. One bag is selected and a bail is randomly picked fram that. Given that
the ball is signed, the probability that itis from Bag B is computed to be #4. If bag A
is twice more likely to be selected than Bag B, how many of the signed balls are in
Bag 8?
Answer. 16
10. In the normal course, Ravi, Sanjay and Mukund can each individually build a wall
in 5, B and 10 days respectively. Due to difficult terrain and slushy conditions at the
site, the Individual time required far each to complete the work has increased by
20%, 25% and 50% respectively. How long will they take to build the wall if they
work together?
& — Sdays
b. 4days
© Bdays
dg. 2and 6/17 days
Answer: 3 days
11. The difference between the ages of two of my three grandchildren is 3. My elder
grandchild is three times older than the age of my youngest grandchild and my
eldest grandchild's age is two years more than the ages of my two youngest
grandchildren added together. How old is my eldest grandchild?
a 10
b 12
« 15
a 13
Answer, 15"a FACE
12. If company A sells 3 service for Rs. 50 per hour then which of the following
could be a revenue function for company A?
a Rit) = 50%
b. R50) = 50+t
a Rit) = 50 4t*t
d Rit}=504t
Answer: 50*t
SLOT 1—
1. Ina country, 60% of the male citizen and 70% of the female citizen are eligible to
vote. 70% of the male citizens eligible to vote voted, and 60% of female citizens
eligible to vote voted. What fraction of the citizens voted during the election?
a 0.49
b. 0.42
©. 0.48
d. O54
Answer: 0.42
2. A lady had some socks and hats in her closet - 17 blue, 47 red, and 24 yellow,
The light are out and itis totally dark. In spite of the darkness, she can make out the
difference between a hat and sock. She takes out an items out of the closet only if
she is sure that it is a [Link] many socks must she take out to make sure she has
two socks of each colour?
73
64
57
55
ange
Answer: 73
3. In function P (x.y) = 85x - (50y + 150000). What value indicates the increase in P
that corresponds to increase in x, when y is kep a constant?
a BS
bo 135
c 35
50
Answer85FACE
4. [Link] is started at noon. By 10 minutes past 5, the hour hand has turned
through.
a, 165 degree
b, 145 degree
¢. 160 degree
d. 150 degree
Answer 155 degree
5. Ram Speaks truth 40% of the time and Laxman speaks truth 60% of the time.
Percentage af cases Rarn and Laxman are likely to contradict each other in stating
the same fact is. i
Answer: 52%
6. Dimensional analysis plays an important and useful role in physics. Mass is
denoted by M, length by L and time by T. So, momentum of a particle, which is a
procluct of its mass and velocity has a dimension of MLT (velocity is distance/time
which is length/time). In a given physical education, the left hand side and right hand
side must have the same dimensions.
matic viscosity (k) of a fluid is a measure of its resistive flow under gravity’s
Influence. It's given by the equation.
k=n/d where
nis dynamic viscosity; its dimension is Force Time / Area
dis density (mass/volume}
What's the dimension of kinematic viscosity?
a LABTA-2
b. LA-2T
© LTA2
da LATA
Answer LAZTA-1.
7. In function P(x,y) - @5x-(50y+150000).What value indicates the increase in P that
corresponds to an increase in x, when y is kept constant?
a BS
b 135
«24
dO
Answer 85
8, Uma has 50 red and 50 blve balls. She has two bowls with her. She has to
distribute the balls in these two bowls in such a way thatnone of the bowls are left
empty. If one were to choose one of the two bowls at random and them randomly"a FACE
draw a ball from it, the probability of the ball being red is maximized. After this
distribution, there will be a total of. balls in the bowl with a larger number of
balls,
Answer'99
9. Bhaskar called his friend Shakuntala to celebrate his wedding anniversary.
‘Shakuntala reached the street where he was living but forgot the door number. She
called baskar for his door number. Being a geek in Maths he didn't give the door
number directly. But told this“ It is the middle number of the three numbers where
the difference between first and second numbers is same as that between second
and third. The product of first and last is 273 and sum of all three is 51." Shakuntala
reached his house on time. His door number is?
Answer 17
10.A Volvo bus from Chennai to Bangalore has 5 stops in between. At each stop
half of the people will get down. After reaching Bangalore there are only 2 people
left out. How many people are there in the bus at starting?
Answer 64
11. The figure below depicts the damage done to aircrafts that had retumed their
base from missions in World war 2. The bullet holes per square foot in the Tail,
Wingtips. Fuselage, and Engine are 1.1, 1.5, 1.8, and 0.2 respectively. Where does
the airforce need to primarily reinforce the aircraft to minimize losses to enemy fire
and to maximize their return home?Answer, Engine
12. There is a horse and a saddle. The sum of their cost is Rs.1100 the cost of the
horse is Rs.1000 greater than saddle. What is the cost of sactdle?
Answer: Rs. 50
Programming Logic ~
SLOT?
1, What is the output of the following Java program?
public class MyThread extends Thread
t
public void run)
i
‘[Link]("Before”};
[Link]();
‘[Link] printin("After");
}
public static void main (Stringfaras}
{
MyThread a=new MyThread();FACE
astart);
t
Answer: Before
2. What is the value of result in the following C program?
inta=-10, b=-5, flag = 1, result =0,
int x = abs(a); int y = abs(b);
for(i=4; i<=x; i++)
result + =y:
if(la>=0 && b<0) || (a<0 && b>=0))
Flag =-1;
result *=flag:
Answer: 50
3. Ina class diagram, there is an arrow that starts at A and points at B, It means:
a. Ais the parent class of B
b. _Bisthe parent class of A
c. And Bare loosely coupled
ad Aand Bare tightly coupled
Answer: B is the parent class of A
4, What is the length of the string displayed by the following program?
include
using namespace std;
string do_something|string 5}
{
char char_array|
size_t p1=s.find_first_not_of([Link]):
size_t p2=s.find_first_of{char_array,p1);
return [Link](p1,p2-p1-1):
}
Answer: 13
SLOTi—
1. What is the output of the following Java program?
Class Super
{FACE
Static String greeting() {return "Goodnight"}
String name(} {return “Ram".}
1
Class Sub extends Super
{
Static String greeting () {return “Hello”;}
String name() {return “Bheem"}
1
Public class Test
{
Pubfic static void main {String[Jargs)
{
‘Super s=new Subj};
system outprintin([Link]()+","+[Link]():
1
}
Answer: Good night Bheem
2. Whats the value of resultin the following C Program?
Int a-17, b=5, flag=1, result;
bs{a) int y=abs(b);
bxeyiresult++)
iflla>=08i&b<0)||(a=0))
flag=1;
result
Answer: 3
3. The function pailap() defined below takes a string as an argument and returns a
boolean value.
boo! pallap(string pinput}
{
ispal
i-0
J=lengthipinput) - 1
White (i < j>
t
If (pinput(i) = pinputt))
1FACE
Ispal = false
}
isi+.
i-j+1
}
return ispal
1
In the above function '= indicates “is not equal to”,
It redder = pallap("redder), stressed = pallap{"stressed = pallap(stressed”) and
party_trap = pallap{"party_trap”} then
Answer, Redder is true stressed is false party_trap is false
4. include
using namespace std;
class SubFunction
t
public:
boo! operator()(const string & a, const string & b) {return a>bi}
rE
int main ()
i
vector v=f‘abe"."der"“ghi","JkI""mno","par”,"stu".vwx
sort{begin v),end[v),SubFunction()};
copy(begin(v).end{v},ostream_iteratorstring>(cout."\n"));
Answer:
yz
vwx
stu
par
mno
jk
ghi
def
abe
5. What is the value of minimum, if the following segment runs to completion?FACE
#includestimits.h>
int maing)
1
int i =0, minimum = INT_MIN;
int number(] = {23, 48, 98, 1, 6, 8, 200, 10},
while (i < sizeof{numbers}/sizeof{aumbers{0]}) {
it(minimum > numbers {i} minimum = numbersfi;
Answer: Minimum value is INT_MIN = -2147483047
6. The picture represents a parse free generated according to a specified grammar
for the following sentence.
“Computing power doubles every two years”
How many leaf nodes are there for this tree?
a4
bo 8
« 2
a 5
Answer is 4,
7. What is the fourth line of output in the following C++ programme?
include
#include
Finclude
#includeFACE
using namespace std;
Class SubFunction
{
public:
bool operator()(const string &a, const string &b) {return a>bi}
k
int maini)
{
vector v= [‘abe”, “def, “ghi", *jkI", “mno™, “par”, “stu”, "wwe", *yz"}
sort(begin(v), end{v), SubFunction()};
copy(begin{v), end(v), ostream_iterator(cout, “\n")};
}
Answer: fourth line of the output is par
8B.
{
/f1n the following initialization sequence, English character ‘O' is not used
‘String s]] = ("1234", "56789", "234a", “189b1", “0B9*3" }:
for {int i= 0; i < sizeof{s)/sizeof(s[0])); I++
auto pos = s[j]. find_first_not_of{"0123456789"); // 0 is numerical zero
If (S{]. length() == 4 && pos == stringznpos) continue;
else cout << “Invalid guesstin";
1
1
Answer
Invalid Guesst
Invalid Guesst
Invalid Guesst
Invalid Guesst
Coding
SLOT 2—
Oddly ever
Given a maximum of 100 digit numbers as input, find the difference between the
sum of odd and even position digits.
Input #1:
4567Expected output:
2
Ealsosuon
Sum of odd position digits 4 and 6 is 10. Sum of even position digits § and 7 is 12.
The difference is 12-1
Input #2:
9834698765123
Expected output
1
Input #3:
5476
Expected output:
2
Correct code using Java:
Import [Link]. Scanner:
public class Ex2 {
public static void main(String} args) {
Scanner s=new Scanner{System in};
long a=[Link]);
long temp=a;
int flag=0,even=0,odd=0;
String aa=[Link](temp};
int len=[Link]();
while(a>0)
{
long rem=a%10;
al=10;
ifflen%2==0)
{
‘if (fia
4
even+=rem:flag=1;
1
else iffflag==1)
{
odd+=rem-flag=0;FACE
}
else
t
if(flag==0)
{
odd4=remslag=1;
1
else if(flag==1)
{
event=rem;flag=0;
7
t
1
int sum=odd-ever;,
iffsum<0)
i
sum=-sum;
1
System out printin(sum};
1?
}
SLOT1-
NOTE: Once you have selected your programming language, click on the checkbox
beside it to start coding.
Word is key
Problem statement
One programming language has the following keywords that cannot be used as
identifiers:
break, case, continue, default, defer else, for, func, goto, if, map, range, return,
struct, type, var
Write 3 program to find if the given word is a keyword or notExample-1
Input
defer
Expected Output
defer is a keyword
Example-2
Input
While
Expected Output
while is nat a keyword
Correct code using C=
Rincludecstdio.h>
#includecstring.h>
int maing)
£
char
str[16][10};
s"map","range","return'","struct","type","var"};
"break","case”,"continue", "default", "defer","else","for”,"func”,"goto’
char input[1][20];
int flag =
Scanf("%6s" Input};
for(int i = O:i