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