Search Header Logo

ไพทอน 04 การรับค่า

Authored by Suleeporn Yuprasit

Computers

11th Grade

Used 13+ times

ไพทอน 04 การรับค่า
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

ฟังก์ชั่นในการรับค่า คือข้อใด

scanf

input

print

math

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อมูลชนิดใดที่ไม่ได้รับค่าเพื่อประมวลผล

str

float

bool

int

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ทุกครั้งที่มีการรับค่า ข้อมูลจะถูกมองว่าเป็นชนิดข้อมูลแบบใด

str

int

float

bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

score = int (score) คำสั่งนี้คือการทำอะไร

เก็บค่าไว้ในตัวแปร score

กำหนดให้มีการรับค่าข้อมูล

แปลงค่าที่รับเข้ามาให้เป็นชนิดข้อมูล int

ถูกทุกข้อ

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

score = input("รับค่าตัวเลข ") จากคำสั่งดังกล่าว เป็นการทำอะไร

รับค่าตัวเลขมาเก็บไว้ในตัวแปร score

แสดงค่าในตัวแปร score

แปลงชนิดข้อมูลในตัวแปร score ให้เป็นตัวเลข

กำหนดค่าให้กับตัวแปร score เป็นตัวเลข

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

gpa = float (gpa) ข้อใดคือชนิดข้อมูลที่ถูกแปลง

int

float

str

bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

gpa = input("ใส่ GPA ของนักเรียน")

gpa = float(gpa)

สามารถเขียนโปรแกรมให้สั้นได้อย่างไร

gpa = input(float)

gpa = float("ใส่ GPA ของนักเรียน")

gpa = float(input("ใส่ GPA ของนักเรียน")

input = float(gpa)

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?