Big Screen Complex has the__________ (comfortable) seats.
第1题:
A.Has-arelationshipsshouldneverbeencapsulated.
B.Has-arelationshipsshouldbeimplementedusinginheritance.
C.Has-arelationshipscanbeimplementedusinginstancevariables.
D.Is-arelationshipscanbeimplementedusingtheextendskeyword.
E.Is-arelationshipscanbeimplementedusingtheimplementskeyword.
F.Anarrayoracollectioncanbeusedtoimplementaone-to-manyhas-arelationship.
G.TherelationshipbetweenMovieandActressisanexampleofanis-arelationship.
第2题:
A. [edit security screen] user@host# show ids-option untrust-screen { alarm-test-only; }
B. [edit security screen] user@host# show ids-option untrust-screen { alarm-without-drop; }
C. [edit security screen] user@host# show ids-option untrust-screen { alarm-no-drop; }
D. [edit security screen] user@host# show ids-option untrust-screen { test-without-drop; }
第3题:
[A] comfortable [B] weak [C] risky [D] firm
本题考查形容词辨析。feel是系动词,意为“摸起来,感觉起来”,它常与形容词构成系表结构,如:The water feels warm.(这水摸起来很暖和。)本题中feel的主语是the road, 因此空格处的形容词应说明“道路”的特点。四个选项都可以修饰事物,comfortable一般指“(衣服、家具等)使人舒服的”,如:The bed/these shoes are very comfortable.(这床/这双鞋子很舒服。)weak意为“不牢固的,易损坏的”,如:The bridge is too weak to carry heavy traffic.(那座桥梁不太牢固,承受不住过多的车辆。)weak也可指“微弱的,隐约的”,强调不容易被看到或听到,如:a weak light/sound(微弱的光线/声音)。risky意为“有危险或风险的”,如:a risky investment(有风险的投资)。firm意为“坚固的,结实的,稳固的”,如:No building can stand without firm foundations.(没有稳固的基础,建筑就不牢靠。)根据上下文,空格处的形容词应与下文“容易滑倒”相对照,因此[D]正确,强调道路“结实”。
第4题:
When William hurried home, he found that his mother ____already ____to hospital.
A、has; been sent
B、had; sent
C、has; sent
D、had; been sent
第5题:
class Screen {
friend istream&
operator>>( istream&, Screen& );
friend ostream&
operator<< ( ostream&, const Screen& );
public:
// ... Screen 类的其他部分
};
&是引用的符号。相当于别名的意思。返回引用是为了能让操作符连用,运行会快一些。
如定义Screen s1,s2;
cin>>s1>>s2;