ICSE Class 10 Computer Applications Question 27 of 30

Solved 2023 Question Paper ICSE Class 10 Computer Applications — Question 27

Back to all questions
27
Question

Question 2(vii)

Give the output of the following String class methods:

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

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

Answer

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