คำสั่งในบรรทัดใดเขียนไม่ถูกต้อง และต้องแก้ไขอย่างไร

แบบทดสอบหลังเรียนไพทอน2567

Quiz
•
Computers
•
7th Grade
•
Hard
นายสราวุธ มุขโต
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
บรรทัดใดกำหนดชนิดข้อมูลไม่ถูกต้อง และไม่ถูกอย่างไร
บรรทัดที่ 3 เพราะควรใช้ชนิดข้อมูลเป็น float
บรรทัดที่ 2 เพราะต้องกำหนดชนิดข้อมูลเป็น int
บรรทัดที่ 1 เพราะรับข้อมูลเป็นข้อความ ไม่ต้องกำหนดชนิดข้อมูล เป็น float
คำตอบทุกข้อรวมกัน
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ด บรรทัดที่ error คือบรรทัดที่เท่าไหร่ และแก้ไขอย่างไร
บรรทัดที่ 1 เปลี่ยนชนิดข้อมูลเป็น float
บรรทัดที่ 4 ต้องใช้คำสั่ง elif :
บรรทัดที่ 4 ต้องกำหนดเงื่อนไขหลังคำสั่ง else:
บรรทัดที่ 4 ต้องใส่เครื่องหมาย : หลังคำสั่ง else
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
บรรทัดที่หายไป ต้องเขียนคำสั่งอย่างไร
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ด บรรทัดที่ 8 ควรเขียนอย่างไร
ไม่ต้องใส่คำสั่งใด ๆ
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ด ต้องแก้ไขที่บรรทัดใด และแก้ไขอย่างไร
บรรทัดที่ 4 แก้ไขคำสั่ง else if : เป็น elif:
บรรทัดที่ 6 แก้ไข else: เป็น elif:
บรรทัดที่ 4 หลัง elif ไม่ต้องมีเงื่อนไข
บรรทัดที่ 6 หลัง else : ต้องมีเงื่อนไข else x=10 :
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ด บรรทัดที่ 2 เราจะเขียนเงื่อนไขได้อย่างไร
num%2=0:
num//2==0
"num//2",=,"0"
num%2==0:
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
MS Word 2013

Quiz
•
7th Grade
20 questions
ข้อสอบปลายภาควิทยาการคำนวณ ม.1-2567

Quiz
•
7th Grade
20 questions
ข้อสอบ Python

Quiz
•
7th Grade
20 questions
แบบทดสอบ เรื่อง Scratch

Quiz
•
7th Grade
20 questions
Final Exam M.3

Quiz
•
7th - 9th Grade
20 questions
การทดสอบความรู้คอมพิวเตอร์ ม.2

Quiz
•
7th Grade
20 questions
สนุกกับบทที่ 3 และ 4

Quiz
•
6th - 8th Grade
20 questions
วิทยาการคำนวณ ชั้นมัธยมศึกษาปีที่ 2/67

Quiz
•
7th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
37 questions
7th Grade Summer Recovery Review

Quiz
•
7th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade