การใช้ตัวแปร: ถ้าต้องการสร้างตัวแปรชื่อ score และกำหนดค่าให้กับ score เป็น 10 จะเขียนโค้ดอย่างไร?
แบบทดสอบหลังเรียน เรื่อง ตัวแปร ชนิดข้อมูล ฟังก์ชันรับค่า

Quiz
•
Kru-Noosanee Hayeeyusoh
•
World Languages
•
7th Grade
•
3 plays
•
Hard
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
score = 10
score == 10
score = '10'
score : 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การใช้ตัวแปร: ถ้าต้องการเปลี่ยนค่าของตัวแปร x จาก 5 เป็น 7 จะเขียนโค้ดอย่างไร?
x += 7
x = 5
x = 10
x = 7
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ชนิดข้อมูล: ชนิดข้อมูลที่ใช้เก็บตัวเลขทั้งเต็มและทศนิยมคือชนิดข้อมูลอะไร?
integer
string
float
boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ชนิดข้อมูล: ถ้าต้องการเก็บข้อความในตัวแปรชื่อ name จะใช้ชนิดข้อมูลอะไร?
float
boolean
integer
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ชนิดข้อมูล: ถ้าต้องการเก็บค่าจริงหรือเท็จในตัวแปรชื่อ is_valid จะใช้ชนิดข้อมูลอะไร?
string
float
integer
boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การแปลงชนิดข้อมูล: เมื่อต้องการแปลงค่าตัวแปร x จากชนิดข้อมูลจำนวนเต็มเป็นชนิดข้อมูลทศนิยมจะใช้ฟังก์ชันอะไร?
str(x)
int(x)
float(x)
bool(x)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การแปลงชนิดข้อมูล: เมื่อต้องการแปลงค่าตัวแปร y จากชนิดข้อมูลทศนิยมเป็นชนิดข้อมูลจำนวนเต็มจะใช้ฟังก์ชันอะไร?
bool()
int()
float()
str()
Explore all questions with a free account
Similar Resources on Quizizz
10 questions
กาพย์ห่อโคลงประพาสธารทองแดง

Quiz
•
2nd Grade - University
13 questions
แบบทดสอบหลังเรียน

Quiz
•
6th - 8th Grade
15 questions
ชนิดและหน้าที่ของคำ

Quiz
•
7th Grade
15 questions
กริยา 2 ม.2

Quiz
•
6th Grade - University
10 questions
คําไทย7ชนิด

Quiz
•
7th Grade
10 questions
วรรณศิลป์

Quiz
•
6th - 8th Grade
10 questions
ความรู้เบื้องต้นเกี่ยวกับการโฆษณา

Quiz
•
6th - 8th Grade
10 questions
คำกริยา

Quiz
•
6th - 8th Grade
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for World Languages
25 questions
Direct object pronouns in Spanish

Quiz
•
7th Grade
20 questions
preterito vs imperfecto

Quiz
•
5th - 12th Grade
37 questions
Peter va a Colombia

Quiz
•
6th - 9th Grade
16 questions
passe compose vs imparfait

Lesson
•
7th - 12th Grade
60 questions
FLACS Checkpoint A Review

Quiz
•
7th - 9th Grade
15 questions
Adjetivos Demostrativos

Quiz
•
7th Grade
20 questions
La Ropa y Los Colores

Quiz
•
6th - 7th Grade
21 questions
Demonstrative Adjectives and Pronouns in Spanish

Quiz
•
7th Grade - University