
CP-String
Authored by Panupong Sornkhom
Computers
University
Used 19+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อมูลสตริง (String) ในภาษาซี คือ อะไร
ข้อมูลประเภทของดนตรี
ข้อมูลตัวอักขระ
ข้อมูลที่ยาว ๆ มีลักษณะเป็นเส้น ๆ
กลุ่มของตัวอักขระที่เรียงลำดับเป็นข้อความ
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ในภาษาซี เราสามารถประกาศตัวแปรชนิด String ได้หรือไม่
ได้ เพราะ String เป็นข้อมูลชนิดหนึ่ง
ไม่ได้ เพราะ ไม่ใช่ชนิดข้อมูลพื้นฐาน
ได้ เพราะ ภาษาซีเป็น dynamic typed programming language
ไม่ได้ เพราะ ภาษาซีเป็น static typed programming language
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ภาษาซีเก็บข้อมูลสตริง ในตัวแปรแบบใด
array of characters
String
char
structure
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ตัวอักขระที่ใช้เป็นตัวบอกจุดสิ้นสุดของสตริงเรียกว่า
null character
stop character
end character
control character
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดแสดงค่าคงที่สตริงในภาษาซีได้ถูกต้อง
'Hello world'
Hello world
"Hello world"
<Hello world>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การประกาศตัวแปรเพื่อเก็บข้อมูล String ในข้อใดไม่ถูกต้อง
char str[20];
char str;
char str[ ] = "Hello World";
char str[20] = "Hello World";
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
char str[20] = "Hello World"; ใช้พื้นที่หน่วยความจำกี่ไบต์
Access all questions and much more by creating a free account
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
Already have an account?