装订线内不要答题,装订线外不要写姓名、学号、学院专业年级班签个人信息,违者试卷作0分处理
考点号
教室号
姓名
学院
专业
年级
班号
学号(全号)
湖南农业大学课程考核试卷
课程名称(全称):Java程序设计(双语) 课程代码:20638B0
考核时间:2011 年01月 04 日试卷号: B
考核对象:电子商务08-1、电子商务08-2
大题号
一
二
三
四
五
六
七
八
九
十
总分
题分
20
20
20
10
10
20
得分
得分
I、Choose one correct answer(Total 20 points,each question 2 points)
Which of the following are Java modifiers? ( A )
A. public B. true C. friendly D. transient
Choose the valid identifier from those listed below. ( A )
A. MyMethod B. 3byte C. 5_const
3. ( A ) is a set of primitive instructions built into puter?
A. The machine language
B. Assembly language
C. The low-level language
D. The high-level language
4. What is the return value of the main() method in Java? ( D )
A. String B. int C. char D. void
5. Which is not valid Java keyword? ( A )
A. const B. NULL C. false D. this
6. Which of the following assignments is NOT legal? (A )
a = b = c = 2 d = 2
7. Which is not a high-level language? ( D )
A. c language B. BASIC language
C. Visual BASIC language D. Assembly language
8. Given the following code:
switch (m){
case 0: (Condition 0);
case 1: (Condition 1);
case 2: (Condition 2);
case 3: (Condition 3);break;
default: (Other Condition);
}
Which va
Java考试资料(考试试卷二) 来自淘豆网m.daumloan.com转载请标明出处.