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