Supposex=10andy=10.Whatisxafterevaluatingtheexpression(y>=10)||(x++>10).
查看答案
Supposex=0andy=0whatisxafterevaluatingtheexpression(y>0)&&(1>x++).
A. 0
B. 1
C. -1
Analyzethefollowingcode:if (x < 100) && (x > 10)System.out.println("x is between 10 and 100");
A. Thestatementcompilesfine,buthasaruntimeerror.
B. Thestatementhascompileerrorsbecause(x<100)&(x>10)mustbeenclosedinsideparenthesesandtheprintln(…)statementmustbeputinsideablock.
C. Thestatementhascompileerrorsbecause(x<100)&(x>10)mustbeenclosedinsideparentheses.
D. Thestatementcompilesfine.
Analyzethefollowingtwocodefragments.(i) intx=5; if(0
A. Thefirstfragmenthasasyntaxerror.
B. Thesecondfragmenthasasyntaxerror.
C. Bothfragmentscompile,butproducedifferentresults.
D. Bothfragmentsproducethesameoutput.
李者师在用PowerPoint制作课件,她希望将学校的徽标图片放在除标题页之外的所有幻灯片右下角,并为其指定一个动画效果。最优的操作方法是:
A. 先制作一张幻灯片并插入徽标图片,为其设置动画,然后多次复制该张幻灯片。
B. 分别在每一张幻灯片上插入徽标图片,并分别设置动画。
C. 先在一张幻灯片上插入徽标图片,并设置动画,然后将该徽标图片复制到其他幻灯片上。
D. 在幻灯片母版中插入徽标图片,并为其设置动画。