Q281
Open questionSelect 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
15/15
Page
Pick an option on a question to see the right answer and solution.
Q281
Open questionSelect an option to see the answer and solution.
Q282
Open questionSelect an option to see the answer and solution.
Q283
Open questionSelect an option to see the answer and solution.
Q284
Open questionSelect an option to see the answer and solution.
Q285
Open question#include <stdio.h>
int main()
{
char buf[12];
stderr = stdin;
fscanf(stderr, "%s", buf);
printf("%s\n", buf);
}Select an option to see the answer and solution.
Q286
Open questionSelect an option to see the answer and solution.
Q287
Open questionSelect an option to see the answer and solution.
Q288
Open questionscanf(“%d / %d”, &n1,&n2);Select an option to see the answer and solution.
Q289
Open questionSelect an option to see the answer and solution.
Q290
Open questionSelect an option to see the answer and solution.
Q291
Open question#include <stdio.h>
int main()
{
srand(time(NULL));
printf("%d\n", rand());
return 0;
}Select an option to see the answer and solution.
Q292
Open question#include <stdio.h>
#include <string.h>
int main()
{
char line[3];
FILE *fp;
fp = fopen("newfile.txt", "r");
while (fgets(line, 3, fp))
fputs(line, stdout);
return 0;
}Select an option to see the answer and solution.
Q293
Open questionchar str[] = "Hello Nancy“;
printf(“\n %.7s”, str) ;Select an option to see the answer and solution.
Q294
Open question#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.
Q295
Open questionSelect an option to see the answer and solution.
Q296
Open questionSelect an option to see the answer and solution.