题目
第5题
Function delchar(str As String,ch As String)As String
Dim k As Inlegcr,temp As String,ret As String
ret=""
For k=1 To Len(str)
temp=Mid(str,k,1)
If temp=ch Then
ret=ret&temp
End If
Next k
delchar=ret
En d Function
但实际上函数有错误,需要修改,下面的修改方案中正确的是()。
A.把ret=ret&temp改为ret=temp
B.把If temp=ch Then改为If temp<>ch Then
C.把delchar=ret改为delchar=temp
D.把ret=""改为temp=""
第6题
A.把ret=ret&temp改为ret=temp
B.把If temp=ch Then改为If temp<>ch Then
C.把delchar=ret改为delchar=temp
D.把ret=""改为temp=""
第7题
Function delchar(str As String,ch As String)As String
Dim kAs Integer,temp As String,ret As String
ret=””
For k=1 To Len(str)
temp=Mid(str,k,1)
If temp=ch Then
ret=ret&temp
End If
Next k
delchar=ret
End Function
但实际上函数有错误,需要修改,下面的修改方案中正确的是()。
A.把ret=ret&temp改为ret=temp
B.把If temp=ch Then改为Iftemp<>ch Then
C.把delchar=ret改为delchar=temp
D.把ret=””改为temp=””
第8题
辑修改和操作,改后表对象“tEmp"如陶l所示:
(1)将“编号”字段改名为“工号”,并设置为主键。
(2)设置“年龄”字段的有效性规则为:不能是空值。
(3)设置“聘用时间”字段的默认值为系统当前年1月1日。
(4)删除表结构中的“简历”字段。
(5)将考生文件夹下“Ace0.mdb”数据库文件中的表对象“tTemp”导入“Accl.mdb”数据库中。
(6)完成上述操作后,在“Accl.mdb”数据库中对表对象“tEmp”进行备份,命名为“tEL”。如图2所示。
第9题
在C语言中,定义一个函数 f1如下:
f1(intx,int y)
4
{
static int count=0;
int temp;
temp=x;
x=y;
y=temp;
count++;
}
则下列叙述正确的是()。
A.变量count为全局变量, temp为局部变量。
B.x,y属于函数的形式参数。
C.变量count,temp均为局部变量。
D.函数的功能是实现两个变量值的交换。
E.函数的默认返回值类型为 int,函数没有返回任何值。
F.变量count,temp为局部变量,所占空间在函数退出时释放。
第10题
A.temp = *p; *p = *q; *q = temp;
B.temp = p; p = q; q = temp;
C.temp = p; *p = *q; q = temp;
D.temp = &p; *p = *q; q = *temp;
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!