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

Create a console based non-gui java program using netbeans

Create a console based, non-GUI Java program using NetBeans Integrated Development Environment (IDE) that displays "Hello world!" Take a screenshot that shows the program's successful compilation and execution. Submit bo ...

Question adiscuss the good and the bad of javascript

Question A Discuss the good and the bad of JavaScript Libraries. In what circumstances would you use Libraries? 80 words max Prime Numbers Note: A prime number is a number that can only be divided by itself or by one. Wr ...

Assignment introduction to web developmentwhen you see

Assignment: Introduction to Web Development When you see "Richard Ricardo" in the example screen captures, change it to . If you do not put / in the above mentioned fields, you will get 0 points for the question(s). No t ...

Introduction to programmingjava programming assignment

Introduction to Programming Java Programming Assignment: Objects and Loops Your previous Alice programs implemented the count (for) and while loops. This assignment will apply the same concepts to Java, along with a thir ...

Spell checker in python and javawrite a python code and

Spell checker in python and java Write a python code and java code that can take a whole sentence and do text analysis by checking the spelling mistakes and show the correct spelling. Example: Input: I have a peen. Outpu ...

Assignmentyou have to doone of the following1modify your

Assignment You have to doONE of the following: 1. Modify your Registration project(s) to use a Hash Table to maintain the student information instead of the sorted array or BST. Your hash function should be based on the ...

Assignmentin this assignment you are required to specify

Assignment In this assignment, you are required to specify and implement a Java The language is Java. In this assignment, you are required to specify and implement a Java class named IntSortedList. The instances of IntSo ...

Learning outcomes1use different program control statements

Learning Outcomes: 1. Use different program control statements in a programming language 2. Demonstrate the use of arrays with a programming language 3. Define and work with classes and objects in a programming language. ...

Java program 1write a java application that generates a

Java Program 1 Write a Java application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers. Demonstrate your code compiles and runs witho ...

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

  • 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