ICSE Class 10 –String Handling

ICSE Class 10 –String Handling

10th Grade

50 Qs

quiz-placeholder

Similar activities

TSA Prep 3

TSA Prep 3

9th - 12th Grade

50 Qs

SAS Pemrograman Dasar X

SAS Pemrograman Dasar X

10th Grade

50 Qs

PCEP Questions

PCEP Questions

9th - 12th Grade

46 Qs

Python Practical Questions

Python Practical Questions

9th - 12th Grade

46 Qs

TRY OUT MID KLS 8 SEM GENAP

TRY OUT MID KLS 8 SEM GENAP

8th Grade - University

45 Qs

gamemaker

gamemaker

9th - 12th Grade

46 Qs

AP CS P 5.1

AP CS P 5.1

10th Grade - University

50 Qs

CS Edexcel Unit 6 Parts 4-6

CS Edexcel Unit 6 Parts 4-6

9th - 10th Grade

50 Qs

ICSE Class 10 –String Handling

ICSE Class 10 –String Handling

Assessment

Quiz

Computers

10th Grade

Hard

Created by

scoremaster JAVA

FREE Resource

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()

==

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?