ข้อใดถูกต้องเกี่ยวกับการตั้งชื่อตัวแปรในภาษาซี
C_หน่วย 3

Quiz
•
Computers
•
12th Grade
•
Medium
KruTon Ncw
Used 3+ times
FREE Resource
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';
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Scratch Programming Quizizz

Quiz
•
7th - 12th Grade
10 questions
สอบท้ายหน่วยที่ 4 วิทยาการคำนวณ 1 ม.1

Quiz
•
9th - 12th Grade
10 questions
แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)

Quiz
•
7th Grade - University
10 questions
แบบทดสอบเรื่องการรับค่าในภาษาไพทอน (รายบุคคล)

Quiz
•
9th - 12th Grade
15 questions
กลางภาค ภาษาซี

Quiz
•
9th - 12th Grade
10 questions
แบบทดสอบก่อนเรียน หน่วยการเรียนรู้ที่ 2 เรื่องการออกแบบผังงาน

Quiz
•
9th - 12th Grade
10 questions
if else c

Quiz
•
7th - 12th Grade
15 questions
แบบทดสอบการเขียนโปรแกรมเบื้องต้น

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University