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

  Why do we create a web site plan

Why do we create a web site plan?2. What are the several types of objectives?

  Show the accessibility and usability of website

The webpage must have several menus about country Azerbaijan such as "About Azerbaijan" "History" "Geography" "Landscape" and "Accessibility" menu.

  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

  How do you define a constant in php

How do you define a constant in PHP. List the different types of errors in PHP.

  Produce a description of the modules

Provide a brief description within comment tags at the bottom of your HTML5 file of some of the ways you have separated content and presentation in your assignment.

  Implement a web application called cs320starter which is

implement a web application called cs320starter which is similar to the crowd funding platform kickstarter where people

  Xhtml form that collects a name

Create an XHTML form that collects a name, address, phone number, and zip code. The phone number must be input in the format of ddd-ddd-dddd and the zip code must be in the format of ddddd-dddd.

  Non-functional mock-up of web pages

Non-functional mock-up of Web pages Diagram of database tables with column names and data types Final tested version of all Web application software.

  List the item ids and their location description

In this assignment youare required to use PHP program to connect to the XAMPP web server. You will then create a database which will include tables with records.

  Create an online parking system

To create an online PARKING system with php/mysql or any other coding language suitable and dissertation proposal

  Write a php script to create a table in your database server

Create a page and scripts to delete a data record. Use the web page from the Data Retrieval and Display section to first retrieve and display the data. Then include a form with a Submit button (label it Delete) that calls a PHP script to delete th..

  Need an php script that redirect the visitor to url

Need an php script that redirect the visitor to url or dir based on their ip address if the visitor from Germany -

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