第1题:
This pair of shoes isn‘t good, but that pair is ________ better.
A、 rather
B、 less
C、ever
D、hardly
第2题:
有如下程序:
#include<iostream>
using namespace std;
class Pair{
int m, n;
public:
Pair(int j, int k):m(j), n(k){}
int get(){return m;}
int get()const{return m+n;)
};
int main() {
Pair a(3, 5);
const Pair b(3, 5);
cout<<a. get()<<b. get();
return 0;
}
运行时的输出结果是( )。
A) 33
B) 38
C) 83
D) 88
A.
B.
C.
D.
第3题:
( 33 )有如下程序:
#include<iostream>
using namespace std;
class Pair{
int m;
int n;
public:
Pair ( int i , int j ) : m ( i ) , n ( j ) {}
boot operator > ( pair p ) const; // 须在类体外给出定义
} ;
int main () {
Pair Al ( 3,4 ) , p2 ( 4,3 ) ; p3 ( 4,5 ) ;
Cout<< ( pl>p2 ) << ( P2>P1 ) << ( p2>p3 ) << ( p3>p2 ) ;
return 0;
}
运算符函数 。 operator> 的功能是比较两个 Pair 对象的大小 , 当左边对象大时 , 返回 true , 否则返 回false 。 比较规则是首先比较两对象的 m 成员 , m 大者为大 ; 当 m 相等时比较 n , n 大者为大 。 程序输出 0101 ,下列对运算符重载函数的正确定义是
A ) bool Pair::operator> ( Pair p ) const
{if ( m!=p.m ) return m>p.m; return n>p.n;}
B ) bool Pair:;operator> ( Pair p )
{if ( m!=p.m ) return m>p.m; return n>p.n;}
C ) bool Pair::operator> ( Pair p ) const
{if ( m>p.m ) return true; return n>p.n;}
D ) bool Pair:;operator> ( Pair p )
{if ( m>p.m ) return true; return n>p.n;}
第4题:
A.100Base-T4
B.100Base-TX
C.100Base-X
D.100Base-FX
第5题:
有如下程序:
include<iostream>
using namespace std
class Base{
int b;
public:
Base(int i) {b=i;}
Void disp ( ) {cout<<"Base:b="<<b<<''; }
};
class Base1:virtual public Base{
public:
Base1(int i):Base(i){}
};
class Base2:virtual public Base{
public:
Base2(int i):Base(i){}
};
class Derived:public Basepublic Base1{
int d;
public:
Derived(int i ,int j):Base1(j),Base2(j),【 】
{ d=i; }
void disp() {cout<<"Derived:d="<<d<<' ';}
};
int main()
Derived objD(1,2);objD. disp()
objD. Base::disp();
objD. Base1::disp()
objD. Base2::disp();
return 0;
}
请将程序补充完整,使程序在运行时输出:
Derivd:d=1 Base:b=2 Base:b=2 Base:b=2
第6题:
A.10BASE.T
B.100BASE.T
C.10BASE.T/100BASE.T
D.10BASE.T/1000BASE.T
第7题:
Ethernet 的物理层协议主要有(21)。
A.10BASE-T1000BASE-T FDDI
B.10BASE-T 100BASE-T 1000BASE-T
C.100BASE-T 1000BASE-T FDDI
D.10BASE-T 100BASE-T FDDI
第8题:
完整的核小体约有( )
A、100碱基对
B、200碱基对
C、650碱基对
D、1300碱基对
E、1500碱基对
第9题:
A. Pair 1 & 8
B. Pair 2 & 7
C. Pair 3 & 6
D. Pair 4 & 5
第10题:
A.1000Base-CX
B.1000Base-TX
C.1000Base-SX
D.10Base-T
E.1000Base-T
F.1000Base-LX