Search Header Logo

STRING HANDLING

Authored by Nimmy Anson

Computers

10th Grade

Used 67+ times

STRING HANDLING
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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);

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?