永久免费查看
更新时间:2026-04-10
北京交通大学计算机科学与技术专业《JAVA语言设计》作业及答案3提供该考试科目的试卷全部试题及答案大全,科目内容齐全,答案供学员学习免费使用,助力考试通关!
A.Java的类分为两大部分:系统定义的类和用户自定义的类
B.类的静态属性和全局变量的概念完全一样,只是表达形式不同
C.类的成员至少有一个属性和一个方法
D.类是对象的实例化
A.False
B.True
C.None
D.出错
A.x( int m){ ...}
B.void x( int m){ ...}
C.x( int m, int n){ ...}
D.x( int h,int m,int n){ ...}
A.abstract final class Hl{ ...}
B.abstract private move(){ ...}
C.protected private number
D.public abstract class Car{ ...}
A.值传递调用
B.返回值
C.地址传递调用
D.以上都不是
A.两种循环结构中都必须有循环体,循环体不能为空
B.while循环判断条件一般是程序结果,for循环判断条件一般是非程序结果
C.两种循环任何时候都可替换
D.while循环能实现的操作,for循环也都能实现
A.'A'
B.'B'
C.'C’
D.B
A.int x(){ char ch='a'; return (int)ch; }
B.void x(){ ...return true; }
C.int x(){ ...return true; }
D.int x(int a,b){ return a+b; }
A.1,2
B.2,1
C.1.82, 2
D.100,82
A.第2行编译出错
B.第4行编译出错
C.编译时产生错误
D.编译时没有产生错误,运行时发生异常
A.1
B.2
C.编译出错
D.运行出错
A.将private int m 改为protected int m
B.将private int m 改为 public int m
C.将private int m 改为 static int m
D.将private int m 改为 int m
A.class x{....}
B.class x extends y{....}
C.static class x implements y1,y2{....}
D.public class x extends Applet{....}
A.String s="你好";int i=3; s+=i;
B.String s="你好";int i=3; if(i==s){ s+=i};
C.String s="你好";int i=3; s=i+s;
D.String s="你好";int i=3; s=i+;
A.int twoDim[][] = new int[4][];
B.int twoDim[][] = new int[][4];
C.int twoDim[][] = new int[4][5];
D.char a[] = {‘A’, ‘B’};
A.s[10]为"";
B.s[9]为null;
C.s[0]为未定义
D.s.length为10
A.i=c+i;
B.c=c+i;
C.L=f+L;
D.f=i+L+f;