#RSC007. 选择题7
选择题7
- Python 表达式
"10"*2+"10"的值为?()
print("10"*2+"10")
{{ select(91) }}
- 101010
- 2010
- 10010
- 30
- Python 代码中,用于跳过当前循环剩余部分,直接进入下一次循环的指令是?()
{{ select(92) }}
- break
- continue
- elif
- switch
- 在 Python 代码中,海龟回到原点,朝向置为默认方向的命令是?()
{{ select(93) }}
- turtle.home()
- turtle.clear()
- turtle.heading()
- turtle.done()
- 下列流程图输出结果是?()
x=5, y=12 如果 x>y 输出 a,b 否则 a=y, b=x
{{ select(94) }}
- 512
- 125
- 55
- 1212
- 如果要找出整数 a、b 中较大一个,通常使用哪种程序结构?()
{{ select(95) }}
- 顺序结构
- 循环结构
- 分支结构
- 跳转结构
- 以下不是 Python 关键字的是?()
{{ select(96) }}
- continue
- and
- in
- Python 表达式
int(-123.123//10)的值是?()
{{ select(97) }}
- -124
- -123
- -13
- -12
- 以下 Python 代码实现从大到小顺序输出能整除 N 的数(因子),横线处填入?()
N=int(input())
for i in range(____):
if not N%i:
print(i,end=',')
{{ select(98) }}
- N
- 1,N
- N,0,-1
- N,1,-1
- 输出 N×N 矩阵,对角线为1,横线处填入?()
N=int(input())
for i in range(1,N+1):
for j in range(1,N+1):
if ____:
print(1,end='')
else:
print(0,end='')
print()
{{ select(99) }}
- i=j
- j!=j
- i>=j
- i=j
- 判断 N 是否为质数,横线处填入的代码是?()
N=int(input())
for i in range(2,N):
if N%i==0:
print("非质数")
____
else:
print("是质数")
{{ select(100) }}
- break
- continue
- pass
- return