有一矩阵“int a[50][50]”以行为序进行存储,有一个虚拟存储系统,物理内存共有 3页,其中1页用来存放程序,其余2页用于存放数据。假设程序已在内存中占1页,其余 2页空闲。程序A:for(i=0; i<=49;i++)for(j=0; j<=49;j++)A[i][j]=0;程序B:for(i=0; i<=49; i++)for(j=0; j<=49; j++)A[i][j]=0;若每页可存放50个整数,执行程序A会发生 (52) 次缺页,执行程序B会发生 (53) 次缺页。 (52)处填()。
A. 50
B. 100
C. 1000
D. 2500
查看答案
若每一条指令都可以分解为取指,分析和执行三步。已知取指时间t取指=8△t,分析时间t分析=3△t,执行时间t执行=12△t。如果按照流水线方式执行指令,从头到尾执行完 100条指令至少需 (41) △t。如果取指时间t取指=8△t,分析时间t分析=12△t,执行时间 t执行=3△t,则从头到尾执行完100条指令至少需 (42) △t。 (41)处填()。
A. 1200
B. 1223
C. 1224
D. 1211
职员关系模式为E(Eno,Ename,Dept,Eage,Eaddr),其中Eno表示职员号,Ename表示职员名,Dept表示职员所在部门,Eage表示年龄,Eaddr表示职员的家庭住址。建立“开发部”职员的视图DS_E(DS表示开发部)如下,要求进行修改、插入操作时保证该视图只有开发部的职员。CREATE VIEW DS_EAS SELECT Eno,Ename,Dept,Eage,EaddrFROM E WHERE (64) 如下SQL语句可以查询开发部姓“王”职员的姓名和家庭住址。SelectEname,Eaddr From DS_E Where (65) ; (65)处填()。
A. Ename=’王%’
B. Ename LIKE’王%’
C. Ename=’王*’
D. Ename LIKE’王*’
(31) 表示了类间“is-a”的关系,而 (32) 表示了类之间的“contains-a”关系。 (31)处填()。
A. 组合
B. 引用
C. 聚合
D. 继承
XP is (71) of interesting twists that encourage one to think--for example, how about "Test and then code" I’ve worked with software companies and a few IT organizations in (72) programmer performance was measured on lines of code delivered and testing was measured on defects found-- (73) side was motivated to reduce the number of defects prior to testing. XP uses two types of testing: unit and functional. (74) , the practice for unit testing involves developing the test for the feature prior to writing the code and further states that the tests should be automated. Once the code is written, it is immediately (75) to the test suite bringing instant feedback. (71)处填()。
A. filled
B. stuff
C. pack
D. full