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