- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oop 复习例题(面向对象的复习例题)
oop 复习例题(面向对象的复习例题)
I. radio questions
1 when overloading an operator, if the parameter table has a parameter, the operator is ()
A, unary member operator
B, two member member operator
C, a friend of operator
D, option B) and option C) are both possible
Answer: D
2 sets int, a=10, b=11, c=12, and the value of expression (a+b) is ()
A, 2
B, 0
C, -2
D, 1
Answer: B
3, with the following functions defined int f (char *s) {char *p=s; while (*p = = ` \0 ) p++; return (P-S);} in the main function using cout f ( good ) call the above function, then the output is ().
A, 3
B, 4
C, 5
D, 6
Answer: B
4 control of access rights to class members is achieved by setting the access control attribute of the member, and the following is not the access control attribute
A, public type
B, private type
C, protected type
D, a type of
Answer: D
5 sets int, a=15, b=26; then cout (a, b); the output is ().
A, 15
B, 26,15
C, 15,26
D, 26
Answer: D
6 following the result of program (for) the following is quoted fragment: #include iostream.h class A num public: {int; A (int i {num=i);} A (A a) {num=a. num++ void (print);}}}; {cout num; void main (A) {a (1). B (a); (a.print); (b.print);}
A, 11
B, 12
C, 21
D, 22
Answer: C
The statement that the 7 loop has been executed at least once is ().
A and for cycles
B and while cycles
C and do cycles
D, any cycle
Answer: C
In the jump statement of the 8 C++ language, the correct statement for break and continue is ()
The A and break statements are applied only to the body of the loop
The B and continue statements are applied only to the body of the loop
C and break are unconditional jump statements, and continue is not
D, break, and continues jump range is not clear enough, prone to problems
Answer: B
9 If you define int k=7, x=12, then the expression whose value is 3 is ()
A, x%= (k%=5)
B, x%= (k-k%5)
C, x%=k-k%5
D, (x%=k) - - (k%=5)
Answer: D
10 determines the return type of the function in the C++ language
The type of expression in the A and return stateme
您可能关注的文档
- dcl-2计算书(Dcl-2 statement).doc
- dbc修改详解(DBC modification detail).doc
- db2维护手册(DB2 maintenance manual).doc
- debug 用法(Debug usage).doc
- db性能指标(DB performance index).doc
- dedecms模版制作使用方法(Dedecms template production method of use).doc
- deh伺服阀故障原因分析(Failure analysis of DEH servo valve).doc
- dede 标签(dede 标签).doc
- delphi opengl 三维隧道(OpenGL三维隧道).doc
- delll错误代码(Delll error code).doc
- opencv标定程序(Opencv calibration program).doc
- opengl函数库(OpenGL function library).doc
- opengl超级宝典(第四版)目录(OpenGL super book (Fourth Edition) directory).doc
- open flash chart图表(Open Flash Chart图表).doc
- oracale笔记(oracale笔记).doc
- oracle 队列表(Oracle队列表).doc
- oracle前半部分笔记(Oracle the first half of the notes).doc
- oracle存储过程总结(一、基本应用)(Summary of Oracle stored procedures (1, basic applications)).doc
- oracle定义pl sql变量(Oracle定义PL SQL变量).doc
- oracle数据库常见问题答疑(FAQ Oracle database FAQ).doc
文档评论(0)