Advertisement
Advertisement
12th Grade C Quizzes, Questions & Answers
Recent C Quizzes
Questions: 50 | Attempts: 1079 | Last updated: Feb 6, 2025
-
Sample QuestionWhat will be the output of the program? #include #include int main() { float n=1.54; printf("%f, %f\n", ceil(n), floor(n)); return 0; }
Questions: 50 | Attempts: 1595 | Last updated: Mar 21, 2025
-
Sample QuestionPoint out the correct statements are correct about the program below? #include int main() { char ch; while(x=0;x<=255;x++) printf("ASCII value of %d character %c\n", x, x); return 0; }
Questions: 30 | Attempts: 154 | Last updated: Mar 17, 2025
-
Sample QuestionWhat is the correct value to return to the operating system upon successful completion of a program in c?
Questions: 20 | Attempts: 724 | Last updated: Mar 22, 2025
-
Sample QuestionWhat is the output of the below code snippet?#include<stdio.h> main(){ int a = 5, b = 3, c = 4; printf("a = %d, b = %d\n", a, b, c);}
Questions: 30 | Attempts: 176 | Last updated: Mar 21, 2025
-
Sample QuestionWhat will be the Output of the following program ? void main(){ const char var='A'; ++var; printf("%c",var);}
Questions: 25 | Attempts: 1060 | Last updated: Feb 17, 2025
-
Sample QuestionWhich of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Questions: 9 | Attempts: 175 | Last updated: Oct 1, 2025
-
Sample QuestionPredict the output of following program. Assume that the numbers are stored in 2's complement form. #include<stdio.h> int main() { unsigned int x = -1; int y = ~0; if(x == y) printf("same"); else printf("not same"); return 0; }
Questions: 10 | Attempts: 57 | Last updated: May 22, 2025
-
Sample QuestionChar str[10] = "A quick brown fox jumped over a lazy dog";puts(str);what will print?
Questions: 10 | Attempts: 292 | Last updated: Mar 22, 2025
-
Sample QuestionPointer is a special kind of a variable which is used to store _______ of a variable
Questions: 10 | Attempts: 2053 | Last updated: Sep 1, 2025
-
Sample QuestionPrint the output of this program void main() { int a, b, c, abc = 0; a = b = c = 40; if (c) { int abc; abc = a*b+c; } printf ("c = %d, abc = %d ", c, abc); }
Advertisement