
Quizziz - Chuỗi ký tự trong C

Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Quý Ngọ
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây đúng để khai báo một chuỗi ký tự trong C?
char str[] = "Hello"
char str = "Hello";
char str{6} = "Hello"
str = "Hello"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào sau đây được sử dụng để lấy độ dài của chuỗi trong C?
length()
strlen()
strlength()
size()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi khai báo một chuỗi ký tự, ký tự nào được tự động thêm vào cuối chuỗi?
\r
\0
\n
\t
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào dùng để so sánh hai chuỗi trong C?
strcompare()
strcmp()
strcomp()
compare()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu bạn khai báo một chuỗi như sau: char str[10] = "Hello";
Kích thước của mảng str là bao nhiêu?
6
5
10
11
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả trả về từ đoạn mã trên là gì?
In ra nội dung
"Length of str: 10"
Lỗi biên dịch
null
In ra nội dung
"Length of str: 14"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau sẽ in ra gì: printf("%s", "Hello"[1]);?
H
e
l
Lỗi biên dịch
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
GA69

Quiz
•
12th Grade
10 questions
B18.2-Tin10

Quiz
•
12th Grade
10 questions
密碼安全與強度提升

Quiz
•
7th Grade - University
10 questions
Trắc nghiệm xâu ký tự trong Python

Quiz
•
10th Grade
20 questions
ENSA Module 1/2 -- Final Exam Prep, OSPF ENSA

Quiz
•
12th Grade - University
10 questions
BÀI TẬP BÀI 2 TIN 10

Quiz
•
10th Grade
10 questions
Câu hỏi trắc nghiệm phần: Vai trò, triển vọng của chăn nuôi

Quiz
•
11th Grade
10 questions
C# Консультация. Повторение

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Distribute and Combine Like Terms

Quiz
•
7th - 9th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Cell Organelles

Quiz
•
9th Grade
20 questions
Cell Transport

Quiz
•
9th Grade