Question 1a jsp expression can contain any java expression

Assignment Help PHP Web Programming
Reference no: EM13347412

Question 1

A JSP expression can contain any Java expression that evaluates to a

Question 1 options:

  • String object
  • Java object
  • primitive type
  • primitive type or Java object

Question 2

Which of the following JSP expressions is valid?

Question 2 options:

  • <%= request.getParameter("occupation"); %>
  • <%= request.getParameter("occupation") %>
  • <%= String occupation = request.getParameter("occupation"); %>
  • <%= String occupation = request.getParameter("occupation") %>
  • None of the above

Question 3

The following code
<%
String[] mailTypes = request.getParameterValues("mail");
%>
Question 3 options:

  • returns the name of all request parameters from the mail.jsp page
  • returns the first value of the mail parameter or null if none exist
  • returns all values of the mail parameter or null if none exist
  • returns the values of all request parameters from the mail.jsp page is invalid

Question 4

In general, you should use the Post method instead of the Get method when

Question 4 options:

  • the request writes data to the server
  • the request reads data from the server
  • you want users to be able to include parameters in their bookmarks
  • when you're transferring 4 KB or less of data

Question 5

To use your own Java class in a JSP, you can import the class with a

Question 5 options:

  • JSP scriptlet
  • JSP expression
  • JSP directive
  • JSP declaration

Question 6

Which of the following is a valid JSP comment?

Question 6 options:

  • // comment
  • <!--comment -->
  • <%-- comment --%>
  • </comment>

Question 7

In the code that follows, the numOfErrors variable

<%! int numOfErrors = 1; %>

Question 7 options:

  • is initialized each time the page is requested
  • is an instance variable that is not thread-safe
  • is ignored by the JSP engine
  • is invalid JSP code

Question 8

When a JSP is requested for the first time, the JSP engine does all but one of the following. Which one is it?

Question 8 options:

  • generates a servlet for the JSP
  • generates the HTML code for the JSP
  • creates one instance of the servlet class
  • creates one thread

Question 9

When a JSP is requested for the second time, the JSP engine

Question 9 options:

  • creates a thread that has its own copy of the instance variables
  • creates a thread that has its own copy of the local variables
  • creates an instance of the JSP that has its own copy of the instance variables
  • creates an instance of the JSP that has its own copy of the local variables

Question 10

A scriptlet contains one or __________ statements.

Question 10 options:

  • HTML
  • Java
  • XML
  • web server

Question 11

To access information about the parameters that are sent to a JSP, you can use the methods of the ___________ object.

Question 11 options:

  • database
  • responsse
  • request
  • JSP

Question 12

You can use getRealPath method of a/an ____________ object to get the absolute path to a file that's part of a web application.

Question 12 options:

  • ServletContext
  • input
  • container
  • explicit

Question 13

To ensure that parameter values aren't displayed in the URL when a JSP is requested, you should use the _____________ method in the Form tag.

Question 13 options:

  • Get
  • Post
  • JSP
  • action

Question 14

If you use instance variables in a JSP, two or more _______________ may conflict when they try to read, modify, or update the same instance variable at the same time.

Question 14 options:

  • users
  • servers
  • applications
  • threads

Question 15

If you attempt to run a JSP that contains a coding error, the ____________ will display an error page.

Question 15 options:

  • user
  • JSP engine
  • JVM
  • servlet

Question 16

The ___________ attribute in an HTML form tag may specify the JSP url for a user request.

Question 16 options:

  • method
  • action
  • type
  • name

Question 17

Text fields inside an HTML form may become ______________ for a JSP when the form is submitted

Question 17 options:

  • directives
  • outputs
  • parameters
  • styles

Question 18

JSP expressions are used to display __________.

Question 18 options:

  • text
  • objects
  • access codes
  • numerical values only

Question 19

If you pass parameters in a JSP request that total more than 4KB, then you must use a ____________ method.

Question 19 options:

  • Trace
  • priority
  • Get
  • Post

Question 20

If you use an HTML "A" tag to call a JSP, the ____________ method is always used.

Question 20 options:

  • Post
  • Get
  • link
  • url

 

 

Reference no: EM13347412

Questions Cloud

Problem irecord the following transactions in a two-column : problem irecord the following transactions in a two-column journal. the transactions are for james e. stone who
Select a topic that interests you write a paper using peer : select a topic that interests you. write a paper using peer reviewed journal articles on the topic.provide your
Read article from sedlorgchangeissuesissues61htmlfind a : read article from sedl.orgchangeissuesissues61.htmlfind a professional staff development plan then fill
Prepare a research essay you are required to research and : prepare a research essay. you are required to research and write an essay on a particular aspect of corporate
Question 1a jsp expression can contain any java expression : question 1a jsp expression can contain any java expression that evaluates to aquestion 1 optionsstring objectjava
Understand interpret and be critical of the concepts of : understand interpret and be critical of the concepts of statistical signicance and p-values. statistical signicance is
1research a recent article on the international monetary : 1.research a recent article on the international monetary fund imf perform an online search for an article.write a
1identify and explain the several steps management must : 1.identify and explain the several steps management must take to establish a successful export strategy.2.review the
1 review the case study dell mercosur getting real in : 1. review the case study dell mercosur getting real in brazil. address the subsequent components in a well-written

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Create a data structure containing a list of degree

Create a data structure containing a list of degrees available (i.e. PhD, MS, MA, BS, etc) and a price for each degree.

  Web programming – server side

Develop a web site that provides customer access to the Northwind database and Provide a way to review existing orders. That is, allow the user to log in to a new session and find orders for her that are already in the database.

  Information-intensive goods and classic information goods

What is the difference between "information-intensive goods" and "classic information goods"? How can a firm that find's itself on the losing side of network effects survive?

  Design database table required to store children information

Design the database tables required to store children and class information. In addition to the attributes, be sure to check the needed foreign keys and primary keys.

  Create a very simple order system as a web application

Create a very simple Order System as a web application.

  A dynamic web application as described using php and mysql

This is an individual assignment in which you are required to develop a dynamic web application as described below using PHP, MySQL, JavaScript and CSS. Details of the weight of the assignment and due date are given in the course description

  Design a dynamic database using mangodb html and php

design a dynamic database using mangodb html and php. database should be designed to have the subsequent static

  Designing and developing a web applications the company you

designing and developing a web applications the company you are working has secured a contract with a local banking

  Simple php script to parse out custom lines

Simple php script to parse out custom lines from an log file and echo - the script should echo it after convert it from hex to normal text

  Create a very simple order system as a web application the

create a very simple order system as a web application. the application allows users to view the order and products

  Develop an opinion as to the degree

As we noted in the lecture some educationalists are quick to point out that hypertext links facilitate memory and understanding and this has lead to encouragement of WWW use in the classroom.

  Create a web site for an apple farm

Create a web site for an apple farm. Create an HTML5 form allowing visitors to create an account with the site. Account details are to be stored in your MySQL database. Information should be stored in a secure way.

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