Search Header Logo

ICSE Class 10 –String Handling

Authored by scoremaster JAVA

Computers

10th Grade

ICSE Class 10 –String Handling
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns the length of a string?

len()

size()

length()

count()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns a character at a given index?

charAt()

get()

char()

index()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first character in a string?

0

1

-1

Depends

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method extracts a substring?

substring()

substr()

slice()

split()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns index of first occurrence of a character?

index()

indexOf()

find()

search()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns last occurrence index of a character?

lastIndexOf()

endIndex()

findLast()

finalIndex()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method compares strings lexicographically?

compare()

compareTo()

equals()

==

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?