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