JAVA STRINGS

JAVA STRINGS

University

31 Qs

quiz-placeholder

Similar activities

String

String

10th Grade - University

30 Qs

Java Programming

Java Programming

University

30 Qs

OOPS Live Quiz

OOPS Live Quiz

University

28 Qs

Unit 1 APCSA

Unit 1 APCSA

9th Grade - University

32 Qs

Code war

Code war

University

30 Qs

Computer Programming 2

Computer Programming 2

University

30 Qs

Test 2

Test 2

University

36 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

30 Qs

JAVA STRINGS

JAVA STRINGS

Assessment

Quiz

Computers

University

Hard

Created by

KAMESWARA RAO

Used 71+ times

FREE Resource

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

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?