Anda di halaman 1dari 10

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 7 ): In the following passage seven blanks


have been given. For each blank, a number of phrases have been suggested, one
of which is the correct one for that blank grammatically and contextually. Select
the answer for each and mark that as your answer.

With the decades-old minimum support price (MSP) system __________ A __________ the
crisis at the farm gate, the three schemes that are a part of AASHA – the Price Support
Scheme (PSS) itself, the Price Deficiency Payment Scheme (PDPS) and the Pilot of Private
Procurement and Stockist Scheme (PPPS) – point to an innovative, MSP-plus approach to
the problem of non-remunerative prices. Under the PDPS, the Centre __________ B
__________ to pay oilseed farmers the difference between the MSP and market price. The
advantage of this scheme is that the Centre can keep the farmer satisfied without having to
go through the hassle of physical procurement, storage and disposal. Freed of these
logistical hassles, the geographical reach and coverage of PDPS is likely __________ C
__________. The PSS, or expanded MSP, will allow the FCI to procure pulses, oilseeds and
copra from States that display interest. The PPPS is a new idea. __________ D
__________, the Centre will persuade States to bring in private players to procure at MSP.
It promises a maximum of 15 per cent of MSP as a service charge to the private player to
compensate for the loss. In all these schemes however, the key will be the implementation;
failure to create a system of checks and balances can derail them. For instance, the
experience of Madhya Pradesh which implemented the PDPS under the Bhavantar Bhugtan
Yojana last year, shows that it __________ E __________. Ground level checks reveal that
traders connive with each other and depress prices at mandis. They force farmers to sell at
lower prices and pocket the compensation from the government. Many small and marginal
farmers __________ F __________ to sell their produce under the Bhavantar scheme, face
a double whammy of lowered price and no compensation. The PSS would be easier to
implement, with nodal agencies doing the procurement. However, the Centre __________
G __________to provide funds. With the additional Rs.16,550 crore guarantee for raising
working capital from banks now being made available, the total credit guarantee given to
institutions under PSS is already Rs.45,550 crore. But if all States apply to NAFED/FCI for
procurement of oilseeds or pulses, the agencies will fall short of funds.

1. A. Fragmentation of yield
B. Failing to address
C. Understanding to ratify
D. Interested in developing
E. None of the above
2. A. Makes a promise
B. Decides a way-out
C. Announces a weather-based yield scheme
D. Determines to ensure that
E. Attends to consolidate

3. A. To remain constant
B. To attend the farmers very carefully
C. To be superior
D. To guide the farmers to increase in income
E. To utilize the sources of the irrigation

4. A. Regarding this scheme


B. Through this scheme
C. On account of this scheme
D. Against this scheme
E. None of the above

5. A. Is very useful for the farmers


B. Is not careful enough for the farmers
C. Can be easily manipulated
D. Could not be understood
E. None of the above

6. A. Who do not produce anything


B. Who are employed in something else
C. Who are unable
D. Who cannot come to market
E. Who determines the retail price

7. A. Might be hard put


B. Might not support the farmers
C. Might not accept the agreement
D. Might not get the shock
E. None of the above

(Directions to solve questions from 8 to 15 ): Fill in the blanks with appropriate


answers choosing it from the options given below.
Sleep is a temporary (8) __ of consciousness. Sleep (9) __ the body necessary rest and
make it ready for further work. Sleep helps to (10) __ our used energy. Sleep is (11) __ for
continuation of human life (12) __ if this, may lead to dizziness fatigue, anxety, mental
sluggishness, and poor neuromuscular control. Sleep has been an interesting research
subject for a long time. Till now the (13) __ mechanism and physiology of sleep have not
been fully (14) __ So many theories are there but none satisfies all doubts. The (15) __ of
sleep varies with the hours of the night.

8. A. suspension
B. manifestation
C. location
D. addiction
E. invocation
9. A. facilitates
B. provides
C. lengthens
D. expands
E. thwarts

10. A. revamp
B. regain
C. relocate
D. readjust
E. register

11. A. relevant
B. instrumental
C. purposeful
D. pertinent
E. essential

12. A. dislocation
B. vacillation
C. disintegration
D. deprivation
E. provocation

13. A. sophisticated
B. obvious
C. exact
D. conceptual
E. peculiar

14. A. manifested
B. organised
C. described
D. decided
E. understood

15. A. variability
B. depth
C. prognosis
D. punctuality
E. amount

Section 2: Aptitude

1. Nikhat recently shifted to a new house and hence had ordered few electric bulbs from a
shop, along with other items. The box had 20 electric bulbs out of which 4 were
defective. She chose two bulbs at random from the box. The probability that at least one
of these were defective are:

A. 4/19
B. 7/19
C. 12/19
D. 21/95
2. Nina, Amar, and Kanika won a lucky draw amount of Rs. 370 . Karan decided to share
the amount amongst those three in such a way that Amar got 1/4th of what Kanika got
and the ratio between the Nina and Kanika’s share is 3 : 5. Find each share.

A. 120,50,200
B. 125,60,185
C. 110,80,180
D. 100,180,190

3. Given five concentric squares. If the area of the circle inside the smallest square is 77
square units and the distance between the corresponding corners of consecutive squares
is 1.5 units, find the difference in the areas of the outermost and innermost squares.

A. 1254 sq units
B. 1008 sq units
C. 877 sq units
D. 240 sq units

4. The number 899 is:


A. a number with 5 factors
B. a number with 4 factors
C. a number with more than 4 factors
D. a perfect cube
E. a number with 3 factors

5. Saloni purchased a refrigerator for Rs. 80,000. She had to spent Rs. 5000 on repair and
Rs. 1000 on transport. Later she decided to sell the refrigerator and sold it with 25%
profit. At what price did she sell it?

A. Rs. 103250
B. Rs. 105530
C. Rs. 107500
D. Rs. 102560

6. Find the least number which when divided by 2, 3, 4 and 5 leaves a remainder 3. But
when divided by 9 leaves no remainder?

A. 33
B. 63
C. 81
D.123
E. None of these

7. Let f(x) = 2x-5 and g(x) = 7-2x. Then |f(x) + g(x)| = |f(x)| + |g(x)| if and only if

A. 5/2 < x < 7/2


B. x ≤ 5/2 or x ≥ 7/2
C. x < 5/2 or x ≥ 7/2
D. 5/2 ≤ x ≤ 7/2
8. A person travels a certain distance at an average speed of 58 km/hr without any
stoppages and with stoppages he covers the same distance at an average speed of 32
km/hr. How many minutes per hour does he stop?

A. 26.89 minutes
B. 25 minutes
C. 27.25 minutes
D. 30 minutes

9. Kinshuk was given a sum to solve, the sum says the average weight of 3 persons P, Q, R
is 42 kgs. Another female S joins the group and the average now becomes 40kg. If
another female T, whose weight is 2 kg more than that of S and T replaces P, then the
average weight of Q, R, S and T becomes 39kg. The weight of P is

A. 20 kg
B. 30 kg
C. 40 kg
D. 50 kg
E. None of these

10. There are 10 members A,B,C,D,E,F,I and J in the family. There are three generations of
the family. There is also three married couple in the family. There is an equal number of
male and female. A is the daughter – in – law of J. B’s brother I have only one sister A.
H and B are married couple. H is the mother – in– law of C. G is the mother of B. D is
the son – in –law of G. C is the sister of E. F is the only son of D.
If B is the son-in-law of X. Then how is X related to C?

A. father
B. grandmother
C. grandfather
D. can’t be determined
E. None of these

11. If five times of a positive integer is equal to three less than twice the square of that
number than find the number?

A. 33
B. 23
C. 13
D. 3
E. None of these

12. Population of a country increases every year by 10%. If the population in January 2010
was 15.8 lakhs, what was the population in January 2012 ?

A. 19,11,800
B. 18,96,000
C. 19,11,600
D. 18,94,000
E. None of these

13. The next term in the sequence is : 6, 14, 26, 98, ?


A. 275
B. 276
C. 220
D. 274

14. A car owner buys petrol at Rs.7.50, Rs. 8 and Rs. 8.50 per litre for three successive
years. What approximately is the average cost per litre of petrol if he spends Rs. 4000
each year?

A. Rs. 7.98
B. Rs. 8
C. Rs. 8.50
D. Rs. 9

15. If 2 is subtracted from all the even digits and 3 is added to all the odd digits in the
number 3821546 then how many digits get repeated in the number thus formed?

A. None
B. four
C. two
D. one
E. three

Section 3: Programming Logic

1. If the following program i.e "myprog" is run from the command line as "a.out" . What
would be the output?

#include
void main (int argc, char*argvl))
{
int i;
for (i = 1; i < argc; i++)
print[ ("%s", argv[i]);
}

A. *c
B. List of all .c files in the current directory
C. "*c"
D. None of these

2. 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
3. What is output or the error in the program if the command line data is?
CornmVault India

#include
int main(int argc, char *argv[])
{
printf(" %d", printf("%s", argv[1]));
return 0;
}

A. Commvault
B. India 5
C. CommVault 9
D. India 9

4. If the definition of the external variable occurs in the source file before its use in a
particular function, then there is no need for an extern declaration in the function.

A. True
B. False

5. Is there any difference between following declarations?

1 : extern int fun();


2 : int fun();

A. Both are identical


B. No difference, except extern int fun(); is probably in another file
C. int fun(); is overrided with extern int fun();
D. None of these

6. #include
int main(int argc, char ** argv)
{
char **items;
int j = 3, i;
items = argv;
for(i = 1; (i%4); i++)
{
int **p = &items[j];
printf("%c", **p);
j--;
}
return 0;
}
The above code is run with three command line parameters mentioned here: Paper Ink
Pen. What will be the output of the above program?

A. IP
B. Pen
C. Pap
D. Ink
7. Which of the following is true?

A. Array is a dynamic data structure whose size can be changed while stacks are static
data structures whose sizes are fixed.
B. Array elements can be accessed and modified(elements can be added or removed)
only at the ends of the array while any elements of the stack can be accessed or
modified randomly through their indices.
C. An array can have elements of different data types.
D. Elements of a linked-list can be accessed only sequentially.

8. What will be the output of the program?


#include <stdio.h>
int main()
{
char c[] = "GFG";
int i;
for (i = 0; c[i]; i++)
{
printf("%c%c%c%c", c[i], *(c + i), *(i + c), i);
}
return (0);
}

A. compile time error


B. GGGGFFFFGGGG
C. GFG
D. No output

9. What will be the output of the program?

#include<stdio.h>
int main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, m;
i = ++a[1];
j = a[1]++;
m = a[i++];
printf("%d, %d, %d", i, j, m);
return 0;
}

A. 2, 1, 15
B. 1, 2, 5
C. 3, 2, 15
D. 2, 3, 20

10. Are the expressions arr and &arr same for an array of 10 integers?

A. Yes
B. No
Section 4: Coding

Consider the below series :

0,0,2,1,4,2,6,3,8,4,10,5,12,6,14,7,16,8

This series is a mixture of 2 series all the odd terms in this series form even numbers in
ascending order and every even terms is derived from the previous term using the
formula (x/2)

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

The value n in 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 the nth
term no other characters /strings or message should be written to STDOUT.

For example if n=10,the 10 th term in the series is to be derived from the 9th term in the
series. The 9th term is 8 so the 10th term is (8/2)=4. Only the value 4 should be printed
to STDOUT.

It can be assumed that the n will not exceed 20,000.

Anda mungkin juga menyukai