单项选择题
下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4]; int k=5; for(int i= 1 ; i<= 10;i++) a[i]=i; for(int i=1 ; i<=3;i++) p[i]=a[i*i]; for(int i= 1 ;i<=3;i++) k=k+p[i]*2; System. out. println(k); }}
A.37
B.31
C.33
D.35
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是( )。import java. io.*;public class Exam{public static void main(String args[]){ int ch=0; System. out. println( 输入一个字符: ); try{ ch=System. in. readO; char ch_A=’A’, ch_ Z=’Z’; int delta_c=(int)ch_A +(int)ch_Z-ch; System. out.println( 编码后的字符为: +(char)delta_c); } catch(IOException e){ e. printStackTrace(); } }}
A.C
B.Y
C.X
D.字母C的ASCII码的整型值
点击查看答案
单项选择题
如要求读取大文件的中间一段内容,最方便的是采用下列( )流来操作。
A.File Stream
B.Pipe Stream
C.Random Stream
D.Filter Stream
点击查看答案
相关试题
专门的关系运算不包括下列的( )运算。
下列关于HTML标记的说法,正确的是( )。
下列描述中正确的是( )。
下列说法正确的是( )。
下列说法中,( )是不正确的。