Escape Sequences In C++ Quiz!

9 Questions | Total Attempts: 98

SettingsSettingsSettings
Please wait...
Escape Sequences In C++ Quiz!

.


Questions and Answers
  • 1. 
    What is the output - #include<iostream.h> int main() {    cout << "Hello/nProgrammers";  return 0; }
    • A. 

      Hello Programmers

    • B. 

      Hello/nProgrammers

    • C. 

      HelloProgrammers

    • D. 

      Error

  • 2. 
    What is the output - #include<iostream.h> int main() {    cout << "Hello\nProgrammers";  return 0; }
    • A. 

      Hello\nProgrammers

    • B. 

      Hello Programmers

    • C. 

      Hello Programmers

    • D. 

      HelloProgrammers

  • 3. 
    What is the output - #include int main() {    cout << "Hello\b\b\bProgrammers";  return 0; }
    • A. 

      Hello\b\b\bProgrammers

    • B. 

      Hello Programmers

    • C. 

      HelloProgrammers

    • D. 

      HeProgrammers

  • 4. 
    What is the output - #include int main() {    cout << "\ajay";  return 0; }
    • A. 

      \ajay

    • B. 

      Ajay

    • C. 

      Jay

    • D. 

      \a jay

  • 5. 
    What is the output - #include int main() {    cout << "RAM\rLAL";  return 0; }
    • A. 

      LAL

    • B. 

      RAM LAL

    • C. 

      RAM\rLAL

    • D. 

      RALAL

  • 6. 
    What is the output - #include int main() {    cout << "Surya\rDiv";  return 0; }
    • A. 

      Divya

    • B. 

      Surya\rDiv

    • C. 

      SurDiv

    • D. 

      Surya\rDiv

  • 7. 
    What is the output - #include int main() {     //  ....... How to print  "Surya"  on console  return 0; }
    • A. 

      Cout

    • B. 

      Cout

    • C. 

      Cout

    • D. 

      Cout

  • 8. 
    How to print  "  on console , using cout function?
    • A. 

      Cout

    • B. 

      Cout

    • C. 

      Cout

    • D. 

      Cout

  • 9. 
    How to print \ajay  on console?
    • A. 

      Cout

    • B. 

      Cout

    • C. 

      Cout

    • D. 

      Cout

Back to Top Back to top