C Functions Questions and Answers

Practice Mode
Showing 10 of 151 questions
Q21
The function defined in match.h file for returning the are tangent of x is
  • A tan_1(x)
  • B atan(x)
  • C tanh(x)
  • D arctan(x)
Answer: Option B
Q22
the function cell(x) defined in math.h
  • A returns the value rounded down to the next lower integer
  • B returns the value rounded up to the next higher integer
  • C the next higher value
  • D the next lower value
Answer: Option B
Q23
The function floor (x) in math.h
  • A returns the value rounded down to the next lower integer
  • B returns the value rounded up to the next higher integer
  • C the next lower value
  • D the next lower value
Answer: Option A
Q24
The function strcpy (s1, s2) in string.h
  • A copies s1 to s2
  • B copies s2 to s1
  • C appends s1 to end of s2
  • D appends s2 to end of s1
Answer: Option B
Q25
The function strcat (s1, s2) in string.h
  • A copies s1 to s2
  • B copies s2 to s1
  • C appends s1 to end of s2
  • D appends s2 to end of s1
Answer: Option D
Q26
The function strcm(s1, s2) returns zero
  • A if S1 is 1exicographically less than s2
  • B if s1 is 1is legicographically greather than s2
  • C if both s1 and s2 are equal
  • D if s1 is empty string
Answer: Option C
Q27
The function tolower (ch) in ctype.h
  • A returns the upper case alphabet of ch
  • B returns the lower case alphabet of ch
  • C returns uppercase if ch is lowercase, and lowercase if ch is uppercase
  • D is a user-defined function
Answer: Option B
Q28
What function must all C programs have ?
  • A start ( )
  • B main ( )
  • C return ( )
  • D exit ( )
Answer: Option B
Q29
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.
  • A both options 1 and 2
  • B only option 1
  • C only option 2
  • D neither option 1 nor 2
Answer: Option B
Q30
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.
  • A both options 1 and 2
  • B only option 1
  • C only option 2
  • D neither option 1 or 2
Answer: Option C
Questions and Answers for Competitive Exams Various Entrance Test