网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有如下程序: Private Sub Commandl_Click() Dim a As Single Dim b As Single a=2:b=4 Call CS(a,b)End Sub Sub CS(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.0 2
D.1 2
参考答案
更多 “ 有如下程序: Private Sub Commandl_Click() Dim a As Single Dim b As Single a=2:b=4 Call CS(a,b)End Sub Sub CS(x As Single,y As Single) t=X x=t\y y=t Mod y End Sub 程序运行后,单击命令按钮,a和b的值分别为A.0 0B.1 1C.0 2D.1 2 ” 相关考题
考题
( 22 )有如下过程代码:Sub var_dim()Static numa As IntegerDim numb As Integernuma=numa+2numb=numb+1print numa;numbEnd Sub连续 3 次调用 var_dim 过程,第 3 次调用时的输出是A ) 2 1B ) 2 3C ) 6 1D ) 6 3
考题
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)]
考题
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)]
考题
有如下过程代码: 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 1B.2 3C.6 1D.6 3
考题
半速率小区中,某个呼叫“优选半速率信道”,则下列信道的分配顺序错误的有()
A.全速率—Couple半速率—Single半速率B.全速率—Single半速率—Couple半速率C.Couple半速率—Single半速率—全速率D.Couple半速率—全速率—Single半速率E.Single半速率—全速率—Couple半速率
热门标签
最新试卷