有T1、T2和T3三晶体管,T1的β=200,ICEO=200μA;T2的β=100,ICEO=10μA;T3的β=10,ICEO=100μA,其它参数基本相同,则实用中应选()
第1题:
A.8
B.20
C.11
D.9
第2题:
下面程序的运行结果是( )。
include<stdio.h>
define SlZE 12
main()
{char s[SIZE];int i;
for(i=0;i<SIZE;i++) s[i]='A'+i+32;
sub(s,5,SIZE-1);
for(i=0;i<SIZE;i++)printf("%c",s[i]);
printf("\n");}
sub(char *a,int t1,int t2)
{ char ch;
while(t1<t2)
{ ch=*(a+t1);
*(a+t1)=*(a+t2);
*(a+t2)=ch;
t1++;t2--;
}
}
第3题:
第4题:
第5题:
有如下函数模板定义: 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);
第6题:
此题为判断题(对,错)。
第7题:
下面不属于同一函数模板的是( )。
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){…}
第8题:
有如下函数模板定义: 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);
第9题:
现有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
第10题: