Character and String Literals MCQs Test Online PDF Download

Character and string literals multiple choice questions (MCQs), character and string literals test prep for online learning with IT degree certificate eCourses. Learn introduction to c++ programming multiple choice questions (MCQs), character and string literals quiz questions and answers. Career test on integer types, keywords and identifiers, increment and decrement operator test for online C++ programming language courses distance learning.

Learn introduction to c++ programming practice test MCQs: which symbol is used for horizontal tab in c++, for free online courses with options /t, \t, \a, \n for online IT degree. Free skills assessment test is for online e-learning character and string literals quiz questions for competitive assessment in computer science major.

MCQ 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