Study Guides and Actual Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA


Advertise

Submit Braindumps

Forum

Tell A Friend

    Contact Us

 Home

 Search

Latest Brain Dumps

 BrainDump List

 Certifications Dumps

 Microsoft

 CompTIA

 Oracle

  Cisco
  CIW
  Novell
  Linux
  Sun
  Certs Notes
  How-Tos & Practices 
  Free Online Demos
  Free Online Quizzes
  Free Study Guides
  Free Online Sims
  Material Submission
  Test Vouchers
  Users Submissions
  Site Links
  Submit Site

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Online Training Demos and Learning Tutorials for Windows XP, 2000, 2003.

 

 

 

 





Braindumps for "A00-205" Exam

SAS Webaf Server-Side Application Development

 Question 1.
An application has the following requirements:
The number of users is likely to grow rapidly.
There is a large number of users across multiple locations.
The application is dynamic and requires updates to be propagated quickly and easily.
There are a wide variety of client machines utilizing different hardware and software platforms.

Which of the following technologies satisfies the above requirements?

A. SAS/AF application
B. Java applet
C. Java application
D. Server-side Java application

Answer: D

Question 2.
Assume the necessary import statements have been defined.

The relevant portion of the servlet code is shown below:
20 PrintWriter out=response.getWriter();
21 Calendar c = Calendar.getInstance();
22 if (c.get(Calendar.DAY_OF_MONTH)==1)
23 {
24 String message="First Day of Month";
25 }
26 out.println(message);
When the servlet is compiled, the following error message is generated: 
Line #26 cannot resolve symbol (variable message)

Which of the following describes why an error was generated at line 26?

A. The PrintWriter class does not support the println() message.
B. The println() method requires additional parameters.
C. The message does not contain a value since it is not the first day of the month.
D. The message is used outside the scope to which it was defined.

Answer: D

Question 3.
Which of the following adds a third-party jar file to the classpath of a single web application within a servlet container without modifying the classpath of other web applications?

A. adding the jar file to the extensions directory of the Java Runtime Environment
B. adding the classpath element to the WEB-INF/web.xml file for the web application
C. adding the classpath in the web application's index.jsp file
D. adding the jar file to the WEB-INF/lib directory of the web application

Answer: D

Question 4.
The following JSP is created:


First name:
An alert window needs to be opened when no value is specifed for the first name and the push button is specified. Which of the following needs to be included on the form open tag to generate the alert window? A. onsubmit="verify(firstName)" B. onenter="verify(firstName)" C. onenter="verify(_fName)" D. onsubmit="verify(_fName)" Answer: A Question 5. Assume the necessary import statements have been defined. The relevant portion of servlet code is shown below: 17 public void doPost(javax.servlet.http.HttpServletRequest request, 18 javax.servlet.http.HttpServletResponse response) 19 throws javax.servlet.ServletException,java.io.IOException 20 { 21 // Note: Add User DO_POST code here 22 Rocf rocf = new Rocf(); 23 session.setAttribute("rocf", rocf); 24 Connection connection1 = new Connection(); 25 connection1.setHost("localhost"); 26 session.setAttribute("connection1", connection1); 27 RequestDispatcher dispatcher = 28 getServletContext().getRequestDispatcher("/index.jsp"); 29 dispatcher.forward(request, response); 30 } When the servlet is compiled the following error messages are generated: FILE: C:\ADS\webapps\test\WEB-INF\classes\beginServlet.java, Line #23 cannot resolve symbol (variable session) FILE: C:\ADS\webapps\test\WEB-INF\classes\beginServlet.java, Line #26 cannot resolve symbol (variable session) BUILD FAILED Which of the following, if added between lines 21 and 22 of the servlet code, corrects the error? A. HttpSession session = getServletContext().getSession(); B. HttpSession session = new HttpSession(); C. HttpSession session = application.getSession(); D. HttpSession session = request.getSession(); Answer: D Question 6. An MDTable Custom Tag and an MDSegmentedBar Custom Tag referencing the same model are used in the same JSP to display the same MDDB. Which of the following approaches enables both components to maintain the same drill hierarchies when the user navigates in either component? A. Set the associatedGraph attribute of the MDTable to the id of MDSegmentedBar component. B. Create an MDCommandProcessor Custom Tag and set it as the commandProcessor attribute on both the MDTable and MDSegmentedBar Custom Tags. C. No action is required since the default behavior of referencing the same model is to maintain the same drill hierarchies. D. Set the associatedTable attribute of the MDSegmentedBar to the id of MDTable component. Answer: B Question 7. The following is the desired output text of a JSP: Hello World Which of the following produces this output? A. <% String text=new String("Hello World");%> B. <%= Hello World;%> C. <%! String text="Hello World";%> <%=text%> D. <%! String text=new String("Hello World");%> <% System.out.println(text);%> Answer: C Question 8. Which of the following statements is true regarding declarative security? A. The security model does not apply when a servlet uses the RequestDispatcher to invoke the static resource or servlet using a forward or an include. B. Declarative security refers to the means of expressing an application's security structure in a form that is internal to the application. C. The deployment descriptor should not be used when using declarative security for a web application. D. Declarative security is based on the isUserInRole() method on the HttpServletRequest to authenticate users. Answer: A Question 9. A SAS program named printProcedure contains a macro variable named numObs. A JSP file includes: a form with a choice box control named number that contains numeric values that are used to specify the number of observations printed in the report a Submit Custom Tag that submits the SAS program named printProcedure. Which of the following JSP code segments retrieves the value selected in the choice box and assigns it to the macro variable? I. %let numObs=<%=request.getParameter("number")%>; %include 'c:\printProcedure.sas'; II. <% String selObs=request.getParameter("number"); %> %let numObs=<%=selObs%>; %include 'c:\printProcedure.sas'; III. <% String selObs=request.getParameter("number"); %> %let numObs=selObs; %include 'c:\printProcedure.sas'; IV. <% String selObs=request.getParameter("number"); %> %let numObs=&selObs; %include 'c:\printProcedure.sas'; A. I only B. I and II only C. III only D. III and IV only Answer: B Question 10. Which of the following attributes is used on a Form Custom Tag to specify the destination of the form data when submitted? A. target B. method C. submit D. action Answer: D


Google
 
Web www.certsbraindumps.com


Study Guides and Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA





              Privacy Policy                   Disclaimer                    Feedback                    Term & Conditions

www.helpline4IT.com

ITCertKeys.com

Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.