#include <stdio.h>
int main()
{
char i = '9';
if (isdigit(i))
printf("digit\n");
else
printf("not digit\n");
return 0;
}Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
296
Questions
5/15
Page
Pick an option on a question to see the right answer and solution.
#include <stdio.h>
int main()
{
char i = '9';
if (isdigit(i))
printf("digit\n");
else
printf("not digit\n");
return 0;
}Select an option to see the answer and solution.
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d", 45);
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
#include <stdio.h>
#include <math.h>
int main()
{
int i = 10;
printf("%f\n", log10(i));
return 0;
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
char or EOF.isalpha(c) returnsSelect an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
fp = fopen("Random.txt", "a");Select an option to see the answer and solution.
Select an option to see the answer and solution.
printf(“\n Output: %5d \t %x \t %#x”, 234,234,234);Select an option to see the answer and solution.
Select an option to see the answer and solution.
#include <stdio.h>
#include <stdlib.h>
int main()
{
srand(9000);
printf("%d\n", rand());
return 0;
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
char t=’N’;
printf(“\n %c \n %3c \n %5c”,t,t,t);Options are not available for this question.
Select an option to see the answer and solution.
#include <stdio.h>
int main(int argc, char** argv)
{
char *s = "myworld";
int i = 3;
printf("%10.*s", i, s);
}Select an option to see the answer and solution.
Q100
Open question#include <stdio.h>
int main()
{
FILE *fp;
fp = fopen("newfile", "w");
printf("%d\n", ferror(fp));
return 0;
}Select an option to see the answer and solution.