
Java String Methods and String Pool
Authored by Lmn Mrzyv
Instructional Technology
1st - 5th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
Aşağıdakı kodun çıxışı nə olacaq?
World
Hello
, Wor
orld!
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aşağıdakı kodun çıxışı nə olacaq?
4
5
3
Xəta verəcək
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?