You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application for a Bank using the .NET Framework. You create a method that gets the images of cancelled checks and displays them. You presently have access to a method that reads the images from a SQL server database as a sequence of bytes. You need to transfer the image from the SQL server database to a form with the least amount of temporary buffers and files. Which of the following classes will you use to accomplish this task?
A. NetworkStream
B. BufferedStream
C. MemoryStream
D. FileStream
正解:C
質問 2:
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application using the .NET Framework. You write the following code snippet to call a method from the Win32 API by using PInvoke: int rst = MessageBox(hWd, Mytext, Mycaption, Mytype);
You are required define a method prototype. Which of the following code segments will you use to accomplish this task?
A. [DllImport("user32")] extern int MessageBoxA(int hWd, String Mytext, String Mycaption, uint Mytype);
B. [DllImport("user32")] extern int MessageBox(int hWd, String Mytext, String Mycaption, uint Mytype);
C. [DllImport("user32")] extern int Win32API_User32_MessageBox(Int hWd, String Mytext, String Mycaption, uint Mytype);
D. [DllImport("C:\\WINDOWS\\system32\\user32.dll")] extern int MessageBox(int hWd, String Mytext, String Mycaption, uint Mytype);
正解:B
質問 3:
John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 contains a page, named Page1. Page1 contains several TextBox controls that accept users' input. John uses several validation controls on the page to validate input controls. He wants to display all the validation error messages on the page in a message box. However, he does not want the validation summary to be displayed inline on the Web page. What will he do to accomplish the task?
A. Add a ValidationSummary control to the page. Set its ShowMessageBox property to true and ShowSummary property to false.
B. Add a ValidationSummary control to the page. Set its ShowMessageBox and ShowSummary properties to true.
C. Add a CustomValidator control to the page. Write a custom client-side script function. Set the ClientValidationFunction property of the control to the name of the function.
D. Add a ValidationSummary control to the page. Set its DisplayMode property to MessageBox .
正解:A
質問 4:
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You need to represent a strongly typed lambda expression as a data structure in the form of an expression tree. Which of the following classes will you use to accomplish the task?
A. Expression
B. LambdaExpression
C. Expression(TDelegate)
D. MethodCallExpression
正解:C
質問 5:
You work as a Software Developer for ABC Inc. The Company uses the .NET Framework as its application development platform. You have created a class to represent a stop light. The stop light can be red, green, or blue. Which of the following elements would you use to simplify how developers defined the value?
A. Structure
B. Delegate
C. Interface
D. Enumeration
正解:D
質問 6:
You work as a Software Developer for ManSoft Inc. You use Microsoft Visual Studio to create a Web service named MyWebService. You create a SOAP message that is not secure in the Web service. You want to use the SoapFilter class in the Web service to filter the SOAP message. Which of the following code segments will you use to accomplish the task?
Each correct answer represents a part of the solution. Choose all that apply.
A. public class MySoapFilter : SoapFilter
{
string soapmsg="This is the soap message I want to filter";
public MySoapFilter()
{ }
public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)
{
this.Trace(soapmsg);
return SoapFilterResult.Continue;
}
}
B. public class MySoapFilter : SoapFilter
{
string soapmsg="This is the soap message I want to filter";
public MySoapFilter()
{ }
public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)
{
this.Trace(soapmsg);
return SoapFilterResult;
}
}
C. public class MySoapFilter : SoapFilter
{
string soapmsg="This is the soap message I want to filter";
public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)
{
this.Trace(soapmsg);
return SoapFilterResult.Continue;
}
}
D. public class MySoapFilter : SoapFilter
{
string soapmsg="This is the soap message I want to filter";
public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)
{
this.Trace();
return SoapFilterResult.Continue;
}
}
正解:A,C
質問 7:
John works as a Web Developer for TechCom Inc. He creates an ASP.NET application, named MyApp1, using Visual Studio .NET. Only registered users of the company will be able to use the application. The application contains a page, named NewAccount.aspx that allows new users to register themselves to the registered user list of the company. The NewAccount page contains several TextBox controls that accept users' personal details such as username, password, confirm password, first name, last name, home address, zip code, phone number, etc. One of the TextBox controls on the page is named txtZipCode in which a user enters a Zip code.
John wants to ensure that when a user submits the NewAccount page, txtZipCode must contain five numeric digits. He wants least development effort. Which of the following validation controls will he use to accomplish the task?
Each correct answer represents a part of the solution. Choose all that apply.
A. CompareValidator
B. RangeValidator
C. RegularExpressionValidator
D. RequiredFieldValidator
正解:C,D
質問 8:
You work as a Software Developer for ManSoft Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform.
You are creating a global application that will be used by all the branches of the company. You want to perform the encoding of Unicode characters. Which of the following classes will you use to accomplish the task?
Each correct answer represents a complete solution. Choose three.
A. ASCIIEncoding
B. UTF32Encoding
C. UTF8Encoding
D. UnicodeEncoding
正解:B,C,D
質問 9:
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You create a Web form in the application that permits users to provide personal information. You add a DropDownList control to the Web form to retrieve the residential status of users. The default item that the DropDownList control displays is the "Select Country" option. You have to ensure that users select a country other than the default option. Which of the following validation controls should you use to accomplish this task?
A. RangeValidator
B. RegularExpressionValidator
C. RequiredFieldValidator
D. CustomValidator
正解:C
石塚** -
仕上げの模擬試験としてもご活用できますね。すごくいいです。2週間で2回回すことで難問に足を引っ張らなくなり無事合格できました。