1) What is the correct syntax to output "Hello World" in Python? a) echo "Hello World" b) echo("Hello World") c) print "Hello World" d) print("Hello World") 2) How do you create a variable with the numeric value 5? a) x = "5" b) x = 5 c) Both the answers are correct 3) In Python, 'Hello', is the same as "Hello" a) True b) False 4) Which operator is used to calculate exponentiation? a) * b) x c) # d) ** 5) Which function is used to get the input from the user? a) get() b) fetch() c) input() d) int() 6) What is the % operator called in python? a) percentage operator b) division operator c) modulo operator d) integer division 7) If days = 2*3+5*2 then what value is assigned to variable days when the expression is executed? a) 33 b) 16 c) 32 d) 15
0%
Python Quiz - Concepts revisited
แชร์
แชร์
แชร์
โดย
Shinuarora28
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม