You are on page 1of 10

TCS NINJA QUESTIONS SLOT 1 - 3rd SEPTEMBER 2018

QUANTITATIVE APTITUDE:

1.Given that 0<a<b<c<d,which of the following is the largest?


a. (a+d)/(b+c)
b. (c+d)/(a+b)
c. (b+d)/(a+c)
d. (b+c)/(a+d)

Ans: (c+d)/(a+b)

2.A passenger train takes 5 hours less for a journey of 252 km if its speed is increased by 35
kmph from its normal speed.the normal speed in kmph (to the nearest integer ) is
a. 42
b. 35
c. None of the other answers
d. 28

Ans: 28

3.In a single throw with two dice find the probability that their sum is a multiple of 4 and 5
a. ½
B. 4/9
C. 17/36
D. ⅓

Ans: 4/9

4.The value of a scooter depreciates in such a way that its value at the end of each year is ¾ of
its value at the beginning of the same year.if the initial value of the scooter is rs 40000 what is
the value at the end of 2 years?
a. 16875
b. 19000
c. 13435
d. 23125

Ans: 16875

5. 8 year old Eesha visited her grandpa. He gave her this riddle.:
I started working at 18.i spent ⅙ of my working life in a factory. I spent ⅓ of my working life in
office and I spent ⅓ of my working life as a school caretaker. For the last 9 years of my working
life I have been doing social service. How old am I?
a. 72
b. 69
c. 75
d. 60

Ans: 72

6.an aeroplane has 4 emergency exits.in an emergency it requires 8 seconds per passenger to
evacuate the plane.if no hand baggage is carried by the passenger .how long will it take to
evacuate 53 passengers in an emergency (when hand baggage is not allowed to be carried)?
None of the other 3 choices?
a. 7 min 4 secs
b. 1 min 52 secs
c. 1 min 44 secs

Ans: 1 min 52 secs

7.three blocks of cheese weighs 690 kg,710 kg,750 kg,for packing the cheese is cut in to pieces
of equal weight with no waste .what will be the maximum number of pieces??
a. 128
b. 215
c. 430
d. None of the others

Ans: 215

8.in this question a^b means a raised to the power b .what is the remainder when 48^565 is
divided by 7?
a. 4
b. 5
c. 1
d. 6

Ans: 6

9.there are 5 boxes in a cargo.the weight of the first box is 200 kg and second box is 20%
heavier than the third box which is 25% heavier than the first box.the fourth box which weighs
350 kg is 30% light than the fifth box.find the average weight of the four heaviest boxes and the
four lightest boxes?
a. 51.5kg
b. 65kg
c. 75kg
d. 37.5kg

Ans: 75kg

10.six bags of marble contain 18,19,21,23,25 and 34 marbles respectively.all the marbles in one
of the bags are chipped.the other bags contain no chipped marbles.ria takes three of the bags
and ruhi takes two of the others one of the bags of chipped marbles remains.if ria gets twice as
many marbles as ruhi how many chipped marbles are there?

Ans: 23

11.brinda and shanthi run in opposite direction on a circular track starting at diametrically
opposite points .they first meet after brindha and run 100 meters .they next meet after shanthi
has run 150 metres past their first meeting point.each girl runs at a constant speed .what is the
length of the track in metres?

Ans: 350

12.100 books are distributed to 30 people so that each receives at least one book.the least
number of people that would receive the same number of book is??

Ans: 20

13.when asha and usha stand on a weighing scale together the reading shows 151 kgs when
usha and isha stand together the real reading is 132k gs and when isha and asha stand
together the reading is 115kgs .what is the weight of usha in kgs??

Ans: 84

14. In the figure shown , each side of the outer square is divided into our four equal segments
as shown . the shaded square in the middle area 18 square units. What is the area of the outer
square units?
Ans: 144

15.there are two bags containing white and black balls.in the first bag there are 8 white and 6
black balls and in the second bag there are 4 white and 7 black balls.one of the bag is chosen at
random from it.find the probability of this ball is being black?

a. 41/77
b. 41/308
c. 21/308
d. 8/77

Ans: 41/77

16. A pizza restaurant has a tradition of creating specialty pizzas all of the same thickness
, and in the shape of the perfect circle it also divides them up into exactly equal slices even if the
number of slices per pizza is sometimes unusual. It sells small medium ,large and extra large
pizzas. The diameter are 8,11,13 and 15 inches respectively they are each divided into 4,9,12,
and 13 slices respectively. Which pizza has the largest slice?

a. Extra large
b. Small
c. Large
d. Medium

Ans: Extra large


17.jake can dig a well in 16 days paul can dig the same well in 24 days. Jake ,paul and hari
together dig the well in 8 days. Hari alone in dig the well in
a. 96 days
b. 32 days
c. 48 days
d. 24 days

Ans: 48

18. Eesha bought two varieties of rice, costing 50 rs per kg and 60 rs pre kg each, and mixed
them in some ratio. Then she sold the mixture at 70 rs per kg. Making a profit of 20 percent.
What was the ratio of the mixture?

a. 1:5
b. 1:10
c. 2:7
d. 3:8

Ans : 1:5

19. P,q,r,s are four cities on a straight highway, not necessarily in that order. The
distance between the following table

What is the order of the cities in the highway?

a. S,P,Q,R
b. R,S,Q,P
c. S,Q,P,R
d. Q,P,R,S

Ans: S,Q,P,R

20.there are 8 houses built in a line and they contain valuables worth 6,7,1,3,8,2,4,5, lakh
rupees respectively. A thief is going to steal the maximum values in these houses but he cannot
steal in two adjacent house because the owner of the stolen house will tell his two neighbours
on the left and right side.what is the maximum value (in lakhs) that can be stolen?
Ans: 20

PROGRAMMING MCQ QUESTIONS:

21.main(int argc,char*argv[])
in the above Definition of main function the variable argv denotes:
a. An array of character pointers the first array item pointing to the program name and
remaining pointing to the command line parameters
b. An array of character pointer each pointing to the command line parameters
c. A pointer to character that points to command line parameters
d. A pointer to pointer that points to the memory location where the program has been
loaded to the memory

Ans: An array of character pointers the first array item pointing to the program name and
remaining

22.#include <stdio.h>
Int main()
{
Int n,ch,
for(n=7;n!=0;n--)
printf(“n=%d”,n--)
ch=getchar();
Return 0;
}
Infinite loop
Numbers 7 to 0 in descending order
None of the other choices as there is a compilation error
Numbers 7 to 1 in descending order.

Ans: Infinite loop

23.eesha works for ISRO where she is involved in a mission to intercept a comet that is likely to
collide with in each with in 1 month.she is developing a c program to calculate the trajectory of
the missile to be launched to intercept and destroying the approaching comet.in order to
achieve highest accuracy of the missile trajectory what data type should she use for the
variables in her equation??
a. Long int
b. Double
c. Float
d. Int

Ans: Double
24.a program reads in 500 integers in the range [0...100]representing the scores of 500
students.it then prints the frequency of each score above 50.what would be the best way for the
program to store the frequencies?
a. An array of 101 numbers
b. An array of 50 numbers
c. An array of 500 numbers
d. A dynamically allocated array of 550 numbers

Ans: An array of 50 numbers

25. Which of the following is TRUE about binary trees?

The number of nodes on the last level is equal to the sum of the number of nodes on all other
levels

A.A node may have one child

B. The total number of nodes is one less than a power of 2

C. Every node must have 2 children

Ans : A node may have one child

26. #include <studio . h>


Long int fact (int n);
Int main ()

{
Int n;
Printf (“enter a positive integer: “);
Scanf (“%d”, &n);
printf(“factorial of %d = %ld “, n, fact (n));
Return 0;
}

Long int fact (int n)


{
If (n.=1)
Return n*fact (n-1)
Else
Return 1;
}
Ans: recursion

CODING QUESTION:

27.look at the series below:


1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,.....
This series is formed as below:
1.term(1)=1
2.term(2)=2
3.term(N)=term(N-1)+term(N-2)for N>2
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 and messages should be
written to STDOUT.
For example if N =15,the value of 15thn term is 987 which is the sum of 13th and 14th terms .
You can assume that the value of n will not exceed 30

Ans:

#include <stdio.h>

int main() {

//code

int n;

scanf("%d", &n);

if(n == 1)

printf("1");

}
else if(n ==2)

printf("2");

else

int t1=1, t2=2, nth_term;

for(int i = 3; i <=n; i++)

nth_term = t1 + t2;

t1 = t2;

t2 = nth_term;

printf("%d", nth_term);

return 0;

ENGLISH:
Actual questions were unavailable, but the pattern was once again 10 questions in 10 minutes -
Cloze passage.
Focus was on simple grammar and vocabulary.

You might also like