
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
KT15p bài 9,13,14_CN12-HKI
Quiz
•
12th Grade
15 questions
LOP 9
Quiz
•
9th Grade
15 questions
BÀI 9 - THỨC ĂN CHĂN NUÔI
Quiz
•
11th Grade
20 questions
ÔN TẬP CN LỚP 4
Quiz
•
4th Grade - University
15 questions
ôn thi học kì 1. CN6
Quiz
•
1st - 12th Grade
10 questions
Bài 15-16 CN12
Quiz
•
12th Grade
10 questions
le Val de Loire - Culture Produits
Quiz
•
1st - 12th Grade
20 questions
lichj sử 11
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Instructional Technology
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
17 questions
Afro Latinos: Una Historia Breve Examen
Quiz
•
9th - 12th Grade
13 questions
Halloween Trivia
Quiz
•
9th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
