PYTHON测试题

合集下载

python基础测试题

python基础测试题

python基础测试题一、选择题1、以下哪个是 Python 中的合法变量名?()A 123varB var 123C my_varD @var答案:C解析:在 Python 中,变量名只能包含字母、数字和下划线,且不能以数字开头。

选项 A 以数字开头,选项 B 中间有空格,选项 D 以特殊字符@开头,都不符合变量名的规则,只有选项 C 是合法的变量名。

2、以下代码的输出结果是什么?()```pythonx = 5y = 2print(x // y)```B 2C 3D 7答案:B解析:在Python 中,`//`是整除运算符,返回商的整数部分。

5 除以 2 的商为 25,取整数部分为 2,所以输出结果是 2。

3、以下哪个方法可以将字符串转换为整数?()A `str()`B `int()`C `float()`D `complex()`答案:B解析:`int()`函数用于将一个数字或字符串转换为整数。

`str()`函数将对象转换为字符串,`float()`函数将对象转换为浮点数,`complex()`函数用于创建复数。

4、以下哪个是 Python 中用于创建列表的符号?()A `{}`B `()`D `<>`答案:C解析:在 Python 中,使用方括号``来创建列表。

花括号`{}`用于创建字典,小括号`()`用于创建元组等。

5、以下代码的输出结果是什么?()```pythonmy_list = 1, 2, 3, 4, 5print(my_list1:4)```A `2, 3, 4`B `1, 2, 3`C `2, 3, 4, 5`D `1, 2, 3, 4`答案:A解析:列表的切片操作`start:end` 会返回从索引`start` (包含)到索引`end` (不包含)的子列表。

在这个例子中,`my_list1:4` 会返回索引 1 到索引 3 的元素,即`2, 3, 4` 。

二、填空题1、 Python 中的注释可以使用_____(单行注释)和_____(多行注释)。

python考试试卷题目和答案

python考试试卷题目和答案

python考试试卷题目和答案**Python考试试卷题目和答案**一、选择题(每题2分,共20分)1. Python中,以下哪个是正确的变量命名方式?A. 2variableB. variable-nameC. variableNameD. $variable答案:B2. Python中,以下哪个是合法的列表元素?A. [1, 2, 3, 4]B. (1, 2, 3, 4)C. {1, 2, 3, 4}D. <1, 2, 3, 4>答案:A3. 在Python中,以下哪个是正确的字符串?A. 'Hello, World!'B. "Hello, World!"C. `Hello, World!`D. "Hello, World!"答案:A、B、C4. Python中,以下哪个是正确的字典定义方式?A. dict = {1: 'one', 2: 'two'}B. dict = {'one': 1, 'two': 2}C. dict = (1: 'one', 2: 'two')D. dict = [1: 'one', 2: 'two']答案:A、B5. Python中,以下哪个是正确的函数定义?A. def my_function(): passB. my_function = def(): passC. function my_function(): passD. def my_function(): return答案:A6. Python中,以下哪个是正确的条件语句?A. if x > 0:B. if x > 0 then:C. if x > 0 else:D. if x > 0 elif x < 0:答案:A、D7. Python中,以下哪个是正确的循环语句?A. for i in range(10): print(i)B. for i = 0 to 10: print(i)C. while i < 10: print(i)D. while i < 10 do: print(i)答案:A8. Python中,以下哪个是正确的异常处理语句?A. try: pass except: passB. try: pass except Exception: passC. try: pass except error: passD. try: pass except Exception as e: print(e)答案:B、D9. Python中,以下哪个是正确的模块导入方式?A. import moduleB. from module import *C. import * from moduleD. from module import function答案:A、B、D10. Python中,以下哪个是正确的类定义?A. class MyClass: passB. def MyClass: passC. class my_class(): passD. class MyClass(): pass答案:A、D二、填空题(每题2分,共20分)1. Python中的内置数据类型包括整数(int)、浮点数(float)、字符串(str)、_________、_________、_________。

python基础能力测试习题(带答案详解)

python基础能力测试习题(带答案详解)

Python 能力测试题一、选择题1.运行下列程序后,输入了一个数字“100”,并按下Enter 键。

下列说法正确的是( ) 1.a = input("请输入任意内容:") 2.if a == '100':3. print ("你输入的是",a)A 、程序不能运行,出现错误提示信息B 、程序能够运行,没有任何错误信息C 、程序不能运行,出现乱码信息D 、程序能够运行,输出“你输入的是:100”2.下述while 循环体执行的次为( )1.k = 100 2.while k > 1: 3.k= k // 3 A 、6 B 、5 C 、4 D 、33.运行下列程序后,程序输出的结果是( ) 1.sum = 0 2.n = 3 3.for i in range(2, 4): 4.n *= 2 5.sum += n 6.print (sum) A 、9 B 、18 C 、21 D 、364.初始时列表L=[10,13,15,12,14,11],列表中的元素经过一系列位置交换后,最大的元素移动到了列表尾部,位置交换后L=[10,13,12,14,11,15],下述能实现这个功能的代码是( )。

5 5、若元组 y=(‘A ’,‘B ’, ‘C ’, ‘D ’),则能够返回元素‘D ’的语句是( )。

A 、y[0]B 、y[3]C 、y[-2]D 、y[4]6、以下程序的最终打印结果( )。

l = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ,9 ]print ( l [1 : 4] )A 、[1,2,3]B 、[1,2,3,4]C 、[2,3,4]D 、[2,3]A 、for i in range(6):if L[i] < L[i -1]:L[i],L[i -1] = L[i -1],L[i]B 、for i in range(5): if L[i] < L[i -1]: L[i],L[i -1] = L[i -1],L[i]C 、for i in range(6):if L[i] > L[i+1]:L[i],L[i+1] = L[i+1],L[i] D 、for i in range(5): if L[i] > L[i -1]: L[i],L[i+1] = L[i+1],L[i]7、初始时x = 3,x // 2+x**2 运算后的值为()A、7.5B、10C、8D、10.58、下面程序的作用是()。

python简答题及答案

python简答题及答案

python简答题及答案python测试题及答案,python简答题及答案一、选择题(每题2分,共20分)1.下面哪个语句在Python中是非法的?(二)a、x=y=z=1 B、x=(y=z 1)c、x、y=y,x D、x=y?x=x y2.关于Python内存管理,下列说法错误的是(B)a、变量不用提前声明B、变量不用先创建赋值直接使用。

c,变量不需要指定类型D,可以用del释放资源3.3 .打印100-25 * 3% 4输出应该是什么?(二)A.1B.97C.25D.04.以下哪一项不是Python (B)的合法标识符a、int32 B、40XL C、self D 、__name__5.下列哪个陈述是错误的(A)除了字典类型,所有标准对象都可以用于布尔测试。

b,空字符串的布尔值为假c,空列表对象的布尔值为假D.任何数值为0的数字对象的布尔值都是假的。

6.下列表达式中正确的值是(C)5 4j 2-3j B、3221==1和2!=1?d、not(1==1和0!=1)7.Python不支持的数据类型有(A)a、char B、int C、float D、list8.下列不能创建词典的说法是(C)a、字典1={} B、字典2={ 3 : 5 }c、dict3=dict([2,5],[ 3,4 ])d、dict4=dict(([1,2],[3,4])9.下列不能创建集合的说法是(C)a、s1=set () B、s2=set ("abcd ")c、s3=(1,2,3,4) D、s4=frozenset((3,2,1))10.下列Python语句是正确的(D)a、min=x if x y else y B、max=x y and?x : yc、if (x y) print x D、while True :通过二填空(每空一分,共10分)设l=[a , b , c , d , e , f , g],则L[3]的值为_ d _ _?l [:5]的值是_ [d , e] _ l [33605]是_ [a ,b , c , d , e] _ l [:]是_ [在Python中,可变数据类型是_ _ list _ _和_ _ dict _ _,不可变数据类型是_ _ int _ _和_ _ str _ _三、简答题(每题5分,共45分)1声明变量有什么注意事项?答:1.由字母、数字、下划线组成,不能以数字开头;2.不能用关键词。

Python期末测试试卷(A卷)(解析版)

Python期末测试试卷(A卷)(解析版)

Python期末测试试卷(A卷)姓名:___________班级:___________分数:___________【满分:时间:90分钟】一、选择题(40分,每题2分)1. Python面向对象的特征不包括()A. 封装B. 继承C. 多态D. 定义【答案】D【解析】面向对象的特征是:封装、继承和多态。

2. Python源代码程序编译后的文件扩展名为()。

A. .pyB. .cC. .javaD. .php【答案】A【解析】A 正确Python源代码文件扩展名为.py。

B 错误C语言源代码文件扩展名为.c。

C 错误Java源代码文件扩展名是.java。

D 错误PHP源代码文件扩展名是.php。

3.Python单行注释使用的是那个符号()。

A. ( )B. “ ”C. ,D. #【答案】D【解析】A 错误Python中内置函数使用括号( )表示。

B 错误Python字符串需要用单引号或双引号括起来。

C 错误Python可以接受多个字符串的输入和输出,中间用”,”隔开即可。

D 正确Python中的注释起提示作用,单行注释以#开头。

4.关于字符串下列说法错误的是()。

A. 字符应该视为长度为1的字符串B. 字符串以\0标志字符串的结束C. 既可以用单引号,也可以用双引号创建字符串D. 在三引号字符串中可以包含换行回车等特殊字符【答案】B【解析】Python字符串其实是一个固定长度的字符数组,所以不用结束标志。

5. Python语言语句块的标记是()。

A. 分号B. 逗号C. 缩进D. /【答案】C【解析】Python在程序编写的过程中严格遵守缩进原则。

6. 下面哪个不是Python合法的变量名()。

A. int_32B. 40YLC. priceD. _name_【答案】B【解析】变量名只能是字母、数字或下划线的任意组合,但是变量名首字符不能是数字。

7. 关于流程图的常用标识,以下选项中描述错误的是()。

大学python考试题目及答案

大学python考试题目及答案

大学python考试题目及答案一、选择题(每题2分,共20分)1. Python中,以下哪个关键字用于定义一个函数?A. defB. functionC. funcD. define答案:A2. 在Python中,以下哪个数据结构用于存储一系列元素?A. ListB. SetC. DictionaryD. Tuple答案:A3. 以下哪个选项是Python中的逻辑运算符?A. andB. orC. notD. All of the above答案:D4. Python中,以下哪个函数用于计算字符串的长度?A. len()B. length()C. size()D. count()答案:A5. 在Python中,以下哪个关键字用于创建一个循环?A. whileB. loopC. repeatD. iterate答案:A6. 以下哪个选项是Python中用于异常处理的关键字?A. tryB. catchC. errorD. except答案:A7. Python中,以下哪个函数用于将字符串转换为大写?A. upper()B. capitalize()C. title()D. swapcase()答案:A8. 在Python中,以下哪个关键字用于定义一个类?A. classB. typeC. defineD. struct答案:A9. 以下哪个选项是Python中的布尔值?A. TrueB. falseC. TrueD. None答案:A10. Python中,以下哪个函数用于生成一个随机数?A. random()B. rand()C. generate()D. randomize()答案:A二、填空题(每题2分,共20分)1. 在Python中,使用______关键字可以定义一个空集合。

答案:set2. Python中的列表推导式是一种从其他可迭代对象创建______的简洁方式。

答案:list3. 使用______函数可以将字符串中的所有字符转换为小写。

Python练习题(附答案)

Python练习题(附答案)

Python练习题(附答案)一、单选题(共57题,每题1分,共57分)1.Python中,用于获取用户输入的命令为( )A、inputB、readC、getD、for正确答案:A2.关于Python的分支结构,以下选项中描述错误的是( )A、分支结构使用if保留字B、Python中if-elif-else语句描述多分支结构C、分支结构可以向已经执行过的语句部分跳转D、Python中if-else语句用来形成二分支结构正确答案:C3."给出如下代码TempStr ="Hello World" 可以输出“World”子串的是( )"A、print(TempStr[–5:0])B、print(TempStr[–5:])C、print(TempStr[–5: –1])D、print(TempStr[–4: –1])正确答案:B4.以下不能创建一个字典的语句是 ( )A、dict3 = {[1,2,(2,3)]: “uestc”}B、dict2 = { 3 : 5 }C、dict1 = {}D、dict4 = {(1,2,3): “uestc”}正确答案:A5.关于lambda函数,以下选项中描述错误的是( )A、lambda函数也称为匿名函数B、lambda函数将函数名作为函数结果返回C、定义了一种特殊的函数D、lambda不是Python的保留字正确答案:D6.下列说法中正确的是( )。

A、continue能结束循环,而break只能结束本次循环B、break能结束循环,而continue只能结束本次循环C、break用在for语句中,而continue用在while语句中D、break用在while语句中,而continue用在for语句中正确答案:B7.关于函数的返回值,以下选项中描述错误的是( )A、函数可以有return,也可以没有B、return可以传递0个返回值,也可以传递任意多个返回值C、函数可以返回0个或多个结果D、函数必须有返回值正确答案:D8.下列不合法的Python变量名是( )A、Python2B、Hello_WorldC、N.xD、sum正确答案:C9.下列表达式的值为True的是( )A、not(1==1 and 0!=1)B、1==1 and 2!=1C、3>2>2D、(2**=3)<(2*=3)正确答案:B10.关于Python循环结构,以下选项中描述错误的是( )A、遍历循环中的遍历结构可以是字符串、文件、组合数据类型和range()函数等B、continue用来结束当前当次语句,但不跳出当前的循环体C、Python通过for、while等保留字构建循环结构D、continue结束整个循环过程,不再判断循环的执行条件正确答案:D11.在Python函数中,用于获取用户输入的是( )A、get()B、input()C、Eval()D、print()正确答案:B12.面代码的执行结果是( ) print(pow(3,0.5)*pow(3,0.5)==3)A、pow(3,0.5)*pow(3,0.5)==3B、FalseC、3D、True正确答案:B13.优先级最高的运算符为( )。

Python模拟习题(附答案)

Python模拟习题(附答案)

Python模拟习题(附答案)一、单选题(共57题,每题1分,共57分)1.下列不合法的Python变量名是( )A、Hello$WorldB、N_xC、Python2D、sum正确答案:A2.以下选项不属于 Python 整数类型的是( )A、十进制B、二进制C、十二进制D、八进制正确答案:C3.以下选项中,不是Python IDE的是( ) -A、PyCharm -B、Jupyter Notebook-C、Spyder-D、R studio正确答案:D4.使用( )关键字来创建python自定义函数。

A、functionB、funcC、procedureD、def正确答案:D5.以下语句的运行结果是>>>Python = “ Python”>>> print (“ study” + Python)A、语法错误B、“study“PythonC、study PythonD、studyPython正确答案:C6.下列( )语句在Python中是非法的A、x = (y = z + 1)B、x, y = y, xC、x += yD、x = y = z = 1正确答案:A7.关于列表数据结构,下面描述正确的是( )A、不支持 in 运算符B、必须按顺序插入元素C、可以不按顺序查找元素D、所有元素类型必须相同正确答案:C8.以下选项中,对CSV格式的描述正确的是( )A、CSV文件以英文特殊符号分隔元素B、CSV文件以英文逗号分隔元素C、CSV文件以英文空格分隔元素D、CSV文件以英文分号分隔元素正确答案:B9.关于Python的无限循环,以下选项中描述错误的是( )A、无限循环通过while保留字构建B、无限循环也称为条件循环C、无限循环一直保持循环操作,直到循环条件不满足才结束D、无限循环需要提前确定循环次数正确答案:D10."下面代码实现的功能描述为( )Def fact(n): if n==0: return 1 else:Return n*fact(n-1)Num =eval(input("请输入一个整数:")) print(fact(abs(int(num))))"A、接受用户输入的整数N,输出N的阶乘值B、接受用户输入的整数N,判断N是否是素数并输出结论C、接受用户输入的整数N,判断N是否是水仙花数D、接受用户输入的整数N,判断N是否是完数并输出结论正确答案:A11.下列函数中,用于返回元组中元素最小值的是( )A、minB、maxD、len正确答案:A12.关于函数的关键字参数使用限制,以下选项中描述错误的是( )A、关键字参数必须位于位置参数之前B、关键字参数顺序无限制C、不得重复提供实际参数D、关键字参数必须位于位置参数之后正确答案:A13.给出下面代码: k=10000 while k>1: print(k) k=k/2 上述程序的运行次数是( )A、1000B、14C、13D、15正确答案:B14.字符串是一个字符序列,例如,字符串s,从右侧向左第2个字符用( )索引?A、s[0:-2]B、s[2]C、s[:-2]D、s[-2]正确答案:D15.下列运算符的使用错误的是( )A、-10 % -3B、3 * ‘abc’C、[1, 2, 3] + [4, 5, 6]D、1 + ‘a’正确答案:D16.下面代码的执行结果是( )>>> def area(r, pi = 3.14159): return pi * r * r>>> area(3.14, 4)A、39.4384B、出错C、50.24正确答案:A17."下面代码的输出结果是( ) for a in ‘mirror’: print(a, end="") if a == ‘r’: break"A、miB、mirrorC、mirD、Mirror正确答案:C18.使用( )关键字声明匿名函数A、funcB、functionC、defD、lambda正确答案:D19.下面代码的输出结果是>>> hex(255)A、‘0bff’B、‘0xff’C、'0offD、'0eff正确答案:B20.已知x=2,语句x*=x+1执行后,x的值是( )A、6B、3C、2D、4正确答案:A21.已知x=10,y=20,z=30;以下语句执行后x,y,z的值是()。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

PYTHON测试题A.defines a list and initializes itB.defines a function, which does nothingC.defines a function, which passes its parameters throughD.defines an empty classA.<type 'int'>B.<type 'number'>C.<type 'float'>D.<type 'double'>E.<type 'tuple'>A.<type 'tuple'>B.<type 'int'>C.<type 'set'>D.<type 'complex'>E.<type 'list'>A.<type 'function'>B.<type 'tuple'>C.<type 'NoneType'>D.<type 'str'>E.<type 'type'>A.<type 'complex'>B.<type 'unicode'>C.<type 'int'>D.<type 'float'>E.<type 'dict'>A.<type 'NoneType'>B.<type 'tuple'>C.<type 'type'>D.<type 'function'>E.<type 'bool'>A.syntax errorB.4C.5D.6E.7A.<type 'int'>B.<type 'number'>C.<type 'float'>D.<type 'double'>E.<type 'tuple'>A.7B.12C.24D.36E.48A.2.0B.2.25C.9.0D.20.25E.21A.1B.2C.4D.5E.7A.yesB.noC.fails to compileA.1B.3C.4D.7E.none of the above19. What gets printed?(C)A.new line then the string: woowB.the text exactly like this: r"\nwoow"C.the text like exactly like this: \nwoowD.the letter r and then newline then the text: woowE.the letter r then the text like this: nwoow20.What gets printed?(B)A.on one line the text: hello worldB.on one line the text: helloworldC.hello on one line and world on the next lineD.syntax error, this python program will not run21.What gets printed?(E)A.\x48\x49!B.4849C.4849!D. 48 49!E.HI!22. What gets printed?(D)A.0xA + 0xaB.0xA 0xaC.14D.20E.0x2023. What gets printed?(E)A.None NoneB.None 11C.11 NoneD.11 11E.Error is generated by program24. What gets printed?(E)erB.billC.passwordD.hillaryE.Nothing. Python syntax error25. What gets printed?(B)A.NoneB.123C.666D.SyntaxError, this program will not run26. What gets printed?(C)A.stB.stoC.toD.torE.Syntax Error27. What gets printed?(D)A.snow stormB.snowXstormC.snow XtormD.ERROR, this code will not run28. Which numbers are printed?(C)A.2, 4, 6B.0, 1, 2, 4, 5, 6C.0, 1, 4, 5D.0, 1, 4, 5, 6, 7, 8, 9E.1, 2, 4, 5, 629. What sequence of numbers is printed?(B)A.1 2 3B.1 2 1 3C.1 2 1 3 1 2 1 3D.1 1 1 1 2 2 3 3E.Syntax Error30. What sequence of numbers is printed?(E)A.2 3 2 4B.4 6 4 8C.1 1.5 1 2D.1 1 1 2E.4 9 4 1631. What numbers get printed(C)A.500 300B.500 500C.600 400D.600 600E.300 50032. What gets printed by the code snippet below?(B)A.5B.5.0C.5.5D.6E.6.033. What gets printed by the code below?(E)A.1B.2C.49D.50E.5134. What gets printed?(E)A.fooB.foo fooC.foo 2D.2E.An exception is thrown35. What gets printed?(E)A.simpleFunctionB.simpleC.funcD.funtionE.cool36. What does the code below do?(C)A.Changes the location that the python executable is run fromB.Changes the current working directoryC.Adds a new directory to seach for python modules that are importedD.Removes all directories for modsE.Changes the location where sub-processes are searched for after they are launched37. What gets printed?(C)A.3B.7C.13D.14E.1538. Which of the following print statements will print all the names in the list ona seperate line(A)A.print "\n".join(names)B.print names.join("\n")C.print names.concatenate("\n")D.print names.append("\n")E.print names.join("%s\n", names)39. True or false? Code indentation must be 4 spaces when creating a code block?(B)A.TrueB.False40. Assuming the filename for the code below is /usr/lib/python/person.pyand the program is run as:python /usr/lib/python/person.pyWhat gets printed?(D)A.PersonB.getAger.lib.python.personD.__main__E.An exception is thrown41. What gets printed(B)B.dictC.listD.tupleE.object42. What gets printed?(C)A.intB.listC.tupleD.dictE.set43. What gets printed?(D)A.0B.1C.2D.3E.444. What gets printed?(D)A.1B.2C.3D.4E.545. What gets printed?(C)A.2B.4C.6D.7E.An exception is thrown46.What gets printed?(E)B.2C.4D.7E.An exception is thrown47. What gets printed?(E)A.8B.12C.24D.30E.3348. What gets printed?(A)A.0B.1C.2D.3E.An exception is thrown49. What gets printed?(B)B.2C.3D.4E.An exception is thrown50. What gets printed?(E)A.AB.rC.AmirD.DaoE.o51. What gets printed?(B)A.11B.12C.21D.22E.3352. What gets printed?(E)A.-1B.0C.4D.EdwardE.An exception is thrown53. What gets printed?(B)A.1B.2C.An exception is thrown54. What gets printed?(C)A.iB.aC.cD.CE.An exception is thrown55. What gets printed?(B)B.5C.8D.12E.An exception is thrown56. Which of the following data structures can be used with the "in" operator to check if an item is in the data structure?(E)A.listB.setC.dictionaryD.None of the aboveE.All of the above57. Wat gets printed?(D)A.2B.4C.5D.8E.An exception is thrown58. What gets printed?(C)A.1B.4C.5D.8E.An exception is thrown59. What gets printed?(E)A.1B.2C.5D.7E.An exception is thrown60. What gets printed?(B)A.1 2B.2 1C.An exception is thrownD.This program has undefined behavior61. What gets printed?(A)A.+++1 some info+++B.+++%s+++C.1D.some info62. What gets printed?(C)A.strB.intC.tupleD.listE.dict63. What gets printed?(E)A.inB.strC.tupleD.listE.dict64. What gets printed?(B)A.1B.3C.6D.10E.An exception is thrown65. How do you create a package so that the following reference will work?(C)A.Declare the myparser package in mytools.pyB.Create an __init__.py in the home dirC.Inside the mytools dir create a __init__.pyD.Create a myparser.py directory inside the mytools directoryE.This can not be done66. What gets printed?(E)A.1B.2C.3D.6E.767. What gets printed?(E)A.2B.4C.6D.8E.An exception is thrown68. What gets printed?(A)A.hiB.hC.Inside the mytools dir create a __init__.py and myparser.pyD.104105E.10469. What gets printed?(A)A.aB.bC.c70. What gets printed?(C)A.2B.3C.4D.6E.An exception is thrown71. What gets printed (with python version 2.X) assuming the user enters the following at the prompt?(D)#: fooA.fB.fooC.#: fooD.An exception is thrown72. What gets printed?(C)A.4B.5C.10D.15E.An exception is thrown73. If the user types '0' at the prompt what gets printed?(B)A.validB.invalidC.An exception is thrown74. What gets printed?(D)A.1B.2C.7D.10E.An exception is thrown75. What gets printed?(C)A.1B.2C.6D.10E.An exception is thrown76. What gets printed(D)A.1B.2C.6D.10E.An exception is thrown77. What gets printed?(C)A.1B.2C.6D.10E.An exception is thrown78. What gets printed?(C)A.1B.2C.6D.10E.An exception is thrown79. What gets printed?(B)A.15B.51C.150D.An exception is thrown80. What gets printed (with python version 3.X) assuming the user enters the following at the prompt?(B)#: fooA.fB.fooC.Not a numberD.An exception is thrown。

相关文档
最新文档