版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、文档编码 : CU8Q8S2S10E10 HR6K2O7N10F7 ZV8I8L6J4K5网新恒天校内聘请笔试题目 2 26 、下面程序的运行结果是 public class ConstructorTest public ConstructorTest 1 this6; System.out.println this is a constructor. public ConstructorTestint i thisi-1 , -i; System.out.printlni; 2 public ConstructorTestint i , int j System.out.printlni+j
2、; public static void mainString args ConstructorTest col = new ConstructorTest; 3 ; A、6 this is a constructor. 9 B、10 5 this is a constructor. C、5 9 this is a constructor. D、5 10 this is a constructor. 27 、下面程序的运行结果是 4 public class Father public Father System.out.println i am father. public void rea
3、d 5 System.out.println Father is reading. public static void mainString args Father father = new Son; father.read; 6 ; class Son extends Father public Son System.out.println i am Son. 7 public void read System.out.println Son is reading. ; A、 i am father. Father is reading. 8 B、 i am Son. Son is rea
4、ding. C、 i am father. i am Son. Son is reading. D、 i am Son. i am father. Son is reading. 9 28 、下面程序的运行结果是 public class Father public Father System.out.println i am father. 10 public void read System.out.println Father is reading. public static void mainString args Father father = new Son; 11 father
5、.write; ; class Son extends Father public Son System.out.println i am Son. 12 public void write System.out.println Son is writting. public void read 13 System.out.println Son is reading. ; A、 i am father. i am Son. Son is writting. B、 i am Son. 14 Son is writting. C、 i am father. Son is writting. D、
6、 程序有错误,无法运行29 、下面程序的运行结果是 public class OuterClass private class InterClass 15 public InterClass System.out.println InterClass Create public OuterClass 16 InterClass ic = new InterClass; System.out.println OuterClass Create public static void mainString args OuterClass oc = new OuterClass; 17 ; A、 Ou
7、terClass Create B、 InterClass Create C、 InterClass Create OuterClass Create D、OuterClass Create InterClass Create 18 30 、下面程序的运行结果是 public class StringTest public static void mainString args String hello = hello String hel = hel 19 String lo = lo System.out.printlnhello = hel + lo System.out.println
8、hello = hel + lo; ; A、true true 20 B、false false C、true false D、false true 三、编程题1、已知 memcpy的函数为:void* memcpyvoid *dest , 21 const void* src , size_t count其中 dest 是目的指针,src 是源指针;不调用 c+/c的 memcpy库函数,请编写 memcpy ;void* memcpyvoid *dest , const void* src , size_t count assert dest .= NULL src .= NULL; /
9、安全检查assertcount char* psrc = char *src; char* pdest = char *dest; 22 whilecount- *pdest+ = *psrc+; return dest; 四、附加题23 1、用适当的方法统计出下面字符串中显现次数最多的字符,已知字符串为:Welcome to our company Software Engineer Recruitment Examination. char MostTimeschar* str int i , max , hash256; char ch; fori = 0 ; i 256 ; +i 24 hashi = 0; fori = 0 ; stri .= 0 +i ifstri = a stri = z | stri = A stri = Z +hashstri; fori = 0 , max = 0; i 256 ; +i 25 ifhas
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 《职业规划能力提升与就业指导》第十一章
- 稀硝酸工岗位进阶考核试卷含答案
- 仓储管理员岗前实习生考核试卷含答案
- 铸造模具工岗中压力应对考核试卷含答案
- 2025年独立站网站速度优化教程
- 2025年执业医师考试职业病防治知识试题及答案
- 2025年职业健康安全培训试题库及答案
- 2025年中级社会工作者实务真题+答案(完整版)
- 2025年中医内科主治医师真题及答案
- 2025年注册消防工程师真题及答案
- 2026年记者证考试试题及答案
- 2026年执业医师定期考核简易程序试卷及答案
- 中国银行股份有限公司2027全球校园招聘考试模拟试题及答案解析
- 2026年《中国梅尼埃病诊疗临床管理指南(2026版)》
- 校园防欺凌AI预警系统技术方案
- 【新教材】统编版(2024)九年级上册道德与法治全册知识点背诵提纲
- 2026年C1科目四考试完整题库及详细答案
- 2026秋初中英语新人教版九年级上册第一单元教案
- 2026年大数据中心业务岗结构化面试真题
- 《小小歌唱家 为救李郎离家园》课件2026-2027学年人教版四年级上册音乐
- 2026青海锂资源开发与新能源储能产业结合分析
评论
0/150
提交评论