Ask Question, Ask an Expert

+1-415-315-9853

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

Code reviewcan some have this done immediatelypublic class

Code Review Can some have this done immediately public class BankAccount { private double balance; public BankAccount() { balance = 0; } public BankAccount(double initialBalance) { balance = initialBalance; } public void ...

Overviewthis assignment is intended to familiarize students

Overview: This assignment is intended to familiarize students with web application design, basic servlet functionality, and application deployment with a focus on servlet HTML generation and page navigation. The goal is ...

Java programmingyou have been asked by your manager to

Java programming You have been asked by your manager to create a user-friendly application that will present a survey to your customers. The application will compile and analyze the results entered by the survey responde ...

Student class and driverthis student class will be the data

"Student Class and Driver" This Student Class will be the data that will be used for each of the projects assigned and graded this semester. Your Student Class will consist of: Student Attributes: First Name Last Name ID ...

Programming assignment - summer semester 2015-purpose-to

Programming Assignment - Summer Semester 2015- Purpose- To provide students with the opportunity to apply the knowledge acquired and skills developed. These include understanding of primitive data types and the concept o ...

Assignmentupload your completed assignment to the

Assignment Upload your completed assignment to the Assignment 2 link on the course home page for marking and tutor feedback. Be sure to complete the final step-click on the Send for Marking button to notify your tutor. P ...

Chapter 1 - challenge 3 - training workshopsyour company

Chapter 1 - Challenge #3 - Training Workshops Your company likes to present training workshops that help people in the information technology industry improve their skills. Your task is to write and object-oriented appli ...

Write two java program by netbeans1 create a program that

Write two java program by Netbeans. 1. Create a program that ask for a radius of a circle and has the ability to return both the Area and Circumference - so methods call getArea() and getCircumferance() 2. Create a progr ...

Instructionsi what are the diagrams defined in the uml

Instructions I. What are the diagrams defined in the UML Standard. Give a one or two sentence description of each one. II. Given the following code, how should the toString methods in the classes H2ClassA and H2ClassB be ...

Below is the beginning of a java classpublic class

Below is the beginning of a Java class. public class Implement { private String name; private boolean hasMovingParts; private String constructedFrom; public Implement() { } a) Complete this class so that: i. The instance ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate