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
10 ԹԳՀԳ 2-րդ կիսամյակ ամփոփիչ գրավոր աշխատանք/ֆունկցիաներ/

Quiz
•
10th Grade
12 questions
บทที่ 1 เรื่อง วิทยาการข้อมูล ม.5

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

Quiz
•
7th Grade - University
7 questions
คำถามทวนความรู้

Quiz
•
9th - 12th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
12 questions
N5 SDD - Python input and output

Quiz
•
7th - 11th Grade
11 questions
Python Intro 1

Quiz
•
7th - 12th Grade
15 questions
Java Math

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade