In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()
第1题:
You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()
第2题:
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
第3题:
You are developing an ASP.NET Dynamic Data Web application. Boolean fields must display as Yes or No instead of as a check box. You replace the markup in the default Boolean field template with the following markup.You need to implement the code that displays Yes or No. Which method of the FieldTemplateUserControl class should you override in the BooleanField class?()
第4题:
You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()
第5题:
You are developing a Windows Presentation Foundation (WPF) application.You need to display HTML content from a Web page on the WPF form. What should you do?()
第6题:
Blocks
Visual attributes.
Stacked canvas.
Nothing further needs to be created.
第7题:
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
Add a DocumentViewer control to the design surface. Then create a FixedDocument control.
Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.
Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.
第8题:
void Application_Start(object sender, EventArgs e) { SiteHelper.Configure(); }
void Application_Init(object sender, EventArgs e) { SiteHelper.Configure(); }
void Application_BeginRequest(object sender, EventArgs e) { SiteHelper.Configure(); }
Object lockObject = new Object(); void Application_BeginRequest(object sender, EventArgs e) { lock(lockObject()) { SiteHelper.Configure(); } }
第9题:
In the init method.
In the jspInit method.
In the constructor of the JSP’s Java code.
In a JSP declaration, which includes an initializer block.
In a JSP declaration, which includes a static initializer block.
第10题:
A
B
C
D
第11题:
The method must return a type of either IEnumerator or IEnumerable.
The method must return a type of IComparable.
The method must explicitly contain a collection.
The method must be the only iterator in the class.
第12题:
Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.
第13题:
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 in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()
第14题:
A sales analyst reviews the first draft on your Sales application, and requests that the application graphically represent revenue generated for each sales representative, in addition to the textual data currently displayed for the ORDER block. How would you incorporate this graphic in your form? ()
第15题:
You are developing a Web application to display products. Products are displayed on different pages on your Web site. You want to create a user control to manage the display of products. You need a default visual implementation of the UI of the user control. In addition, you need to provide developers with the flexibility to change the layout and controls of the UI. Which three actions should you perform? ()
第16题:
You are implementing an ASP.NET Web site. The site uses a component that must be dynamically configured before it can be used within site pages. You create a static method named SiteHelper.Configure that configures the component. You need to add a code segment to the Global.asax file that invokes the SiteHelper.Configure method the first time, and only the first time, that any page in the site is requested. Which code segment should you use? ()
第17题:
Apply the TemplateContainerAttribute to a property of type ITemplate. Pass the type of the template's naming container as the argument to the attribute.
Apply the TemplateContainerAttribute to the user control's class declaration.
Implement a property of type INamingContainer in the user control's code-behind class.
Implement a property of type ITemplate in the user control's code-behind class.
Define a new class that inherits from the ITemplate interface. Implement the InstantiateIn method of the ITemplate interface.
第18题:
Your filter class must implement an init method and a destroy method.
Your filter class must also implement javax.servlet.FilterChain.
When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
第19题:
A
B
C
D
第20题:
table
transactional trigger
stored procedure
FROM clause query
第21题:
The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.
The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.
The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.
第22题:
Add attributes to the session object.
Add attributes on the request object.
Add parameters to the request object.
Use the pageContext object to add request attributes.
Add parameters to the JSP’s URL when generating the request dispatcher.
第23题:
Create an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.
Create an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.
Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.
Create an HttpSessionListener class and implement the sessionCreated method with that block of code.