1) Which of the following is the correct extension of the Python file? a) .py b) .python c) .pyn 2) Which of the following character is used to give single-line comments in Python? a) // b) # c) >>> 3) Amongst which of the following is / are the Numeric Types of Data Types? a) int, float, complex b) str,num,int c) num, int, dict 4) The type() function can be used to get the data type of any object. a) True b) False 5) What is the name of the operator ** in Python? a) Floor division b) Exponentiation c) Modulus 6) Which arithmetic operators can we NOT use with strings? a) * b) + c) - 7) Python is case sensitive a) True b) False 8) Which of the following statements assigns the value 25 to the variable x in Python: a) x << 25 b) x : 25 c) x=25 9) If x=3.123, then int(x) will give ? a) 3 b) 1 c) 3.1 10) Which of the following is not the mode of interacting with python? a) Hybrid b) interactive c) script 11) What will be the data type of the following variable? A = '101' a) str b) int c) float 12) Which of the following assignment will return error? a) a = b = c = 89 b) a=10, b=6 c) a,b,c=12,13,14 13) Variables whose values can be changed after they are created and assigned are called __________________ a) mutable b) immutable c) changeable 14) Which method is used to find the memory location of variable? a) id b) add c) find 15) How to output the string “May the odds favor you” in Python? a) print(“May the odds favor you”) b) echo(“May the odds favor you”) c) System.out(“May the odds favor you”)
0%
Python basics
共享
共享
共享
由
Biya
10-18
Computer
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
问答游戏
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?