character and string literals

mcqspedia.com has 5 Question/Answers about Topic character and string literals

Which function is offered by C++ for obtaining length of any string?

Which function is offered by C++ for obtaining length of any string?
  • A. len ( )
  • B. strlen ( )
  • C. string_length ( )
  • D. length ( )
  • Correct Answer: Option B

Length of a string literal is determined by

Length of a string literal is determined by
  • A. Changing it into integer type
  • B. Putting it into an array
  • C. The number of characters it contain
  • D. None of them
  • Correct Answer: Option C

Empty string is denoted by

Empty string is denoted by
  • A. "0"
  • B. " "
  • C. 0;
  • Correct Answer: Option B

Which symbol is used for horizontal tab in C++?

Which symbol is used for horizontal tab in C++?
  • A. /t
  • B. \t
  • C. \a
  • D. \n
  • Correct Answer: Option B

String that contains zero characters is called

String that contains zero characters is called
  • A. Empty string
  • B. Idle string
  • C. Vacant string
  • D. None of them
  • Correct Answer: Option A