Microsoft 70-483 Programming in C# Online Training
Microsoft 70-483 Online Training
The questions for 70-483 were last updated at Nov 26,2024.
- Exam Code: 70-483
- Exam Name: Programming in C#
- Certification Provider: Microsoft
- Latest update: Nov 26,2024
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 a DateTime 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?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
DRAG DROP
You are developing an application by using C#. The application will process several objects per second.
You need to create a performance counter to analyze the object processing.
Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
You are developing an application by using C#. You provide a public key to the development team during development.
You need to specify that the assembly is not fully signed when it is built.
Which two assembly attributes should you include in the source code? (Each correct answer presents part of the solution. Choose two.)
- A . AssemblyKeyNameAttribute
- B . ObfuscateAssemblyAttribute
- C . AssemblyDelaySignAttribute
- D . AssemblyKeyFileAttribute
DRAG DROP
You are developing an application that includes a class named Warehouse. The Warehouse class includes a static property named Inventory.
The Warehouse class is defined by the following code segment. (Line numbers are included for reference only.)
You have the following requirements:
• Initialize the _inventory field to an Inventory instance.
• Initialize the _inventory field only once.
• Ensure that the application code acquires a lock only when the _inventory object must be instantiated.
You need to meet the requirements.
Which three code segments should you insert in sequence at line 09? (To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.)
You are adding a public method named UpdateGrade to a public class named ReportCard.
The code region that updates the grade field must meet the following requirements:
• It must be accessed by only one thread at a time.
• It must not be vulnerable to a deadlock situation.
You need to implement the UpdateGrade() method.
What should you do?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
You are developing an application that includes a class named BookTracker for tracking library books.
The application includes the following code segment. (Line numbers are included for reference only.)
You need to add a user to the BookTracker instance.
What should you do?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
DRAG DROP
You are implementing a method that creates an instance of a class named User. The User class contains a public event named Renamed.
The following code segment defines the Renamed event:
Public event EventHandler<RenameEventArgs> Renamed;
You need to create an event handler for the Renamed event by using a lambda expression.
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.)
You are creating a console application by using C#.
You need to access the assembly found in the file named car.dll.
Which code segment should you use?
- A . Assembly.Load();
- B . Assembly.GetExecutingAssembly();
- C . This.GetType();
- D . Assembly.LoadFile("car.dll");
You are developing an application by using C#.
The application includes an object that performs a long running process.
You need to ensure that the garbage collector does not release the object’s resources until the process completes.
Which garbage collector method should you use?
- A . WaitForFullGCComplete()
- B . WaitForFullGCApproach()
- C . KeepAlive()
- D . WaitForPendingFinalizers()
An application includes a class named Person. The Person class includes a method named GetData.
You need to ensure that the GetData() method can be used only by the Person class and not by any class derived from the Person class.
Which access modifier should you use for the GetData() method?
- A . Public
- B . Protected internal
- C . Internal
- D . Private
- E . Protected