有如下程序: Private Sub Command1 Click() Dim a As Single Dim b As Single a=5:b=4 Call S(a,B)End Sub Sub S(x As Single,y As Single) t=x x=t\y y=t Mod y End Sub 在调用运行上述程序后,a和b的值分别为
A.0 0
B.1 1
C.2 2
D.1 2
第1题:
You are developing a Windows Communication Foundation (WCF) service.One of the service operations contains the following code.private static int counter = 0;[OperationContract]public void IncrementCount(){ counter++;}You need to set a service behavior that prevents two or more threads from incrementing the counter variable at the same time.Which code segment should you use to set the service behavior?()
A. [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Single)]
B. [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Single)]
C. [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
D. [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Reentrant)]
第2题:
在标准模块中用:Dim或Private关键字定义的变量是______变量,它们只能在程序的模块中使用。
第3题:
( 22 )有如下过程代码:
Sub var_dim()
Static numa As Integer
Dim numb As Integer
numa=numa+2
numb=numb+1
print numa;numb
End Sub
连续 3 次调用 var_dim 过程,第 3 次调用时的输出是
A ) 2 1
B ) 2 3
C ) 6 1
D ) 6 3
第4题:
A.全速率—Couple半速率—Single半速率
B.全速率—Single半速率—Couple半速率
C.Couple半速率—Single半速率—全速率
D.Couple半速率—全速率—Single半速率
E.Single半速率—全速率—Couple半速率
第5题:
在窗体上画一个命令按钮,名称为Commandl,然后编写如下事件过程: Private Sub Commandl_Click() Dim() a=Array(”机床”,”车床”,”钻床”,”轴承”)Printa(2)EndSub程序运行后,如果单击命令按钮,则在窗体上显示的内容是( )。
A.机床
B.车床
C.钻床
D.轴承
第6题:
You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines.var service = new WarehouseService(); var host = new ServiceHost(service);You need to ensure that new operations do not wait for previous operations to finish.Which attribute should you use to decorate the service?()
A. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)]
B. [CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)]
C. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Single)]
D. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Reentrant)]
第7题:
有如下过程代码: Sub var_dim( ) static numa As Integer Dim numb As Integer numa=numa+2. numb=numb+1 print numa;mub End Sub 连续3次调剧var_dim过程,第3次调用时的输出是( )。
A.2 1
B.2 3
C.6 1
D.6 3
第8题:
在窗体模块的声明段中用Public定义的变量可以在 ________ 模块中使用,而用Dim或Private关键字定义的变量可以在 _______ 模块中使用。
第9题:
此题为判断题(对,错)。
第10题:
将数据库导入R语言后,可用()显示数据库结构,用()查看数据库行列数,用()查看每个变量的基本统计值。
A.str(data) summary(data) dim(data)
B.str(data) dim(data) summary(data)
C.dim(data) summary(data) str(data)
D.summary(data) dim(data) str(data)