复旦计算机原理,复旦计算机春季期末考试试题A.doc
复旦计算机春季期末考试试题A
复旦大学计算机科学技术学院
《计算机原理》期末考试试卷
A卷 共 13页
课程代码:INFO130054.01-02 _考试形式:开卷 2010年6月
(本试卷答卷时间为100分钟,答案必须写在答卷上,做在试卷上无效)
专业学号姓名成绩
题号1234567总分得分
Number Conversion: IEEE 754 single precision 32-bit float standard representation with a little change is illustrated below.
Normalized: (-1)sign * (1.fraction) * 2exponent-127 (exp=1 to 254)
Denormalized: (-1)sign * (0.fraction) * 2-126(when exp=0, fraction≠0)
Zero: all 0’s in all 3 fields
Convert the number -35.390625 into this changed IEEE 754 FP single precision representation (in hex).
(-35.390625)10 = (0x )16
With changed 32-bit float representation, what is the equivalent value as a decimal number?
A: (0011 1111 0001 0000 0000 0000 0000 0000)2
B: (0000 0000 0011 0101 0000 0000 0000 0000)2
Calculate the sum of (35.390625)10 and (0011 1111 0001 0000 0000 0000 0000 0000)2 using changed 32-bit float representation, and then round the sum (in binary number value, e.g. (1000.11)2 for (8.75)10 ) to 4 bits to the right of the binary point by both round-up and round-down. Give your steps detailed.
Given three numbers f1, f2 and f3 of this changed 32-bit representation, none of them equals +(, -( or NaN, and x is signed 32-complement representation. Please tell whether two C expressions below are always true. If yes, give the reason in detail; If no, give a counterexample and show the detail computation steps to get false.
A: x = = (int) (float) x;
B: (f1 > f2) = = ((f1 + f3) > (f2 + f3))
Please read the following C code and assembly code and then fill in the blanks.
#include
int p[5][4] = {{43,56,78,69},{-7,89,7,23},{24,36,88,67},
{12,56,78,90},{62,93,-78,9}};
int main(void){
int result = cal(5,4);
printf("The result is %d\n", result);
}
int cal(int a, int b){
int i;
int result=0;
for ( i = 0; i < b; i++) {
if (i < a-1)
result -= i*p[i+1][i];
}
return result;
复旦计算机原理,复旦计算机春季期末考试试题A.doc相关推荐
- 计算机组装与维护试卷 中职,中职-2012《计算机组装与维护》期末考试试题
中职-2012<计算机组装与维护>期末考试试题 <计算机组装与维护>课程 2012年上期期末考试试卷 班级: 姓名: 总分: 一.单项选择题(共20个小题,每题2分,计40分) ...
- 微型计算机接口与技术期末,微机原理与接口技术期末考试试题与答案
微机原理与接口技术期末考试试题与答案 微机原理与接口技术考试试卷(A) 学号 姓名 成绩 一.填空题(每空1分,共20分) 1.完成下列程序段,从240H端口读取数据,测试其是否为20H,若不是则将2 ...
- 东华理工大学c语言试题,东华理工大学C语言期末考试试题1.doc
您所在位置:网站首页 > 海量文档  > 计算机 > C/C++资料 东华理工大学C语言期末考试试题1.doc4页 本 ...
- 福师计算机原理与接口技术期末考试a卷答案2014,福师1203考试批次《计算机原理与接口技术》复习题及参考答案.doc...
福师1203考试批次<计算机原理与接口技术>复习题及参考答案.doc 福师1203考试批次<>复习题及参考答案一 A. 系统总线 B. 数据线 C. 接口电路 D. 微处理器 ...
- 计算机c语言期末答案,大学计算机C语言期末考试试题A.doc
2008~2009学年第二学期C语言期末考试(A卷) (2008级理科专业) PAGE PAGE 13 专业班级: 学号: 姓名: 一.选择题 (用铅笔把选中的方格涂黑 40×1=40分) 1 A B ...
- 微型计算机接口与技术期末,微机原理与接口技术期末考试试题及答案.pdf
微机原理与接口技术期末考试题库 1. 微机系统的硬件由哪几部分组成? 答:三部分:微型计算机 (微处理器,存储器,I/0接口,系统总线),外围设 备,电源. 2. 什么是微机的总线,分为哪三组? 答: ...
- 山东交通学院linux期末考试题,山东交通学院《桥梁工程》期末考试试题(B).doc
山东交通学院期末考试 桥梁工程 课程试卷答案和评分标准(B)卷 2012--2013学年第二学期 第1页 共3页 得分 阅卷人 填空题(每空0.5分 共15分) 1.桥梁工程由_________和__ ...
- 哈工大2023形式语言与自动机春季期末考试试题
有几个值得注意的点:(都是我和我同学错的) 1. 题3.1要注意没有aa,一个aa,两个aa,和aaa的情况,注意到aaa的情况就可以了 2. 题6要求的补并不是a^n b^m其中n和m不同,而是(a ...
- linux原理与应用期末考试,武汉大学计算机学院2009-2010学年第一学期期末考试《Linux原理与应用》期末考试试卷(共8套,有答案)...
内容简介: Linux 期末考试试题(共8套,有答案) Linux 期末考试试题(一) 一.选择题 (每小题2分,共50分) 1.在创建Linux分区时,一定要创建( D )两个分区 A. FAT/N ...
最新文章
- Redis学习笔记~Redis在windows环境下的安装
- C++判断一个数字是否为质数
- iOS开发Swift篇—(六)流程控制
- hdu 6088 Rikka with Rock-paper-scissors (2017 多校第五场 1004) 【组合数学 + 数论 + 模意义下的FFT】...
- Linux Mint,Ubuntu 18 ,Deepin15.7 安装mysql 没有提示输入密码,修改root用户密码过程...
- html页面整体换算单位,通过媒体查询meta和JS转换REM单位实现100%自适应
- C#|RBG图像转灰度图像与图像灰度反转
- java简历制作注意点
- 只有程序猿才知道的12个人艰不拆的真相
- SOA系列之 什么是SOA?
- 硬件在环(三):veristand使用
- Linux 在bash.bashrc中添加 一个目录
- Flask学习笔记总结(一)
- 【小明有啥说啥】我不会写标题,端午随便分享几点小技巧
- 1-1 MySQL数据库的基本操作 【增删改查】
- 织梦选php哪个版本,织梦DedeCMS网站及其版本的判断
- 根据16进制输出所有汉字
- 渗透利器 | 提权辅助工具箱
- C++ 条件变量的使用
- 使用Fireworks 8制作网页效果图2-生成网页[原创教程]