JAVA STRINGS

JAVA STRINGS

University

31 Qs

quiz-placeholder

Similar activities

REVIEWER 1-23

REVIEWER 1-23

University

28 Qs

Python Function

Python Function

University

30 Qs

CS10 Midterm Prep II

CS10 Midterm Prep II

University

29 Qs

Mobile & Telecommunication - BSC in CSE - Quiz 1

Mobile & Telecommunication - BSC in CSE - Quiz 1

University

26 Qs

DMC#1

DMC#1

University

30 Qs

FINAL_EXAM (CFP_122)

FINAL_EXAM (CFP_122)

University

35 Qs

ENSA Module Quiz 13 – Network Virtualization

ENSA Module Quiz 13 – Network Virtualization

University

27 Qs

Set 3

Set 3

12th Grade - University

30 Qs

JAVA STRINGS

JAVA STRINGS

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

KAMESWARA RAO

Used 72+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

String word = "A few good men";
What is word.length()?

14
15
13

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

String word = "A few good men";
What is word.charAt(7) ?

o
g
7
good men

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

String word = "A few good men";
What is word.indexOf(“f”)?

2
0
1
-1

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

String word = "A few good men";
What is word.indexOf(“f”)?

2
0
1
-1

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

String word = "A few good men";
What is word.indexOf(“bad”)?

0
-1
3

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

String word = "A few good men";
What is word.substring(3, 7) ?

ew g
ew go
few
few[space]

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is NOT a primitive data type?

double

float

boolean

String

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?

Discover more resources for Computers