Data Conversion & User Input

Quiz
•
Computers
•
10th Grade
•
Medium
อนุพงค์ คงสระ
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์ของโค้ดต่อไปนี้จะเป็นอย่างไร
data_type = type('5.0')
print(data_type)
<class 'float'>
<class 'int'>
<class 'str'>
5.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์ของโค้ดต่อไปนี้จะเป็นอย่างไร
data_type = type(5.0)
print(data_type)
<class 'float'>
<class 'int'>
<class 'str'>
5.0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์ของรหัสต่อไปนี้คืออะไร?
var = '25.0'
number = float(var)
result = number - 15.0
print(result)
10.0
10
35.0
ERROR
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ค่าที่เป็นไปได้ที่ตัวแปร number สามารถเก็บได้คือ ___
number = input('Enter a number: ')
print(number)
10
'10'
10.0
number
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์ของโค้ดต่อไปนี้จะเป็นอย่างไร
data_type = type(50)
print(data_type)
<class 'float'>
<class 'int'>
<class 'str'>
5.0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์ของรหัสต่อไปนี้คืออะไร?
var = 'saard'
number = int(var)
print(result)
10.0
10
35.0
ERROR
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์จากโปรแกรมนี้ คือ ข้อใด
x = input()
y = input()
print(x + y)
หากผู้ใช้งานป้อนข้อมูล 5,9 ตามลำดับ
14
59
95
xy
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
TRẮC NGHIỆM PYTHON

Quiz
•
9th - 12th Grade
10 questions
แบบทดสอบ Python Level1

Quiz
•
10th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
15 questions
Python

Quiz
•
6th Grade - University
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Ôn tập KTGK. Bài 18. Các lệnh vào ra đơn giản

Quiz
•
10th Grade
10 questions
Câu lệnh rẽ nhánh

Quiz
•
10th Grade
12 questions
S1 Start if

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade