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