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

Questions for java programing answer each question with at

QUESTIONS FOR JAVA PROGRAMING (answer each question with at least 5 sentences) 1. Discuss why it is necessary to use repetitive and selective statement. Use segment codes to demonstrate your understanding. Explain why yo ...

Tennis score boardyou will write a gui that can be used to

Tennis Score Board You will write a GUI that can be used to keep track of the score during a lawn tennis match at Wimbledon. You will be using MVC (Model View Controller) so you will submit the Model and then the View an ...

Problem specificationyou have been approached by a local

Problem Specification You have been approached by a local university for designing and implementing a room access control system on the university campus. Access to each room on each floor of each campus building is cont ...

Write a java program non-gui preferred to demonstrate the

Write a Java program (non-GUI preferred) to demonstrate the use of Iterator. The program should allow a user to do the following: Allow the reading of a collection of animal objects from an external file. Output on scree ...

The taskyou must design and implement in java a bookshop

The Task You must design and implement in Java a Bookshop Management System corresponding to the attached scenario. You are not required to implement the entire scenario, but the more functionality your system has, the h ...

1how does java support the concept of encapsulation2

1. How does Java support the concept of encapsulation? 2. Describe the difference between an object and a class. 3. What is the difference between the contents of a Java variable of a primitive type and a Java variable o ...

Write a java application that allows a user to enter

Write a Java application that allows a user to enter numbers into an array and then process them. Enter the number of elements and the value of each element; Your application will process the data entered and will displa ...

Program 1objectivethis program assignment is provided to

Program 1 Objective: This program assignment is provided to let the students know how to handle threads and enhance system availability on a multiprocessor or multicore environment. A single process is supposed to create ...

Write java program with eclipsinstructionswrite a program

Write java program with Eclips INSTRUCTIONS Write a program that will help a student practice basic math (addition, subtraction, multiplication, and division). Display a menu the student can select from. The student will ...

Design your own java class that includes at least 3 data

Design your own Java Class that includes at least 3 data fields, 2 constructors and 4 methods. When designing your class, pick an object that you are familiar with and make it your own, realistic, yet simple design with ...

  • 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

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen