
【名词&注释】
正确答案:B。A.he B.and C.you D.tomeetme 更多计算机二级的考试资料下载及答案解析请访问不凡考网计算机类考试考试频道。
[单选题]有如下程序段#include "stdio.h"#include "string.h"#define N 10#define M 10char *find(char(*a)[M],int n){ char *q;int i; q=a[0]; for(i=0;i
A. he
B. and
C. you
D. tomeetme
查看答案&解析
举一反三:
[单选题]若为Fraction类重裁前增1运算符++,应在类体中将其声明为( )。
A. Fraction&poerator++( );SXB若为Fraction类重裁前增1运算符++,应在类体中将其声明为( )。
B. Fraction&poerator++( );
C. Fraction&poeralor++(int);
D. friendFraction&operator++( ):
E. friendFraction&operator++(int);
[单选题]在窗体上画1个名称为Command1的命令按钮,然后编写如下事件过程
A. Option Base 1
B. Pribate Sub Command1_Click()
C. Dim a(5.5) As Integer
D. For i=1 To 5
E. a(I,j)*5\10
F. Next j
G. Next i
H. S=0
I. For i=1 To 5
J. S=s+a(i,i)
K. Next i
L. Print s
M. End Sub
N. 程序运行后,单击命令按钮,输出结果是( )。
O. 15
P. 13
Q. 11
R. 9
[单选题]设a=5,b=6,c=7,d=8,则执行下列语句后,x的值为 ______。 x=IIF((a>B)And(cd),10,20)
A. 10
B. 20
C. 30
D. 300
[单选题]执行语句for(i=1;i++4;) ;后,变量i的值是
A. 3
B. 4
C. 5
D. 不定
[单选题]以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray(10)
A. Dim NewArray (10)As Integer
B. Dim NewArray(1 To 10)As Integer
C. Dim New Array(10)Integer
D. Dim NewArray(1 To 10)Integer
[单选题]没有如下程序
A. Private Sub Commandl—Click()
B. x=10:u=0
C. For i=1 TO 5
D. Do
E. x=x-2
F. y=y+2
G. Loop Until y>5 Or x<一l
H. Next
I. End Sub
J. 运行程序,其中Do循环执行的次数是
K. 15
L. 10
M. 7
N. 3
[单选题]在窗体上画一个命令按钮,然后编写如下程序: Function funl(ByVal Bum As Long)As Long Dim k As Long k = 0 Bum=Abs(Bum) Do While Bum k=k+(Bum Mod 10) Bum=Bum\10 Loop fun1=k End Function Private Sub Command1_Click() Dim n As Long n=InputBox("请输入一个数") Print fun1(n) End Sub 程序运行后,单击命令按钮,在对话框中输入234,输出的结果为
A. 3
B. 4
C. 9
D. 10
本文链接:https://www.zhukaozhuanjia.com/download/okjylx.html