Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 C Interview Questions
Questions Answers Views Company eMail

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));

8445

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

10753

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

19553

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){ .... }

18803

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);}

13452

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

15984

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

a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21

8996

given the piece of code int a; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a c.pa d.*(*pa + 5)

18845

consider the following structure: struct num nam{ int no; char name; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1,no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

7910

identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

11028

regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression

6430

the operator for exponencation is a.** b.^ c.% d.not available

6037

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

8973

what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year

8115

Un-Answered Questions

I need the recommended size for a 3 phase transformer at 13.8 KV Primary and connected loads of 3000 kVA at 4200 volts and 2375 kVA @ 480 volts AC.

1063

Explain the project tree in test director?

203

What are the different exceptions you got when working with webdriver?

165

What is the bootstrap panel?

1

What are AWK Numerical Functions?

508

How do I multiply in word?

121

Where in memory are my variables stored?

222

Q1. Why did you enter the field of chemistry? Q2. What has motivated you to take chemistry as your professional subject and have you motivated anyone towards your field?

1437

What is meant by linq?

28

if the number of poles generated in stator and rotor side of an induction motor are different then what will happen and why?

931

Describe ldap and also define its uses?

197

What are the features of blackberry storm2?

174

What is the automation anywhere metabot, taskbot, and workflow file extension?

1

How do I sort a hashmap key?

162

Explain about RMI Architecture?

241