最新的GIAC Secure Software Programmer - Java - GSSP-JaVa免費考試真題
The following JSP scriptlet is given.
<% response.setContentType("text/html; charset=ISO-8859-1"); %>
Which of the following directives is the equivalent directive for the scriptlet given above?
<% response.setContentType("text/html; charset=ISO-8859-1"); %>
Which of the following directives is the equivalent directive for the scriptlet given above?
正確答案: D
Which of the following classes is an engine class that provides an opaque representation of cryptographic parameters?
正確答案: A
You work as an Application Deployer for UcTech Inc. You want to configure a filter for a Web application using the deployment descriptor. Which of the following attributes are mandatory for you to implement in order to accomplish the task?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
正確答案: A,B
Identify whether the given statement is true or false.
"When a Java program starts up, one thread begins running immediately."
"When a Java program starts up, one thread begins running immediately."
正確答案: B
Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error?
abstract class P {} //1
private class Q {} //2
static class R {} //3
transient class S {} //4
abstract class P {} //1
private class Q {} //2
static class R {} //3
transient class S {} //4
正確答案: C
Which of the following statements is true about the Java synchronized keyword?
正確答案: A
Which of the following functions are performed by methods of the
HttpSessionActivationListener interface?
Each correct answer represents a complete solution. Choose all that apply.
HttpSessionActivationListener interface?
Each correct answer represents a complete solution. Choose all that apply.
正確答案: B,D
Identify whether the given statement is true or false.
"A try statement can be placed inside the code block that follows another try statement."
"A try statement can be placed inside the code block that follows another try statement."
正確答案: B
You work as a programmer for PassGuide.Inc. You want to create a servlet filter that stores all request headers to a database for all requests to the Web application's home page "/work.jsp". Which of the following HttpServletRequest methods allows you to retrieve all of the request headers?
正確答案: D
Which of the following classes implements the java.lang.Cloneable and java.lang.Runnable interfaces correctly?
正確答案: C
You work as a Software Developer for NewTech Inc. You write a bean class using Enterprise
JavaBeans 3.0. The class uses the @DeclareRoles ("ADMIN, HR, DBA, USER") annotation to declare the security roles. The class contains a method named showResult(). You want to ensure that the ADMIN role is granted privilege to the showResult() method. Moreover, if a role that is not allowed to access the method tries to call the method, an error message must be shown. Assuming that there is no security-related element in the deployment descriptor, which of the following will you use to accomplish the task?
Each correct answer represents a part of the solution. Choose two.
JavaBeans 3.0. The class uses the @DeclareRoles ("ADMIN, HR, DBA, USER") annotation to declare the security roles. The class contains a method named showResult(). You want to ensure that the ADMIN role is granted privilege to the showResult() method. Moreover, if a role that is not allowed to access the method tries to call the method, an error message must be shown. Assuming that there is no security-related element in the deployment descriptor, which of the following will you use to accomplish the task?
Each correct answer represents a part of the solution. Choose two.
正確答案: A,B
Which of the following tags is used to include resources from within the same servlet container?
正確答案: A
Which of the following is a mandatory sub-element of the <web-resource-collection> element of the deployment descriptor?
正確答案: D