aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ I/O Streams and String Basics
  • How many operators are available for the string objects?
Multiple choice

How many operators are available for the string objects?

  1. 9

  2. 10

  3. 11

  4. 12

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

There are 12 operators available for the string objects in C++. The operators are: =, +, +=, ++, !=, <, <=, >, >=, [], << and >>.

Keep practicing — related questions

  • How many bitwise operators are present in Java?
  • String concatenation operator is
  • How many string objects are created by the given statement? String str=new String(“Aliens”);
  • public String makinStrings() { 12. String s = “Fred”; 13. s = s + “47”; 14. s = s.substring(2, 5); 15. s = ...
  • What will be the output of the program? String x = new String("xyz"); String y = "abc"; x = x + y; How many...
  • String strA; String strB = new String("Cheese"); How many objects have been created in the above code snippet?
  • ________operators are used to join one or more text strings to produce a single piece of text.
  • Which of the following operators cannot be overloaded?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy