GeekInterview.com

TCS Interview Questions

 
Showing Questions 1 - 20 of 396 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

If we declare a pointer like char *p;how much memory is allocated for pointer variable 'p'.

Asked By: pavankishore | Asked On: Nov 29th, 2006

Answered by: rasmita sahoo on: May 17th, 2012

2 byte for tc & 4 byte for gcc compiler

Answered by: jbode on: Jan 18th, 2012

I know Ive answered this already, but I thought Id include a handy macro definition for getting the size of any type (pointer or otherwise) on your platform (see code insert). FWIW, here are the resu...

25 answers


Lcm

Lcm of x and y is 36 and hcf of x and y is 4. If x = 4 then which of the following is definitely not true?

Asked By: shrimaha | Asked On: May 13th, 2008

Answered by: Mark Haynes on: May 1st, 2012

If x = 4 then y = 36? LCM of 4 and 36 is 36 HCF of 4 and 36 is 4

1 answer


Main must be written asa. The first function in the programb. Second function in the programc. Last function in the programd. Any where in the program

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

Answered by: Karthkeyan on: Apr 20th, 2012

Any where in the program

Answered by: vishwanathpillay on: Dec 8th, 2009

Main is the Only function that will execute at the start, so it doesnt matter where ever the main can be placed. But there can't be any other function inside main function...

8 answers


Tcs interview question

(1- 1/6) (1-1/7).... (1- (1/ (n+4))) (1-(1/ (n+5))) = ?

Asked By: Interview Candidate | Asked On: Aug 25th, 2005

Answered by: Sapna on: Apr 16th, 2012

The answer is zero because expression is (1-1/6)(1-1/7)........ 1-1=0 and 1-1/6=0 so (1-1/6)*(1-1/7).....=0

Answered by: mail2nisha88 on: Feb 7th, 2011

5/n-1

29 answers


What's the answer for the question:a, b and C are 8 bit no's. They are as follows:a -> 1 1 0 0 0 1 0 1b -> 0 0 1 1 0 0 1 1c -> 0 0 1 1 1 0 1 0 ( - =minus, u=union)find ((a - c) u b) =?

Star Read Best Answer

Asked By: haja | Asked On: Oct 9th, 2006

Answered by: GAIRY HARRY on: Mar 23rd, 2012

When comparing 5400 series logic to 7400 series logic.

Answered by: don_bhai on: Nov 13th, 2009

2's complement of C = 11000101+1=11000110 = D

Now, A-C = A+D = 10001011 = E
Now, E U B = 10111011

So, ((A-C) U B) = 10111011 (Ans.)

7 answers


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


If a can copy 50 pages in 10 hours and a and b together can copy 70 pages in 10 hours, how much time does b takes to copy 26 pages?If anyone know the ans for this Apps question pls tell me

Asked By: Raji | Asked On: Oct 16th, 2006

Answered by: vivek on: Mar 3rd, 2012

in 10 hrs b write= 70-50=20 20 pages-in------10 hrs therefore1 page in 1/2 hrs therefore 6pages in 3 hrs therefore 20+6 in 10+3 hrs so the ans. is 23 hrs

Answered by: chiranjit12345 on: Feb 9th, 2012

13

17 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


The C language terminator isa. Semicolonb. Colonc. Periodd. Exclamation mark

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

Answered by: vinodjakoe on: Feb 1st, 2012

a.semicolon

Answered by: rakesh9770756364 on: Jan 26th, 2012

(;) SEMICOLON

26 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


Circular handshake

36 people {a1, a2, ..., a36} meet and shake hands in a circular fashion. In other words, there are toTALLY 36 handshakes involving the pairs, {a1, a2}, {a2, a3}, ..., {a35, a36}, {a36, a1}. Find the size of the smallest set of people such that the rest have shaken hands with at least one person in the...

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

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

For at least one person & for exactly one person =36/3 For at least two person & for exactly two person =36/2 so ans is 36/3= 12 if question is asked lyk no "cycle" then n-1. i.e.36-1

Answered by: vinay on: Jul 15th, 2011

the answer could be {a2,a5,a8,a11,a14,a17,a20,a23,a26,a29,a32,a35}

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


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.

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".