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