PrepAway - Latest Free Exam Questions & Answers

Category: 70-483

Exam 70-483: Programming in C#

Which code segment should you insert at line 04?

You are developing a C# application that has a requirement to validate some string input data by using
the Regex class.
The application includes a method named ContainsHyperlink. The ContainsHyperlink() method will verify
the presence of a URI and surrounding markup.
The following code segment defines the ContainsHyperlink() method. (Line numbers are included for reference
only.)

The expression patterns used for each validation function are constant.
You need to ensure that the expression syntax is evaluated only once when the Regex object is initially
instantiated.
Which code segment should you insert at line 04?

Which two actions should you perform?

You are developing an application by using C#.
You have the following requirements:
-Support 32-bit and 64-bit system configurations.
-Include pre-processor directives that are specificto the system configuration.
-Deploy an application version that includes both system configurations to testers.
-Ensure that stack traces include accurate line numbers.
You need to configure the project to avoid changingindividual configuration settings every time you deploy the
application to testers.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)

How should you complete the relevant code?

You are testing an application. The application includes methods named Calculatelnterest and LogLine.
The Calculatelnterest () method calculates loan interest. The Logl_ine() method sends diagnostic
messages to a console window.
You have the following requirements:
-The Calculatelnterest() method must run for all build configurations. -Logl_ine() method must run only for
debug builds.
You need to ensure that the methods run correctly.
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 orscroll to view content.)

You need to ensure that the debugger breaks execution within the Calculatelnterest() method…

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 Calculatelnterest() method when the
loanAmount variable is less than or equal to zero in all builds of the application.
What should you do?

Which code segment should you use?

You are developing an application that accepts the input of dates from the user.
Users enter the date in their local format. The date entered by the user is stored in a string variable named
inputDate. The valid date value must be placed in aDateTime variable named validatedDate
You need to validate the entered date and convert it to Coordinated Universal Time (UTC). The code must
not cause an exception to be thrown.
Which code segment should you use?


Page 4 of 7« First...23456...Last »