C Functions Questions and Answers

Take Exam

C Functions Questions with Answers provide an in-depth look at one of the most fundamental concepts in C programming. Understanding how to define, call, and manage user-defined and library functions is key to mastering structured programming. These C programming MCQs are widely used in technical interviews and coding tests conducted by companies like TCS, Wipro, and Infosys. Each question includes explanations to help you grasp parameter passing, recursion, return types, and scope. Practicing programming questions with answers strengthens your coding logic and prepares you for real-world software challenges. Download C programming MCQ PDFs and practice online to enhance your technical aptitude efficiently.

C Functions

Showing 10 of 151 questions

21. The function defined in match.h file for returning the are tangent of x is

  • tan_1(x)
  • atan(x)
  • tanh(x)
  • arctan(x)
Show Answer Report

22. the function cell(x) defined in math.h

  • returns the value rounded down to the next lower integer
  • returns the value rounded up to the next higher integer
  • the next higher value
  • the next lower value
Show Answer Report

23. The function floor (x) in math.h

  • returns the value rounded down to the next lower integer
  • returns the value rounded up to the next higher integer
  • the next lower value
  • the next lower value
Show Answer Report

24. The function strcpy (s1, s2) in string.h

  • copies s1 to s2
  • copies s2 to s1
  • appends s1 to end of s2
  • appends s2 to end of s1
Show Answer Report

25. The function strcat (s1, s2) in string.h

  • copies s1 to s2
  • copies s2 to s1
  • appends s1 to end of s2
  • appends s2 to end of s1
Show Answer Report

26. The function strcm(s1, s2) returns zero

  • if S1 is 1exicographically less than s2
  • if s1 is 1is legicographically greather than s2
  • if both s1 and s2 are equal
  • if s1 is empty string
Show Answer Report

27. The function tolower (ch) in ctype.h

  • returns the upper case alphabet of ch
  • returns the lower case alphabet of ch
  • returns uppercase if ch is lowercase, and lowercase if ch is uppercase
  • is a user-defined function
Show Answer Report

28. What function must all C programs have ?

  • start ( )
  • main ( )
  • return ( )
  • exit ( )
Show Answer Report

29. In C, which of the following statement (s) is (are) TRUE about the way the arguments are passed ? 1. The order of evaluation of arguments is compiler dependant. 2. Arguments are passed by reference.

  • both options 1 and 2
  • only option 1
  • only option 2
  • neither option 1 nor 2
Show Answer Report

30. Which of the following statements in C is/are TRUE ? 1. Two functions can have the same name in a single program. 2. Function calls can be recursive.

  • both options 1 and 2
  • only option 1
  • only option 2
  • neither option 1 or 2
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test