问题 单项选择题

博学公司欲开发一个基于图形用户界面的集成调试器。该调试器的编辑器和变量监视器可以设置调试断点。当调试器在断点处暂停运行时,编辑程序可以自动卷屏到断点,变量监视器刷新变量数值。针对这样的功能描述,采用()的架构风格最为合适。

A.数据共享

B.虚拟机

C.隐式调用

D.显式调用

答案

参考答案:C

解析:根据题干描述,调试器在设置端点时,其本质是在断点处设置一个事件监听函数,当程序执行到断点位置时,会触发并调用该事件监听函数,监听函数负责进行自动卷屏、刷新变量数值等动作。这是一个典型的回调机制,属于隐式调用的架构风格。

阅读理解

MONTREAL--He may be the world’s richest man, but that didn’t prevent Bill Gates from falling for an April Fool’s day joke by two Quebec radio comics (喜剧演员) pretending to be Canadian Prime Minister Jean Chretien.

Montreal French-language station CKMF--FM said last Wednesday that staffers (工作人员) Marcantoine Audet and Sebastien Trudel had a 10-minute telephone chat with Microsoft Corp boss Gates on April 1.

The broadcast was aired on their nightly show last Tuesday and repeated last Wednesday.

“We were happy. We had been calling Microsoft persistently (坚持不懈地) for four weeks,” Trudel said.

Trudel said he and his colleague had already fooled Canadian pop singer Celine Dion and Formula One (一级方程赛车) driver Jacques Villeneuve on their show.

“This time, we wanted to give ourselves a challenge with somebody more difficult to reach,” Ttudel said.

He said he was surprised that Gates’s assistants did not check to see if it was really the prime minister’s office on the line.

Trudel said they imitated (模仿) Chretien’s heavily accented English, talking about the economy, asking about Microsoft’s Windows operating system and inviting the multibillionaire to visit a well-known Montreal strip joint (运动服合资企业).

The radio host said that Gates was not amused by the fake interview.

“He did not seem angry but he did not find it so funny,” the comic said.

小题1:Bill Gates was fooled mainly because ______.

A.his assistants were not careful enough

B.the Canadian Prime Minister helped the two comics

C.the two comics imitated the Canadian Prime Minister so well

D.it was April Fool’s Day小题2:We can conclude from the passage that the two comics ______.

A.liked to fool famous people on their show 

B.thought that Gates was not a great challenge to them

C.had a good knowledge of Bill Gates and his Windows operating system

D.were not quite satisfied with their tricks小题3:Which of the following would be the best title of the passage?

A.Gates ‘April Fooled’

B.Two Comics and Their Tricks

C.Two comics and Their Show

D.A Fake Interview

单项选择题