-
ou are developing an ASP.NET MVC 2 application. You create a view that will be returned by action methods in multiple controllers. You need to place the view in the appropriate folder. To which subfolder within the Views folder should you add the view?()
A . Master
B . Default
C . Shared
D . Commo
-
Do you like an apple or a banana?()
A . Thank you
B . You are so nice
C . I want oranges
D . Either will do
-
You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script. What should you recommend?()
A . Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script. Connect to the web role instance by using RDP, and then manually test the startup script.
B . Deploy the application in the Windows Azure Compute Emulator.
C . Deploy the application with a custom error page.
D . Deploy the application and then use IntelliTrace.
-
You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script. What should you recommend?()
A . Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script. Connect to the web role instance by using RDP, and then manually test the startup script.
B . Deploy the application in the Windows Azure Compute Emulator.
C . Deploy theapplication with a custom error page.
D . Deploy the application and then use IntelliTrace.
-
You are designing an integration test plan for a Windows Azure .NET 3.5 application. You need to recommend a testing environment that allows developers to debug the application while accessing data in the cloud. What should you recommend?()
A . Run the application on Windows Azure. Use the development storage account.
B . Run the application on Windows Azure. Use a Windows Azure Storage account.
C . Run the application in the development fabric. Use the development storage account.
D . Run the application in the development fabric. Use a Windows Azure Storage account
-
You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML. Which two actions should you perform?()
A . Add the WebGet attribute to the service contract.
B . Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.
C . Add the WebInvoke attribute to the service contract.
D . Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.
-
You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?()
A . IComparer<T>
B . IEnumerable<T>
C . IEnumerator<T>
D . IEqualityComparer<T>
-
You are developing an application for a client residing in Hong Kong.You need to display negative currency values by using a minus sign.Which code segment should you use?()https://assets.asklib.com/images/image2/20180727133944640.jpg
A . A
B . B
C . C
D . D
-
You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? ()
A . Set the Debug attribute of the compilation node of the web.config file to true.
B . Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
C . Select the ASP.NET debugger option in the project properties.
D . Define the DEBUG constant in the project settings.
-
You are developing an application that will perform mathematical calculations.You need to ensure that the application is able to perform multiple calculations simultaneously. What should you do?()
A . Set the IdealProcessor property of the ProcessThread object.
B . Set the ProcessorAffinity property of the ProcessThread object.
C . For each calculation, call the QueueUserWorkItem method of the ThreadPool class.
D . Set the Process.GetCurrentProcess().BasePriority property to High.
-
You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. You want to make sure that the application is operative to any type of database. What should you do?()
A . Set the database driver name in the connection string of the application, and then the connection object as follows: DbConnection connection = new OdbcConnection(connectionString);
B . Create the connection object as follows: DbProviderFactory factoryDbProviderFactories.GetFactory(databaseProviderName); DbConnection connection =factory.CreateConnection();
C . Create the connection object as follows: DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.Odbc"); DbConnection connection = factory.CreateConnection();
D . Set the database driver name in the connection string of the application, and then the connection object as follows:DbConnection connection = new OleDbConnection(connectionString);
-
You work as an application developer at Certkiller .com. You are required to retrieve and display the names of all processes that are currently running in memory. What should you do?()https://assets.asklib.com/images/image2/2018072616393769295.jpg
A . A
B . B
C . C
D . D
-
As part of human resources, _________ developers are as important to Apple Inc. as its own employees.
-
Scientists are developing an intelligent robot that can “see” and “touch” and make decisions like human beings.
-
Which are the techniques to develop an essay with comparison and contrast?
-
Do you want to have an apple?
-
3. You can send your iPhone to an
Apple Retail Store for repair in a shipping box provided by Apple and they will pay all the charges.
-
You are developing a client application that consumes a Windows Communication Foundation (
You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()
A. TimeoutException
B. FaultException
C. DivideByZeroException
D. FaultException<SalesFault>
-
You are developing a Windows Communication Foundation (WCF) service. The following code de
You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Allowed)]02 public interface ICatchAll03 {04 [OperationContract(IsOneWay = false, Action = "*", ReplyAction = "*")]05 Message ProcessMessage(Message message);06 }0708 public class CatchAllService : ICatchAll09 {10 public Message ProcessMessage(Message message)11 {1213 ...14 return returnMsg;15 }16 }You need to ensure that two identical copies of the received message are created in the service.Which code segment should you insert at line 12?()
A.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/fab6269351e4a04ee0a851d5f96dd506.jpg' />
B.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/98c2a291de971b52b6b11f0f31a030d2.jpg' />
C.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/d546143d78ff2c6f1aed7463f1a53f65.jpg' />
D.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/ce013fc7da98b989aab41a9ab89c550d.jpg' />
-
You are developing a Windows Communication Foundation (WCF) service. The service needs to
You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?()
A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenlmpersonationLevel.Impersonation
B. Set the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to TokenlmpersonationLevel.Delegation
C. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding
D. Set the PnncipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding
-
You are developing a Windows Communication Foundation (WCF) service. You enable logging in
You are developing a Windows Communication Foundation (WCF) service. You enable logging in the configuration file.The opening tag is defined as follows.<messagelogging br="" logentiremessage="true"> logMalformedMessages="true"logMessagesAtServiceLevel="true"logMessagesAtTransportLevel="true"maxMessagesToLog="20">You need to ensure that logging is implemented so that only messages with SOAP headers are logged.What should you add to the filters element of the application configuration file?()
A.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/dabf07576919d2888eaaebeeefbe8e42.jpg' />
B.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/0d3fc5a751c48bf4454f58321ef53f4c.jpg' />
C.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/c3e7538a5accad25aa4ac16ce8d2126d.jpg' />
D.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/241428daaa8185f55a085326b8cf7f39.jpg' />
-
You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name "CONTOSO\Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
A. In the Web.config file, enable impersonation.
B. In IIS, enable anonymous access.
C. In IIS, disable anonymous access.
D. In the Web.config file, set the authentication mode to Windows.
-
&8226;You are the Research and Development Director of an engineering company, which is a subsidiary of a larger corporation. The Chairman of the corporation is visiting your company next week.
&8226;Write a memo to all your staff:
&8226;informing them of the visit
&8226;telling them why the visitor is coming
&8226;telling them when he will arrive and asking them to be at the welcome reception for him.
&8226;Write 40-50 words.
-
You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience.The custom user control uses two TextBox controls and two Button controls.You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site.Which two actions should you perform?()
A. Add the OnClick event handler for the Login button to the code used in the custom user control.
B. Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.
C. In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.
D. In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.