Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

TCS Interview Questions
Questions Answers Views Company eMail

C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

6 21947

BPO means?

21 101512

Virtual memory size depends on [a] address lines [b] data bus [c] disc space [d] a & c [e] none

15 30971

The C language terminator is a.semicolon b.colon c.period d.exclamation mark

6 13019

What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.

5 19796

What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.

11 23332

Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program

19 29579

Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global.

6 18598

Write one statement equalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));

6 10644

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments

6 13289

What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;

12 24798

Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }

7 23426

what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}

9 18406

how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y

4 19516

read the folllowing code # define MAX 100 # define MIN 100 .... .... if(x>MAX) x=1; else if(x 4 18498


Post New TCS Interview Questions


TCS Interview Questions


Un-Answered Questions

How much more efficient are new windows?

468


What stored procedure can you use to display the current processes?

501


Explain how can viscosity affect the design of a mixer?

611


If class D is derived from a base class B

301


How the setting of the vector surge relay shall be calculated when the relay is to be used for Grid islanding application?

1800






What is @injectable()?

457


What does the string method compareto () do?

540


IIS Performance tuning

2454


Explain the difference between function and stored procedure?

520


Which FM do you use to find out who is reporting to whom

5183


How can the output be redirected to some other action process in place showing it in the screen?

577


What is the result of pow(x,y)?

460


I'm using Delphi 4/5 and have am trying to fill a RichEdit control with both European characters and Thai characters - while I can change character colours the font stays with what was selected for the control:- reLangB.SelAttributes.Color :=dCol; reLangB.SelAttributes.Name :=FontName[dLang]; reLangB.SelAttributes.Charset :=FontChar[dLang]; reLangB.SelAttributes.Style :=[]; reLangB.Lines.Add(dText); The FontName and FontChar arrays contain the font info, and using a similar method for Captions and EditBoexes works! Anybody any ideas? Thanx in advance!

2267


What are the communication channels available for a web service?

516


How do you control image repetition using css?

287