Sei sulla pagina 1di 8

TCS Ninja Test Paper

TCS Ninja National Qualifier Test conducted by TCS (Tata Consultancy Services) and is
an All-India Recruitment Drive. This exam provides jobs to many thousands of students.
There will be three rounds of evaluation as follows:

 Technical
 Managerial
 HR

TCS Ninja Test Pattern:

Section No. of Questions Time limit


English 15 10 mins
Aptitude 15 30 mins
Programming Logic 10 20 mins
Coding 1 30 mins
Total 41 90 mins

Syllabi for :

1. English: Cloze Test


Negative Marking – Yes

2. Aptitude:
 Averages
 Mixtures
 Allegations
 Percentages
 Permutations
 Combinations
 Profit and loss
 Algebra
 Ratio and proportions
 Probability
 Time, speed, distance
 Time and Work
 Functions
 Geometry
 Number System and HCF & LCM
 Reasoning
 Blood Relations

Negative Marking – Yes (0.33 marks)

3. Programming Logic: The questions asked in this section are basic command line
argument theory questions and C input output questions.

Negative Marking – Yes (0.33 marks)


4. Coding:
Negative marking : None
Following languages can be used for coding.

Following languages can also be used –

C
C++
Java
Python
Perl

Section 1: English

Without repeating the words twice, fill in the blanks with the appropriate words
from the options given below.

1. Her parents were ____________ when, despite losing the first three games, Sandy
__________ to win the set by a 6-3 score.

A. surprised…..failed
B. relieved.....came back
C. puzzled…..refused
D. alarmed…..attempted
E. shocked…..failed

(Directions to solve questions from 2 – 7): Fill in the blanks with the appropriate
words from the options given below.

And of what kind are the men that will strive for this profitable ……….2………, through all the
bustle of ……..3………, the heat of contention, the infinite mutual abuse of parties, tearing to
pieces the best of characters? It will not be the wise and moderate, the lovers of peace and
good order, the men fittest for the trust. It will be the bold and the violent, the men of
strong passions and …….4……..activity in their selfish pursuits. These will thrust themselves
into your government and be your rulers. And these, too, will be mistaken in the expected
happiness of their situation, for their ………5……… competitors, of the same spirit, and from
the same motives, will perpetually be ……6………. to distress their administration,
……..7……….their measures, and render them odious to the people.

A. endeavoring
B. vanquished
C. thwart
D. cabal
E. preeminence
F. indefatigable

8. Displeased with the ......................of the novel, the writer abandoned the idea of a film
to be made on his writings.

A. adaptation
B. transfer
C. transfusion
D. resurgence
(Directions to solve questions from 9 – 15): Fill in the blanks with the appropriate
words from the options given below.

Other nations have received their laws from conquerors; some are indebted for a
constitution to the suffering of their ……..9…….. through revolving centuries. The people of
this country, alone, have formally and ……10…… chosen a government for themselves, and
with open and uninfluenced consent, bound themselves into a social compact. Here, no
man ……..11…….. his birth or wealth as a title to honorable distinction, or to sanctify
ignorance and vice, with the name of heredity authority. He who has most …….12…… and
ability to promote public ……13……, let him be the servant of the public. This is the only line
of distinction drawn by nature. Leave the bird of night to the ……14…… for which nature
intended him, and expect only from the eagle to brush the clouds with his wings and look
……15…… in the face of the sun.

A. zeal
B. boldly
C. obscurity
D. ancestors
E. felicity
F. proclaims
G. deliberately

Section 2: Aptitude

𝒇(𝒙) (𝒙−𝟐)
1. f(x) is a positive valued function. If = , for all x≥0 and f(6)=81, f(2)=4, find
𝒇(𝒙−𝟏 (𝒙+𝟏)
the value of f(4) ?

A. 8
B. 18
C. 25
D. 28

2. There is a printer machine out for sale. The machine’s value depreciates at the rate of 12
% per annum. The machine costs present is Rs. 124,000, then what will be its worth
after 2 years?

A. Rs. 100,365.89
B. Rs. 96,025.6
C. Rs. 102,600
D. None of the above

3. Sohan drives his bike at 24 kmph and reaches his office 5 minutes late. If he had driven
25% faster on an average he would have reached 4 minutes earlier than the scheduled
time. How far is his office?

A. 24 km
B. 72 km
C. 18 km
D. Data Insufficient
4. There was an old cask at Heena’s house, she filled it with 30 litres of milk, Now 6 litres is
drawn out and the cask and filled up with water. If the same process is repeated a
second, then a third time, what will be the number of litres of milk left in the cask?

A. 10.97 litres
B. 20.89 litres
C. 9 litres
D. 15.2 litres

5. A friends’ group had been to a party. There was a security check and all of them were
asked to stand in a queue. Out of 5 girls and 8 boys , how many queues of 3 boys
and 2 girls can be formed?

A. 120
B. 25200
C. 24800
D. 67200

6. Lily had many guests visiting her place, she ordered different pastry varieties of count
22, 16, 194, 94, 162, 92 from a shop. They need to be packed in such a way that each
box has the same variety of pastry and the number of pastries in each box is also the
same. What is the minimum number of boxes required to pack?

A. 290
B. 125
C. 94
D. 100

7. The figure given below clearly says that a circle is inscribed in a semi-circle. The radius
of the circle is:

A. (√2 + 1)/2
B. √2 − 1/2
C. 1 − √2
D. √2 – 1

8. Which of the following is the output of (658 x 658 x 658 + 342 x 342 x 342) / (658 x
658 - 658 x 342 + 342 x 342) ?

A. 2000
B. 4000
C. 1000
D. 3000
9. A cafe had 40 employees. If the number of employees increased by 8, the expense send
for refreshment increases by Rs.48 per day. While the average expenditure per head
diminishes by Rs.1. Find the original expenditure for refreshment?

A. Rs. 400
B. Rs. 480
C. Rs. 500
D. Rs. 520

10. If Nina says, “ Anna’s father Rick is the only son of my father-in-law Mick.” Then how is
Bridgette, who is the sister of Anna, re;ated to Mick?

A. Daughter
B. Wife
C. Daughter-in-law
D. None of these

11. Tanmay purchased a watch for Rs 1800 and sold it at 24% above the cost price. If he
has to pay Rs 72 as tax on it, his net profit percentage will be:

A. 20%
B. 15%
C. 18%
D. 10%

12. 12 boys can complete a work in 8 days. 16 girls can complete the same work in 12
days. 8 boys and 8 girls started working and worked for 6 days. How many more boys
are to be added to complete the remaining work in 1 day?

A. 8
B. 12
C. 16
D. 24

13. Team Sapphire has scored more goals than Team Emerald
Team Ruby has scored fewer goals than Team Emerald
Team Sapphire has scored fewer goals than Team Ruby.
If the first two statements are true, the third statement is

A. True
B. False
C. Uncertain

14. 522 222 321 476 499


Which of the following numbers will be obtained if the second digit of the lowest number
is added to the third digit of the highest number after adding four to each number?

A. 5
B. 6
C. 7
D. 8
15. -3, -2, -1, 0, 1, 2, 3. From these numbers a number X is chosen at random. What is
the probability that |X|<2.

A. 3/7
B. 5/7
C. 3/5
D. 1/3

Section 3: Programming Logic

1. Special symbol permitted with in the identifier name.

A. $
B. @
C. _
D. .

2. What will be the output of this program? If input command is

#include <stdio.h>
int main(int argc,char* argv[])
{
printf("%d",argc);
return 0;
}

A. 4
B. 5
C. 6
D. 3

3. What type of array is generally generated in Command-line argument?

A. Single dimension array


B. 2-Dimensional Square Array
C. Jagged Array
D. 2-Dimensional Rectangular Array

4. What is the second argument in command line arguments?

A. The number of command-line arguments the program was invoked with


B. A pointer to an array of character strings that contain the arguments, one per string
C. Nothing
D. None of the mentioned

5. What will be the output of the following C code (run without any command line
arguments)?

#include <stdio.h>
int main(int argc, char *argv[])
{
while (argc--)
printf("%s\n", argv[argc]);
return 0;

A. Compile time error


B. Executablefilename
C. Segmentation fault
D. Undefined

6. What type of array is generally generated in Command-line argument?

A. Jagged Array
B. MultiDimensional Array
C. 2-Dimensional Array
D. Single Dimensional Array

7. What will be output of the following program if argument passed to command lines are:
demo one two three

#include<stdio.h>
int main(int argc, char *argv[])
{
printf(“%c\n”,**+argv);

return 0;
}

A. n
B. Compile Time Error
C. t
D. o

8. According to ANSI specifications which is the correct way of declaring main when it
receives command-line arguments?

A. int main(int argc, char *argv[])

B. int main(argc, argv)


int argc; char *argv;

C. int main()
{
int argc; char *argv;
}

D. None of above

9. Which of the following statements are FALSE about the below code?
int main(int ac, char *av[])
{
}

A. ac contains count of arguments supplied at command-line


B. av[] contains addresses of arguments supplied at a command line
C. In place of ac and av, argc and argv should be used.
D. The variables ac and av are always local to main()

10. What will be the output of following program ?

#include <stdio.h>
void main()
{
int a=0;
a=5||2|1;
printf("%d",a);
}

A. 1
B. 7
C. 0
D. 8

Section 4: Coding

Write a C program which will calculate the square root of a number without using
math.h sqrt() function and print that sqrt to the STDOUT as floating point number with
exactly 2 decimal precision.

Potrebbero piacerti anche