试题通
APP下载
首页
>
IT互联网
>
python单选题题目练习题
试题通
搜索
python单选题题目练习题
python单选题题目练习题
章节

单选题

题数量:164
去答题
试题通
python单选题题目练习题
16.下面代码的输出结果是()。 round(3.7423,2)

A. 3.74

B. 3.75

C. 3

D. 4

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc2-8a49-c097-d7557377b600.html
查看题目
28.执行下列程序段,输入数值 10,输出的结果是()。

A.  '15'

B.  程序出错

C.  '105'

D. 15

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc7-756a-c097-d7557377b600.html
查看题目
8.递归的两个关键特征是( )

A.  封装和调用

B.  循环和循环次数

C.  递归链和函数

D.  基例和递归链

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebf1-9b86-c097-d7557377b600.html
查看题目
4.若程序只有以下两行代码,则程序的执行结果为()。

A.  输出一个随机的结果

B. 0

C. 10

D.  程序出错

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebbd-bb33-c097-d7557377b600.html
查看题目
15.与绝大多数程序设计语言遵循的“向下兼容”原则不同的是,()。

A.  Python 2.x 和 Python 3.x 可以互相兼容彼此的程序

B.  Python 2.x 可以兼容 Python 3.x 的程序

C.  Python 3.x 可以兼容 Python 2.x 的程序

D.  Python 3.x 并不兼容 Python 2.x 的程序

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebba-e0d1-c097-d7557377b600.html
查看题目
23.关于字符串下列说法错误的是( )

A.  字符串的子串查找函数 find()只能返回第-个符合子串的位置,否则返回为 0

B.  既可以用单引号,也可以用双引号创建字符家

C.  在三引号字符串中可以包含换行回车等特殊字符

D.  {:.2f}用于格式化输出数值时保留小数点后 2 位

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd0-d30c-c097-d7557377b600.html
查看题目
24.已知 s1=2,s2='ab',则表达式 s1*s2 的值为( )

A.  ’abab'

B.  报错

C.  2ab

D.  'ab2’

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd1-31d9-c097-d7557377b600.html
查看题目
10.删除字典中的所有元素的方法是( )

A.  clear()

B.  close()

C.  delete()

D.  deleteAll()

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebec-9586-c097-d7557377b600.html
查看题目
11.执行表达式 2+'1a'后,结果为( )

A. 3

B.  '21a'

C.  报错

D.  '21

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebcc-09a9-c097-d7557377b600.html
查看题目
27.”P”in”python”的结果是( )

A. 1

B.  False

C. 0

D.  True

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd2-60d2-c097-d7557377b600.html
查看题目

python单选题题目练习题

首页
>
IT互联网
>
python单选题题目练习题

python单选题题目练习题

手机预览
试题通
python单选题题目练习题
章节

单选题

题数量:164
去答题
python单选题题目练习题

相关题目

16.下面代码的输出结果是()。 round(3.7423,2)

A. 3.74

B. 3.75

C. 3

D. 4

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc2-8a49-c097-d7557377b600.html
查看题目
28.执行下列程序段,输入数值 10,输出的结果是()。

A.  '15'

B.  程序出错

C.  '105'

D. 15

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc7-756a-c097-d7557377b600.html
查看题目
8.递归的两个关键特征是( )

A.  封装和调用

B.  循环和循环次数

C.  递归链和函数

D.  基例和递归链

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebf1-9b86-c097-d7557377b600.html
查看题目
4.若程序只有以下两行代码,则程序的执行结果为()。

A.  输出一个随机的结果

B. 0

C. 10

D.  程序出错

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebbd-bb33-c097-d7557377b600.html
查看题目
15.与绝大多数程序设计语言遵循的“向下兼容”原则不同的是,()。

A.  Python 2.x 和 Python 3.x 可以互相兼容彼此的程序

B.  Python 2.x 可以兼容 Python 3.x 的程序

C.  Python 3.x 可以兼容 Python 2.x 的程序

D.  Python 3.x 并不兼容 Python 2.x 的程序

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebba-e0d1-c097-d7557377b600.html
查看题目
23.关于字符串下列说法错误的是( )

A.  字符串的子串查找函数 find()只能返回第-个符合子串的位置,否则返回为 0

B.  既可以用单引号,也可以用双引号创建字符家

C.  在三引号字符串中可以包含换行回车等特殊字符

D.  {:.2f}用于格式化输出数值时保留小数点后 2 位

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd0-d30c-c097-d7557377b600.html
查看题目
24.已知 s1=2,s2='ab',则表达式 s1*s2 的值为( )

A.  ’abab'

B.  报错

C.  2ab

D.  'ab2’

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd1-31d9-c097-d7557377b600.html
查看题目
10.删除字典中的所有元素的方法是( )

A.  clear()

B.  close()

C.  delete()

D.  deleteAll()

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebec-9586-c097-d7557377b600.html
查看题目
11.执行表达式 2+'1a'后,结果为( )

A. 3

B.  '21a'

C.  报错

D.  '21

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebcc-09a9-c097-d7557377b600.html
查看题目
27.”P”in”python”的结果是( )

A. 1

B.  False

C. 0

D.  True

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd2-60d2-c097-d7557377b600.html
查看题目
试题通小程序
试题通app下载