Home / MCQ Bank / Computer
Computer Strings Difficulty: Medium

What will be the output? String str1 = "abcde"; System.out.println(str1.substring(1, 3));

Select the correct option to test your answer:

More Computer Questions

The term___________designates equipment that might be added to a computer system to enhance its functionality. What will be the output of the following C++ code? #include <iostream> #include <string> #include <tuple> using namespace std; int main() { tuple <int, char, string> tp = {"Hello", 1, 's'}; return 0; } What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy', 1)) What is meant by polymorphism? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string str ("Test string"); for ( string :: iterator it = str.begin(); it != 5; ++it) cout << *it; return 0; }