1) What is correct syntax to output"Hello World". a) print("Hello World") b) Print('Hello World') c) print('hello World') d) All 2) How do you insert comments in multiple lines? a) ''' b) # c) """ d) a and c 3) Which one is not a legal variable name? a) _avar b) avr@ c) _a_vr d) AVAR 4) How will you create a variable with string "Go India"? a) x=go india b) x="Go India" c) str(x)="Go India" d) None 5) In Python , a variable may be assigned a value of one type, and later assigned of different type. a) True b) False 6) Consider statements: n=300 ,m=n .Python has created how many objects and references? a) One,Two b) Two,Two c) One,One d) Two,One 7) Which Python built in function returns unique number assigned to an object? a) ref() b) input() c) id() d) type() 8) Which of the following are valid Python Variables names: a) Age b) home-address c) home*address d) var1.3 9) What will be output, x=36/4*(3+2)*4+2 a) 182.0 b) 117 c) 32 d) error 10) For x in range(.5 , 5.5, .5):This is called a) selection b) sequence c) Iteration d) None
0%
Python Quiz1
แชร์
แชร์
แชร์
โดย
Mmps
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
เปิดกล่อง
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม