Professional Documents
Culture Documents
Explain Following HTML Tag with example: (i) Title, Head (ii) OL, UL (iii) Table with TH,TR,TD
Write a java script to check whether a number entered in textbox is prime or not
Explain Lifecycle of Servlet with available functions
What is HTTP Status Code? Explain all HTTP Status codes
What is Session and Cookie? How they are used in JSP Page? Explain with each one with
separate example.
Write an example to demonstrate the use of various html tags to prepare home page of gtu.
Write Down steps for Sending the Cookies from Server to Client
Write Down Steps for Receiving Cookies from Client to Server
What is SC? Discuss any five status code in brief
Write a servlet that just says Welcome. To Internet Explorer Users and Good Bye to all other
non-IE users.
How a constructor can be used to initialize user defined objects in JavaScript?
What is the difference between getHeaderNames and getHeaders method of HttpServletRequest?
Describe the two situation in which one might use URLs that refer to ones own site?
Explain the various types of inputs provided by HTML.
What is meant by Referer header? What is the value of request.getHeader(Referer), if the user
simply types the address of a page in the browser?
Write the lines which creates cookie with userID E00123 and sets the maximum age to 15 days.
What is the interpretation if maximum age is 0?
Write specific steps required by the servlet to generate JPEG images.
What is the significance of 302 and 404 status code returned by HttpServletRespose? Which
methods can be used to set this?
Explain use of "referer" header with reference to request headers with suitable example
Explain use of setStatus() with suitable example
Write a Javascript that changes background color to red if user presses the mouse button.
Write a JavaScript function to add two numbers when user presses submit button.
What is the code in HTML so that someone can mail by just clicking on text?
Write a code for create a multiple list in HTML.
Which two methods are used for takes keyboard input and screen output in Java Script?
Write JavaScript to display Hello World .
What are the major differences between doGet( ) and doPost( )?
Explain ServletResponse.
Explain Java Script Arrays.
Explain Web Descriptor (web.xml) file. Explain the structure of web.xml with sample data.
What is HttpServlet? Explain the methods of HttpServlet.
Define Cookies. How will you handle cookies in Servlet? Explain with suitable example.
What do you mean by Cookies? Mention the benefits of Cookies. How will you set and get
cookies in servlet, explain with example.
Why Cookies used? Explain how Cookies are send and received by the servlet.
What is Cookie? Differentiate session cookie with persistent cookies.
What is JavaScript? What are the advantages of JavaScript?
Discuss all access methods of HttpServletRequest in detail.
Describe important status codes for HTTP 1.1 protocol.
1
46.
47.
48.
49.
50.
51.
52.
Explain the Date object of java script with any two methods.
As a programmer state the weaknesses of servlet.
Write a code to read a HttpHeader in servlet.
Explain Javascript function with example.
Discuss javascript events with proper example.
Write a Servlet program which generates a plain text.
Briefly discuss the following HTTP 1.1 request headers:
i) Accept ii) Accept-Charset iii) Host iv) Accept-Language v) Authorization vi) Cookie vii) UserAgent
Explain the following methods of HttpServletResponse with examples.
i) setContentType() ii) setStatus() iii) sendError() iv) sendRedirect() v) setContentLength()
vi) encodeURL() vii) isCommited()
Write the advantages of JavaScript. Explain any three methods of Date and String objects of
JavaScript.
Discuss types of CSS
What is servlet package? Explain with example
What is client request? Explain getParameter method
Discuss four main methods of HttpServletRequest.
Write a JavaScript to input two numbers and find out max. Put validation -both value is not null.