case functions

mcqspedia.com has 4 Question/Answers about Topic case functions

Strtupper ( ) function returns

Strtupper ( ) function returns
  • A. All uppercase string
  • B. All lowercase string
  • C. First letter capitalized
  • D. None of them
  • Correct Answer: Option A

Which function is used for capitalizing first letter of a string?

Which function is used for capitalizing first letter of a string?
  • A. strtlower ( )
  • B. strtupper ( )
  • C. ucfirst ( )
  • D. lfirst ( )
  • Correct Answer: Option C

Case functions are used for

Case functions are used for
  • A. Changing lowercase to uppercase
  • B. Changing length of string
  • C. String replacement functions
  • D. Searching functions
  • Correct Answer: Option A

A function that capitalizes first letter of each word in a string, is a

A function that capitalizes first letter of each word in a string, is a
  • A. strtupper ( ) function
  • B. strword ( ) function
  • C. unwords ( ) function
  • D. ucfirst ( ) function
  • Correct Answer: Option C