Product Description
Exam Number/Code: 70-536
Exam Name: TS:MS.NET Framework 2.0-Application Develop Foundation
"MCTS MCPD ", also known as 70-536 exam, is a Microsoft certification.
Preparing for the 70-536 exam? Searching 70-536 Test Questions, 70-536 Practice Exam, 70-536 Dumps?
With the complete collection of questions and answers, Exam4actual has assembled to take you through 168 Q&A to your 70-536 Exam preparation. In the70-536 exam resources, you will cover every field and category in MCTS MCPD helping to ready you for your successful Microsoft Certification.
Free 70-536 Demo Download
Exam4actual offers free demo for MCTS MCPD 70-536 exam (TS:MS.NET Framework 2.0-Application Develop Foundation). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
6.You need to identify a type that meets the following criteriA. ?
Is always a number.?
Is not greater than 65,535.
Which type should you choose?
A. System.UInt16
B. int
C. System.String
D. System.IntPtr
Answer: A
7.You are developing a custom event handler to automatically print all open documents. The event
handler helps specify the number of copies to be printed. You need to develop a custom event arguments
class to pass as a parameter to the event handler. Which code segment should you use?
A. public class PrintingArgs {
private int copies;
public PrintingArgs(int numberOfCopies) {
this.copies = numberOfCopies; }
public int Copies {
get { return this.copies; } }}
B.
public class PrintingArgs : EventArgs {
private int copies;
public PrintingArgs(int numberOfCopies) {
this.copies = numberOfCopies; }
public int Copies {
get { return this.copies; } }}
C. public class PrintingArgs {
private EventArgs eventArgs;
public PrintingArgs(EventArgs ea) {
this.eventArgs = ea; }
public EventArgs Args {get { return eventArgs; }}}
D. public class PrintingArgs : EventArgs { private int copies;}
Answer: B
8.You write a class named Employee that includes the following code segment.
public class Employee {string employeeId, employeeName, jobTitleName;
public string GetName() { return employeeName; }
public string GetTitle() { return jobTitleName; }
You need to expose this class to COM in a type library. The COM interface must also facilitate
forwardcompatibility
across new versions of the Employee class. You need to choose a method for
generating the COM interface. What should you do?
A. Add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.None)]public class Employee {}
B. Add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.AutoDual)]public class Employee {}
C. Add the following attribute to the class definition.
[ComVisible(true)]public class Employee {}
D. Define an interface for the class and add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.None)]public class Employee : IEmployee {}
Answer:
D
9.You need to call an unmanaged function from your managed code by using platform invoke services.
What should you do?
A. Create a class to hold DLL functions and then create prototype methods by using managed code.
B. Register your assembly by using COM and then reference your managed code from COM.
C. Export a type library for your managed code.
D. Import a type library as an assembly and then create instances of COM object.
Answer: A
10.You write the following code to call a function from the Win32 Application Programming Interface (API)
by using platform invoke.
You need to define a method prototype. Which code segment should you use?
A. [DllImport("user32")]public static extern int MessageBox(int hWnd, String text, String caption, uint type);
B. [DllImport("user32")]
public static extern int MessageBoxA(int hWnd,String text, String caption, uint type);
C. [DllImport("user32")]
public static extern int Win32API_User32_MessageBox(int hWnd, String text, String caption, uint type);
D. [DllImport(@"C. /WINDOWS/system32/user32.dll")]
public static extern int MessageBox(int hWnd, String text, String caption, uint type);
Answer: A
---★ This article is reproduced from『Jerry_king ※ http://www.9kanshu.com Original Address:http://9kanshu.com/view.asp?id=88