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 代码
删除
恢复自动保存:
?