GeekInterview.com

TCS Interview Questions

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

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 is 3212 but how explain2.194 base...

Asked By: DeviRavikumar | Asked On: Jun 7th, 2006

Answered by: brahmam on: Oct 21st, 2014

3012

Answered by: bansal_yogesh_it_1985 on: Jun 20th, 2010

deviravikumar,

If X(1 2) =  3004 then how can X(1 7) = 3042 
I think X(1 7) = 3024
and if
X(2 1) 3046 then how can X(2 7) = 3052
I think it should be X(2 7) = 3070

11 answers


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

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

Answered by: parthiban on: Oct 13th, 2014

A

Answered by: uma on: Oct 6th, 2014

d

39 answers


Dart problem

A circular dart board of radius 1 foot is at a distance of 20 feet from you. You throw a dart at it and it hits the dartboard at some point x in the circle. What is the probability that x is closer to the center of the circle than the periphery?

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

Answered by: supriya on: Oct 13th, 2014

0.25

Answered by: karnakar on: Dec 27th, 2013

1/4

2 answers


Consider the following piece of code 01 group-item 05 amount-1 pic 99v9 usage comp value 50 05 amount-2 pic 9(4)v99 usage comp move zero to group-item add 50 to amount-1 what will be the content...

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

Answered by: mohit on: Oct 9th, 2014

Answer is (a) because already value will be there like 50.0 (99v9) and again if we are moving the value to amount-1 it will become 50.0+50.0 = 100. and comp field can contain decimal value.

Answered by: Rishu on: Jul 28th, 2014

Answer is 50. COMP can have decimal numbers as well. Check IBM manuals

7 answers


Which of the following is power of 3 a) 2345 b) 9875 c) 6504 d) 9833

Tell me the method to solve this....... Plz

Asked By: krithika | Asked On: Oct 6th, 2006

Answered by: Sammy on: Sep 13th, 2014

none of them are the answer the last option though looking promising is actually not a multiple of 3

Answered by: minni kumari on: Sep 11th, 2014

D)9833. we know that 3^1=3,3^2=9,3^3=27,3^4=81,3^5=243 and so on... here see last digit 1,3,9,7 only it again repeated.. and in option there is only one that has last digit 3

18 answers


Three companies are working independently and receiving the savings 20%, 30%, 40%. If the companies work combinely, what will be their net savings? If anybody know the ans pls give the ans with explanation

Asked By: lakshmi | Asked On: Oct 18th, 2006

Answered by: RAVISH RANJAN on: Sep 14th, 2014

let total income =100. so saving of three companies are 20%*100+30%*100+40%*100=90. so % saving =(90/300)*100

Answered by: lakhan.mahajan on: Nov 17th, 2010

Ans Approx 30

7 answers


Complete the series. 4, -5, 11, -14, 22, ---

Asked By: PRAVEEN RAAWAL | Asked On: Aug 17th, 2007

Answered by: kiransai on: Sep 12th, 2014

Alternate series of odd numbers with change of signs 4-11=7==-7 -5+14=9 11-22=-11==11 -14-13===-27

Answered by: Likhitha on: Jul 27th, 2014

4+(-5)=-1 11+(-14)=-3 so it iis having a sequence of odd numbers.In the next sequence we should have"-5" because after the sequence of odd -1 & -3 we have -5. to get it 22+x=-5 x=-27 simple!!!!!

6 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

Star Read Best Answer

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

Answered by: RAHUL UBHALE on: Aug 26th, 2014

A can copy 50 pages in 10 hrs A & B together can copy 70 pages in 10 hrs As time is same only B can copy (A&B)-(A)=70-50=20 pages in 10 hrs then B can copy 26 pages in=26pages*10hrs/20pages=13hrs

Answered by: on: Oct 13th, 2012

13

19 answers


A fisherman's day is rated as good if he catches 9 fishes ,fair if 7 fishes and bad if 5 fishes .He catches 53 fishes in a week n had all good,faiur n bad days in the week.So how many good ,fair n bad...

Asked By: Mithila | Asked On: Nov 21st, 2006

Answered by: RAHUL UBHALE on: Aug 26th, 2014

3*9=27 3*7=21 1*5=5 21+27+5=53 so good days=3 fair days=3 bad days=1

Answered by: rajkumar on: Mar 4th, 2007

----no need of third eq ----hit and trial not giving proper ansx+y+z=7--------- eq19*x+7*y+5*z=53 -------eq2multiply eq 1 by 9,9*x+9*y+9*z=35 -------------eq3from eq2 and eq32*y+4*z=10-----eq4since al...

9 answers


A car has run 10000 miles using 5 tyres interchangeably have an equal wornout by all tyres how many miles each tyre should have run??

Ans.4000 miles per tyre...But how?

Asked By: Mrinal | Asked On: Apr 22nd, 2007

Answered by: Aman on: Aug 2nd, 2014

A simple explanation can be-- let tyre numbers be 1,2,3,4,5 1) use tyre 1234 for 0-2000 km 2) use tyre 1235 for 2000-4000 km 3) use tyre 1254 for 4000-6000 km 4) use tyre 1534 for 6000-8000 km 5) use ...

Answered by: SpandanaMohan on: May 29th, 2008

Since 5 tyres used equally to travel 10000miles, each tyre is replaced after a minimum distance of 10000/5 which is 2000 miles....In the 10000 miles journey, each tyre is used 4 times, hence the total...

5 answers


With 4/5 full tank vehicle travels 12 miles, with 1/3 full tank how much distance travels

5 miles

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

Answered by: ranjeet kumar on: Jul 23rd, 2014

12*4*3/5=28.8 mile...bqj less mass more it travels...

Answered by: on: Sep 25th, 2013

Post Your Answer...5 miles

8 answers


A,b and C are 8 bit no's.They are as follows:a=11000101b=00110011c=00111010find ((a-c)ub).

The options are1)55 2)64 3)32 4)53answer=55

Asked By: sangu pawar | Asked On: Jul 30th, 2007

Answered by: Rupesh kumar on: Jul 19th, 2014

the answer is a=11000101 c=00111010 twos complement of c=11000110 a+(-c)=10001011 (a-c)Ub=10001011 or 00110011 the answer is 10111011=187

1 answer


Consider two data items 77 w-a pic 9(3)v99 value 23.75 77 w-b pic zz9v99 value 123.45 after the statement move w-a to w-b what will be w-b value? A.123.75 b.B23.75 (where b indicates space) c.023.75...

Star Read Best Answer

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

Answered by: Lalit Pant on: Jul 10th, 2014

option b

Answered by: Rishi Sharma on: Jun 11th, 2014

Sorry Shashi and Soumya but this will work and answer would be B

11 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?

Star Read Best Answer

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

Answered by: on: May 21st, 2014

LCM=36 is correct; if x=4 then y=9 HCF=4 with x=4 means that y is a multiple of 4; but in that case x and y are also multiple of 2, so HCF=2. The second proposal is not correct.

Answered by: praveen on: Dec 23rd, 2013

given LCM=36 and HCF=4 and also X=4 LCM * HCF = PRODUCT OF TWO NUMBERS , SO x * y = 36 * 4 4 * y = 36 * 4 y = 36

3 answers


What is the difference between methods and functions?

Asked By: ramanareddymca | Asked On: Jul 8th, 2006

Answered by: jeba christopher on: Sep 30th, 2013

in c language we indicate the main function outside the class eg. class cse {geshibot language="java"}{ ..............//stmt; }; void main() { cse c; c.functionname(); } method : In java we i...

Answered by: MEGHA GUPTA on: Sep 11th, 2011

Methods are functions only which have defined classes they are in JAVA and C#.. functions are in C

16 answers


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: sourav punoriyar on: Sep 5th, 2013

4 bytes in gcc compiler

Answered by: reetu on: Sep 30th, 2012

It allocate 2bytes in memory

27 answers


C1 c2 c3 are three conditions whose truth values are as folloes. C1-true c2-false c3-true a,b,c are defined as given below a:c1 and(not c2) or c3 b.(not c1) or (not c2 and not c3) c.(c1 or c2)and...

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

Answered by: Chinnu Ann Jose on: Aug 21st, 2013

B

Answered by: charanjeet kaur on: Jun 9th, 2013

A.C.D

4 answers


What is y value of the code if input x=10y=5;if (x==10)else if(x==9)else y=8;a.9b.8c.6d.7

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

Answered by: Chinnu Ann Jose on: Aug 21st, 2013

5

Answered by: akshit on: Jul 30th, 2013

nothing has been returned by the loop that is no expression is governing the iterative statement so wrong question {geshibot language="c"}What is y value of the code if input x=10 y=5; if (x==10) els...

4 answers


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: charanjeet kaur on: Jun 9th, 2013

D...any where in the program.

Answered by: neha singh on: Nov 20th, 2012

D. Any where in the program.

10 answers


Running around circular stadium

A, b and C start at the same direction to run around a circular stadium. A completes a round in 252 sec, b in 308 sec and C in 198 sec, all starting at the same point. After what time will they meet again at the starting point?A)26min 18sec b)42min 36sec c)45min d)46min 12 sec

Asked By: chandradeepika | Asked On: Jun 10th, 2008

Answered by: rajalakshmi on: Feb 21st, 2013

46.min 12.sec

Answered by: Cbse PSA examination Editor on: Feb 14th, 2013

LCM of time taken by p,q and r divided by 60

5 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

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.