Search Header Logo

Session 17+18: String

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 40+ times

Session 17+18: String
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để sao chép một chuỗi trong C?

strcpy()

strcat()

strcmp()

strlen()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để nối hai chuỗi trong C?

strcpy()

strcat()

strcmp()

strlen()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để so sánh hai chuỗi trong C?

strcpy()

strcat()

strcmp()

strlen()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để lấy độ dài của một chuỗi trong C?

strcpy()

strcat()

strcmp()

strlen()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để tìm một ký tự trong một chuỗi trong C?

strchr()

strstr()

strtok()

strcpy()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khai báo chuỗi trong C được thực hiện như thế nào?

char chuoi[] = "Hello, world!";

int chuoi[] = "Hello, world!";

float chuoi[] = "Hello, world!";

double chuoi[] = "Hello, world!";

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để so sánh hai chuỗi C để xem chúng có bằng nhau hay không?

if (chuoi1 == chuoi2) { ... }

if (strcmp(chuoi1, chuoi2) == 0) { ... }

if (chuoi1 = chuoi2) { ... }

if (strcmp(chuoi1, chuoi2) != 0) { ... }

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?