Test Your C Skills

10 Questions  I  By Pranay573
Welcome to test your c skills online quiz. This consists of 10 questions about  c-language you have to answer in 7min. <<<<<<<<<<<<<<<<<< ;<<<<<<<<<<<<<<<<  ALL THE BEST>>>>>>>>>>>>>>>>> ;>>>>>>>>>>>>>>>>>&g t;>>>>>>>>>>.?

  
Changes are done, please start the quiz.


Question Excerpt

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
1.  #include<stdio.h> void main() { struct emp { char name[20]; int age; float sal; }; struct emp e={"Tiger"}; printf("\n %d %f",e.age,e.sal); }  
A.
B.
C.
D.
2.  Which of the following set of statements is correct?
A.
B.
C.
3.  By default a real number is treated as
A.
B.
C.
D.
4.  How many times the following program will print "Jamboree"? #include<stdio.h> void main() { printf("\n Jamboree"); main(); }
A.
B.
C.
D.
5.  Is it true that too many recursive calls may result into stact overflow?
A.
B.
6.  Predict the output of the following program #include<stdio.h> #define SQR(x) (x*x) void main() { int a,b=3; a=SQR(b+2); printf("\n %d",a); }
A.
B.
C.
D.
7.  Predict the output of the following program #include<stdio.h> void main() { static char *s[ ]={"black","white","pink","violet"}; char **ptr[ ]={s+3,s+2,s+1,s}, ***p; p=ptr; ++p; printf("%s", **p+1); }  
A.
B.
C.
D.
8.  Predict the output of the following program #include<stdio.h> #include<string.h> void main() { char str[ ]="sales\0\man\0"; printf("%s",str); }  
A.
B.
C.
D.
9.  The library function used to reverse the string is
A.
B.
C.
D.
10.  Malloc( ) allocates memory from the heap and not from the stack
A.
B.
Back to top


to post comments.

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz