แบบทดสอบกลางภาค เขียนโปรแกรมภาษาไพธอน print และ input

แบบทดสอบกลางภาค เขียนโปรแกรมภาษาไพธอน print และ input

8th Grade

15 Qs

quiz-placeholder

Similar activities

CPA Revision MCQ1

CPA Revision MCQ1

8th - 9th Grade

20 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

Revision Quiz 2 - Information Technology

Revision Quiz 2 - Information Technology

7th - 8th Grade

10 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

Microsoft PowerPoint 2016

Microsoft PowerPoint 2016

8th Grade

15 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

แบบทดสอบกลางภาค เขียนโปรแกรมภาษาไพธอน print และ input

แบบทดสอบกลางภาค เขียนโปรแกรมภาษาไพธอน print และ input

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Mallika Sirivorajanyadee

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ฟังก์ชัน print() ในภาษาไพธอนใช้เพื่อแสดงข้อมูลบนหน้าจอ

จริง

เท็จ

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

คำสั่งภาษาไพธอนใดต่อไปนี้ที่จะแสดงข้อความ "Hello World!" บนหน้าจอ

display("Hello World!")

show("Hello World!")

print("Hello World!")

output("Hello World!")

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ฟังก์ชัน input() ในภาษาไพธอนอนุญาตให้โปรแกรมรับข้อมูลจากผู้ใช้

จริง

เท็จ

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

โค้ดภาษาไพธอนต่อไปนี้จะทำอะไร

name = input()

แสดงคำว่า "name" บนหน้าจอ

ถามให้ผู้ใช้ป้อนชื่อของพวกเขาและเก็บไว้ในตัวแปรที่ชื่อว่า name

แสดงค่าที่เก็บไว้ในตัวแปรที่ชื่อว่า name

ทำให้เกิดข้อผิดพลาดเนื่องจากไม่มีอะไรอยู่ในวงเล็บ

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

คำสั่งภาษาไพธอนใดต่อไปนี้ที่จะถามผู้ใช้เกี่ยวกับสีที่พวกเขาชื่นชอบ

favorite_color = print("What is your favorite color?")

print(input("What is your favorite color?"))

 input("What is your favorite color?") = favorite_color

favorite_color("What is your favorite color?") = input()

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

อะไรจะแสดงบนหน้าจอหลังจากรันโค้ดภาษาไพธอนต่อไปนี้

print("My favorite number is", 7)


My favorite number is 7

"My favorite number is" 7

My favorite number is + 7

My favorite number is, 7

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

จริงหรือเท็จ: ฟังก์ชัน input() จะเก็บข้อมูลที่ผู้ใช้ป้อนเป็นตัวเลขเสมอ

จริง

เท็จ

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?