更多"下面有—段程序代码,如果从键盘上输入'Computer',则在文本框内"的相关试题:
[单项选择]下面有一段程序代码,如果从键盘上输入“Computer”,则在文本框内显示的内容是 Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii>=65 And KeyAscii<=122 Then KeyAscii=42 End If End Sub
A. Computer
B. 什么都没有
C. ********
D. 程序出错
[单项选择]下面有—段程序代码,如果从键盘上输入"Computer",则在文本框内显示的内容是
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii>=65 And KeyAscii<=122 Then
KeyAscii=42
End If
End Sub
A. Computer
B. 什么都没有
C. * * * * * * * *
D. 程序出错
[单项选择]下面有一段程序代码,如果从键盘上输入"Computer",则在文本框内显示的内容是
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii>=65 And KeyAscii<=122 Then
KeyAscii=42
End If
End Sub
A) Computer B) 什么都没有
C) ******** D) 程序出错
[单项选择]下面有一段程序代码,如果从键盘上输入"Computer",则在文本框内显示的内容是( )。
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii> =65 And KeyAscii<=122 Then
KeyAscii=42
End If
End Sub
A. Computer
B. 什么都没有
C. * * * * * * * *
D. 程序出错
[单项选择]两次运行下面的程序,如果从键盘上分别输入6和3,则输出结果是( )。
int x;
scanf("%d",&x);
if(x++>5) printf("%d",x);
else printf("%d/n",x - -);
A. 7和5
B. 6和3
C. 7和4
D. 6和4
[单项选择]两次运行下面的程序,如果从键盘上分别输入3和2,则输出结果是( )。
#include<stdio.h>
main( )
int x;
scanf("%d",&x);
if(x++>2)printf("%d",x);
else printf(“%d/n",x--);
A. 4和3
B. 4和2
C. 4和1
D. 3和2
[单项选择]两次运行下面的程序,如果从键盘上分别输入10和8,则输出结果为 ______。
#include<iostream.h>
viod main( )
int x:
cin>>x:
if(x++>9)cout<<x;
else cout<<x—<<endl;
A. 11和8
B. 11和9
C. 10和8
D. 10和9
[单项选择]计算机病毒是一段程序代码,一般由传染部分和( )两部分组成。
A. 头文件
B. 引导部分
C. 传染部分
D. 表现部分
[单项选择]两次运行下面的程序后,如果从键盘上分别输入7和3,则输出结果是______。
main( )
int x;
scanf("%d",&x);
if(++x>5)printf("%d",x);
else printf("%d/n",x--);
A. 7和5
B. 6和3
C. 7和4
D. 8和4
[单项选择]计算机病毒是一段程序代码,它一般由传染部分和( )两部分组成。
A. 头文件
B. 引导部分
C. 传染部分
D. 表现部分