Borland product certification 第21 - 30 道题(10分)

  • 主题发起人 主题发起人 kouchun
  • 开始时间 开始时间
K

kouchun

Unregistered / Unconfirmed
GUEST, unregistred user!
第21道题,共60道。 标记该题,以便检查
The TMaskEdit control is a better choice for creating a password dialog than the TEdit control because it provides the ability to mask the password as it is entered with a character of your choice like the * or the % through it's MaskChar.


True
False


第22道题,共60道。 标记该题,以便检查
Which keyword is used, within the context of a resource protection block, to ensure that certain statements are executed regardless of whether or not an exception occurs?


catch
finally
except
raise


第23道题,共60道。 标记该题,以便检查
What is the primary difference between a private and a protected member of a class?

A private member is accessible only within the unit where it is declared.
A private member is accessible within the unit where the class is declared and any descendant classes.
A protected member is accessible wherever the object to which it belongs is accessible.
A private member has the same visibility as a protected member.


第24道题,共60道。 标记该题,以便检查
Which Object Pascal reserved word causes an exception to occur?

try
raise
catch
throw
exception


第25道题,共60道。 标记该题,以便检查
What happens when the CalcDiscount function below is executed and the Discount parameter holds the value of zero? (Lines are numbered for easy reference.)


1 function CalcDiscount(Discount: Double): Double;
2 begin
3 Result := 20.00 / Discount;
4 try
5 ShowMessage(FloatToStr(Discount));
6 except
7 on EMathError do
8 ShowMessage('A math error occurred');
9 end;
10 end;





Line three will generate an exception and execution will jump to line eight.
The function will execute normally, lines seven and eight will not be executed.
The function will appear to execute normally, but Result will be assigned an indefinite value.
Line three will generate an exception and execution will jump to the Application's default exception handler.


第26道题,共60道。 标记该题,以便检查
Consider the following two functions:

Function Hello: string;
Begin
//This is a comment.
End;

Function World: integer;
Begin
//This is a comment
End;

Compiling the unit containing these two functions will...

Cause a compilation error
Cause two warnings for undefined result type
Cause a warning for undefined result type for function Hello
Cause a warning for undefined result type for function World


第27道题,共60道。 标记该题,以便检查
Only virtual and dynamic methods can be overridden. All methods, however, can be overloaded.

True
False


第28道题,共60道。 标记该题,以便检查
Which one of the following exceptions causes HandleException not to call the OnException handler?

EAbort
EDatabaseError
EMemoryLeak


第29道题,共60道。 标记该题,以便检查
Given an ancestor class declared as:


TAncestor = class(TObject)
private
FColor : TColor;
procedure SetColor(AColor : TColor);
protected
procedure SetColorName(const strParam : String); virtual;
public
function IsTransparent : Boolean;
published
property Color : TColor read Fcolor write SetColor;
end;



Which of the following is a proper polymorphic
descendant class procedure declaration?


procedure SetColor(AColor : TColor); override;
procedure SetColorName(const strParam : String); virtual;
procedure SetColorName(const strParam : String); override;
procedure SetDescendantColorName(const strParam : String); override;


第30道题,共60道。 标记该题,以便检查
What is the primary purpose of the Object Repository?

Data warehousing
Object Warehousing
Object Sharing
Object Storage
Polymorphic method sharing
 
能多放点试题吗?我想去参加考试!
谢谢!
 
哪里有答案亚

 
广东有没有考试中心呀?
 
sorry, i dont know , i take it in HK.
 
BBCBA
DBCCC
 
BBABB

DBACC

it is my answer
 
多人接受答案了。
 
后退
顶部