| Exam Code/Number: | 070-483Join the discussion |
| Exam Name: | Programming in C# |
| Certification: | Microsoft |
| Question Number: | 305 |
| Publish Date: | Jul 20, 2026 |
|
Rating
100%
|
|
You have the following code:
You need to display all of the vehicles that start with the letter "A".
How should you complete the code? To answer, drag the appropriate code elements to the correct targets. Each code element 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.
NOTE: Each correct selection is worth one point.

You are creating a class library that will be used in a web application.
You need to ensure that the class library assembly is strongly named.
What should you do?
You plan to debug an application remotely by using Microsoft Visual Studio 2013.
You set a breakpoint in the code.
When you compile the application, you get the following error message: "The breakpoint will not currently be hit. No symbols have been loaded for this document." You need to ensure that you can debug the application remotely.
What should you do?
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.
* When generic exceptions are caught, log the information by using the static void Log(Exception ex) method.
You need to meet the requirements.
You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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.)

You are debugging an application that calculates loan interest. The application includes the following code. (Line numbers are included for reference only.)
You need to ensure that the debugger breaks execution within the CalculateInterest() method when the loanAmount variable is less than or equal to zero in all builds of the application.
What should you do?