ExamCompetition Forum Question Papers Ask A Question Mock Test Learn & Earn Sign Up Login Menu

Computer science Practice Questions & Answers

0 vote

In which stage the following code#include<stdio.h>gets replaced by the contents of the file stdio.h

Asked on by Guest | Votes 0

In which stage the following code#include<stdio.h>gets replaced by the contents of the file stdio.h

A).  During Preprocessing

B).  During Execution

C).  During linking

D).  During Editing

E).  None of these

0 vote

What will be the output of the following program?#include<stdio.h>#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));}

Asked on by Guest | Votes 0

What will be the output of the following program?#include<stdio.h>#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));}

A).  15

B).  12

C).  10

D).  11

E).  None of these

0 vote

Determine output:#include<stdio.h>#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());}

Asked on by Guest | Votes 0

Determine output:#include<stdio.h>#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());}

A).  0

B).  1

C).  100

D).  Error

0 vote

Choose the correct statement.I.   The scope of a macro definition need not be the entire program.II.  The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV.  A macro definition may go beyond a line.

Asked on by Guest | Votes 0

Choose the correct statement.I.   The scope of a macro definition need not be the entire program.II.  The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV.  A macro definition may go beyond a line.

A).  I and II

B).  II and III

C).  I, II and III

D).  II, III and IV

E).  I, II, III and IV

0 vote

An attribute's value is always literal.

Asked on by Guest | Votes 0

An attribute's value is always literal.

A).  True

B).  False