PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-483 (update July 21th, 2017)

Exam 70-483: Programming in C# (update July 21th, 2017)

How should you complete the relevant code?

DRAG DROP
You are developing an application that implements a set of custom exception types. You declare the custom
exception types by using the following code segments:

The application includes a function named DoWork that throws .NET Framework exceptions and custom
exceptions. The application contains only the following logging methods:

The application must meet the following requirements:
When ContosoValidationException exceptions are caught, log the information by using the static void Log
(ContosoValidationException ex) method.
When ContosoDbException or other ContosoException exceptions are caught, log the information by using
the static void Log(ContosoException ex) method.You need to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

Which code segment should you use?

You are developing an application that uses structured exception handling. The application includes a class
named Logger. The Logger class implements a method named Log by using the following code segment:
public static void Log(Exception ex) { }
You have the following requirements:
Log all exceptions by using the Log() method of the Logger class.
Rethrow the original exception, including the entire exception stack.
You need to meet the requirements. Which code segment should you use?

Which code segment should you insert at line 04?

You are implementing a method named FloorTemperature that performs conversions between value types and
reference types. The following code segment implements the method. (Line numbers are included for reference
only.)

You need to ensure that the application does not throw exceptions on invalid conversions.
Which code segment should you insert at line 04?

What are two possible ways to achieve this goal?

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.)

You need to meet the requirements

You are debugging an application that calculates loan interest. The application includes the following code.
(Line numbers are included for reference only.)

You have the following requirements:
The debugger must break execution within the Calculatelnterest() method when the loanAmount variable is
less than or equal to zero.
The release version of the code must not be impacted by any changes.
You need to meet the requirements.
What should you do?


Page 18 of 24« First...10...1617181920...Last »