C- Functions Question and Answer

C- Functions Question and Answer
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
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
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
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
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
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
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
28. What function must all C programs have ?
  • start ( )
  • main ( )
  • return ( )
  • exit ( )
Show Answer
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
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
Questions and Answers for Competitive Exams Various Entrance Test