GeekInterview.com

TCS Interview Questions

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

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

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

Answered by: Anitta Augustine on: May 18th, 2013

Semicolon

Answered by: BHUVANA on: Mar 3rd, 2013

A. Semicolon

31 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


My father has no brothers. He has three sisters who have two childs each.

My grandfather has two sons (true/false/can't say)three of my aunts have two sons (true/false/can't say)my father is only child to his father (true/false/can't say)i have six cousins from my mother side (true/false/can't say)i have one uncle (true/false/can't say)

Star Read Best Answer

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

Answered by: sagardesu on: Jan 16th, 2010

1. True
2. Can't say
3. False
4. Can't say
5. True

Answered by: dixis on: Aug 19th, 2009

My grandfather has two sons (True/False/Can't Say) Ans: False Three of my aunts have two sons (True/False/Can't Say) Ans: FALSE, Because each aunt have 2 sons. So the count will be 6. My father...

29 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: reetu on: Sep 30th, 2012

It allocate 2bytes in memory

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

2 byte for tc & 4 byte for gcc compiler

26 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


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


An ink bug starts jumping 1 meter to each direction north, south, east and west respectively. It marks a point in the new locations. It comes back to its original point after jumping in all directions....

Asked By: Interview Candidate | Asked On: Sep 5th, 2005

Answered by: harini_src on: Jan 13th, 2011

It's 2.or 4.

First north and then south,which is the  origin.
second east and then west,which is the origin again!

If this process repeats then two more
SO the answer is either 2 or 4.

Answered by: johnumman on: Nov 10th, 2010

Ans: is 13                               &nbs...

22 answers


The statement terminator in C language is?A.Semicolon b.Colonc.Periodd.Exclamation mark

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

Answered by: prititripathi on: Dec 17th, 2010

statement terminate in c by semi -colon

Answered by: sami_sharma on: Dec 16th, 2010

semicolon

22 answers


Identify the incorrect one1.If(c=1)2.If(c!=3)3.If(a<b)then4.If(c==1)a. 1 onlyb. 1&3c. 3 onlyd. All of the above

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

Answered by: namu on: Sep 15th, 2011

Ans. is option 'A'- 1 only

Answered by: SURLA GOVINDU on: Sep 14th, 2011

Ans is 1 only because in if condition there is no use of assignment operator

21 answers


Tell one difference which is in C and not in c++. can we pass arguments in main() difference between static and constant variable.

Star Read Best Answer

Asked By: harinisathiyamurthy | Asked On: Oct 1st, 2007

Answered by: jbode on: Aug 22nd, 2011

One thing allowed by C that is *not* allowed by C++ is for main() to be called from within the program itself. IOW, in C, it's possible for main() to be recursive. The main() function in both C ...

Answered by: Akhielsh Kumar on: Aug 22nd, 2011

In c declaration must be just after opening braces { of method. The is flexibility in c++.

21 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: on: Oct 13th, 2012

13

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

18 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

C

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

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

(d) Anywhere in the program

Answered by: HEMA on: Sep 3rd, 2011

D. Any where in the program. - During compilation it goes directly go to main function.

17 answers


Tcs aptitude questions

1) in the class of 40 students, 30 speak hindi and 20 speak english. What is the lowest possible number of students who speak both the languages?(a) 5 (b) 20 (c) 15 (d) 10 (e) 302) 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...

Star Read Best Answer

Asked By: neeti tripathi | Asked On: Dec 14th, 2009

Answered by: megsn on: Jan 12th, 2011

b,5.4%,5 days,12 days,1.2hrs,12:19

Answered by: prititripathi on: Dec 20th, 2010

20 men completes worh in 1/15 days

1 men in =1/15*20
25 men in
=25/20*15
25 men completes in 12 days

17 answers


An amount doubles itself in 3 years.

An amount doubles itself in 3 years. When this amount can become 8 times of itself?

Star Read Best Answer

Asked By: titli_juit | Asked On: Feb 25th, 2008

Answered by: prititripathi on: Dec 10th, 2010

let amount b x
so
 x*r*3/100=2x (given double itself in 3 yr)
r=200/3

x*200*t/3*100=8x (asked in how many yr it will b 8 time of itself where r=200/3)

=12 yr

Answered by: coolabhi on: Sep 6th, 2010

9 year

17 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


What is true about the followingc functionsa.Need not return any valueb.Should always return an integerc.Should always return a floatd.Should always return more than one value.

D

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

Answered by: prititripathi on: Dec 17th, 2010

ans is a fun. need not to return any value

Answered by: sami_sharma on: Dec 16th, 2010

May be it does not return any value. That means return type may be void.

16 answers


What is the value of y in the following code?X=7;y=0;if(x=6)y=7;else y=1;a.7b.0c.1d.6

C

Asked By: Interview Candidate | Asked On: Sep 2nd, 2005

Answered by: VANDANA TYAGI on: Sep 11th, 2011

(c) 1

Answered by: abc on: Sep 4th, 2011

ans: y=7 since in if clause '=' is used and not'==' , it's a successful assignment operation. it returns y=7 after comin across a true value and hence y is 7

15 answers


What is the difference between methods and functions?

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

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

Answered by: yatin on: Sep 6th, 2011

methods is a calling procedure function is a small program

15 answers


Gavaskar average in first 50 innings was 50. After the 51st innings his average was 51 how many runs he made in the 51st innings

Asked By: Interview Candidate | Asked On: Sep 5th, 2005

Answered by: prititripathi on: Dec 18th, 2010

he made 101 run in 51 inning

use average finding concept to obtain it

Answered by: sami_sharma on: Dec 17th, 2010

ans:101

15 answers


What is the number of zeros at the end of the product of the numbers from 1 to 100

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

Answered by: bangers on: Nov 17th, 2010

Ans: 22 (and though 75 is having 2 5's as multiples 74*75 will result in only one zero. Unlike 24*25

Answered by: Prashant202185 on: Sep 24th, 2008

0`s are obtained when there is a multiple of 5 and 2so in 100 non of zeros == 100/5+100/5^2                                      =  24as if we divide by 2 and it...

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