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