4. String

Quiz
•
Computers
•
Professional Development
•
Medium
Lê Thành
Used 12+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trên màn hình console sẽ in ra thông tin gì?
false
true
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử biến a và b đều thuộc kiểu chuỗi, để so sánh xem hai chuỗi a và b có bằng nhau không thì ta dùng lệnh nào dưới đây?
a == b
a.equal(b)
a.compareTo(b)
a.equals(b)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tách một chuỗi ra thành mảng các ký tự ta phương thức nào để tương tác với chuỗi?
split()
getBytes()
toCharArray()
convertToCharArray()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dùng phương thức nào để lấy ra số lượng ký tự của chuỗi?
size()
count()
numberOfChar()
length()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dùng phương thức nào để tách chuỗi đã cho theo chuỗi đầu vào?
substring()
split()
convert()
substringBy()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử biến a và b đều thuộc kiểu chuỗi, để nối hai chuỗi a và b lại với nhau ta dùng lệnh nào?
a.concats(b)
a.combine(b)
a + b
a.combines(b)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để cắt ra chuỗi "def" từ chuỗi trong hình đã cho ta dùng phương thức nào?
substring(3)
substring(3, 5)
substring(3, 6)
substring(4, 6)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
JWD JS Test Bank 11-20

Quiz
•
Professional Development
10 questions
Kiến thức cơ bản C++

Quiz
•
Professional Development
10 questions
1. Standard output, Data type and variable

Quiz
•
Professional Development
10 questions
SA_3

Quiz
•
Professional Development
10 questions
Tập huấn 6/8

Quiz
•
Professional Development
8 questions
AP Comp Sci - Unit 2 Review (2.1 - 2.7)

Quiz
•
12th Grade - Professi...
8 questions
BIS - Khái niệm cơ bản

Quiz
•
Professional Development
10 questions
Feedback Pembelajaran Word dan Googledrive

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development