STRING HANDLING

STRING HANDLING

10th Grade

10 Qs

quiz-placeholder

Similar activities

Programación con Java

Programación con Java

9th - 11th Grade

15 Qs

JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

15 Qs

Substring

Substring

9th - 12th Grade

12 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

String

String

10th - 12th Grade

10 Qs

String Basics

String Basics

10th Grade

15 Qs

APCSA Unit 3 Review

APCSA Unit 3 Review

9th - 12th Grade

13 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

STRING HANDLING

STRING HANDLING

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Nimmy Anson

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