
Викторина по строкам в Java

Quiz
•
Computers
•
University
•
Hard
Татьяна Смирнова
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой оператор проверяет, ссылаются ли две строки на один и тот же объект?
compareTo
equals
==
equalsIgnoreCase
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой метод возвращает true, если строка равна строке s1, не учитывая регистр?
equalsIgnoreCase
indexOf
compareTo
equals
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой метод возвращает индекс первого вхождения символа ch в строке?
compareTo
indexOf
lastIndexOf
equals
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой метод используется для преобразования строкового значения в тип int?
Double.parseDouble()
String.valueOf()
Integer.parseInt()
Integer.toString()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Что возвращает метод lastIndexOf('o') для строки 'Welcome to Java'?
-1
4
11
9
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой метод возвращает целое число, указывающее, является ли строка больше, равной или меньше другой строки?
indexOf
lastIndexOf
compareTo
equals
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой метод используется для удаления пробелов в начале и в конце строки?
trim
substring
replace
split
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Файлы и строки

Quiz
•
University
12 questions
Контрольный опрос

Quiz
•
University
14 questions
Тест по C#

Quiz
•
University
10 questions
Базы данных 2

Quiz
•
9th Grade - University
17 questions
ООП Модуль 4

Quiz
•
University
15 questions
Этичный хакинг 5_ компьютерные сети

Quiz
•
University
11 questions
Строки в Python

Quiz
•
University
8 questions
Викторина по двумерным массивам

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University