对
错
第1题:
下面不属于同一函数模板的是( )。
A.template<class t1> t1 max(t1 &a,t1 &b) {…}template<class t2> t2 max(t2 &a,t2 &b) {…}
B.template<class t1>t1 max(t1 a,t1 b){…}template<class t2>t2 max(t2 &a,t2 &b){…}
C.template<class t1> t1 max(t1 * a,t1 * b) {…} template<class t2> t2 max(t2 &a,t2 &b) {…}
D.template<class t1>t1 max(t1 a,t1 b){…}template<class t2>t2 max(t2 &a,t2 &b,t2 c){…}
第2题:
事务T1、T2和T3对相同的一组数据A、B和C进行操作,对于如下的一个并发调度,其中T1与T2间并发操作(45),T2与T3间并发操作 (46)。
A.正确
B.不能重复读
C.将丢失修改
D.将读“脏”数据
第3题:
有如下函数模板定义: template<typename T1,typename T2,typename T3> T2 plus T1 t1,T3 t3){return t1+t3;} 则以下调用中正确是
A.plus(3,5L);
B.plus<>(3,5L);
C.plus<int>(3,5L);
D.plus<int,double>(3,5L);
第4题:
接点温度为t1和t3的热电偶,它的热电势等于接点分别为t1、t2和t2、t3的两支热电偶的热电势的代数和。
第5题:
第6题:
有如下函数模板定义: template <typename T1,typename T2,typename T3> T2 plus(T1 t1,T3 t3){return t1+t3;}
A.plus(3,5L);
B.plus<>(3,5L);
C.plus<int>(3,5L);
D.plus<int, double>(3,5L);
第7题:
现有3个同时到达的作J1、J2和J3,它们的执行时间分别是T1 、T2 和T3 ,且 T1<T2<T3。系统按单道方式运行且采用短作业优先算法,则平均周转时间是______。
A.T1 +T2 +T3
B.(T1 +T2 +T3 ) /3
C.(3T1 +2T2 +T3 ) /3
D.(T1 +2T2 +3T3 ) /3
第8题:
A.8
B.20
C.11
D.9
第9题:
第10题:
高浓度顺磁造影剂对质子弛豫时间的影响为()。