APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
单选题
)
127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)

A、  8 2

B、  8,2

C、  8 3 2

D、  8,3,2

答案:C

解析:答案解析:

宏观经济学选择题
113. (单选题)字符串的strip方法的作用是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9b3c-c01a-2cf5d6189000.html
点击查看题目
5. (多选题)遍历循环语句的结构为:Plain Textfor var in iterable:其中var为变量名;iterable为一个可迭代对象,包括哪些类型的对象?
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ba58-c01a-2cf5d6189000.html
点击查看题目
22. (多选题)ls = [25, 13, 36, 1]ls为一个列表,删除其中元素13,输出列表[25, 36, 1]的正确的选项有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-dea1-c01a-2cf5d6189000.html
点击查看题目
31. (多选题)从字典d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}中删除元素'重庆': 3325,下面程序正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f1f2-c01a-2cf5d6189000.html
点击查看题目
116. (单选题)下列程序执行后输出的结果是( )Plain Textx='abc'y=xy=100print(x)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a1cb-c01a-2cf5d6189000.html
点击查看题目
152. (判断题)通过insert方法可以在指定的索引位置插入元素
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-e6ed-c01a-2cf5d6189000.html
点击查看题目
57. (单选题)字典类型主要是根据键来提取对应值,通过赋值操作可以实现字典元素的增添和修改,若对于字典Dict={2:two,3:three ,1:one,}进行操作Dict[1]=One,此时字典Dict将会变为( )(注意,下面选项不考虑顺序性)。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2909-c01a-2cf5d6189000.html
点击查看题目
55. (单选题)下述对元组的操作合法的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-24db-c01a-2cf5d6189000.html
点击查看题目
191. (填空题)在函数内部定义的变量称作( )变量
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-3401-c01a-2cf5d6189000.html
点击查看题目
133. ( )输入字符串,将字符串的开头和结尾变成'+',产生一个新的字符串,将代码写在下方:例如: 输入字符串'abc123', 输出'+bc12+'
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-c130-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
单选题
)
手机预览
宏观经济学选择题

127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)

A、  8 2

B、  8,2

C、  8 3 2

D、  8,3,2

答案:C

解析:答案解析:

分享
宏观经济学选择题
相关题目
113. (单选题)字符串的strip方法的作用是( )

A.   删除字符串头尾指定的字符

B.   删除字符串末尾指定的字符

C.   删除字符串头部指定的字符

D.   通过指定分隔符对字符串切片

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9b3c-c01a-2cf5d6189000.html
点击查看答案
5. (多选题)遍历循环语句的结构为:Plain Textfor var in iterable:其中var为变量名;iterable为一个可迭代对象,包括哪些类型的对象?

A.   整数

B.   字符串

C.   文件对象

D.   集合、range、列表、元组

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ba58-c01a-2cf5d6189000.html
点击查看答案
22. (多选题)ls = [25, 13, 36, 1]ls为一个列表,删除其中元素13,输出列表[25, 36, 1]的正确的选项有:

A. ls = [25, 13, 36, 1]ls.remove(13)print(ls)

B. ls = [25, 13, 36, 1]ls.pop(1)print(ls)

C. ls = [25, 13, 36, 1]ls.clear(13)print(ls)

D. ls = [25, 13, 36, 1]ls=[ls[0]]+ls[2:]print(ls)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-dea1-c01a-2cf5d6189000.html
点击查看答案
31. (多选题)从字典d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}中删除元素'重庆': 3325,下面程序正确的有:

A. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.pop('重庆')print(d)

B. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.popitem('重庆')print(d)

C. d={'北京':2030,'上海':2200,'天津':1985,'重庆':3325}deld['重庆']print(d)

D. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.clear('重庆')print(d)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f1f2-c01a-2cf5d6189000.html
点击查看答案
116. (单选题)下列程序执行后输出的结果是( )Plain Textx='abc'y=xy=100print(x)

A. "abc"

B. 100

C. abc

D. 979899

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a1cb-c01a-2cf5d6189000.html
点击查看答案
152. (判断题)通过insert方法可以在指定的索引位置插入元素

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-e6ed-c01a-2cf5d6189000.html
点击查看答案
57. (单选题)字典类型主要是根据键来提取对应值,通过赋值操作可以实现字典元素的增添和修改,若对于字典Dict={2:two,3:three ,1:one,}进行操作Dict[1]=One,此时字典Dict将会变为( )(注意,下面选项不考虑顺序性)。

A.   {2:'two', 3:'One', 1:'one'}

B.   {2:'two', 3:'three', 1:'One'}

C.   {2:'two', 3:'three', 1:'one', 1:'One'}

D.   {2:'One', 3:'three', 1:'one'}

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2909-c01a-2cf5d6189000.html
点击查看答案
55. (单选题)下述对元组的操作合法的是( )

A. Tuple.extend(otherTuple)

B. Tuple[0]='A'

C. Tuple.sort()

D. Tuple1+Tuple2

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-24db-c01a-2cf5d6189000.html
点击查看答案
191. (填空题)在函数内部定义的变量称作( )变量
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-3401-c01a-2cf5d6189000.html
点击查看答案
133. ( )输入字符串,将字符串的开头和结尾变成'+',产生一个新的字符串,将代码写在下方:例如: 输入字符串'abc123', 输出'+bc12+'
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-c130-c01a-2cf5d6189000.html
点击查看答案
试题通小程序
试题通app下载