网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
关于以下初始化序列的执行结果的说法正确的是( )。 int index=1; int[] foo=new int[3]; int bar=foo[index]; int baz=bar+index;
A.baz的值为0
B.baz的值为1
C.编译通过,但产生异常
D.编译不能通过
参考答案
更多 “ 关于以下初始化序列的执行结果的说法正确的是( )。 int index=1; int[] foo=new int[3]; int bar=foo[index]; int baz=bar+index;A.baz的值为0B.baz的值为1C.编译通过,但产生异常D.编译不能通过 ” 相关考题
考题
关于整型切片的初始化,下面正确的是()
A. s := make([]int)B. s := make([]int, 0)C. s := make([]int, 5, 10)D. s := []int{1, 2, 3, 4, 5}
考题
Given:6.%int[]nums={42,420,4200};7.request.setAttribute(foo,nums);%Whichtwosuccessfullytranslateandresultinavalueoftrue?()
A.${trueorfalse}B.${requestScope[foo][0]500}C.${requestScope[’foo’][1]=420}D.${(requestScope[’foo’][0]lt50)(3gt2)}
考题
intindex=1;int[]foo=newint[3];intbar=foo[index];intbaz=bar+index;Whatistheresult?()
A.Bazhasthevalueof0B.Bazhasthevalueof1C.Bazhasthevalueof2D.Anexceptionisthrown.E.Thecodewillnotcompile.
考题
Whichcodedeterminestheintvaluefooclosesttoadoublevaluebar?()
A.Intfoo=(int)Math.max(bar);B.Intfoo=(int)Math.min(bar);C.Intfoo=(int)Math.abs(bar);D.Intfoo=(int)Math.ceil(bar);E.Intfoo=(int)Math.floor(bar);F.Intfoo=(int)Math.round(bar);
考题
Whichcodedeterminestheintvaluefooclosestto,butnotgreaterthan,adoublevaluebar?()
A.Intfoo=(int)Math.max(bar);B.Intfoo=(int)Math.min(bar);C.Intfoo=(int)Math.abs(bar);D.Intfoo=(int)Math.ceil(bar);E.Intfoo=(int)Math.floor(bar);F.Intfoo=(int)Math.round(bar);
考题
以下( )代码,能够对数组正确初始化(或者是默认初始化)。A、int[]a;B、a={1,2,3,4,5};C、int[]a=newint[5]{1,2,3,4,5};D、int[]a=newint[5];
考题
在Linux上添加一个系统调用foo()的步骤,下面哪个步骤是不对的?()A.将foo展开成一段包含int 0x80的代码B.设置int 0x80的中断处理程序入口地址C.在系统内核中实现sys_foo()函数D.在int 0x80的中断处理程序中增加对sys_foo的函数调用
考题
以下()代码,不能够对数组正确初始化(或者是默认初始化)。A.int[] a;B.int[] a = new int[5];C.int[] a = new int[5]{1, 2, 3, 4, 5};D.int[] a = {1, 2, 3, 4, 5};
考题
以下()代码,能够对数组正确初始化(或者是默认初始化)。A.int[] a;B.a = {1, 2, 3, 4, 5};C.int[] a = new int[5]{1, 2, 3, 4, 5};D.int[] a = new int[5];
热门标签
最新试卷