北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two).doc
- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two)
北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two)
The northern Java language and object-oriented programming online homework two
First, a radio question
1. after the execution of the following statement sequence, the value of K is (). Int, m=3, n=6, k=0; while ((m++) (- n)) ++k;
A. 0
B. 1
C. 2
D. 3
The correct answer: B
2., the int type public member variable MAX_LENGTH, which remains constant 100, defines the statement of this variable as ()
A. public int MAX_LENGTH=100
B. final int MAX_LENGTH=100
C., public, const, int, MAX_LENGTH=100
D., public, final, int, MAX_LENGTH=100
The correct answer: D
3. in Java, the escape character that represents the newline character is ()
A. \n
B. \f
C.n
D. \dd
The correct answer: A
4. in the call of the following construction methods, the correct is ().
A. calls in a general way
B. is called directly by the user
C. can only be invoked automatically via New
D. is called by the system
The correct answer: C
5. in the following options, the legal assignment statement is ()
A. a = = 1;
B. + + i;
C. a=a + 1= 5;
D. y = int (I);
The correct answer: B
The difference between a 6. character stream and a byte stream is ()
The number of bytes each A. reads is different
B. the former is buffered, and the latter is not
C. the former is block read and write, and the latter is byte read and write
D. two are not different, can be used interchangeably
The correct answer: C
7. a set of keywords used to define access control for class members is ()
A., class, float, double, public
B., float, Boolean, int, long
C., char, extends, float, double
D., public, private, protected
The correct answer: D
8. if a member variable in a class can be accessed by the same package, what constraint does it use?.
A. private
B. public
C. protected
D. no modifier
The correct answer: D
9. listen to events and process events
A. is done by Listener
B. is completed by the components registered at the corresponding event L
您可能关注的文档
- 俄语字母(Russian alphabet).doc
- 俄罗斯酒的种类(Types of Russian wines).doc
- 俄语语法学习三名词和代词的用法(Russian grammar study three the use of nouns and pronouns).doc
- 俄语零起点讲义1(Russian zero start handout 1).doc
- 保健按摩师考试(Health massage test).doc
- 保养电脑保持网速的方法(How to maintain the speed of computer maintenance).doc
- 传宏碁中国向管理被裁撤员工给予n 7个月工资补偿(Chuan Acer China to the management of the abolition of employees to give n 7 months salary compensation).doc
- 保安3年共状告13个东家28次办案法官头疼(Security 3 years sued a total of 13 clubs 28 times Handling judges headache.).doc
- 保护接地与保护接零(五)(Protective earthing and protection zero (five)).doc
- 保健品营销要实现四大阵地的转移(The marketing of health care products should realize the transfer of the four major positions).doc
最近下载
- Excel数据处理与分析实战培训课件(2024版).pptx VIP
- 2023年西安电力高等专科学校单招考试面试模拟试题及答案解析.docx
- 2023恶性胸腔积液治疗的中国专家共识(完整版).pdf
- 管廊钢结构柱节井字架脚手架搭设方案(附带计算书).doc
- 2023年副主任医师(副高)-中医肛肠学(副高)考试上岸题库(黑钻考点)含答案.docx
- 半导体器件物理课后习题答案中文版(施敏).docx VIP
- 2025年高考语文一轮复习文学类文本阅读小说专题06:分析艺术手法(原卷版+解析版).docx VIP
- 《新能源汽车检测维修专业能力评价标准(征求意见稿)》.pdf
- 带头严守政治纪律和政治规矩,维护党的团结统一“四个带头”方面存在的问题与整改检视材料(2024年度民主生活会个人对照检查材料)6.docx VIP
- 采血对象错误的护理不良事件的RCA分析.docx VIP
文档评论(0)