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