4. String

4. String

Professional Development

10 Qs

quiz-placeholder

Similar activities

Quiz sobre o Animômetro

Quiz sobre o Animômetro

Professional Development

13 Qs

 Ôn tập gõ các chữ Ă, Â, Đ, Ê, Ô, Ơ, Ư

Ôn tập gõ các chữ Ă, Â, Đ, Ê, Ô, Ơ, Ư

3rd Grade - Professional Development

10 Qs

Variabel dan Tipe Data C++

Variabel dan Tipe Data C++

University - Professional Development

10 Qs

C# part1 en

C# part1 en

4th Grade - Professional Development

7 Qs

Revisão P1 - Estrutura de Dados

Revisão P1 - Estrutura de Dados

Professional Development

10 Qs

JavaScript String Methods

JavaScript String Methods

12th Grade - Professional Development

15 Qs

Tuan 3 - Python

Tuan 3 - Python

KG - Professional Development

10 Qs

MindSpace Computers C Quiz-1 2025

MindSpace Computers C Quiz-1 2025

Professional Development

13 Qs

4. String

4. String

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Lê Thành

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

Để 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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?