0% found this document useful (0 votes)
206 views11 pages

TCS Ninja Mock Paper - 4

The summary provides the key details about the document in 3 sentences: The document discusses the TCS Ninja test for recruitment at TCS. It describes the test structure which includes sections on English, aptitude, programming logic and coding. The document provides details on the number and type of questions, time limits, syllabus and marking schemes for each section of the test.

Uploaded by

Lasya Madanuru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views11 pages

TCS Ninja Mock Paper - 4

The summary provides the key details about the document in 3 sentences: The document discusses the TCS Ninja test for recruitment at TCS. It describes the test structure which includes sections on English, aptitude, programming logic and coding. The document provides details on the number and type of questions, time limits, syllabus and marking schemes for each section of the test.

Uploaded by

Lasya Madanuru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

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

Directions to solve questions from 1 to 5 : Fill in the blanks with relevant answers by
choosing it from the options below.

It took the Delhi High Court to set right last week a largely inexplicable instance of official gender
*equality(Q1)*: it ruled that the Indian Navy must grant permanent commission to women as well, as
the Army and the Air Force had to do following a 2010 order by a different bench of the same court.
*somehow(Q2)* now, women could qualify only for the Navy’s Short Service Commission with tenure
of up to 14 years; this made them
ineligible for pension and often unable to find other work they were qualified for, virtually midway
through their working lives.Following the latest ruling, women who *qualify(Q3)* for the permanent
commission will be able to work until the age of 54, as their male counterparts do. The 19 women
who filed *plea(Q4)* before the court argued that they had received the same training as their male
counterparts and worked for a comparable number of years in different departments, but could go
no further for the only reason that they were women. The High Court rightly ruled that it could not
support any provision that would restrain the professional *increment(Q5)* of women. Grant of the
permanent commission would allow women to rise in rank along with the men, and gain pay parity.

1. A. Bias
B. Disturbance C.
Discrimination D. Rights
E. No change required

2. A. Until B. Upto C. For D.


Since E. No change
required

3. A. Fizzle
B. Aspire C. Condone D.
Prepare E. No change
required
4. A. Case
B. Complaint C. Request
D. Petitions E. No
change required

5. A. Advancement B.
Proceeding C. Abatement
D. Acceleration E. No
change required

Direction: Given below is a passage divided into VI segments. Read the passage and answer
the questions that follow.

The UK is the world’s fifth largest economy, it contains many areas of immense wealth, its capital is a
leading centre of global finance, its entrepreneurs are innovation and agile, and despite the current
political turmoil, it has a system of government that rightly remains the envy of much of the world./ (​6Q​) It
thus seems patently unjustand __(A)__ to British values that so many people are living in poverty. (​7Q)
This is obvious (1) to anyone who opens their eyes to see the deep (2) growth in food banks and the
queues waiting outside them, the people sleeping rough in the streets, the growth of homelessness, the
sense of immense (3) despair that leads even the Government to appoint a Minister for suicide
prevention (4) and civil society to report on levels of loneliness and isolation. (​8Q​) And local __(B)__,
especially in England, which perform vital roles in providing a real social safety net have been gutted by
a series of government policies. (​9Q​) /Libraries have closed in record numbers, community and youth
centres have been shrunk and are underfunded, public spaces and buildings including parks and
recreation centres have been sold off./ (​10Q​) While the labour and housing markets provide the crucial
__(C)__, the focus of this report is on the contribution made by social security and related policies. (​11Q​)

*6.* *The first sentence of the passage has been divided into four parts in the given options. There may
or may not be an error in one of the parts. Choose the part which has an error in it as your answer. If
there is no error, then choose option (E), “No error” as your answer.*

A. The UK is the world’s fifth largest economy, it contains B. any areas of immense wealth, its capital
is a leading centre of global finance, C. its entrepreneurs are innovation and agile, and D. despite the
current political turmoil, it has a system of government that rightly remains
the envy of much of the world E.
No error
*7. Which of the following word given in the options should fill the blank marked as (A) in the second
segment of the passage, to makeit grammatically and contextually meaningful? Note that the word
should also fill both the blanks of the following two sentences to make them contextually meaningful.*
(i) _________ to popular myth, the majority of accidents are not caused by
speeding or drunkenness. * *(ii) The villagers expressed regret that their
habitations lacked road connectivity and other basic amenities ________ to the
government’s tall claims.*

A. Complying B.
Contrary C.
Complimentary D.
Cursory E.
Commissioning

8. The third segment in the given passage has four words given in bold. Of these, the positions of
the two words may be incorrect and need to be exchanged to make the sentence correct. Find
the two words which need to be exchanged.*

A. 1-2
B. 1-3
C. 1-4
D. 3-4
E. 2-3

9. With respect to the context of the passage, which of the following can be inferred from the italicized
sentence mentioned in the fifth segment () of the passage?*

A. The closure of the various institutions of society will gradually have an adverse effect on
the physical health of growing children. B. Public welfare institutions have been shut down, thus
causing a set back to the social
health of the citizens. C. In order to revive these institutions in the future, the government will have to
invest a lot
of capital and promote schemes to encourage people for social participation. D. The closure of
the institutions indicates that Britain is undergoing an economic crisis. E. None of these

10. Which of the following word given in the options should fill the blank marked as (C) in the sixth
segment (VI) of the passage, to make it grammatically and contextually meaningful. Note that the
word should also fill both the blanks *of*the following two sentences to make them contextually
meaningful.*

*(i) Settled into a ________ of wooded hills, was the little log cabin. * *(ii) The conference
begins this week against a _______ of unmitigated gloom.*

A. Backdrop B.
Surrounding C.
Precursor D.
Profusion E. Both
A and B

Directions to solve questions from 11 to 15 : Fill in the blanks with relevant answers by
choosing it from the options below.

I am working toward saving money; one of the savings ...(11)... I may want to consider is a savings
account. Savings accounts ...(12)... pay interest (although a relatively small amount) on the account. A
savings account can be easily done, but there are definitely some things to take up and ...(13)... before
choosing an option. First, consider which bank you want to open the account with. Look for convenience,
and ...(14)..., but also consider the interest paid. Some banks provide specific facilities for a specific
account balance, or with some, the
interest increases as the balance increases. Also ...(15)... any charges that bank may impose on you.

11. A. benefits
B. privilege C.
discretion D.
options E.
grant

12. A. infrequently
B. rarely C.
usually D.
unusually E.
habitually

13. A. rank
B. evaluate C.
sized up D.
estimate E.
neglect

14. A. accessibility
B. difficulty C.
restriction D.
inutility E.
suitability

15. A. unification
B. rending C.
review D.
breaking E.
combining

Section 2: Aptitude

1. 1240, 1140, 1019, 875, 706, ?

A. 428 B. 439 C.
510 D. 498 E.
None of these

2. 25 men can complete a piece of work in 16 days. After 4 days from the start of the work,
some men left. If the remaining work was completed by the remaining men in 15 days, then find
the men left after 4 days from the start of the work?*

A. 3 men B. 4
men C. 6 men D.
5 men E. None of
these
3. Applied to a bill for Rs. 2,00,000, the difference between discount of 40 % and two
successive discount of 36 % and 4 % is?

A. 3640 B. 4820 C.
5260 D. 2880 E.
None of these

4.

A. 0
B. -1
C. 2
D. 1

5.

A. 6 B. 7 C. 8 D. 9 E.
None of the above

6. 5 bells commence tolling together and toll at intervals 2, 4, 6, 8 and 10 second


respectively. Find in 40 minutes, how many times do they toll together?

A. 8 times B.
21 times C.
19 times D.
30 times
7. Pranav, Dhruv and Hitha start at same time, same point and in same direction to run around a
circular ground. Pranav completes a round in 250 seconds, Dhruv in 300 seconds and Kate in 150
seconds. Find after what time will they meet again at the starting point?

A. 30 min
B. 25 min
C. 20 min
D. 15 min

8. What is the probability of getting at least one six in a single throw of three unbiased dice?

A. 1 / 6 B.
125 / 216 C. 1
/ 36 D. 81 /
216 E. 91 /
216
9. In a family, there are husband-wife, two sons and two daughters. All the ladies were
invited to a dinner. Both sons went out to play. Husband did not return from office. Who was at
home?

A. Only wife was at home B. Nobody


was at homecorrect C. Only sons
were at homewrong D. All ladies
were at home

10. The cost of a diamond varies as the square of its weight. A diamond weighing 20
decigrams costs Rs. 4,800. Find the cost of a diamond of the same kind weighing 8
decigrams.

A. Rs. 762
B. Rs. 760
C. Rs. 764
D. Rs. 768

11. An interior angle of a regular polygon is 5 time its exterior angle. Then the number of
sides of the polygon is,

A. 16
B. 18
C. 12
D. 14

12. A family consists of 6 members P, Q , R, X, Y, Z. Q is the son of R but R is not mother of Q. P and R
are married couple. Y is the brother of R, X is the daughter of P. Z is the brother of P. How many female
members are there in the family?

A. 1
B. 2
C. 3
D. 4

13.

A. 100 B.
10,000 C.
100​100 ​D.
100,000

14. Three gold coins of weight 780gm, 840gm and 960gm are cut into small pieces, all of
which have the equal weight. Each piece must be heavy as possible. If one such piece is shared by
two persons, then how many persons are needed to give all the pieces of gold coins?

A. 86 B. 70
C. 43
D. 35
15. Find the greatest number that will divide 148 246 and 623 leaving remainders 4 6 and
11 respectively.

A. 20
B. 48
C. 6
D. 12

Section 3: Programming Logic

1. 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
2. Which is the correct form to declare main with command line arguments ?
You can choose more than one answer.

A. int main(int argc, char argv[]){ } B. int


main(int argc, char* argv[]){ } C. int main(int
argc, char** argv){ } D. int main(int* argc,
char* argv[]){ }

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

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

4. What will be the output of the following program if argument passed to command lines
are:
#include<stdio.h> int main(int argc,
char *argv[]) {
int j; j = argv[1] + argv[2] – argv[3];

printf(“%d”, j); return 0; } ​A. Error B.


​ 3
C. Garbage Value D. None of these 5. 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

6. What will be the output of the program (sample.c) given below if it is executed from the
command line?

#include<stdio.h> int main(int


argc, int *argv) {
int i; for(i=1; i<argc; i++)
printf("%s\n", argv[i]); return 0; }

A. *.c B. "*.c" C. sample *.c D. List of all files and folders in


the current directory

7. What does the following command line signify?

prog1|prog2

A. It runs prog1 first, prog2 second B. It runs prog2 first, prog1 second C. It
runs both the programs, pipes output of prog1 to input of prog2 D. It runs both
the programs, pipes output of prog2 to input of prog1

8. What is the return value of putchar()?

A. The character written B. EOF if an error occurs C.


Nothing D. Both character written & EOF if an error
occurs

9. Which of the following statement is true?

A. The symbolic constant EOF is defined in <stdio.h> B. The value is -1 C.


The symbolic constant EOF is defined in <stdio.h> & value is -1 D. Only
value is -1

10. What will be the output of the following C code if following commands are used to
run(considering myfile exists)?

#include <stdio.h>
int main() {
char c = 'd';
putchar(c); }

A. Compile time error (after first command) B. d


in the myfile file C. d on the screen D. Undefined
behavior

Section 4: Coding

Consider the below series:

1, 2, 1, 3, 2, 5, 3, 7, 5, 11, 8, 13, 13, 17, ...

This series is a mixture of 2 series – all the odd terms in this series form a Fibonacci series and all the
even terms are the prime numbers in ascending order.

Write a program to find the Nth term in this series.


The value N is a Positive integer that should be read from STDIN. The Nth term that is calculated by
the program should be written to STDOUT. Other than the value of Nth term, no other
characters/strings or message should be written to STDOUT.

For example, when N = 14, the 14th term in the series is 17. So only the value 17 should be printed
to STDOUT.

You might also like