Section 2: Quantitative and Logical Reasoning Most of The Questions Were From TCS Old Papers - Only The Data Get Change
Section 2: Quantitative and Logical Reasoning Most of The Questions Were From TCS Old Papers - Only The Data Get Change
Section 2: Quantitative and Logical Reasoning Most of The Questions Were From TCS Old Papers - Only The Data Get Change
Most of the questions were from TCS old papers.Only the data get change.
1. In a two-dimensional array, X (9, 7), with each element occupying 4 bytes of memory, with
the address of the first element X (1, 1) is 3000, find the address of X (8, 5).
ANS: 3212
2. In the word ORGANISATIONAL, if the first and second, third and forth, forth and fifth, fifth
and sixth words are interchanged up to the last letter, what would be the tenth letter from
right?
ANS: I(ROANISATIONALG)
3. What is the largest prime number that can be stored in an 8-bit memory? ANS:127
4. Select the odd one out. a. Java b. Lisp c. Smalltalk d.Eiffel. ANS: LISP
5. Select the odd one out a. SMTP b. WAP c. SAP d. ARP ANS: SAP
6. Select the odd one out a. Oracle b. Linux c. Ingress d. DB2 ANS:LINUX
7. Select the odd one out a. WAP b. HTTP c. BAAN d. ARP ANS:BAAN
8. Select the odd one out a. LINUX b. UNIX c. SOLARIS d. SQL SERVER ANS:SQL SERVER
9. Select the odd one out a. SQL b. DB2 c. SYBASE d. HTTP ANS:HTTP
10. The size of a program is N. And the memory occupied by the program is given by M =
square root of 100N. If the size of the program is increased by 1% then how much memory
now occupied?
11. A man, a woman, and a child can do a piece of work in 6 days. Man only can do it in 24
days. Woman can do it in 16 days and in how many days child can do the same work?
ANS:16
12. In which of the system, decimal number 194 is equal to 1234? ANS:5
15. Find the value of @@+25-++@16, where @ denotes "square" and + denotes "square
root". ANS:121
16. Find the result of the following _expression if, M denotes modulus operation, R denotes
round-off, T denotes truncation:
M(373,5)+R(3.4)+T(7.7)+R(5.8) ANS:19
17. If TAFJHH is coded as RBEKGI then RBDJK can be coded as --------- ANS:PCCKJ
20. A power unit is there by the bank of the river of 750 meters width. A cable is made from
power unit to power a plant opposite to that of the river and 1500mts away from the power
unit. The cost of the cable below water is Rs. 15/- per meter and cost of cable on the bank
is Rs.12/- per meter. Find the total of laying the cable.
ANS:20250
21. The size of a program is N. And the memory occupied by the program is given by M =
square root of 100N. If the size of the program is increased by 1% then how much memory
now occupied?
23. The size of the bucket is N kb. The bucket fills at the rate of 0.1 kb per millisecond. A
programmer sends a program to receiver. There it waits for 10 milliseconds. And response
will be back to programmer in 20 milliseconds. How much time the program takes to get a
response back to the programmer, after it is sent? ANS: 30MILISECOND
24. A man, a woman, and a child can do a piece of work in 6 days. Man only can do it in 24
days. Woman can do it in 16 days and in how many days child can do the same work?
25. If the vertex (5,7) is placed in the memory. First vertex (1,1) ?s address is 1245 and then
address of (5,7) is --------
26. Which of the following are orthogonal pairs? a. 3i+2j b. i+j c. 2i-3j d. -7i+j ANS: (A)&
(C).
28. If A, B and C are the mechanisms used separately to reduce the wastage of fuel by 30%,
20% and 10%. What will be the fuel economy if they were used combined. ANS: 20%
29. What is the power of 2? a. 2068 b.2048 c.2668 ANS: (B). 2048
30. Complete the series. 3, 8, --, 24, --, 48, 63 ANS: 15,35
31. Complete the series. 3, 8, --, 24, --, 48, 63 ANS: 15,35
32. Complete the series. 4, -5, 11, -14, 22, --- ANS: -27
34. A Flight takes off at 2 A.M from northeast direction and travels for 11 hours to reach the
destination which is in north west direction.Given the latitude and longitude of source and
destination. Find the local time of destination when the
flight reaches there? ANS: 1:00 P.M
35. A can copy 50 papers in 10 hours while both A & B can copy 70 papers in 10 hours. Then
for how many hours required for B to copy 26 papers? ANS: 13
36. A is twice efficient than B. A and B can both work together to complete a work in 7 days.
Then find in how many days A alone can complete the work? ANS: 10.5 DAYS(11)
37. A finish the work in 10 days. B is 60% efficient than A. So hoW days does B take to finish
the work?ANS : 4DAYS.
38. A finishes the work in 10 days & B in 8 days individually. If A works for only 6 days then
how many days should B work to complete A?s work? ANS : 3.2 DAYS(4)
39. Given the length of the 3 sides of a triangle. Find the one that is impossible? (HINT : sum of
smaller 2 sides is greater than the other one which is larger)
40. Find the singularity matrix from a given set of matrices?(Hint det(A)=0)
41. A 2D array is declared as A[9,7] and each element requires 2 byte.If A[ 1,1 ] is stored in
3000. Find the memory of A[8,5] ?ANS: 3106.
42. Sum of slopes of 2 perpendicular st. lines is given. Find the pair of lines from the given set
of options which satisfy the above condition?
43. (a) 2+3i (b)1+i (c) 3-2i (d) 1-7i .Find which of the above is orthogonal. ANS : (A) & (C).
44. The number 362 in decimal system is given by (1362)x in the X system of numbers find the
value of X a}5 b) 6 c) 7 d) 8 e) 9
45. Given $ means Tripling and % means change of sign then find the value of $%$6-%$%6
ANS : -72
46. My flight takes of at 2am from a place at 18N 10E and landed 10 Hrs later at a place with
coordinates 36N70W. What is the local time when my plane landed.
a) 6:00 am b) 6:40am c)7:40 d)7:00 e)8:00 (Hint : Every 1 deg longitude is equal to 4
minutes . If west to east add time else subtract time) ANS: (E) 8:00
47. Find the highest prime number that can be stored in an 8bit computer.
2. There are 2 groups named Brown and red. They can?t marry in the same group. If the
husband or wife dies then the person will convert to their own group. If a person is married
then the husband will have to change his group to his wife?s
group. The child will own the mothers group. From these a set of 4 questions were given
.Solve them
Eg;
1.Brown?s daughter is red (False)
2. If a person is red. Then his/her mother?s brother belong to which group if he is married
(Brown)
Eg:
Which of the following pairs were not possible?
Others questions were similar to the above. More questions were from Barrons.
HR Questions
1. Market urself
2. Why TCS ?
3. Will u switch over to any other company after joining TCS? If NO then why?
Technical Questions :
Communication
2. TCP/IP protocol
C Language
3. Strrev( ) program
4. Case structure (it is not the usual switch case stat)
5. Calloc,malloc
6. Divide 2 number and print the o/p ( NOTE: Check for divide by zero error)
TCS : C Paper
a.7
b.0
c.1
d.6
10. which of the following represents true statement either x is in the range of 10 and 50 or y is
zero
a.x>=10 && x<=50 || y==0;
b.
c.
d.
11. Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c .x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d .# define TRUE 0
...
while(TRUE){
....
}
13. how does the C compiler interpret the following two statements
p=p+x;
q=q+y;
a. p=p+x;
q=q+y
b. p=p+xq=q+y
c. p=p+xq;
q=q+y
d. p=p+x/q=q+y
15. A memory of 20 bytes is allocated to a string declared as char *s then the following two
statements are executed:
s="Etrance"
l=strlen(s);
what is the value of l ?
a. 20
b. 8
c. 9
d. 21
20. cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4; is equivalent to which of the following?
a .if cond 1
exp 1;
else if cond 2
exp 2;
else if cond 3
exp 3;
else
exp 4;
b. if cond 1
if cond 2
if cond 3
exp 1;
else
exp 2;
else
exp 3;
else
exp 4;
c.if cond 1 && cond 2 && cond 3
exp 1 |exp 2|exp 3|exp 4;
d.if cond 3
exp 1;
else if cond 2
exp 2;
else if cond 3
exp 3;
else
exp 4;
25. a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a. infinite
b. 5
c. 4
d. 6
28. Which of the following go out of the loopo if expn 2 becoming false
a.while(expn 1){...if(expn 2)continue;}
b.while(!expn 1){if(expn 2)continue;...}
c.do{..if(expn 1)continue;..}while(expn 2);
d.while(!expn 2){if(expn 1)continue;..}
main()
{
unsigned int i=10;
while(i>=0){
printf("%u",i)
i--;
}
}
how many times the loop wxecuted
a.10
b.9
c.11
d.infinite
Test Pattern.
3. In the following string find the occurrences of F followed by U but that is not followed by
R.
U F R U F D D Y W Z U U F F...............
8. which equation that best suits this curve a line cuts x at -1 when y=0 and x=0 when y=3
and goes upward
9. A man , woman and a boy joindly did a job in 6 days. a man alone finishes in 10 days, a
women alone finish in 24 days. then how many days the boy can take to finsh?
10. For temperature a function is given according to time : ((t**2)/6) + 4t +12 what is the
temperature rise or fall between 6.pm to 9 pm
11. An aeroplane starts from a (some latitude is given according to place)at 2 am local time to
b(some latitude). travellling time is 10 hours. what is the local time of b when it reaches
b.
12. A file is transferred from a place to adestination capable of 10 kb. they given some rate of
transfer. u have find a equation that best suit this.
13. In a planar cube , the no. of vertices, no of edges and no of faces are 1. 6, 6, 6 2. 4, 8, 12
3. 8, 12, 6 4.........
14. What is the value of m(373, 7) + r(6.8) -t(3.4) + r( 3.4) m- modulas r- roundoff t-
truncate
15. what is the value of #%#(5) + %%#(9) where % - square root #- square
16. Match the following (don’t remember exactly but problem model is important) a b
17. g (0) =1 g (1)= -1 if g (n)=g (n-1) + g(n-2) then what is the value of g (6)?
18. A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
19. Three schemes in a bank independently gives savings 10%, 20%, 25%. what will be the
net saving if they are applied together?
21. A power unit is there by the bank of the river 750 mts. a cable is made from power unit
to power a plant opposite to that of the river at 1500mts. the cost of the cable below
water is rs. 15/- per meter ansd cost of cable on the bank is rs. 12/- per meter. then
where they will cut
23. which is the equation for given line among the 5 1. 2x +3y=4 2. x + y= -1 3. y=2x+ 3
24. In which of the system 384 is equal to 1234? 1. base 5 2. base 6 3. base 7 4. base 8 5.
base 9
25. The size of a program is n. and the memory occupied by the program is given by m =
square root of 100n. if the size of the program is increased by 1% then how much
memory now occupied?
26. calculate last address of array element column major a[2,3], array size a[7,9], each
element occupies 8 bytes. start address is 3000.
28. In the word “unimpressive” if we change 1st & 2nd, 3rd & 4th, so on then will be 10th
letter from right?
Critical Reasoning
1. A six floor building is given .there are 7 or 8 people .each floor contain two apartments.
in each apart there can be at most 2 persons. some conditions are given as a is two floors
above c and his room mate. etc. we have to determine the person what floors they are
staying (reference 12 th barron)
2. A and B are working at some place and are also the foreign agents of country C or D. it
takes 4 days for docs to reach C and 5 to reach D. a stole a document on 19th and 22nd
oct. b stole a document on 21st oct. they both mat for lunch on 20th oct. an agent of one
country could not directly sent doc to another country on this based three questions were
asked like if a worked for c then in how many days d will receive a document.
TCS : Technical Interview
3. what is normalization
17. sdlc