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 24105Virtual memory size depends on [a] address lines [b] data bus [c] disc space [d] a & c [e] none
15 35791What 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 22046What 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 27278Main 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 34942Which 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 21038Write 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 12637Which 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 16121Which 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 26285what 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 21735how 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 21006read the folllowing code
# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(x
Post New TCS Interview Questions
Hi this is bhargava here,I have 3months experience in marketing,& i have done SAP-SD.I need 1 offer in IT sector,any one help me plz.If u want 2 suggest me then mail me 958639@gmail.com
Explain the function of dd disp parameter?
What are secondary keys?
How can you access a session in flask?
what is compression ratio? why its decreased when gear shifted ?
33kv Rated output avilable in market (any where in india)
What is the cartesian product of the table?
What is meant by duty-cycle?
what about the power of wattmeter at starting and loding?
What do you mean by authentication?
Does mongodb database have tables for storing records?
What is the allowable -ve carnkacse pressure (vacuum) in the gas engine of 1.5 MW, what are the reasons and how it can effect the operation of the engine?
What are html etags?
EOQ formula ? and tell me about that???
Can you install wordpress on your computer?