Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

problem 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

problem 2: When you use the controller to forward a request to a servlet or JSP, you utilize the forward method of:

A) The request object   
B) The ServletContext object   
C) The response object   
D) A RequestDispatcher object

problem 3: The given Anchor tag demonstrates how to use

View your schedule

A) URL rewriting.   
B) Hidden fields.    
C) URL encoding.   
D) Cookies.

problem 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.

problem 5: Which of the given is not a benefit of using the MVC pattern for an application?

A) It needs less code    
B) JSPs are used for what they do best   
C) It is simpler to make changes to the application servlets are used for what they do best JSPs are used for what they do best   
D) It is simpler to make changes to the application servlets are used for what they do best JSPs are used for what they do best it is easier to test and debug the application

problem 6: Which of the given 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")

problem 7: According to the given code from a web.xml file, the error.htm page is called when


java.lang.Throwable
error.htm

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.

problem 8: If the given JSP tag is coded in a main JSP, what happens when the reports.jsp page is updated?

A) The changes are not updated in the subsequent requests for the main JSP    
B) The modifications appear for subsequent requests for the main JSP   
C) AJSP error is thrown.

problem 9: The 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

problem 10: Whenever you use hidden fields to pass parameters to a servlet or JSP, all however one of the given is true. Which one is it?

A) The parameters are not shown in the URL    
B) The user can see the parameters by employing the browser to look at the page’s source code    
C) You do not have to store the parameters in the session object    
D) You cannot use URL encoding.    

Java, Programming

  • Category:- Java
  • Reference No.:- M91222

Have any Question?


Related Questions in Java

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As