试题 试卷
题型:单选题 题类: 难易度:普通
湖北省宜昌市2022年信息技术中考题目(第六套)
x=int(input("请输入衣服数量:"))
y=int(input("请输入衣服总金额:"))
if ① :
f= ②
else:
f=y*0.8
print(f)
if int (input ( ) ) %5= =0:
print("yes")
if int (input ( ) ) %5!=0:
print("no")
如果输入7,则输出( )。
图1
Private Sub Command1_Click( )
w= val (Text1. text)
if {#blank#}1{#/blank#} then
f=38
Else
f= {#blank#}2{#/blank#}
End If
Text2. text=f
End Sub
import math
for num in range(100,1000):
if num==pow(gw,3)+pow(sw,3)+pow(bw,3): #pow(x,y)函数返回xy的值
print(num)
上述程序段中加框处应该填入的代码段是( )
s="abcdefg"
c=len(s) #len 求字符串长度
for i in range(0,c):
if i<2:
print (chr(ord(s[i])+2),end=" ") # ord()函数是chr()函数配对函数,将字符转ASCII值
print(chr(ord(s[i]) + 3),end=" ")
a=5
b=5
if :
print("True")
print("False")
x=4
y=3
if x>y:
prin(x)
print(y)
屏幕上输出的内容是{#blank#}1{#/blank#}。
试题篮