読者です 読者をやめる 読者になる 読者になる

70-345復習資料、70-483無料ダウンロード

 

NO.1 You are developing code for a class named Account. The Account class includes the following
method:
You need to ensure that overflow exceptions are thrown when there is an error.
Which type of block should you use?
A. using
B. try
C. checked
D. unchecked
Answer: C

70-483体験記   

NO.2 An application includes a class named Person. The Person class includes a method named
GetData.
You need to ensure that the GetData() from the Person class.
Which access modifier should you use for the GetData() method?
A. Internal
B. Protected internal
C. Protected
D. Public
E. Private
Answer: C

70-483前提   
Explanation:
Protected - The type or member can be accessed only by code in the same class or structure, or in a
class that is derived from that class. http://msdn.microsoft.com/en-us/library/ms173121.aspx The
protected keyword is a member access modifier. A protected member is accessible within its class
and by derived class instances.

NO.3 You are developing an application that includes the following code segment. (Line numbers
are included for reference only.)
You need to ensure that the application accepts only integer input and prompts the user each time
non-integer input is entered.
Which code segment should you add at line 19?
A. If *1 > Int32.MaxValue)
B. If (Int32.TryParse(sLine, out number))
C. If (!int.TryParse(sLine, out number))
D. If *2 == Single.NaN)
Answer: C

70-483参考書勉強   
Explanation:
B and C will throw exception when user enters non-integer value. D is exactly the opposite what we
want to achieve.
Int32.TryParse - Converts the string representation of a number to its 32-bit signed integer equivalent.
A return value indicates whether the conversion succeeded. http://msdn.microsoft.com/en-
us/library/f02979c7.aspx

NO.4 You are testing an application. The application includes methods named CalculateInterest and
LogLine.
The CalculateInterest() method calculates loan interest. The LogLine()
method sends diagnostic messages to a console window.
The following code implements the methods. (Line numbers are included for reference only.)
You have the following requirements:
- The Calculatelnterest() method must run for all build configurations.
- The LogLine() method must run only for debug builds.
You need to ensure that the methods run correctly.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)
A. Insert the following code segment at line 10: [Conditional("RELEASE")]
B. Insert the following code segment at line 05:
#region DEBUG
Insert the following code segment at line 07:
#endregion
C. Insert the following code segment at line 01:
#region DEBUG
Insert the following code segment at line 10:
#endregion
D. Insert the following code segment at line 10:
[Conditional(MDEBUG")]
E. Insert the following code segment at line 01:
[Conditional(MDEBUG")]
F. Insert the following code segment at line 05:
#if DEBUG
Insert the following code segment at line 07:
#endif
G. Insert the following code segment at line 01:
#if DE30G
Insert the following code segment at line 10:
#endif
Answer: D,F

70-483予想   70-483実際   
Explanation:
#if DEBUG: The code in here won't even reach the IL on release.
[Conditional("DEBUG")]: This code will reach the IL, however the calls to the method will not execute
unless DEBUG is on.
http://stackoverflow.com/questions/3788605/if-debug-vs-conditionaldebug

 

*1:number = int.Parse(sLine

*2:number = Int32.Parse(sLine