C Programming Test Online (By Connect Sastra Team )

Which is a incorrect declaration of variable ??


What will be the output of the following arithmetic expression ??

5+3*2%10-8*6


What will be the output of the following statement ?

int a=10; printf("%d &i",a,10);


What will be the output of the following statement ?

printf("%X%x%ci%x",11,10,'s',12);


What will be the output of the following statements ?

int a = 4, b = 7,c; c = a = = b; printf("%i",c);


What will be the output of the following statement ?

printf( 3 + "anandavihar");


10. What will be the output of the following program ?

#include

void main()

{ int a = 2;

switch(a)

{ case 1:

printf("Connect Sastra "); break;

case 2:

continue;

case 3:

printf("Rocks");

}

}


long factorial (long x)

{

????

return x * factorial(x - 1);

}

With what do you replace the ???? to make the function shown above return the correct answer?


The keyword used to transfer control from a function back to the calling function is


How many times the program will print "IndiaBIX" ?

#include<stdio.h>

int main()

{

printf("IndiaBIX");

main();

return 0;

}


















































Description:

This is conducting by Connect Sastra Team @sastra....C online Programming Test..Just We are Testing your mind...............................................Please join with us...Connect Sastra - a Social Network for SASTRA.. Organising by Aslam Jainul , Rjr Prabhu

Discussion

Bhaskar Bachi

3rd answer is 10

1513 days 14 hours 53 minutes ago

Aslam Jainul
Expert In C , C++ and Java
User
3 Followers
Tests: 4

Your Facebook Friends on WizIQ

More Tests By Author

C C++ Quiz ( By Aslam Jainul )
18 Questions | 244 Attempts

Quiz about Computer.. ( By Connect Sastra )
10 Questions | 216 Attempts

Simple C,C++ Quiz (By Connect Sastra )
10 Questions | 2384 Attempts