多选题You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()Along customerOID = 47L;session.setAttribute(customerOID, new Long(customerOID));Blong customerOID = 47L;session.setLongAttribute(customerOID, new Long(customerOID));Clong customerOID = 47L;session.setAttribute(customerOID, customerOID);Dlong customerOID = 47L;session.setNumericAttribute(customerOID, new Long(customerOID));

多选题
You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()
A

long customerOID = 47L;session.setAttribute(customerOID, new Long(customerOID));

B

long customerOID = 47L;session.setLongAttribute(customerOID, new Long(customerOID));

C

long customerOID = 47L;session.setAttribute(customerOID, customerOID);

D

long customerOID = 47L;session.setNumericAttribute(customerOID, new Long(customerOID));


参考解析

解析: 暂无解析

相关考题:

—I can't see the words on the blackboard. —Perhaps you need _( )A. How long ago did you get it thisB. How long have you been like thisC. How soon have you got itD. How soon have you liked this

You develop a serializable class for persisting objects as files.Every time an object is serialized, you have to update the database with the name of the object and location of that file.You elect to employ the OnSerialized attribute to achieve this objective.You now need to apply the OnSerialized attribute to a certain method.What should you do?()A.B.C.D.

Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()A. Useservice behavior and set the maxConcurrentCalls attribute.B. Useendpoint behavior and set the maxBatchSize attribute.C. Useendpoint behavior and set the maxPendingReceives attribute.D. Useendpoint behavior.

You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()A、long customerOID = 47L;session.setAttribute("customerOID", new Long(customerOID));B、long customerOID = 47L;session.setLongAttribute("customerOID", new Long(customerOID));C、long customerOID = 47L;session.setAttribute("customerOID", customerOID);D、long customerOID = 47L;session.setNumericAttribute("customerOID", new Long(customerOID));

The public store is to close at 9:30 p.m. ()no need to worry; it is just 7:30 p.m.A、You haveB、They haveC、It isD、There is

Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()A、Store the data in a public instance variable in the servlet.B、Add an attribute to the request object before using the request dispatcher.C、Add an attribute to the context object before using the request dispatcher.D、This CANNOT be done as the tag handler has no means to extract this data.

You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()A、 Java.util.MapB、 Java.util.SetC、 Java.util.ListD、 Java.util.StoredSetE、 Java.util.StoredMapF、 Java.util.Collection

You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?()  A、Java.util.Map.B、Java.util.Set.C、Java.util.List.D、Java.util.StoredSet.E、Java.util.StoredMap.F、Java.util.Collection.

You need to store a floating point number,called Tsquare,in the session scope. Which two code snippetsallow you to retrieve this value?()A、float Tsquare = session.getFloatAttribute("Tsquare");B、float Tsquare = (Float) session.getAttribute("Tsquare");C、float Tsquare = (float) session.getNumericAttribute("Tsquare");D、float Tsquare = ((Float) session.getAttribute.("Tsquare")).floatValue();E、float Tsquare = ((Float) session.getFloatAttribute.("Tsquare")).floatValue;

请选择合适的选项,补充下列英文句子: Thank you for your() to my store, you can find the products you need from my store.A、visittedB、visitedC、visitsD、visiting

You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()A、At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.B、At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.C、It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.D、At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

You have a secured Windows Communication Foundation (WCF) service. You need to track unsuccessful attempts to access the service. What should you do?()A、Set the authorization Manager Type attribute of the service Authorization behavior to Message.B、Set the include Exception Detailsln Faults attribute of the service Debug behavior to true.C、Set the Mode attribute of the security configuration element to Message.D、Set the message Authentication AuditLevel attribute of the service Security Audit behavior to Failure.

You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()A、the EnableEventValidation attributeB、the ResponseEncoding attributeC、the ValidateRequest attributeD、the Strict attribute

Your network contains an Active Directory forest. The forest schema contains a custom attribute for  user objects.   You need to modify the custom attribute value of 500 user accounts.   Which tool should you use()A、CsvdeB、DsmodC、DsrmD、Ldifde

Your network contains an Active Directory forest. The forest contains an Acitve Directory site for a  remote office. The remote site contains a read-only domain controller (RODC).     You need to configure the RODC to store only the password of users in the remote site.     What should you do()A、Create a Paasword Settings object (PSO).B、Modify the Partial-Attribute-Set attribute of the forest.C、Add the users accounts of the remote site users to the Allowed RODC Password Replication Group.D、Add the users accounts of users who are not in the remote site to the Denied RODC Password Replication Group.

You have a single Active Directory directory service domain. You have an application that adds Active Directory Schema attributes during installation. The attributes replicate as part of global catalog replication. Your user account is a member of the Domain Admins, Schema Admins, and Enterprise Admins global groups. You test the application and decide not to deploy it to production.  You need to ensure that the attributes that are added by the application are no longer available in Active Directory.  Using the Active Directory Schema snap-in,what should you do?()A、 Clear the Index this attribute in the Active Directory option for each attribute that is added by the application.B、 Clear the Attribute is active option for each attribute that is added by the application.C、 Clear the Replicate this attribute to the Global Catalog option for each attribute that is added by the application.D、 Clear the Allow this attribute to be shown in advanced view option for each attribute that is added by the application.

单选题Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is oftype java.lang.String and the attribute score is of type java.lang.Integer. An array of com.example. GradedTestBean objects is exposed to the page in a request- scoped attribute called results. Additionally,an empty java.util.HashMap called resultMap is placed in the page scope. A JSP page needs to add the firstentry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of thebean as the value. Which code snippet of JSTL code satisfies this requirement?()A${resultMap[results[0].name] = results[0].score}Bc:set var=${resultMap} key=${results[0].name} value=${results[0].score} /Cc:set var=resultMap property=${results[0].name} ${results[0].value}/c:setDc:set var=resultMap property=${results[0].name} value=${results[0].score} /Ec:set target=${resultMap} property=${results[0].name} value=${results[0].score} /

单选题You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.The service is accessed from your business applications in a server transaction in which the client does not participate.You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?()ASet the service binding sendTimeout attribute to 00:00:45.BApply [ServiceBehavior(TransactionTimeout=00:00:45)] to the service implementation.CSet the service binding receiveTimeout attribute to 00:00:45.DApply [OperationBehavior(TransactionScopeRequired=false)] to the service operation.

单选题You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner.You need to add a delete operation. You implement the delete method as follows. string void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()A Add the WebInvoke(UriTemplate = /Items/{id},Method=DELETE) attribute to the operation.B Add the HttpDelete attribute to the operation.C Replace the string parameter with a RemovedActivityAction parameter.D Replace the return type with RemovedActivityAction.

多选题Which are not Java primitive types?()AshortBBooleanCunitDfloat

多选题You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()AAt deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.BAt deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.CIt can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.DAt deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

单选题You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()Athe EnableEventValidation attributeBthe ResponseEncoding attributeCthe ValidateRequest attributeDthe Strict attribute

多选题A Windows Communication Foundation (WCF) solution uses the following contract: [ServiceContract(SessionMode=SessionMode.Allowed)]public interface IMyService{ [OperationContract(IsTerminating=false)] void Initialize( ); [OperationContract(IsInitiating=false)] void DoSomething( ); [OperationContract(IsTerminating=true)] void Terminate( );} You need to change this interface so that: lnitialize is allowed to be called at any time before Terminate is called. DoSomething is allowed to be called only after Initialize is called, and not allowed to be called after Terminate is called. Terminate will be allowed to be called only after Initalize is called.Which two actions should you perform? (Each correct answer presents part of the sdution. Choose two)()。AChange the ServiceContract attribute of the IMyService interface to the following. [ServiceContract(SessionMode=SessionMode.Required)]BChange the ServiceContract attrbute of the IMyService interface to the following [ServiceContract(SessionMode=SessionMode.Allowed)]CChange the OperationContract attribute of the Initialize operation to the following. [OperationContract(IsInitiating = true, IsTerminating = false)]DChange the OperationContract attribute of the Terminate operation to the following [OperationContract(IsInitiating = false, IsTerminating = true)]

单选题You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?()A Java.util.Map.B Java.util.Set.C Java.util.List.D Java.util.StoredSet.E Java.util.StoredMap.F Java.util.Collection.

多选题You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler. You test the Web Form and notice that the Page_Unload event handler does not call the logging function. You need to ensure that the logging function is called. What are two possible ways to achieve this goal? ()ASet the Page attribute to AutoEventWireup=False. Remove the attribute onunload=Page_Unload from the Web Form element.BSet the Page attribute to AutoEventWireup=False. Add the attribute OnUnload=Page_Unload to the Web Form element.CSet the Page attribute to AutoEventWireup=False. Add the Web Form attribute autocomplete=on.DSet the Page attribute to AutoEventWireup=True.

单选题You need to meet the requirements of the accounts team. What should you do?()ASet the Dimension type to Currency.BSet the Currency member name as a unique attribute.CHide non-leaf data within the Currency dimension key attribute.DDisable the All member of the Currency dimension key attribute.

单选题You use Microsoft .NET Framework 4 to create an application. The application contains a partially trusted client assembly and a server assembly. You create a custom sandboxed application domain. You need to ensure that the application can be executed in a partial-trust environment. What should you do?()AApply the following attribute to the server assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=VisibleToAllHosts)]BApply the following attribute to the server assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=NotVisibleByDefault)]CApply the following attribute to the client assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=VisibleToAllHosts)]DApply the following attribute to the client assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=NotVisibleByDefault)]

多选题You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()Along customerOID = 47L;session.setAttribute(customerOID, new Long(customerOID));Blong customerOID = 47L;session.setLongAttribute(customerOID, new Long(customerOID));Clong customerOID = 47L;session.setAttribute(customerOID, customerOID);Dlong customerOID = 47L;session.setNumericAttribute(customerOID, new Long(customerOID));