问题 填空题

在窗体中添加一个命令按钮(名称为Commandl) ,然后编写如下代码:
Private Sub Commandl_Click()
Static b As Integer
b=b+1
End Sub
窗体打开运行后,单击三次命令按钮后,变量b的值是______。

答案

参考答案:C

解析: 本题考查静态变量的知识。使用Static定义的变量称为静态变量,这种变量不同于局部变量,每次调用过程的时候不会重新声明和初始化该变量,变量中仍然保留上次调用结束时的值。在本题中,第一次调用b的值变为1,第二次调用b的值变为2,第三次调用b的值变为3。

问答题

KK is a large listed company. When a non-executive directorship of KK Limited became available, John Soria was nominated to fi ll the vacancy. John is the brother-in-law of KK’s chief executive Ken Kava. John is also the CEO of Soria Supplies Ltd, KK’s largest single supplier and is, therefore, very familiar with KK and its industry. He has sold goods to KK for over 20 years and is on friendly terms with all of the senior offi cers in the company. In fact last year, Soria Supplies appointed KK’s fi nance director, Susan Schwab, to a non-executive directorship on its board. The executive directors of KK all know and like John and so plan to ask the nominations committee to appoint him before the next AGM. KK has recently undergone a period of rapid growth and has recently entered several new overseas markets, some of which, according to the fi nance director, are riskier than the domestic market. Ken Kava, being the dominant person on the KK board, has increased the risk exposure of the company according to some investors. They say that because most of the executive directors are less experienced, they rarely question his overseas expansion strategy. This expansion has also created a growth in employee numbers and an increase in the number of executive directors, mainly to manage the increasingly complex operations of the company. It was thought by some that the company lacked experience and knowledge of international markets as it expanded and that this increased the risk of the strategy’s failure. Some shareholders believed that the aggressive strategy, led by Ken Kava, has been careless as it has exposed KK Limited to some losses on overseas direct investments made before all necessary information on the investment was obtained. As a large listed company, the governance of KK is important to its shareholders. Fin Brun is one of KK’s largest shareholders and holds a large portfolio of shares including 8% of the shares in KK. At the last AGM he complained to KK’s chief executive, Ken Kava, that he needed more information on directors’ performance. Fin said that he didn’t know how to vote on board reappointments because he had no information on how they had performed in their jobs. Mr Kava said that the board intended to include a corporate governance section in future annual reports to address this and to provide other information that shareholders had asked for. He added, however, that he would not be able to publish information on the performance of individual executive directors as this was too complicated and actually not the concern of shareholders. It was, he said, the performance of the board as a whole that was important and he (Mr Kava) would manage the performance targets of individual directors. Required:

(a) Explain the term ‘confl ict of interest’ in the context of non-executive directors and discuss the potential confl icts of interest relating to KK and Soria Supplies if John Soria were to become a non-executive director of KK Limited. (8 marks)

单项选择题