单项选择题

下列程序段执行后的输出结果为( )。   int x=3; int y=10;   System.out.println(y%x);

A.0
B.1
C.2
D.3
<上一题 目录 下一题>
热门 试题

单项选择题
下面是一个Java的应用程序,其输出结果是( )。public class Testll{public static void main (String args[ ]){ char c=''i'';for(int n;6;n<11;m + +){ if(n = =8)continue;System.out.print(c + +);}}}
A. ij
B. ijk
C. ijkl
D. ijklm
单项选择题
下列程序的执行结果是( )。public class Testgg {public static void main(String args[]) {float t=9.0f;int q=5;System.out.println((t++)*(- -q));}}
A.40
B.36
C.36
D.40
相关试题
  • 在oneMethod( )方法运行正常的情况下,...
  • 数据库设计包括两个方面的设计内容,它们是...
  • 线性表L=(a1,a2,a3,…ai,…an),...
  • 将E-R图转换到关系模式时,实体与联系都可...
  • 设有两个串p和q,求q在p首次出现位置的运算...