Question: Other than shifting bits to the left, what is the << oprator used for ?

  1. shifting characters to the left in a string.
  2. inserting characters into an output stream like std::cout.
  3. comparing floating point numbers as less-than.
  4. assigning a variable to a reference.

Answer: The correct answer of the above question is Option B:inserting characters into an output stream like std::cout.