Testking Mcad 70-320 Exam

MCSD .NET XML Web Services and Server Components with C#.NET : 70-320 Examtestking Microsoft: 70-320 Exam
Questions & Answers 70-320 – Questions & Answers
Interactive Testing Engine Included!
234 Questions
Updated : 07/20/2008
Price : $65.99 $59.99
Add to Cart
Study Guides 70-320 – Study Guides
Updated : 03/12/2008
Price : $21.99 $19.99
Add to Cart

Testking Materials do not contain actual questions and answers
from Microsoft’s Certification Exams
Microsoft 70-320 Exam

Exam 70-320: Developing XML Web Services and Server Components with Microsoft Visual C# .NET and the Microsoft .NET Framework

When you pass the Developing and Implementing Web Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET exam, you achieve Microsoft Certified Professional status. You also earn:

• Core credit toward Microsoft Certified Solution Developer (MCSD) for Microsoft .NET certification.
• Core or elective credit toward Microsoft Certified Application Developer (MCAD) for Microsoft .NET certification.
• Elective credit toward Microsoft Certified Database Administrator (MCDBA) on Microsoft SQL Server 2000 certification.

Exam Topics Include:
• Creating and Managing Microsoft Windows Services, Serviced Components, .NET Remoting Objects, and XML Web Services
• Consuming and Manipulating Data
• Testing and Debugging
• Deploying Windows Services, Serviced Components, .NET Remoting Objects, and XML Web Services
QUESTION NO: 1
You are creating a .NET Remoting object. You want to add code to the object to log
error messages and warning messages. You want the log messages written to both a log
file and to the Windows application log.
Which code segment should you use?
A. EventLog eventLog = new EventLog(“testkobj”);
FileStream fileLog = File.Create(“testkobj.log”;
Trace.WriteLine(eventLog, “sample message”);
Trace.WriteLine(fileLog, “sample message”);
B. EventLog eventLog = new EventLog(“testkobj”);
FileStream fileLog = File.Create(“testkobj.log”);
Trace.Write(eventLog);
Trace.Write(fileLog);
Trace.WriteLine(“sample message”);
C. Trace.Listeners.Add(new
EventLogTraceListener(“testkobj”));
Trace.Listeners.Add(
new TextFileTraceListener(“testkobj.log”));
Trace.WriteLine(“sample message”);
D. Trace.Listeners.Add(new EventLogTraceListener());

Answer: C
Explanation: Listeners direct the tracing output to an appropriate target, such as a log,
window, or text file.
An EventLogTraceListener redirects output to an event log. A TextWriterTraceListener
redirects output to an instance of the TextWriter class.
We should take care to use the new EventLogTraceListener(“remobj”) constructor.
Note: Any listener in the Listeners collection gets the same messages from the trace output
methods. If we set up two listeners: a TextWriterTraceListener and an
EventLogTraceListener. Each listener receives the same message. The
TextWriterTraceListener would direct its output to a stream, and the EventLogTraceListener
would direct its output to an event log.

atag.com
Reference: Visual Basic and Visual C# Concepts, Trace Listeners
.NET Framework Class Library, EventLogTraceListener Class [C#]
Incorrect Answers
A: The EventLog object provides interaction with Windows event logs and filestreams
enables writing of data to files. However, they are not appropriate for logging warning
and error messages.
B: The following statements are incorrect.
Trace.Write(eventLog);
Trace.Write(fileLog);
The correct usage is Trace.Write(Parameter), where Parameter is either an Object or a
String that should be written.
D: The EventLogTraceListener Constructor() (with no parameter) initializes a new instance
of the EventLogTraceListener class without a trace listener.

www.chinata
QUESTION NO: 2
You create a serviced component named SessionDispenser. This computer is in the
Chinatag.Utilities assembly and is registered in a COM+ server application.
SessionDispenser has multiple callers.
You discover that there are logic problems in the Create New Session method. You want
to debug any calls to this method.
What should you do?
A. Open the SessionDispenser solution.
Set a breakpoint on the CreateNewSession method.
Start the debugger.
B. Attach the debugger to the client process.
Set a breakpoint on the SessionDispenser.CreateNewSession method.
C. Attach the debugger to the Chinatag.Utilites.exe process.
Set a breakpoint on the CreateNewSession method.
D. Attach the debugger to a Dllhost.exe process.
Set a breakpoint on the CreateNewSession method.
Answer: D
Explanation: Since this is a COM+ SERVER application we have to attach the debugger to
the Dllhost.exe.
Reference: .NET Framework Developer’s Guide, Using Serviced Components with the
Global Assembly Cache
Incorrect Answers
A: The debugger must be attached to the program that should be debugged.

Donwload Free PassGuide Braindumps-The Most Realistic Practice Questions and Answers,Help You Pass any Exams

atag.com
B: The debugger should be attached to Dllhost.exe, not to the client process.
C: We are not debugging a Library application, so we should not attach the debugger to the
Chinatag.Utilities.exe process.
QUESTION NO: 3
You create an XMLWeb service named LatLong that converts street addresses to
latitude and longitude coordinates. Chinatag Inc. charges for this service and allows only
existing customers to use the service.
If a customer ID is not passed as part of a SOAP header, you want the service to refuse
the request. You want these service refusal messages to be logged to an event log named
LatLongLog. You anticipate that there will be a lot of these log entries over time. A
string object named refusalMessage contains the message to log.
Which code segment should you use?
“ ”
www.chinata
A. Event log = new EventLog(“LatLongLog”);
log.WriteEntry(refusalMessage, EventLogEntryType.Error);
B. EventLog log = new EventLog();
log.Source = “LatLongLog”;
log.WriteEntry(refusalMessage, EventLogEntryType.Error);
C. if (!EventLog.SourceExists(“LatLongSource”)) {
EventLog.CreateEventSource(“LatLongSource”,
“LatLongLog”);
}
EventLog.WriteEntry(“LatLongSource”,
refusalMessage, EventLogEntryType.Error);
D. if (!EventLog.SourceExists(“LatLongSource”)) {
EventLog.CreateEventSource(“LatLongSource”,
“LatLongLog”;
}
EventLog log = new EventLog(“LatLongLog”);
log.WriteEntry(refusalMessage, EventLogEntryType.Error);
Answer: C
Explanation: First we use the SourcesExists method to search the registry for an existing
event source. If it does not exists we create a new.
Note: The EventLog.CreateEventSource method establishes an application, using the
specified Source, as a valid event source for writing entries to a log on the local computer.
This method can also create a new custom log on the local computer.
Reference: .NET Framework Class Library, EventLog Members
Incorrect Answers
A, B, D: We should only create a new event source only if it does not exist.

w.chinatag.com
QUESTION NO: 4
You create a serviced component named ChinatagOrderProcessor. OrderProcessor
implements the IOrderinit interface. The component and the interface contain the
following code segments:
[Guid(“0B6ABB29-43D6-40a6-B5F2-83A457D062AC”)]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IOrderInit {
// IOrderInit methods go here.
}
public class OrderProcessor: ServicedComponent, IOrderInit {
// OrderProcessor methods go here.
}
You discover that every time you rebuild ChinatagOrderProcessor, existing unmanaged
client code fails. The HRESULT for the exception is 0×80040154. The exception includes
the following message: “Class not registered”. You need to resolve this problem.
What should you do?
A. Add a Guid attribute to the ChinatagOrderProcessor class.
www.ch
A. Add a Guid attribute to the ChinatagOrderProcessor class.
B. Add a ComImport attribute to the IOrderInit interface.
C. To the ChinatagOrderProcessor class, add the following attribute:
[ClassInterface(ClassInterfaceType.AutoDual)]
D. To the end of every method, add the following line of code:
Marshal.ReleaseComObject(this);
Answer: A
Explanation: You can identify an existing COM+ target application by name or GUID. We
can register the ChinatagOrderProcessor class by adding a GUID attribute to it.
Reference: .NET Framework Developer’s Guide, Registering Serviced Components [C#]
Incorrect Answers
B: When placed on a class, the ComImport attribute marks the class as an externally
implemented Com class. However, the class must also be decorated with the Guid
attribute, which specifies the CLSID for the COM class being imported.
C: The ClassInterfaceType.AutoDual method indicates that the class only supports late
binding for COM clients.
D: The Marshal.ReleaseComObject method decrements the reference count of the supplied
runtime callable wrapper (RCW). It is not of any use in this scenario.
.chinatag.com
QUESTION NO: 5
You create an XMLWeb service named PostalCode. Your project source includes a
code-behind file and a file named PostalCode.asmx.
During implementation, you use the Debug class to record debugging log messages, to
verify values, and to report debugging failures.
You want to deploy PostalCode to a production computer. You do not want any of the
debugging code to execute on the production computer.
What should you do?
A. Set the project’s active configuration to Release and rebuild the DLL.
B. Modify the trace element of the Web.config file by setting the enabled attribute to
“false”.
C. Modify the compilation element of the Web.config file by setting the debug attribute
to “false”.
D. Add code to the constructor of the PostalCode class to set the AutoFlash property of
the Debug class to false.
E. Add code to the constructor of the PostalCode class to call the Clear method of the
Debug.Listeners property.
QUESTION NO: 6
You create an XMLWeb service named TimeTKService. Each time TimeTKService is
started, it checks for the existence of an event log named TimeTKServiceLog. If
TimeServiceLog does not exist, TimeTKService creates it.
You discover that when TimeTKService creates TimeTKServiceLog, it throws a
System.Security.SecurityException. The exception includes the following message:
“Requested registry access is not allowed”. You need to resolve this problem.
What should you do?
A. Configure Inetinfo.exe to run as the local administrator user account.
chinatag.com
B. Create an installer for TimeTKService, and create the new event log in the installer
code.
C. Modify the Web.config file by adding an identity element to impersonate the LOGON
user specified by Internet Information Services (IIS).
D. Modify the permissions of the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog registry
key to give full control to the IUSR_computername user account.
Answer: A
Explanation: ASP.NET applications run under inetinfo.exe (the IIS process) or the ASP
worker process aspnet_wp.exe, depending on security settings. Running as the local
administrator account the IIS process would be able to create TimeServiceLog.
Reference: Visual Studio, Error: Unable to Start Debugging on the Web Server
Incorrect Answers
B: This would not allow registry access.
C: This does not work.
D: For anonymous access the IUSR_computername user account is used.

Free down:Testking Mcad 70-320 Exam

Free down:Pass4sre Mcad 70-320  v2.73

password:testking.name

High quality IT Certification Training Exam Questions, Study Guides and Practice Tests are in Downloadable PassGuide Testing Engine,Successful for IT Certification or Full Refund for you.Contact Us:Sales@PassGuide.com

Type

Exam Bible New Questions & Answers

Latest Updated

Download link
PDF All Certbible 's Exam Dumps

597

1 days ago Available
Free PassGuide

PassGuide Training Materials & Practice Tests

free certification guide
Tags: ,

About the Author

Free Certification Exam Download has written 10018 stories on this site.

If you have any doubts about legality of content or you have another suspicions, feel free to contact us:CertGuard@Gmail.com

2 Comments on “Testking Mcad 70-320 Exam”

Trackbacks

  1. New latest testking microsoft mcdba exams dumps | Free Latest Certification Exams Dumps
  2. testking Microsoft MCAD.NET Exams | Free Latest pass4sure Testking Testinside Rapidshare vce Dumps

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

Copyright © 2010 CertBible – IT certifications Exams,Study Guide,Practice Test,Training Materials.. PassGuide,Pass4sure,Testking,Testinside,Pass4side,Certifyme,Transcender,Examworx,Topcerts,Actualtests. Cisco microsoft Comptia CCNA CCIE MCSE Oracle ccnp hp ibm citrix Sitemap