
C_หน่วย 3
Authored by KruTon Ncw
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดถูกต้องเกี่ยวกับการตั้งชื่อตัวแปรในภาษาซี
ชื่อตัวแปรต้องไม่ซ้ำกับคำสงวนในภาษา
ชื่อตัวแปรต้องขึ้นต้นด้วยตัวเลข
ชื่อตัวแปรสามารถมีช่องว่างได้
ชื่อตัวแปรต้องขึ้นต้นด้วยตัวอักษรใหญ่เสมอ
ชื่อตัวแปรต้องเป็นคำที่มีความหมายเท่านั้น
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดเป็นการตั้งชื่อตัวแปรที่ถูกต้องในภาษาซี
total_sum
1stNumber
number!
char
float%
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดต่อไปนี้เป็นชื่อที่ถูกต้องสำหรับตัวแปรที่ใช้เก็บข้อมูลอายุของบุคคล
person_age
age of person
@agePerson
123age
ถูกทุกข้อ
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ชื่อตัวแปรข้อใดที่ไม่ควรใช้ในภาษาซี
int
score_1
_value
totalValue
var_name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ชนิดข้อมูล int ใช้สำหรับเก็บข้อมูลประเภทใด
จำนวนเต็ม
ตัวอักษร
ทศนิยม
ข้อมูลบูลีน
สตริง
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดคือค่าที่ไม่สามารถเก็บในตัวแปรชนิด int ได้
3.14
-100
32767
0
2147483647
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดต่อไปนี้เป็นการประกาศตัวแปรชนิดทศนิยมได้ถูกต้อง
float num = 3.14;
int num = ‘3’;
char num = 3.14;
int num = 3.0;
float num = '3.14';
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?