2009级计算机学院-计算机导论试题A卷--答案(参考)
更新时间:2024-04-09 16:20:02 阅读量: 综合文库 文档下载
- 计算机学院的计算机水平推荐度:
- 相关推荐
2009-2010学年 第1学期
2009 级《计算机导论》考试试题A卷答案
考试时间:2009年 月
I
ABCDC BCBDB DDCCD BDCBA
II、 Questions( 6 questions, 5 scores for each question) 1. What’s the definition of an operating system?
A: An operating system is an interface between the hardware of a computer and user(programs or humans) that facilitates the execution of other programs and the access to hardware and software resources.
2. What are the subsystems of the von Neumann computer model?
A:The von Noumann model specifies a memory subsystem, an arithmetic logic unit subsystem, a control unit subsystem, and an input/output subsystem.
3. Name four types of network connecting devices.
A: The four types of network connecting devices are repeater, bridge, router and gateway.
4. Define the three constructs used in structured programming.
A: The three constructs in structured programming are Sequence, Decision and Repetition
5. Name the layers of the OSI model?
A:The OSI model has seven layers, which are Physical layer, Data link layer, Network layer, Transport layer, Session layer, Presentation layer and Application layer.
6. What’s the formal definition of an algorithm?
A:It’s an ordered set of unambiguous steps that produces a result and terminates in a finite time.
III、Calculation( 5 subjects, 5 scores for each subject)
1. Change the following 8-bit two’s complement numbers to decimal.
(1). 1000000 (2). 01100100 (3). 11001000 (4). 11000011 (5).11010101 A: 128, 100, 170 200 195 213
2. Change the following decimal numbers to 8-bit two’s complement integers, and then convert the result to hexadecimal.
第 1 页 共 3 页
(1). -48 (2). 25 (3). -127 (4). 98 (5). -55 A: xD0 x19 x81 x62 xC9
3. Using an 8-bit allocation, first convert each of the following numbers to two’s complement, do the operation, and then convert the result to hexadecimal.
(1) 35+63 (2) 35-63 (3) -35 +63 (4) -35-63 (5) 63-1 A: x62 xE4 x1C x9E x3E
4. Show the result of the following operations, and then convert the result to hexadecimal. (1) NOT 129 (2) 15 AND 10 (3) x55 OR xAA (4) 100 AND 255 (5) (xFF XOR xBB) AND (xFF OR xBB) A: x81 x0A x00 x64 x44
5. Change the +12.625 decimal numbers to binary numbers, and show it in 32-bit IEEE format, and then convert the result to hexadecimal.
A: 1100.101 ----1.100101E02 ---1 10000001 1001010 00000000 00000000 ---x C0CA00
IV. Analyzing and Design (5 subjects, 5 scores for each subject)
1. Using the bubble sort algorithm, manually sort the following list and show your work in each pass: 12, 6, 78, 31, 50, 46, 99, 2, 20, 44 A: 2, 12, 6, 78, 31, 50, 46, 99, 20, 44
2, 6,12, 78, 31, 50, 46, 99, 20, 44 …
2. A list contains the following elements. Using the binary search algorithm, trace the steps followed to find 66. At each step, show the values of first, last and mid. 2, 5, 18, 28, 30, 40, 66, 100 A: index 0---1---2---3---4---5---6---7 2, 5, 18, 28, 30, 40, 66, 100 First=0, Last=7, Mid=(0+7)/2=3
The data is D(3)=28, 66 bigger than the D(3), so remove the data from index 0 to 3. Change the new point First=mid+1=4, Last=7, and Mid=(4+7)/2=5
The data is D(5)=40, 66 bigger than the D(3), so remove the data from index 4 to 5. Change the new point First=mid+1=6, Last=7, and Mid=(6+7)/2=6 The data is D(6)=66, we find the data 66 in index=6
3 Write an algorithm in pseudocode to find the smallest of a set of 10000 numbers (the biggest data is 255 among the numbers). A: input: 1000 integers Set smallest to 256 Set counter to 0
第 2 页 共 3 页
While(counter <10000)
If(the number Set the smallest to the number End if Increment the counter End while Return smallest End 4. Write a recursive algorithm to find the combination of n objects taken k at a time using following definition. C(n,k)=1 , if k=0 or n=k C(n,k)=C(n-1,k)+(n-1,k-1) , if n>k>0 A: C Input : n and k If(k==0 or n==k) Then return 1 End if If(n>k and k>0) Then Return C(n-1,k)+(n-1,k-1) End if End 5. Imaging a power plant that pumps water to a city using eight pumps(P8, P7, P6, P5, P4, P3, P2, and P1). The states of the pumps (on or off) can be represented by 8-bit pattern. For example, the pattern 10001111 shows that pumps 1 to 4(from right), and 8 are on (running) while pumps 5, 6, and 7 are off (shut down). How can you shut down all pumps, after two minutes, let the pump P2 and P5 running, and after one hour, shut down the P2 pump and turn on the P6 pump simultaneously, and remain the P5 running too? A: 0000 0000 after two minutes OR 0001 0010 after one hour XOR 0010 0010 第 2 页 共 3 页
正在阅读:
2009级计算机学院-计算机导论试题A卷--答案(参考)04-09
工程院院士称中国南北方水资源分配不均加剧06-09
电工学(秦曾煌版)电工电子学复习题03-09
洛川县果畜结合经验与思考Word 文档06-05
电大人力资源网上作业答案01-17
再见母校作文550字07-11
《人鉴--命理存验67例》10-24
部编版八年级《道德与法治》上册8.1《国家好 大家才会好》优秀教案09-01
浮点频率计(6) - 图文01-05
2021年海关政务公开工作要点参考范文08-12
- 多层物业服务方案
- (审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)
- 人教版新课标六年级下册语文全册教案
- 词语打卡
- photoshop实习报告
- 钢结构设计原理综合测试2
- 2014年期末练习题
- 高中数学中的逆向思维解题方法探讨
- 名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版
- 北航《建筑结构检测鉴定与加固》在线作业三
- XX县卫生监督所工程建设项目可行性研究报告
- 小学四年级观察作文经典评语
- 浅谈110KV变电站电气一次设计-程泉焱(1)
- 安全员考试题库
- 国家电网公司变电运维管理规定(试行)
- 义务教育课程标准稿征求意见提纲
- 教学秘书面试技巧
- 钢结构工程施工组织设计
- 水利工程概论论文
- 09届九年级数学第四次模拟试卷
- 计算机
- 导论
- 试题
- 答案
- 参考
- 学院
- 2009
- 基于单元整组教学的群文阅读课堂教学策略研究
- 公共关系学作业答案
- 水污染源在线系统比对监测记录表
- 电大学位英语考试复习资料
- 大三下高级英语2期末复习资料unit1-8
- 同济大学体育考试题库
- 门店接待流程
- 商业银行经营与管理案例分析全集
- 复旦大学新闻与传播硕士考研有哪些好的职业
- 施工单位入场须知
- 164194 - 天津碱厂深基坑支护施工方案
- 人教版小学数学“数与代数”教材梳理 - 图文
- 衍纸画课程纲要
- 2014中考英语一轮复习七上Units1-4精品学案 冀教版
- 电动汽车用动力蓄电池技术要求及试验方法-国家标准网
- 生活中其实容易患一些心理疾病的的人群某种程度上与他们的性格等
- 化工原理实验讲义20101013
- 浅析做好新形势下国有企业工会工作的新途径
- 三看县域发展“狼宁乡”
- 村卫生室规章管理制度全文