皮皮学,免费搜题
登录
搜题
【单选题】
如果一个正整数从高位到低位上的数字依次递减,则称其为降序数(如9632是降序数,而8516则不是降序数)。现编写如下程序,判断输入的正整数是否为降序数。 Private Sub Command1_Click() Dim n As Long Dim flag As Boolean n=Inputbox(′′输入一个正整数′′) s=Trim(Str(n)) For i=2 To Len(s) If Mid(s,i-1,1)
A.
If i=Len(s)+1 Then flag=False Else flag=True
B.
If i=Len(s)+1 Then flag=True Else flag=False
C.
If i=Len(s)-1 Then flag=False Else flag=True
D.
If i=Len(s)-1 Then flag=True Else flag=False
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】Free running is popular sport.
A.
正确
B.
错误
【单选题】下列语句打开文件的位置应该在() f=open('item.txt','w')
A.
C盘根目录下
B.
D盘根目录下
C.
Python安装目录下
D.
与源文件在相同目录下
【单选题】下列语句打开文件的位置应该在()。 f = open ( ‘itheima.txt’,’w’)
A.
D盘根目录下
B.
Python安装目录下
C.
C盘根目录下
D.
与源文件在相同的目录下
【单选题】下 列语句打开文件的位置应该在( )。 f=open('itheima.txt', 'w')
A.
C 盘根目录下
B.
D 盘根目录下
C.
Python 安装目录下
D.
与源文件在相同的目条下
【单选题】It is reported that the two armies ____ near the borderline again before dawn.
A.
clashed
B.
crushed
C.
crashed
D.
flashed
【单选题】The new Metro Red Line, running from Leander to Austin, provides a hassle-free way for business people ______.
A.
commuted
B.
be commuting
C.
commute
D.
to commute
【判断题】Free running is a popular sport.
A.
正确
B.
错误
【单选题】下列语句打开文件的位置应该在( ) f = open('itheima.txt', 'w')
A.
C盘根目录下
B.
D盘根目录下
C.
Python安装目录下
D.
与源文件在相同的目录下
【判断题】Free running is a popular sport.
A.
正确
B.
错误
【简答题】The two armies ____outside the town. (crashed, clashed)
相关题目: