Java String Methods and String Pool

Java String Methods and String Pool

Assessment

Quiz

Instructional Technology

1st - 5th Grade

Medium

Created by

Lmn Mrzyv

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Bu kodun outputu nə olacaq?

10
5
0

3
4
-1

3
5
2

-1
4
5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Aşağıdakı kod nəyi çap edəcək?

fun

Xəta verəcək

is

Java

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"trim" metodunun hansı təsviri doğrudur?

String-i kiçik hərflərə çevirir.

String-dəki boşluqları silir.

String-dəki bütün xüsusi simvolları silir.

String-dəki yalnız əvvəlki və sonundakı boşluqları silir.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"replace" və "replaceAll" fərqi

replace bütün dəyişiklikləri edir, replaceAll isə birincisini edir.

replace yalnız simvol dəyişdirir, replaceAll isə söz dəyişdirir.

replace regex qəbul etmir, replaceAll regex qəbul edir.

İkisinin heç bir fərqi yoxdur.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Aşağıdakı kodun çıxışı nə olacaq?

World

Hello

, Wor

orld!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Aşağıdakı kodun çıxışı nə olacaq?

4

5

3

Xəta verəcək

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Aşağıdakı kod nəyi çap edəcək?

Xəta yaranacaq.

J@v@ is awesome

J@v@ is @wesome

J@va is @wesome

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?