JAVA STRINGS

JAVA STRINGS

University

31 Qs

quiz-placeholder

Similar activities

CS 211 - Midterm Review

CS 211 - Midterm Review

University

30 Qs

String in Python

String in Python

University

36 Qs

Data Structure PrelimExam

Data Structure PrelimExam

University

35 Qs

Q3 CH3

Q3 CH3

University

30 Qs

Programming Logic & Design

Programming Logic & Design

KG - University

28 Qs

Python-предметная олимпиада по программированию

Python-предметная олимпиада по программированию

University

30 Qs

Micro:bit

Micro:bit

1st Grade - University

35 Qs

Quiz 1

Quiz 1

University

28 Qs

JAVA STRINGS

JAVA STRINGS

Assessment

Quiz

Computers

University

Hard

Created by

KAMESWARA RAO

Used 72+ 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?