Hello friends in this article we are going to discuss about C Programming Multiple Choice questions with answer | C Programming Objective type question with answer | C Programming MCQ Test for your reference | MCQ Pdf for C Programming
Q27. If :
char s[10],*p;
p = s;
then, s[i] can be written as :
a) s – i
b) p + i
c) *(s + i)
d) *(p + i)
Ans: d
Q28. When a function is called by itself again and again, then it is
a) call by value
b) call by reference
c) recursion
d) system function call
Ans: c
Q29. Which can never be called by value using call by value
method ?
a) structure
b) union
c) array
d) all of these
Ans: c
Q30. What is the maximum number of arguments that can be
passed in a single function ?
a) 341
b) 263
c) 253
d) 308
Ans: c
Q31. ______ is the collection of similar-type elements ?
a) Structure
b) Union
c) Array
d) String
Ans: c
Q32. Which is true about following statement in C :
void ( * abc( int, void ( *def) () ) ) ();
a) abc is a pointer variable to pointer-type function def.
b) Illegal statement
c) abc is a ptr to a function which takes 2 parameters.
d) None of the above
Ans: c
Q33. What can not be declared :
a) Array of integers
b) Array of pointers
c) Array of structures
d) None of the above
Ans: d
Q34. Which of the following is not a arithmetic operation :
a) n/=10
b) n*=10
c) n+=10
d) n!=10
Ans: d
Q35. Which datatype is not applicable for mod(%) operation ?
a) int
b) float
c) char
d) None of these
Ans: B
Q36. Functions with same name and different parameters
represents :
a) function overloading
b) function overriding
c) recursion
d) None of the mentioned
Ans: A
Q37. getch() is present in this header file
a) stdio.h
b) conio.h
c) stdlib.h
d) None of the mentioned
Ans: B
Q38. This keyword is used for defining new data type names.
a) docstring
b) typedef
c) Both of them
d) None of them
Ans: B
Q39. Which precision specifier the number of significant digits ?
a) %g
b) %G
c) %f
d) Both a and b
Ans: D
Q40. In order to display address, we need :
a) %q
b) %a
c) %p
d) None of the mentioned
Ans: C
Q41. _____ is used to take user input in C.
a) input()
b) printf()
c) scanf()
d) None of the above
Ans: C
Q42. ‘%[ ]’ is used for :
a) taking array as input
b) scans for set of characters
c) takes integer as input
d) None of the above
Ans: B
Q43. To avoid repetition of code and bulky programs, statements
are isolated inside a _____.
a) Functions
b) Modules
c) Header Files
d) None of the above
Ans: A
Q44. In C, order of passing arguments to a function is done :
a) left to right
b) right to left
c) Randomly
d) Manualy
Ans: B
Q45. pow() is present in which header file ?
a) maths.h
b) arithmetic.h
c) process.h
d) math.h
Ans: D
Q46. In pointers, meaning of ‘*’ is :
a) pointer variable
b) value at address
c) value of address
d) None of the mentioned
Ans: B
Q47. When double is converted to float then the value is ?
a) Truncated
b) Rounded
c) Depends upon compiler
d) None of the mentioned
Ans: C
Q48. Can we declare function inside structure of C ?
a) YES
b) NO
c) Both of them
d) None of them
Ans: B
Q49. Which of the following is an ternary operator in C?
a) &&
b) %%
c) !=
d) ?:
Ans: D
Q50. What is the use of ‘%%’ specifier ?
a) Finding remainder
b) Finding quotient
c) Printing % sign
d) None of the mentioned
Ans: C