Work 版 (精华区)

发信人: xboat (小白), 信区: Work
标  题: Intel以往考试题
发信站: 哈工大紫丁香 (2002年11月12日22:19:46 星期二), 转信




1。下面的程序是否正确,如正确,给出结果,否则,说明理由。
#include <stdio.h>
struct A{
int i;
char j;
char * ptr;
long Array[100];
char b[2];
char * c;
};
#define PRINT_ME  (char *)&(((struct A *)0)->c)
void main()
{
                printf("%d\n", PRINT_ME);
}
  


2.     下面的说法是否正确
a.     main里定义的变量,在整个文件可见
b.     inline函数可以提高运行效率,但不会浪费空间
c.     switch的参数可以是枚举类型
d.     函数返回类型不能是数组类型


3.这可是仅有的2道IQ题中的一题哦!
有一个能装5升水的容器和一个能装4升水的容器,现要在能装5升水的容器内
装入3升水,至少要几步!
选项:
a。《6
b。6
c。7
d。8

4。PIC is position independent code. That is to separate code from data
and the code won't be changed regardless of the address at which it is loaded.

Describe the advantage and disavantage of PIC?
原题大概如此,可能有些细微出入。

5。将a、b的内容交换,以下的几种方式是否正确
1)a=a+b;b=a-b;a=a-b;
2)a=a^b;b=a^b;a=a^b;
3)do{a=a^b;b=a^b;a=a^b;}while(1)

6。某系统有cache时访问时间是30ns,没有cache时的访问时间是180ns,
已知cache存取时间为20ns,求cache命中率

7。下列那些适用于x86结构的主板(多选)
a.CPU
b.Memory cip
c.power
d.IDE controller
e.IDE connector
f.PCI conntroller
g.PCI connector
h.AGP connector

8。假设某个世纪内,每年的年号都是合数,求该世纪最早发生在什么时候
(编程题) 



--
——傻傻的我在痴痴的等—

※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.229.122]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.748毫秒