There is a simple named query defined in the following way: @NamedQuery(name=etCustomer? query=elect c from Customer c?@NamedQuery(name=?etCustomer? query=?elect c from Customer c? Which Entity Manager (em) method must be used to access this defined named query?
A. Query q = em.findNamedQuery(etCustomer?;Query q = em.findNamedQuery(?etCustomer?;
B. Query q = em.getNamedQuery(etCustomer?;Query q = em.getNamedQuery(?etCustomer?;
C. Query q = em.createQueryByName(etCustomer?;Query q = em.createQueryByName(?etCustomer?;
D. Query q = em.createNamedQuery(etCustomer?;Query q = em.createNamedQuery(?etCustomer?;
正解:D
質問 2:
What are two characteristics of static web projects? (Choose two.)
A. a conversion path to a dynamic Web project
B. a folder to store Java classes (called Java Resources)
C. a deployment descriptor file created under WebContent/WEB-INF/web.xml
D. a Web content folder called WebContent for all publishable resources
正解:A,D
質問 3:
How can you change the context root of a web project to run in WebSphere Application Server?
A. only update the Context Root field in the Web Project settings of the Properties of the web project
B. only update the Context Root field in the application.xml in the META-INF directory of the web project's EAR project
C. rename the Web Project name, right-click over the WEB project, select ename...? enter the context root you want to change
D. update the Context Root field in the Web Project Settings of the Properties of the web project AND update the Context Root field in the application.xml in the META-INF directory of the web project's EAR project with the same context root.
正解:D
質問 4:
Web 2.0 technologies improve the user interface of web-based applications and RAD8 provides support for several of these technologies. Which two technologies supported by RAD8 are provided to make Web 2.0 easier? (Choose two.)
A. Dynamic Page Template support (Tiles)
B. Web Security Editor
C. Dojo Javascript library
D. Ajax Proxy
正解:C,D
質問 5:
With Rational Application Developer workbench, what can a developer open only one at a time?
A. perspective
B. workspace
C. view
D. window
正解:B
質問 6:
In Page Designer, the Preview pane shows you how the current page is likely to look when viewed in an external web browser. Which browsers can be used inside RAD to render the preview?
A. Windows Internet Explorer or Mozilla Firefox
B. Windows Internet Explorer only
C. No browser can be run inside RA To preview, you need to use the Tools > Launch External Web Browser menu option to open the current file in the default web browser.
D. Mozilla Firefox only
正解:A