Question 1when you use the mvc pattern the controller

Assignment Help JAVA Programming
Reference no: EM13347555

Question 1

When you use the MVC pattern, the controller directs the flow of control to

A. the browser and the model

B. the view, model, and data store

C. the view and the model

D. the model and data store

Question 2

When you use the controller to forward a request to a servlet or JSP, you use the forward method of

A. the request object

B. the ServletContext object

C. the response object

D. a RequestDispatcher object

Question 3

The following Anchor tag demonstrates how to use < a href="/WorkServlet?shift=< %= shiftCode % > " > View your schedule
< /a>

A. URL rewriting

B. hidden fields

C. URL encoding

D. cookies

Question 4

Persistent cookies

A. are removed after the session ends

B. can't be deleted

C. exist after the session ends

D. are often called hidden fields

Question 5

Which of the following is not a benefit of using the MVC pattern for an application?

A. it requires less code

B. JSPs are used for what they do best

C. it's easier to make changes to the application servlets are used for what they do best JSPs are used for what they do best

D. it's easier to make changes to the application servlets are used for what they do best JSPs are used for what they do best it's easier to test and debug the application

Question 6

Which of the following statements is invalid?

A. String name = session.getAttribute("fullName");

B. session.setAttribute("fullName", "Ted Andrews");

C. Book book = (Book) session.getAttribute("bookObj");

D. session.removeAttribute("fullName")

Question 7

According to the following code from a web.xml file, the error.htm page is called when < error-page>

< exception-type>java.lang.Throwable< /exception-type>
< location>error.htm< /location>
< /error-page>

A. any HTTP or Java error occurs

B. an uncaught exception is thrown

C. an HTML page can't be found

D. an HTTP status code error occurs

Question 8

If the following JSP tag is coded in a main JSP, what happens when the reports.jsp page is updated?
< jsp:include page="includes/reports.jsp" />

A. the changes aren't updated in the subsequent requests for the main JSP

B. the changes appear for subsequent requests for the main JSP

C. a JSP error is thrown

Question 9

A session object is created

A. every time a browser makes a request for a web page

B. every time a browser requests a servlet

C. every time a browser requests a jsp

D. the first time a browser requests a servlet or JSP from a web site

Question 10

When you use hidden fields to pass parameters to a servlet or JSP, all but one of the following is true. Which one is it?

A. the parameters aren't shown in the URL

B. the user can see the parameters by using the browser to look at the page's source code

C. you don't have to store the parameters in the session object

D. you can't use URL encoding

Reference no: EM13347555

Questions Cloud

Normal 0 false false false en-us x-none : normal 0 false false false en-us x-none x-none
Write the algorithm and draw the flowchart for each problem : write the algorithm and draw the flowchart for each problem. the report could also contain the outputs of your program
Mitigating dos attacks against broadcast authentication in : mitigating dos attacks against broadcast authentication in wireless sensor networksbroadcast authentication is the most
Question 1-conceptual questions part a what should be the : question 1-conceptual questions part a what should be the primary objective ofnbsp management?part b briefly explain
Question 1when you use the mvc pattern the controller : question 1when you use the mvc pattern the controller directs the flow of control toa. the browser and the modelb. the
On 1 july 2006 abc ltd acquired 75 of the share capital in : on 1 july 2006 abc ltd acquired 75 of the share capital in xyz ltd for 240000 cash.nbsp in addition to the cost of the
Design and implement a small and simple email server using : design and implement a small and simple email server using the concept of web based information system wbis. your
Glenn and andrea are both highly paid professional people : glenn and andrea are both highly paid professional people working and living in melbourne. they decide to opt out of
Write an essay on fdi in nigeria the essay should contain : write an essay on fdi in nigeria. the essay should contain theories or international trade to support or argue. for

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Write a program that assigns seats on an airplane

Prepare a program that teaches arithmetic to a young child. The program tests subtraction and addition. Write a program that assigns seats on an airplane.

  Write a program that draws a picture of a house

Write a program that draws a picture of a house. It could be as simple as the accompanying figure, or if you like, make it more elaborate

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

  Returns the object with the largest measure

public static Measurable maximum(Measurable[] objects)that returns the object with the largest measure. Use that method to determine the country with the largest area from an array of

  Construct java program named collegelist

Construct a set of classes for a college to use in many student service and personnel applications. Classes you require to design include following:

  Java method for radix sort in binary

java method for radix sort in binary but I want to understand how to do it so please make it as simple as possible

  When the user presses a button

When the user presses a button, get the text from text field. Now extract the words from the text one at a time and find the largest word of length 4 or more. Let's call this largest word X for now. In response, create a question based on the length ..

  Implementation of encryption and steganography in java

This is a project report showing the essential details and coding structures related with the implementation of encryption techniques and steganography in JAVA.

  Write the logical expression in postfix notation.

Given symbols p, q, r, and s for propositions. Draw the binary tree representation of the logical expression ((p || r) && ! p ) || s) && (q || r). Write the logical expression in postfix notation.

  Allow the user to display a work history report

The 'report screen' shall:Allow the user to display a work history report for an individual or for all employees for the two weeks prior to the report request.

  Describe principles of data abstraction and inheritance

Study the principles of data abstraction, inheritance and dynamic binding. Use Library to get started on finding resources.You must take the terms and describe it.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd