Cú pháp nào sau đây đúng để khai báo một chuỗi ký tự trong C?

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
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 Quizizz
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
15 questions
Qizzziz - Hàm trong C

Quiz
•
9th - 12th Grade
10 questions
KTBC CÔNG NGHỆ 11

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

Quiz
•
12th Grade - University
13 questions
Digital Skills Game 3

Quiz
•
12th Grade - Professi...
15 questions
Funções em JavaScript

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

Quiz
•
10th Grade
Popular Resources on Quizizz
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Instructional Technology
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade