设有下面的语句:Print IIf(x>0, 1, IIf(x<0,-1, 0))与此语句输出结果不同的程序段是( )。
- A.If x>0 Thenx=1ElseIf x<0 Thenx=-1End IfPrint x
- B.If x>0 ThenPrint 1ElseIf x<0 ThenPrint-1ElsePrint 0End If
- C.Select Case x Case Is>0 Print 1 Case Is<0 Print-1 Case Else Print 0End Select
- D.If x<>0 ThenIf x>0 Then Print 1ElseIf x<0 ThenPrint-1ElsePrint 0End If
热度🔥265
解析:打开微信小程序查看本题解析
有以下程序
#include
main()
{
int a[4][4]={ {1,4,3,2},{8,6,5,7},{3,7,2,5},{4,8,6,1}}, i, k, t;
for (i=0; i<3; i++)
for (k=i+1; k<4; k++)
if (a[i][i] < a[k][k])
{ t=a[i][i]; a[i][i]=a[k][k]; a[k][k]=t;}
for (i=0; i<4; i++)
printf("%d,", a[0][i]);
}
程序运行后的输出结果是
在进行数据库性能调优过程中,需要考虑数据库系统软件、硬件配置、网络环境等多方面因素。下列有关性能调优的说法,错误的是()
将专用IP地址转换为公用IP地址的技术是()
设有两个事务T1、T2,其并发执行如下所示。下列叙述中哪一个是正确的?
T1 T2
----------------------------------------------------------------
Read(A);
Read(A);
A:=A-10;
Write(A);
A:=A-20;
Write(A);
-------------------------------------------------------------------