GeekInterview.com

TCS Interview Questions

 
Showing Questions 21 - 40 of 396 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

A traveler walks a certain distance

A traveler walks a certain distance. Had he gone half a kilometer an hour faster , he would have walked it in 4/5 of the time, and had he gone half a kilometer an hour slower, he would have walked 2 ½ hr longer. What is the distance?

Asked By: swatirose88 | Asked On: May 28th, 2008

Answered by: RAJUTHAI on: Mar 8th, 2012

Ans:15km solution: speed(s)*time(t)=distance(d) walked 1/2km with time 4/5 (s+0.5)((4/5)t)=d --->(1) 1/2km an hour slow, walked 2and half hr long (s-0.5)(t+2.5)=d ----->(2) solving (1) & (2) we get s=...

Answered by: Akshujain on: Oct 25th, 2009

d = 15 kms

x = speed in km/hr
y = time taken

d / x = y  - eq1
d / x + .5 = (4/5)*y - eq 2
d / x - .5 = 2.5 + y - eq 3
solving these three equation we get d = 15 x = 2 y = 7.5

2 answers


Totalitarian days

In the totalitarian days, the words have very much devalued. In the present day, they are becoming domestic that is the words will be much more devalued. In those days, the words will be very much affected in political area. But at present, the words came very cheap. We can say they come free at cost.Totalitarian...

Asked By: Interview Candidate | Asked On: Nov 20th, 2002

Answered by: Murali on: Feb 16th, 2012

True Cant say True

Answered by: Devender on: Oct 28th, 2011

True, True True

5 answers


Series: 2,7,24,77,...

Asked By: dipendu pal | Asked On: Apr 7th, 2006

Answered by: lakshmiram on: Feb 5th, 2012

2*3+1=7,7*3+3=24,24*3+5=77,77*3+7=238

Answered by: RAKESH SHARMA on: Jan 29th, 2012

step 1--> 3*1-1=2 step 2--> 3*2-2=7 step 3--> 3*3-3=24 step 4--> 3*4-4=77 step 5--> 3*5-5=238

24 answers


Int *a[5] refers toa. Array of pointersb. Pointer to an arrayc. Pointer to a pointerd. None of these

Asked By: Interview Candidate | Asked On: Jun 6th, 2005

Answered by: vinodjakoe on: Feb 1st, 2012

array of pointers

Answered by: rakesh sharma on: Jan 29th, 2012

(A) ARRAY OF POINTERS

13 answers


Find the output of the following programmain(){int x=5, *p;p=&x;printf("%d",++*p);}a.5b.6c.0d.None

B

Asked By: Interview Candidate | Asked On: Nov 18th, 2002

Answered by: rizwann on: Jan 28th, 2012

This ques tests your knowledge of operator precedence and associativity * and ++ operator have same precedence and their associativity is right to left. That is why first (*p) is evaluated which res...

Answered by: Meena Goel on: Sep 12th, 2007

The answer for this question is 6. in starting the value of x is 5 that will be incremented by pointer p.

2 answers


Read the function conv() given belowconv(int t){int u;u=5/9 * (t-32);return(u);                           ...

Asked By: Interview Candidate | Asked On: Jun 6th, 2005

Answered by: bhanupriya on: Jan 17th, 2012

Ans. is B. 0

{geshibot language="c"}conv(int t){ int u; u=5/9 * (t-32); return(u); } {/geshibot}

Answered by: rajesh on: Aug 5th, 2011

absolutely its 0... coz u is declared as int.. so u=0.5.. so it take u as 0.. and anything*0 becomes zero..

4 answers


Circular track

In a circular race track of length 100 m, three persons a, b and C start together. A and b start in the same direction at speeds of 10 m/s and 8 m/s respectively. While C runs in the opposite at 15 m/s. When will all the three meet for the first time on the after the start? With steps

Asked By: swatirose88 | Asked On: May 28th, 2008

Answered by: pramoth on: Dec 25th, 2011

The three will never meet at the same place after they start because two people are running in the same direction with different speeds. so C will meet either A or B. but not both.

Answered by: souravray_88 on: Feb 7th, 2010

In such type of questions get your answers from options itself.Take 1st option and calculate distance travelled by each person so it will be (4*10)=40m for A,(4*8)=32,(4*15)=60, so here distance trave...

2 answers


Solve min-max game

Alok and bhanu play the following min-max game. Given the expressionn = 9 + x + y - zwhere x, y and z are variables representing single digits (0 to 9), alok would like to maximize n while bhanu would like to minimize it. Towards this end, alok chooses a single digit number and bhanu substitutes this...

Asked By: AMARJUKUNTLA | Asked On: Nov 24th, 2010

Answered by: ganta.jyostna on: Dec 23rd, 2011

For these type of ques, remember dis thumb rule.. X*Y-Z=18 X+Y-Z=11 X-Y-Z=2 so N = 9 + X + Y - Z N= 9+11=20

Answered by: Avinash Chourasiya on: Nov 12th, 2011

It is question of Artificial Intelligence, and solved by various modular steps. But the simplest logic for answering these type of questions is If ((X) (operator)(expression)) then if(operator=="+")...

7 answers


The operator for exponentiation isa. **b. ^c. %d. Not available

Asked By: Interview Candidate | Asked On: Jun 6th, 2005

Answered by: PRATIK SINGH THAKUR on: Dec 5th, 2011

Answer is: b example:2^4/2*3 (where ^ is the exponential operator).

Answered by: saurabh on: Jul 31st, 2006

 the answer is D.

2 answers


Aptitude it giant programming

The it giant tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technologyfront, tirnop continues to lead the way in products and services in india. At tirnop, all programmers are equal in every respect. Theyreceive identical salaries ans also...

Asked By: sujoy biswas | Asked On: Jan 14th, 2011

Answered by: yo on: Nov 11th, 2011

why is it: M1*D1*W2=M2*D2*W1 ?? im curious about it.

Answered by: Anurag Kakaty on: Sep 25th, 2011

The formula for this question is M1*D1*W2=M2*D2*W1 So putting all these values we get the answer to be 12 minutes

3 answers


A person, who decided to go to weekend trip should not exceed 8 hours driving in a day.  average speed of forward journey is 40 m/h. Due to traffic in Sundays, the return journey average speed is...

120 miles

Asked By: Interview Candidate | Asked On: Jul 16th, 2005

Answered by: RAJU KUMAR on: Oct 23rd, 2011

b) let he can select a picnic spot =x m . . . x/40+x/30=8 x=137.1 m so ans is b.

Answered by: rajendraprasad349 on: Aug 27th, 2010

Let distance = 'd' Let us assume forward journey time is 't1' Return journey time is 't2' Given t1+t2=8 But time = distance / velocity t1 = d/40 t2 = d/30 Therefore t1+t2 = d/40 + d/30 =...

16 answers


1/3 of a number

1/3 of a number is 3 more than 1/6 of the same number. What is the number?

Asked By: Anu.K.J | Asked On: Dec 15th, 2010

Answered by: kirti on: Oct 20th, 2011

18

Answered by: shalini gupta on: Oct 7th, 2011

Let no is x so i/3 of a no is x/3 and now form the equation according the given language in question x/3=3+x/6 By solving this equation x=18 so no is 18

6 answers


Planet corba

On planet corba, a solar blast has melted the ice caps on its equator. 8 years after the ice melts, tiny plantoids called echina start growing on the rocks. Echina grows in the form of a circle and the relationship between the diameter of this circle and the age of echina is given by the formulad = 4...

Asked By: Anu.K.J | Asked On: Dec 15th, 2010

Answered by: Manu on: Oct 18th, 2011

8yrs

1 answer


5 digit number divisible by 4

How many 5 digit numbers can be formed using the digits 1, 2, 3, 4, 5 (but with repetition) that are divisible by 4?

Asked By: Anu.K.J | Asked On: Dec 15th, 2010

Answered by: GANESH on: Oct 13th, 2011

Divisibility rule of 4 is last two digits are divisible by 4 so in 5 digit no last two digit should always be 12,24,32,44,52; (any one of them may be) so for last two digits 5 ways are possible ; si...

Answered by: cooldeepa on: Jan 14th, 2011

It is the formula...5^n-1, where n is no of digits..

5^4-1=5^3=125

2 answers


Which of the following about automatic variables within a function is correct?A. Its type must be declared before using the variableb. They are localc. They are not initialized to zerod. They are GLobal

Asked By: Interview Candidate | Asked On: Jun 6th, 2005

Answered by: abhishek sharma on: Oct 12th, 2011

ANS is B they are local ......when the function execute every variable treats to be an auto variable ..register it's own memory and leave the memory when the execution completes or the function termin...

Answered by: sami_sharma on: Dec 16th, 2010

c. they are not initializd to zero

7 answers


Regarding the scope of the variables. Identify the incorrect statement:a. Automatic variables are automatically initialized to 0b. Static variables are automatically initialized to 0c. The address of a...

Asked By: Interview Candidate | Asked On: Jun 6th, 2005

Answered by: narender on: Oct 11th, 2011

a

Answered by: snehlata on: Sep 24th, 2007

A is incorrect statement because we have to initialize some value according to variable's data type in it otherwise it will accept any garbage value (value associated with last variable or last progra...

5 answers


2 wheelers and 4 wheelers

If there are 2 wheelers and 4 wheelers parked in a school located at the heart of the city, find the number of 4 wheelers parked there if there were 58 wheels are parked there.

Asked By: sujoy biswas | Asked On: Jan 14th, 2011

Answered by: porkodi on: Oct 8th, 2011

14 two wheeler ,one 2 wheeler

Answered by: shalini gupta on: Oct 7th, 2011

14 description:- here total wheels is 58 total 4 wheels=58/4=14 remainder is 2 which is must divide by 2 because 2 wheelers have necessary at most 2 wheels

3 answers


Consider the following program segmentint 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 suma. 0b. 6c. 3d. None of these

Asked By: Interview Candidate | Asked On: Jun 6th, 2005

Answered by: belinda on: Oct 6th, 2011

c answer is 3

Answered by: prititripathi on: Oct 2nd, 2011

n=2 to switch moves control to case 2: where value of sum will become 2+1=3 as there is no break so all statement below it will be executed so now case 3: will be executed n sum will hold value 3*2=...

12 answers


The following entries appear in the working-storage section: 01 date-today. 05 yy pic xx value "90". 05 mm pic xx value "12". 05 dd pic xx value :31". 01 date-edit pic xx/xx/xx....

Asked By: Interview Candidate | Asked On: Aug 20th, 2002

Answered by: Saravanan on: Sep 28th, 2011

(a) 901231

Answered by: Sumit Kumar on: Sep 21st, 2011

a)901231 because datatypes we have is in form refering pics clause are x for alphanumeric,9 for integer and a for alphabet.

3 answers


If a is travelling at 72 km per hour on a highway. B is travelling at a speed of 25 meters per second on a highway. What is the difference in their speeds in m/sec.

Star Read Best Answer

Asked By: purnima | Asked On: Oct 9th, 2007

Answered by: shikha on: Sep 26th, 2011

1 m/s

Answered by: coolabhi on: Sep 6th, 2010

5m/sec...

22 answers


First | Prev | | Next | Last Page

 

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.