C Language – MCQ Question Paper (30 Questions) Online Test Series 5247 March 18, 2026 0% 40 C Language – MCQ Question Paper (30 Questions) Online Test Series 5247C Language – MCQ Question Paper (30 Questions) Select BatchMorningEvening 1 / 30Switch statement works with which type of expressions? All float, double int, char string 2 / 30Which keyword is used to define a constant? define constant const both a & c 3 / 30What is the result of 7/2 in C? 4 3 3.0 3.5 4 / 30Which of the following is not a storage class in C? register static dynamic auto 5 / 30Which keyword is used to define a constant? const define both a & c constant 6 / 30Which of the following is not a C keyword? register static class auto 7 / 30Which of the following is a conditional operator? ?: && || % 8 / 30Continue statement is used to: Skip current iteration Stop the program Exit the loop Restart the program 9 / 30If int a=10; int *p=&a; then *p is: NULL Error Address of a 10 10 / 30Which is the correct way to declare an array of 10 integers? int arr; array arr[10]; int arr[10]; int[10] arr; 11 / 30C language was developed in which year? 1980 1969 1991 1972 12 / 30Who is the father of C language? Bjarne Stroustrup Guido van Rossum Dennis Ritchie James Gosling 13 / 30The base address of an array is: Address of first element Random Address of last element None 14 / 30What is the size of an int (generally on a 32-bit compiler)? Depends on compiler 8 bytes 4 bytes 2 bytes 15 / 30In C, array indexing starts from: -1 0 1 2 16 / 30The keyword used to return a value from a function is: return end break exit 17 / 30Break statement is used to: Exit from loop None End program Skip current iteration 18 / 30Which loop is guaranteed to run at least once? do…while for while if-else 19 / 30What is the output of printf(“%d”, 5==5); ? 5 Error 0 1 20 / 30What is the result of 7%2 ? 1 3 0 2 21 / 30Which of the following is not a looping statement? while do…while repeat…until for 22 / 30What is the keyword used for recursion? function name itself repeat recurse None 23 / 30Which of the following is the correct way to declare a pointer? int p; int *p; pointer p; int &p; 24 / 30Which parameter passing method does C use? Call by reference None Both Call by value 25 / 30Which format specifier is used to print an integer? %F %d %s %c 26 / 30The default return type of a C function is: int char float void 27 / 30What is the output of: int a=5;printf(“%d”, ++a); 6 5 Error 4 28 / 30Functions in C can return: Array Multiple values Address Single value 29 / 30Which operator is used for modulo division in C? + * // % 30 / 30Which header file is required for printf() and scanf()? math.h string.h conio.h stdio.h Your score is 0% Restart Online Test