Search Header Logo

Data Conversion & User Input

Authored by อนุพงค์ คงสระ

Computers

10th Grade

Used 2+ times

Data Conversion &  User Input
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?