1) Which of the following is a correct way to declare (create) a variable in Python? a) x = 5 b) var x = 5 c) declare x as 5 d) int x = 54 2) What will be the output of the following code? a) 10 b) 15 c) error d) 5 3) What is the output of the following code? a) HelloHelloHello b) 3 Hello c) Hello 3 times d) Error 4) What will be the output of the following code? a) 10 b) error c) 52 d) 55 5) Which of the following is not a valid data type in Python? a) int b) string c) float d) array 6) Which operator is used for multiplication in Python? a) + b) * c) / d) - e) x f) ** 7) What will be the output of the following code? a) cat b) dog c) mouse d) 1 e) x 8) How do we display something to the screen? a) print ( ) b) input ( ) c) display ( ) d) show ( )
0%
Python
แชร์
แชร์
แชร์
โดย
Lcleminson
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
เปิดกล่อง
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม