# 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

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

Semicolon

Answered by: BHUVANA on: Mar 3rd, 2013

A. Semicolon

Tcs interview question

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

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

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)

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

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

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

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

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

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.

Answered by: shikha on: Sep 26th, 2011

1 m/s

Answered by: coolabhi on: Sep 6th, 2010

5m/sec...

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

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

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

Answered by: prititripathi on: Dec 17th, 2010

statement terminate in c by semi -colon

Answered by: sami_sharma on: Dec 16th, 2010

semicolon

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

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

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

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

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

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

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

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.

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

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

An amount doubles itself in 3 years.

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

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

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

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.

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

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

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.

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

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

What is the difference between methods and functions?

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

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

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

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

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

First | Prev | | Next | Last Page