单选题有以下程序: #include <stdio.h> int f(int x) int y; if (x=-0||x==1) return(3); y=x*x-f(x-2); return y; main() int z; z=f(3); printf("%d/n", z); 程序的运行结果是( )。 A.0 B.9 C.6 D.8
单选题以下不属于Java Application应用程序编写和执行步骤的是
____
。
单选题下列不属于Swing构件的是______。
A.JMenu
B.JApplet
C.JOptionPane
D.Panel
单选题下列______不属于AWT布局管理器。
单选题定义JavaApplet程序时,必须有的import语句是
____
单选题下面程序的输出结果是( )。 #include <stdio.h> main() int a[4] [5]=1,2,4,-4,5,-9,3,6,-3,2,7,8,4; int i,j,n; n=9; i=n/5: j=n-i*5-1; printf("a[%d] [%d]=%d/n",i,j,a[i][j]); A.6 B.-3 C.2 D.不确定
单选题下面选项中不是Java中整型常量的正确书写格式的是( )。 A) 120 B) 012 C) Ox12 D) (10)B
单选题在串行化类中实现部分串行化的两个方法为( )。 A) writeExtemal()和readExtemal() B) writeObject()和readObject() C) DataInput()和DataOutput() D) read()和write()
单选题下列方法与Applet显示无关的是
单选题下列说法中错误的是( )。 A) 可串行化的类必须实现Serializable接口 B) 可串行化的类中的静态变量可以不被串行化 C) private数据访问权限能够限制数据不被串行化 D) 对象串行化使用Java语言提供的默认机制
单选题下列______方法使用了Graphics类的实例作为参数。
A.init()
B.repaint()
C.drawBytes()
D.update()
单选题以下程序的输出结果是( )。 void main() int a[4][4]=1,3,5,2,4,6,3,5,7); printf("%d%d%d%d/n",a[0][3],a[1][2],a[2][1],a[3][0]); A.0650 B.1470 C.5430 D.输出值不定
单选题设有定义:int a=2,b=3,c=4;,则以下选项中值为0的表达式是( )。 A.(!a==1)&&(!b==0) B.(a<b)&&!c||1 C.a&&b D.a||(b+b)&&(c-a)
单选题能将程序补充完整的选项是( )。
class Person
{
private int a;
public int change(int m){return m;)
}
public class Teacher extends Person
{
public int b;
public static void main(String arg[])
{
Person p=new Person();
Teacher t=new Teacher();
int i;
}
}
单选题数据库系统支持数据的逻辑独立性,依靠的是 ( )
单选题下面程序的输出结果是( )。 void main() int x,i; for(i=1; i<=100; 1++) x=i; i(++x%2==0) if(++x%3==0) if(++x%7==0) printf("%d",x); A.39 81 B.42 84 C.26 68 D.28 70
单选题下列( )数代表八进制整数。A.0XA6 B.0144 C.1840 D.-1E3
单选题如下程序的输出结果是______。
public class Test
{
void printValue(int m)
{
do {
System.out.println("The value is"+m);
}
while( --m>10)
}
public static void main(String args[])
{
int i=10;
Test t=new Test();
t.printValue(i);
}
}
单选题下列程序的输出结果是______。 public class ArrayTest public static void main(String args[]) int[]intArray=new int[3] for(int i=0; i<3; i++) intArray[i]=i+2: system. out. println("IntArray["+i+"]"=intArray[i]); System. out. println ("----------"); int arrLen=4: IntArray=new int[arrLen]; For(int j=intArray. length;j>=0;j--) intArray[j]=j * 3; system. out. println("hello"+intArray[j]); A.编译未通过 B.编译通过,但运行错误 C.可以运行,但有错误 D.以上都不对
单选题下列语句执行之后,m、n、k的值分别为______。 public class ex44 { public static void main(String[] args) { byte m=5; int n=3; boolean k; k=--m!=++n; } }
