1) Who developed Python language? a) Zim Den b) Guido van Rossum c) NieneStom d) Wick van Rossum 2) Which one of the below operator will perform floor division? a) // b) / c) % d) /% 3) Which character is used in Python to make a single line comment?1. a) a) /*...*/ b) a) # c) b) // d) ! 4) What is the output of the following code :print 9//2 a) 4.5 b) 4.0 c) 4 d) Error 5) (in and not in) belongs to which operator group? a) Bitwise Operators b) Membership Operators c) Identity Operators d) Logical Operators 6) What is the output of “hello”+1+2+3 ? a) hello123 b) hello c) Error d) hello6 7) Which of the following will give "Simon" as output? If str1="John,Simon,Aryan" a) print(str1[-7:-12]) b) bprint(str1[-11:-7]) c) print(str1[-11:-6]) d) print(str1[-7:-11]) 8) What will following Python code return? str1="Stack of books" print(len(str1)) a) 13 b) 14 c) 15 d) 16 9) Which of the following functions do you use to write data in the binary format? a) write b) output c) dump d) send 10) csv stands for a) common separated value b) Connection separated Value c) Comma separated value d) Content separated Value 11) What does the <readlines()> method returns? a) str b) a list of lines c) list of single characters d) list of integers 12) The operators that check if two values are located on the same part of the memory is called_______ a) Bitwise Operators b) Membership Operators c) Logical Operators d) Identity Operators 13) Which of the following control statement is NOT supported in python? a) if b) switch c) while d) for 14) Which quotes are generally used for represent the multiline string in python? a) single quotes b) double quotes c) multi quotes d) triple quotes 15) Which of the following python module contains the function that is used to return the current working directory? a) sys b) math c) os d) random
0%
Python - III B.sc D
แชร์
แชร์
แชร์
โดย
Venikaranp
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
เกมตอบคำถาม
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม