Character and String Literals MCQs Quiz Online PDF Download

Learn character and string literals MCQs, c++ test for learning online courses and test prep to practice. Introduction to c++ programming quiz has multiple choice questions (MCQ), character and string literals quiz questions and answers, integer types, keywords and identifiers, character and string literals tutorials for online C++ programming language courses distance learning.

C++ practice test MCQ: string that contains zero characters is called with choices empty string, idle string, vacant string and none of them with online tutorial questions and answers for online university's class tests with exam papers important questions. Free study guide is for online learning character and string literals quiz with MCQs to practice test questions with answers.

MCQs on Character and String Literals Quiz PDF Download

MCQ. String that contains zero characters is called

  1. Empty string
  2. Idle string
  3. Vacant string
  4. None of them

A

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

  1. /t
  2. \t
  3. \a
  4. \n

B

MCQ. Empty string is denoted by

  1. "0"
  2. " "
  3. 0;
  4. 0

B

MCQ. Length of a string literal is determined by

  1. Changing it into the integer type
  2. Putting it into an array
  3. The number of characters it contain
  4. None of them

C

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

  1. len ( )
  2. strlen ( )
  3. string_length ( )
  4. length ( )

B