1. >CBSE Class XII
  2. >Computer Science
Found 3  QuestionsSET DEFAULT
Selected Filters
    CBSE Class XII Computer Science Java Strings
Exams
Years
Subjects
Topics

List of top Computer Science Questions on Java Strings asked in CBSE Class XII

What will be the output of the following statement?

print("PythonProgram"[-1:2:-2])
  • CBSE Class XII - 2026
  • CBSE Class XII
  • Computer Science
  • Java Strings

What is the output of the following code snippet?

s='War and Peace by Leo Tolstoy'
print(s.partition("by"))
  • CBSE Class XII - 2026
  • CBSE Class XII
  • Computer Science
  • Java Strings

Identify the output of the following code snippet:

s = "the Truth"
print(s.capitalize())
  • CBSE Class XII - 2026
  • CBSE Class XII
  • Computer Science
  • Java Strings