Posts: 1
Threads: 1
Joined: Sep 2016
Not found
Please give me J2EE mulitiple choice question pdf
Posts: 2,532
Threads: 0
Joined: Aug 2016
Q 1 - request is instance of which class?
A - Request
B - HttpRequest
C - HttpServletRequest
D - ServletRequest
Q 2 - What is default value of isThreadSafe?
A - True
B - False
Q 3 - Which of the following attributes are mandatory in <jsp:getProperty /> tag?
A - name, property
B - type, id
C - name, type
D - id, property
Q 4 - Which of the following attributes are used in <jsp:include /> tag?
A - id, type
B - page, flush
C - type, class
D - type,page
Q 5 - Which of the following method can be used to read a form parameter in JSP?
A - request.getParameter()
B - response.getParameter()
C - request.getValue()
D - response.getValue()
Q 6 - What happens when autoFlush is set to a value "false"?
A - JSP container throws exceptionto indicate buffer overflow when buffer is filled.
B - JSP container flushed the buffered output when buffer is filled.
C - Both of the above.
D - None of the above.
Q 7 - Which of the following is true about isScriptingEnabled Attribute?
A - The isScriptingEnabled attribute determines if scripting elements are allowed for use.
B - The default value (true) enables scriptlets, expressions, and declarations.
C - Both of the above.
D - None of the above.
Q 8 - Which of the following is true about <jsp:useBean> action?
A - useBean action first searches for an existing object utilizing the id and scope variables. If an object is not found, it then tries to create the specified object.
B - useBean is used to load java beans in jsp page.
C - Both of the above.
D - None of the above.
Q 9 - What is Localization?
A - Localization refers to creating local content on a website.
B - Localization refers to adding locale related information to a website.
C - Localization means adding resources to a web site to adapt it to a particular geographical or cultural region for example Hindi translation to a web site.
D - None of the above
Q 10 - Which of the following is true about <c:url> tag
A - The <c:url> tag formats a URL into a string and stores it into a variable.
B - The <c:url> tag automatically performs URL rewriting when necessary.
C - Both of the above.
D - None of the above.