{emptyparam.user?“Administrator”:param.user}说法正确的是()。
第1题:
A. 如果失败原因只有一个,则返回bool
B. 如果失败原因超过一个,则返回error
C. 如果没有失败原因,则不返回bool或error
D. 如果重试几次可以避免失败,则不要立即返回bool或error
第2题:
函数过程F1的功能是:如果参数a为奇数,则返回值为1,否则返回值为0。以下能正确实现所述功能的代码的是( )。
第3题:
目录文件的读取函数read dir()参数和返回值的含义()
A.参数和返回值都指向目录文件
B.参数和返回值都指向目录项
C.参数指向目录文件,返回值指向目录项
D.返回值指向目录文件,参数指向目录项
第4题:
关于函数的返回值,正确的是( )。
A.由return语句返回时,只带回一值,其类型在函数定义时确定
B.其类型由调用表达式决定
C.函数可以没有返回值,这时在函数定义中,函数的类型说明就没必要了
D.函数调用就要有返回值,否则调用就没有意义了
第5题:
A.如果变量不存在,返回false
B.如果变量存在且值为null返回false
C.如果变量存在且值不为null返回false
D.以上说法都正确
第6题:
A、数字
B、逻辑值
C、文本
D、数组
第7题:
下列Shell程序的功能是如果该程序执行时的参数个数为1则将由第一个参数指定的文件复制到/home/user1中,否则用vi打开这个文件。请将这个程序补全。
if [(23)=1)
then
cp(24)$ HOME/user1
fi
vi(24)
exit 0
A.$$
B.$#
C.$*
D.$@
第8题:
函数过程Fun1的功能是:如果参数b为奇数,则返回值为1,否则返回值为0。
Function Fun1(b As Integer)
if ______ Then
Fun1=0
Else
Fun1=1
End If
End Function
使该功能完整,应在空行处填入以下哪条语句
A.b Mod 2<>0
B.b Mod 2=0
C.b/2=1
D.b\2=0
第9题:
An administrator needs to know the workstation name of a user who called in for support in orderto remotely manage it. After calling the user and having the user open a command prompt, whichof the following commands would the administrator ask the user to type?()
A. Netstat
B. Ifconfig
C. Hostname
D. Ping
第10题:
在public HttpSession getSession(boolean bool)的方法定义中,当bool为false时表明()