Give the output of the following String class methods:

ICSE Class 10 Computer Applications PYQ · 2023 Paper · Section A

2(vii)1 Mark · 2023 · Section A · 2023 Paper

Give the output of the following String class methods:

(a) "COMMENCEMENT".lastIndexOf('M')

(b) "devote".compareTo("DEVOTE")

Show SolutionHide Solution↓

(a) "COMMENCEMENT".lastIndexOf('M')

8
← Previous questionNext question →

Browse the free Computer Applications sample bank