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