temp=’this is a temped variable’;echo foo${temp}上述命令执行的结果为()

A:foo B:foo$temp C:foo’this is a temped variable’ D:foothis is a temped variable

欲执行程序temp.prg,应该执行的命令是______。

A:DO PRG temp.prg B:DO temp.prg C:DO CMD temp.prg D:DO FORM temp.prg

欲执行程序temp.prg,应该执行的命令是( )。

A:DO PRG temp.prg B:DO temp.prg C:DO CMD temp.prg D:DO FORM temp.prg

要执行程序temp.prg,应该执行的命令是( )。

A:DO PRG temp.prg B:Do temp.prg C:DO CMD temp.prg D:DO FORM temp.prg

下面函数的功能应该是:删除字符串str中所有与变量ch相同的字符,并返回删除后的结果。例如:若str=“ABCDABCD”,ch=“B”,则函数的返同值为:“ACDACD”
Function delchar(str As String,ch As String)As String
Dim k As integer,temp As String,ret As String
ret=""
Fork=1 To Len(str)
temp=Mid(str,k,l)
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改为If temp<>ch Then C:把delchar=ret改为delchar=temp D:把ret=""改为temp=""

下面命令执行后都生成TEMP.DBF文件,其中肯定生成空文件的命令是( )。

A:SORT TO TEMP B:COPY TOTEMP C:COPY STRUCTURE TO TEMP D:COPY STRUCTURE TO TEMP EXTENDED

欲执行程序temp.prg,应该执行的命令是()。

A:DO PRG temp.prg B:DO temp.prg C:DO CMD temp.prg D:DO FORM temp.prg

欲执行程序temp.prg,应该执行的命令是()。

A:DO PRG temp.prg B:DO temp.prg C:DO CMD temp.prg D:DO FORM tmep.prg

微信扫码获取答案解析
下载APP查看答案解析