최신Microsoft Programming in C# - 070-483무료샘플문제
문제1
You are developing an application in C#.
The application uses exception handling on a method that is used to execute mathematical calculations by using integer numbers.
You write the following catch blocks for the method (line numbers are included for reference only):

You need to add the following code to the method:

At which line should you insert the code?
You are developing an application in C#.
The application uses exception handling on a method that is used to execute mathematical calculations by using integer numbers.
You write the following catch blocks for the method (line numbers are included for reference only):

You need to add the following code to the method:

At which line should you insert the code?
정답: A
문제2
You need to write a method that retrieves data from a Microsoft Access 2013 database. The method must meet the following requirements:
* Be read-only.
* Be able to use the data before the entire data set is retrieved.
* Minimize the amount of system overhead and the amount of memory usage.
Which type of object should you use in the method?
You need to write a method that retrieves data from a Microsoft Access 2013 database. The method must meet the following requirements:
* Be read-only.
* Be able to use the data before the entire data set is retrieved.
* Minimize the amount of system overhead and the amount of memory usage.
Which type of object should you use in the method?
정답: D
설명: (ExamPassdump 회원만 볼 수 있음)
문제3
You are developing a Windows Forms (WinForms) application. The application displays a TreeView that has 1,000 nodes.
You need to ensure that if a user expands a node, and then collapses the TreeView, the node object is kept in memory unless the Garbage Collector requires additional memory.
Which object should you use to store the node?
You are developing a Windows Forms (WinForms) application. The application displays a TreeView that has 1,000 nodes.
You need to ensure that if a user expands a node, and then collapses the TreeView, the node object is kept in memory unless the Garbage Collector requires additional memory.
Which object should you use to store the node?
정답: C
설명: (ExamPassdump 회원만 볼 수 있음)
문제4
You have the following code.

You need to ensure that the classify string contains the next "positive" if the input number is more than zero and "negative" if the input number is less than or equal to zero.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. 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.

You have the following code.

You need to ensure that the classify string contains the next "positive" if the input number is more than zero and "negative" if the input number is less than or equal to zero.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. 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.

정답:

문제5
You are developing a class named Temperature.
You need to ensure that collections of Temperature objects are sortable.
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 developing a class named Temperature.
You need to ensure that collections of Temperature objects are sortable.
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.)

정답:

Explanation:
Note:
Target 1:
The role of IComparable is to provide a method of comparing two objects of a particular type. This is necessary if you want to provide any ordering capability for your object.
Incorrect: The role of IComparer is to provide additional comparison mechanisms. For example, you may want to provide ordering of your class on several fields or properties, ascending and descending order on the same field, or both.
Target 2, Target 3:
Example:
// Implement IComparable CompareTo method - provide default sort order.
int IComparable.CompareTo(object obj)
{
car c=(car)obj;
return String.Compare(this.make,c.make);
}
Reference:
https://support.microsoft.com/en-us/kb/320727
문제6
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 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?
정답: B
설명: (ExamPassdump 회원만 볼 수 있음)
문제7
You are developing an application that uses several objects. The application includes the following code segment. (Line numbers are included for reference only.)

You need to evaluate whether an object is null.
Which code segment should you insert at line 03?

You are developing an application that uses several objects. The application includes the following code segment. (Line numbers are included for reference only.)

You need to evaluate whether an object is null.
Which code segment should you insert at line 03?

정답: D
설명: (ExamPassdump 회원만 볼 수 있음)
문제8
You are writing the following method (line numbers are included for reference only):

You need to ensure that CreateObject compiles successfully.
What should you do?
You are writing the following method (line numbers are included for reference only):

You need to ensure that CreateObject compiles successfully.
What should you do?
정답: A
설명: (ExamPassdump 회원만 볼 수 있음)
문제9
You have the following code.


You have the following code.


정답:
