Строки

Строки

8th Grade

13 Qs

quiz-placeholder

Similar activities

Conditional Mood

Conditional Mood

8th Grade

10 Qs

Study 1: Astro, Aster

Study 1: Astro, Aster

8th Grade

12 Qs

Shopping phrases

Shopping phrases

5th - 12th Grade

12 Qs

Conditional Mood

Conditional Mood

8th Grade

16 Qs

CHRISTMAS

CHRISTMAS

1st - 12th Grade

15 Qs

Trial of English Quiziz Quiz for E - ITRM

Trial of English Quiziz Quiz for E - ITRM

7th - 12th Grade

15 Qs

Countries (UK)

Countries (UK)

7th - 11th Grade

9 Qs

Quiz. Video games efficiency in learning English

Quiz. Video games efficiency in learning English

1st - 12th Grade

14 Qs

Строки

Строки

Assessment

Quiz

English

8th Grade

Practice Problem

Medium

Created by

Feliks Bekeshov

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой способ правильно сравнить две строки на равенство в Java?


str1 == str2


str1.equals(str2)

str1.equalsIgnoreCase(str2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Как можно объединить две строки в Java?

str1 - str2

str1.concat(str2)


str1.append(str2)

str1.concatenate(str2)


3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Что делает метод trim() в Java?

Удаляет все символы пробела в начале и конце строки.

Обрезает строку до указанной длины.

Удаляет ведущие нули из числовой строки.

Преобразует строку в нижний регистр.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой метод используется для преобразования строки в верхний регистр в Java?



str.upper()

str.toUppercase()

str.toUpperCase()

str.caseUpper()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какова цель метода charAt(int index) в Java?



Возвращает ASCII-значение символа по указанному индексу.

Возвращает символ по указанному индексу.

Проверяет, присутствует ли конкретный символ в строке.

Преобразует строку в массив символов.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

В Java, какой метод используется для проверки, начинается ли строка с указанного префикса?



str.startWith(prefix)


str.startsWith(prefix)

str.beginsWith(prefix)

str.commenceWith(prefix)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Каков правильный способ заменить символ в строке в Java?



str.replace(oldChar, newChar)



str.swap(oldChar, newChar)

str.update(oldChar, newChar)

str.replaceChar(oldChar, newChar)

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?