阅读下面的程序,填写程序中缺少的部分,并把程序的输出结果写出来;
classTest{
staticvoidShowArrayInfo(int[]student){
for(inti=0;i
Console.Write(student[i]++);
Console.Write(“”);
}
}
staticvoidMain(){
int[]student=newint[]{1,2,3,4,5};
ShowArrayInfo(student);
Console.Write(“/n”);
ShowArrayInfo(student);
}
}
输出结果:
A.输出:构造
B.输出:static构造
C.输出:static
D.没有输出结果
阅读下面的程序,该程序().
main()
{ int a=5,b=0,c=0;
if(a=b+c) printf("***/n");
else printf("$$$/n"); }
A、可以通过编译但不能通过连接
B、输出***
C、输出$$$
D、有语法错不能通过编译
假定作用于承台顶面的设计值F=3030kN,M=0,V=0,试问,该承台正截面最大弯矩设计值(kN·m),与下列何项数值最为接近?(A)1263(B)1382(C)1500(D)1658
A.i=20
B.程序有编译错误
C.i=10
D.i=true
import java.io.*;
public class Test {
public static void main(String args[]) {
try {
String s = "ABCDE" byte b[]=s.getBytes()
FileOutputStream file =
new FileOutputStream("test.txt", true)
file.write(b) file.close() }
catch(IOException e) {
System.out.println(e.toString()) }
}
}
A、ABCABC
B、ABCDE
C、Test
D、ABCDEABCDEABCDE
A.570
B.760
C.895
D.1015
多竖杆式天窗架如图(d)所示。在风荷载作用下,假定天窗斜杆(DE、DF)仅承担拉力。试问,当风荷载设计值W1=2.5kN时,DF杆的轴心拉力设计值(kN)应与下列()项数值最为接近。
A.8
B.9.2
C.11.3
D.12.5
A.8.0
B.9.2
C.11.3
D.12.5