STRING HANDLING

STRING HANDLING

10th Grade

10 Qs

quiz-placeholder

Similar activities

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

String

String

10th - 12th Grade

10 Qs

String Method

String Method

10th Grade

10 Qs

String Basics

String Basics

10th Grade

15 Qs

Loops

Loops

9th - 12th Grade

10 Qs

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Java switch/for/while

Java switch/for/while

9th - 12th Grade

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

STRING HANDLING

STRING HANDLING

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Nimmy Anson

Used 64+ times

FREE Resource

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the output of the following

String s1 = "phoenix" ;

String s2 = "island" ;

System.out.println(s1.concat(s2.substring(2)) ;

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

"TRANSPARENT".compareTo("TRANSITION");

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

String s = "Today is Test";

System.out.println(s.indexOf('T'));

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the java statement to concatenate string a with string b and store in string c.

String a = "Feel" ;

String b = "Fresh";

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

String a = "Smartphone";

String b = "Graphic Art";

String h = a.substring(2,5);

String k = "b.substring(8).toUpperCase();

System.out.println(k.equalsIgnoreCase(h));

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Give the output of the following

"ACHIEVEMENT".replace('E','A');

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the out put of the following

System.out.println("FIVE"+5+2);

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?