MAP

GTU MCA MATERIAL | FOP IMPORTANT QUESTIONS | FOP ASSIGNMENT.

1.What is the purpose of a header file? Is the use of a header file absolutely necessary?
2. Why and when do we use #include directive?
3. Why and when do we use #define directive?
4. Why do we need to use comment in program?
5. Describe the basic data types in C.
6. What is ASCII? How common is its use?
7. Describe the different types of operators.
8. What is the difference between prefix and postfix of – and ++ operators?
9. Describe the use of the conditional operator to form a conditional expression.
10. What are formatted input and output statements in C? Give suitable example.  
11. Find the errors, if any
/* A simple program
int main()
{
/* Does nothing*/
}
12. Find the errors, if any
#include(stdio.h)
void main(void)
{
printf(“Hello C”);
}
13.Find the errors, if any
Include <math.h>
main{}
(
FLOAT  X;
X = 2.5 ;
Y = exp(x) ;
Print(x,y);
)
14. Find the output of the program :
#include<stdio.h>
void main()
{
int x=3,y=5,z=7,w;
w=x%y + y%x - z%x - x %z;
printf(“%d\n”,w);
w=x/z + y/z + (x+y)/z;
printf(“%d”,w);
}
15.Find the output of the program :
#include<stdio.h>
void main()
{
int x=3,y=5,z=7,w=9;
w += x + y -( z -= w );
printf(“w=% d, z=%d\n”,w,z);
w += x -= y %= z;
printf(“w=%d, y=%d, z=%d”,w,y,z);
}
16. Find the output of the program :
#include<stdio.h>
void main()
{
int x=3,y=5;
x = y++ + x++;
y = ++y + ++x;
printf(“x=% d, y=%d”,x,y);
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More