1) How do you evaluate an expression in Python? a) Type 'evaluate' first b) Break it into pieces c) Type after >>> prompt d) Use a calculator 2) Which expression multiplies two numbers? a) 4 + 7 b) 4 x 7 c) 4 # 7 d) 4 * 7 3) Evaluate: 3 * 4 * 2 + 8 a) 24 b) 32 c) 40 d) 120 4) Which statement about variables is correct? a) Value never changes b) Must be lowercase c) Must start at zero d) Can hold Booleans 5) What is the purpose of a variable? a) Change future programs b) Combine numbers c) Remember values for later d) Indent source code 6) Which statement initializes a variable? a) Initialise() b) x = 3 c) start() d) finish() 7) If length = 200 and then length = 400 is run: a) Error message b) Error (can't change) c) Value becomes 400 d) Value becomes 600 8) In Python, the input() function: a) Uses a USB key b) Makes input faster c) Returns a string d) Must be called first 9) In Python, the print() function: a) Changes data type b) Displays a result c) Is the last command d) Must be called first 10) A data type with only two values is: a) Integer b) Float c) String d) Boolean
0%
Python Basics Quiz
แชร์
แชร์
แชร์
โดย
Durschoolcom
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
AI Enhanced: กิจกรรมนี้มีเนื้อหาที่สร้างโดย AI
ศึกษาเพิ่มเติม
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม