Section 2: Quantitative and Logical Reasoning Most of The Questions Were From TCS Old Papers - Only The Data Get Change

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 17

Section 2: Quantitative and Logical Reasoning

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

13. Find the value of the 678 to the base 7. ANS:1656

14. Number of faces, vertices and edges of a cube ANS:6,8,12

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

18. G(0)=-1, G(1)=1, G(N)=G(N-1) - G(N-2), G(5)= ? ANS:-2

19. What is the max possible 3 digit prime number?

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?

22. In Madras, temperature at noon varies according to -t^2/2 + 8t + 3, where t is elapsed


time. Find how much temperature more or less in 4pm to 9pm. ANS: 385.8(DB)

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).

27. If VXUPLVH is written as SURMISE, what is SHDVD? ANS: PEASA

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

33. A, B and C are 8 bit no?s. They are as follows:


A 1 1 01 1 0 1 1
B 0 11 1 1 0 1 0
C 0 11 0 1 1 0 1
Find ( (A-B) u C )=?
Hint : A-B is {A} - {A n B} ANS: 0 1 1 1 1 1 1 1 (DB)

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.

Section 3.Critical Reasoning.

1. The players G,H,J,K,L,M,N,O are to be felicitated of representing the county team in


Baseball Out of these H,M,O also are in the Football team and K,N are there in the Basket
ball team . These players are to be seated on a table and no
two players who has represented the county in more than one game are to sit together.
1.Which one of the orders can they be seated in
2. Which of the orders is not possible
3. If N is seated in the middle then which of the following pairs cannot be seated near
him .
4. If M is seated then which of the following pairs can be seated next to him.

Choices are given for all the questions

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)

3. 7 people - a,b,c,d,e,f,g Need to make a seating arrangement for them.


Conditions:
1)A should be at the center
2) B,F should be at the right extreme
3)C,E always in pair
4)D,G as far as possible
Questions from the above were asked?

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?

4. R u mobile? ( R u ready to go anywhere ?)

5. R u ready to go to places of extreme temperature. If yes what do u think of ur safety?

6. Rate ur good qualities?

7. What is the difference between hard and smart work?

8. Do u have a plan of doing higher studies ?

Technical Questions :

The questions were different for different persons and depends on


the field of interest that u say.

Communication

1. OSI Layers in n/w with the functionalities

2. TCP/IP protocol

3. Bridges, Routers, LAN, WAN, MAN

4. Token bus, FDDI, Ethernet

C Language

1. Datastructures esp :Linked list and trees

2. Structures , unions, Kind of variables ( local ,Global)

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

1. The C language terminator is


a.semicolon
b.colon
c.period
d.exclamation mark

2. What is false about the following A compound statement is


a.A set of simple statments
b.Demarcated on either side by curly brackets
c.Can be used in place of simple statement
d.A C function is not a compound statement.

3. What is true about the following C Functions


a.Need not return any value
b.Should always return an integer
c.Should always return a float
d.Should always return more than one value.

4. Main must be written as


a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program

5. Which of the following about automatic variables within a function is correct ?


a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.

6. Write one statement equalent to the following two statements


x=sqr(a);
return(x);
Choose from one of the alternatives
a. return(sqr(a));
b. printf("sqr(a)");
c. return(a*a*a);
d. printf("%d",sqr(a));

7. Which of the following about the C comments is incorrect ?


a.commentscan go over multiple lines
b.comments can start any where in the line
c.a line can contain comments with out any language statements
d.comments can occur within comments

8. What is the value of y in the following code?


x=7; y=0;
if(x=6)
y=7;
else
y=1;

a.7
b.0
c.1
d.6

9. Read the function conv() given below


conv(int t)
{
int u;
u=5/9 * (t-32);
return(u0;
}
What
a.15
b.0
c.16.1
d.29

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){
....
}

12. what does the following function print?


func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
a.3
b.1
c.0
d.2

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

14. read the folllowing code


# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(x<MIN)
x=-1;
x=50;
if the initial value of x=200,what is the vlaue after executing this code?
a.200
b.1
c.-1
d.50

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

16. Given the piece of code


int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the following is incorrect?
a. *(a+5)
b. a[5]
c. pa[5]
d. *(*pa + 5)

17. consider the following structure:


struct num nam{
int no;
char name[25];
};
struct num nam
n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
What does the above statement print?
a.8,9
b.9,9
c.8,8
d.8,unpredictable value

18. I dentify the in correct _expression


a. a=b=3=4;
b. a=b=c=d=0;
float a=int b=3.5;
d. int a;
float b;
a=b=3.5;

19. Regarding the scope of the varibles;identify the incorrect statement:


a. automatic variables are automatically initialised to 0
b. static variables are are automatically initialised to 0
c. the address of a register variable is not accessiable
d. static variables cannot be initialised with any _expression

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;

21. The operator for exponencation is


a. **
b .^
c. %
d. not available

22. which of the following is invalid


a. a+=b
b. a*=b
c. a>>=b
d. a**=b

23. What is y value of the code if input x=10


y=5;
if (x==10)
else if(x==9)
elae y=8;
a. 9
b. 8
c. 6
d. 7

24. What does the following code do?


fn(int n,int p,int r)
{
static int a=p;
switch(n)
{
case 4:a+=a*r;
case 3:a+=a*r;
case 2:a+=a*r;
case 1:a+=a*r;
}
}
a.computes simple interest for one year
b.computes amount on compound interest for 1 to 4 years
c.computes simple interest for four year
d.computes compound interst for 1 year

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

26. How many times does the loop iterated ?


for (i=0;i=10;i+=2)
printf("Hi\n");
a.10
b.2
c.5
d....

27. What is incorrect among teh following A recursive functiion


a. calls itself
b. is equivalent to a loop
c. has a termination cond
d. does not have a return value at all

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;..}

29. consider the following program

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

30. pick out the add one out


a. malloc()
b. calloc()
c. free()
d. realloc()

31. consider the following program


main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
the value of b[-1] is
a. 1
b .3
c. -6
d. none

32. Consider the following program sigment


int n,sum=1;
switch(n)
{
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;
}
If n=2, what is the value of sum
a.0
b.6
c.3
d.none

33. identify the incorrect one


1. if(c=1)
2. if(c!=3)
3. if(a<b)then
4. if(c==1)
a. 1 only
b. 1&3
c. 3 only
d. all

34. Teh format specified for hexa decimal is


a. %d
b. %o
c. %x
d. %u

35. Find the output of the following program


main()
{
int x=5, *p;
p=&x;
printf("%d",++*p);
}
a.5
b.6
c.0
d.none

36. Consider the following C code


main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
The final value of x is
a.6
b.8
c.1
d.3

37. int *a[5] refers to


a. array of pointers
b. pointer to an array
c. pointerto a pointer
d......

38. which of the following statements is incorrect


a. typedef struct new{
int n1;
char n2;
} DATA;
b. typedef struct {
int n3;
char *n4;
}ICE;
c .typedef union {
int n5;
float n6;
} UDT;
d. #typedef union {
int n7;
float n8;
} TUDAT;

TCS Recruitment at Bangalore (Bannergatta Road) 11-12-04

Test Pattern.

1 Verbal reasoning (20 min - 32 Qs )


2. Quantitative aptitude (40 min – 36 Qs)
3. Critical reasoning (30 min - 3 passages - 12 Qs)

Quantitative Aptitude: (40 min 36 Qs)

1. A series question. Very simple as 16 19 15 ? 14 21 (don’t remember exactly)

2. ACUTE is coded as ZBTSD then DMFBS stand for. ANS: CLEAR

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...............

4. what is the largest prime no that is stored in 6 bit pattern.

5. WHICH WILL GIVE GOOD STANDARD DEVIATION


1. (7,0,-7,0,7) 2. (7,-7,7,-7,7) 3. (1,0,-1,0,1)

6. WHICH IS NOT A SIDE OF A RECTANGULAR


1. (2m, 3m, 4m ) 2. (3m, 4m, 7m ) 3. (3m, 5m, 9m )

7. WHICH SHAPE WILL BE OBTAINED BY USING THESE VALUES


OF X ,Y
X Y
0 0.00001
10 1.02
100 1.72
1000 3.00
9999 4.72

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

1. sentence, paragraph 1. type of


2. basmati, wheat 2. a part of
3. brother, sister 3. not a type of
4. breigal, dog 4. sibling

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

then find the decimal equivalent of ( a u b ) ∩ c.

19. Three schemes in a bank independently gives savings 10%, 20%, 25%. what will be the
net saving if they are applied together?

20. which one will be the exact power of 3


(i) 2768 (ii) 2678 (iii) 2187 (iv) …

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

22. odd man out 1.java 2.smalltalk 3.lisp 4.eiffel 5. c++

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.

27. (force * velocity)/ (mass * acceleration) =


1. velocity 2.time 3. acceleration 4.momentum

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

1. what is ddl & dml command

2. give an example for each

3. what is normalization

4. what r the different normalization methods

5. Is there any compiler in oracle

6. what is the name of that compiler

7. what is an operating system

8. what r the functions of operating system

9. what is dead lock

10. what r the ways to avoid deadlock

11. what is bankers algorithm

12. oops concept

13. difference between c++ and java

14. what do u mean by inheritance

15. what do u mean by access specifier

16. what is polymorphism

17. sdlc

18. what do u mean by fuction overloading

19. they gav me some analytical problem and ask me 2 solve

You might also like