You are on page 1of 2

Parul Institute of Engineering and Technology(MCA)

MCA Semester 4 : Div 2 : WTAD : Question Bank


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.

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

Parul Institute of Engineering and Technology(MCA)


MCA Semester 4 : Div 2 : WTAD : Question Bank
39.
40.
41.
42.
43.
44.
45.

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.

Answer the following:


1. We can save external JavaScript file with ____ extension.
2. Error between 400 and 499 represents ____.
3. If the cookies are disabled on clinet-side, the alternate mechanism that can be used is _____ .
a. URL Rewriting b. Forcefully enable the cookies c. Use of beans d. None of the above
4. JavaScript is created by______ . (Sun, Microsoft, Netscape)
5. In Javascript, eval("2 + 0.56") returns ______.
6. In servlet, _____ method is used with session object to store information in a session.
7. CGI Stands for __________.
8. \${2+2} is ${2+2} will output ___________.
9. HTML elements with no content are called _______ elements.
10. Java is _______________and JavaScript is ___________________.
11. _________ is only property of string object in JavaScript.
12. Error between 500 and 599 represents ____.
13. JavaScript is compiled and executed at client. (True / False)
14. In HTML, <ol> tag is used to create list items with bullets. (True / False)
15. We must configure and map all jsp files into web.xml. (True / False)
16. JavaScript Ignores White Space. (True or False)
17. What will be assign in variable mca by following JavaScript var mca = parseInt(0xff) ;
18. What kind of information 400-499 status code provides?
19. Error between 100 and 199 represents ____.
20. What is the use of <load-on-startup> element of web.xml?
21. The method getWriter returns an object of type PrintWriter. This class has println methods to
generate output. Which of these classes define the getWriter method? Select the correct
answer. A. HttpServletRequest B. HttpServletResponse C. ServletConfig D. ServletContext
2

You might also like