1) Which symbol is used for “not equal to” in Python? a) == b) != c) <= d) >= 2) What will this code print? a) True b) False c) Error d) Nothing 3) Which of these is a valid variable name in Python? a) 2value b) first-name c) first_name d) first name 4) What happens if you forget the colon : in an if statement? a) Python ignores it b) It runs anyway c) SyntaxError d) Nothing happens 5) What does this expression evaluate to? a) True b) False c) Yes d) No 6) What is the default data type of input() in Python? a) String b) Integer c) Float d) Bool 7) Which keyword is used to add an alternative condition in Python? a) else b) else if c) elif d) elseif 8) What is the correct way to write a single-line comment in Python? a) // This is a comment b) /* This is a comment */ c) ''' This is a comment d) # This is a comment 9) What will the following code output? a) 8 b) 53 c) 5 + 3 d) "5 + 3" 10) What is the output of this code? a) A b) B c) C d) Nothing
0%
Python Intro Quiz
แชร์
แชร์
แชร์
โดย
Karenahmed81
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม