Home > Java Programming > Quizzes > Java Basics Practice Test: Java Server Technologies & Servlet
Java Basics Practice Test: Java Server Technologies & Servlet
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Which mode allows us to run program interactively while watching source code and…”
Quiz on eclipse debugging, web application, servlet, client and server. Java Server Technologies and Java Servlets are both Java-based technologies that are used to create web applications. Java Server Technologies is a collection of technologies that allow developers to create web applications using the Java programming language. It includes technologies such as Java Servlets, JavaServer Pages (JSP), and JavaBeans. Java Servlets are Java classes that run on a web server and respond to HTTP requests. They can be used to generate dynamic web pages, process form data, and access... Show more
Java Basics Practice Test: Java Server Technologies & Servlet
Time left 00:00
25 Questions

1. In CGI, process starts with each request and will initiate OS level process.
2. What is the storage capacity of single cookie?
3. How can we connect to database in a web application?
4. Which of the following code retrieves the body of the request as binary data?
5. How can we take input text from user in HTML page?
6. Which of the below is not a javascript framework for UI?
7. How are java web applications packaged?
8. Which are the session tracking techniques?

i. URL rewriting

ii. Using session object

iii.Using response object

iv. Using hidden fields

v. Using cookies

vi. Using servlet object
9. Which of the below are common network protocols?
10. How does applet and servlet communicate?
11. What is the java method for ping?
12. What is the difference between servlets and applets?

i. Servlets execute on Server; Applets execute on browser

ii. Servlets have no GUI; Applet has GUI

iii. Servlets creates static web pages; Applets creates dynamic web pages

iv. Servlets can handle only a single request; Applet can handle multiple requests
13. How is the dynamic interception of requests and responses to transform the information done?
14. When destroy() method of a filter is called?
15. How constructor can be used for a servlet?
16. What happens if IP Address of host cannot be determined?
17. Which component can be used for sending messages from one application to another?
18. Which of the following is true about servlets?
19. Which of the below can be used to debug front end of a web application?
20. Servlet are used to program which component in a web application?
21. What does MIME stand for?
22. Which of the following code is used to get an attribute in a HTTP Session object in servlets?
23. What does bind() method of ServerSocket offer?
24. What is debugging an application which runs on another java virtual machine on another machine?
25. How can we move from one desired step to another step?