下列程序的输出为()#includestdio.h;main(){intm=13;floata= 12.6,x;x=m/2+a/2;printf(“%f\n”,x);}
A.12
B. 12.3
C. 12.8
D. 12.3
A.12
B. 12.3
C. 12.8
D. 12.3
第1题
下列程序段的输出结果为__________。 int a=2; switch (a) { case2: System.out.print("Value is2."); case3: System.out.pritln("Value is3."); break; default: System.out.println("end"); break: }
第2题
下列是求系统响应y(k)的-段程序:
列出相应的状态方程和输出方程。
以x1(k)、x2(k)为状态变量,列出系统的状态方程和输出方程。
第3题
下列程序的输出结果为______ Sub Prin() Dim B As String A=1 B=A & Space(4)& A Print A Print Trim(B) End Sub
第4题
A.程序的输出结果为大写字母A
B.程序的输出结果为小写字母a
C.运行时产生错误信息
D.格式说明符的个数少于输出项的个数,编译出错
第6题
A.12
B. 12.3
C. 12.8
D. 12.3
第8题
A.a&b=2 a|b=22 a<>b=5
B.a&b=2 a|b=22 a<>b=2
C.a&b=20 a|b=22 a<>b=2
D.a&b=20 a|b=22 a<>b=5
第9题
第10题
class BaseClass
{
public int i;
}
class MyClass:BaseClass
{
public new int i;
}
则下列语句在Console 上的输出为_______.
MyClass y = new MyClass();
BaseClass x = y;
x.i = 100;
Console.WriteLine("{0}, {1}",x.i,y.i);
A.0,0
B.100,100
C.0,100
D.100,0