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
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
10 questions
แบบทดสอบก่อนเรียนภาษาPython

Quiz
•
10th Grade
10 questions
Bài 18-Các lệnh vào ra đơn giản

Quiz
•
10th Grade
15 questions
กลางภาค ภาษาซี

Quiz
•
9th - 12th Grade
10 questions
ชนิดข้อมูลในภาษาไพธอน

Quiz
•
10th Grade
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
Trắc nghiệm: Bài 18-Các lệnh vào ra đơn giản

Quiz
•
10th Grade
10 questions
แบบทดสอบก่อน-หลังเรียน

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade