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
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
問答遊戲
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?