This quiz titled 'WAD(Web site and a Web application)' explores the distinctions between websites and web applications, communication protocols between servers and clients, and the technical setup for web applications using Tomcat. It is targeted at learners to assess understanding of web development basics.
Component oriented model defines a set of contracts between the component and the system that will host the component. The contracts stipulate how the components must be developed and packed.
OPTION number ONE
Rate this question:
The client–server model is a distributed application structure that partitions tasks or workloads between the providers of a resource or service, called servers, and service requesters, called clients.[1] Often clients and servers communicate over a computer network on separate hardware, but both client and server may reside in the same system. A server host runs one or more server programs which share their resources with clients. A client does not share any of its resources, but requests a server's content or service function. Clients therefore initiate communication sessions with servers which await incoming requests. Examples of computer applications that use the client–server model are Email, network printing, and the World Wide Web.
1 - SI GATA
Option3
Option4
• Remote method invocation
• Concurrency
• Load-balancing
• Transparent fail-over
• Back end integration
• Dynamic redevelopment
• Clean shutdown
• Logging
Rate this question:
• When you need to start a servlet
• When you want to initialize the state of that servlet with initialization parameters
• You should always override the servlet's init method
• You should never override the servlets init method
Rate this question:
• All the nodes are loosely coupled,
• Every node is an autonomous computer,
• The system can survive to the crash of the nodes or the net,
• The nodes can logically at the same time execute separated computations from the other,
• The system is asynchronous.
Rate this question:
• Access transparency = Accesses are uniform either to local or remote resources,
• Location transparency = The users cannot tell where are located,
• Migration transparency = resources can move at will without changing their names,
• Replication transparency = The users cannot tell how many copies exist,
• Concurrency transparency = Multiple users can share resources automatically,
• Parallelism transparency = Activities can happen in parallel without users knowing,
• Performance transparency,
• Failures transparency.
Rate this question:
• Naming Service
• Security Service
• Transaction Service
• Persistence Service
• Event Service Message
• Queuing Service
Rate this question:
• The Web container creates a pool of them at startup time.
• By a slow-roasting process that enhances the flavor and darkens the color
• With the jsp:useBean standard action
• By calling the j spGetBean method
Rate this question:
• JSP pages also serve as the controller in Model 2 architecture.
• Data Access Objects.
• Servlets.
• The HttpServletRequest object.
Rate this question:
• The ServletContext object.
• The WebApplication object.
• The ApplicationContext object.
• There is no such object.
Rate this question:
• A PHP page.
• Java servlet code.
• -An HTML page.
• It does not get translated in the Web container. It is returned to the client and translated by the browser.
Rate this question:
• Input/Output
• Send/Reply
• Forward/Retrieve
• Request/Response
Rate this question:
• NAME, WIDTH, and VALUE
• id, value, and type
• NAME, TYPE, and VALUE
• ACTION, METHOD, and VALUE
Rate this question:
• The init, service, and destroy methods
• The do Get and do Post methods
• The doGet, doPost, and doDeiete methods
• The start, init, and paint methods
Rate this question:
• By using the getParameter method on the servlet
• By using the getAttribute method of the HttpSession object
• By using the getinitParameter method on the servlet
• By using the getParameter method of the HttpServletRequest object
Rate this question:
• Name-value pairs are sent in the header of the request after the URL.
• Name-value pairs are sent in the body of the request.
• In Hidden fields.
• The complete HTML form, along with the user's responses, is sent after the URL.
Rate this question:
• With the j sp: forward standard action
• With the j sp: request standard action
• By calling the getRequest method from within a scriptlet tag
• With the j sp: newPage standard action
Rate this question:
• A Servlet object
• A ServletRequest object
• An HttpServletRequest object
• An HttpSession object
Rate this question:
• /webapps/ROOT/WEB-INF/classes/package
• /webappsIname-of-application/classes/package
• /classes/ROOT/WEB-INF/pacicage
• It does not matter in which directory it is deployed.
Rate this question:
• Web sites typically use Apache, but Web applications use proprietary Web server applications.
• Web applications provide a mechanism to allow the user to invoke programs running on the Web server
• Sites with over 100 pages are called "Web applications."
• There is no difference. The terms are synonymous.
Rate this question:
• JSP pages.
• Data Access Objects.
• Servlets.
• The HttpServletRequest object.
Rate this question:
• The do Get or doPost methods
• The init method
• The service method
• None
Rate this question:
• The context directive.
• The page directive.
• The defineAii directive.
• None. All such properties should be defined in the deployment descriptor.
Rate this question:
• JSP pages.
• Data Access Objects.
• Servlets.
• The HttpServletRequest object.
Rate this question:
• Through the deployment descriptor.
• With the getWebApp method.
• It is always accessible because it is passed to the servlet in the doGet or doPost methods.
• With the getServletContext method.
Rate this question:
• It is compiled into a class file that is stored in the Web container.
• The translated code is sent to the browser.
• It is compiled into a class file that is sent to the browser.
• It is compiled as an applet and then delivered to the client to run in its browser.
Rate this question:
• GET and POST, the doGet and doPost methods
• SEND and RECEIVE, the service and init methods
• GET and POST, the service and init methods
• REQUEST and RESPONSE, the getRequest and setResponse methods
Rate this question:
• In Model 2 architecture, JSP pages should not be accessing domain objects.
• With the j sp: getBean standard action.
• By mapping the JSP pages to the domain objects with the data-mapping tag in the deployment descriptor.
• With the jsp: useBean standard action.
Rate this question:
• Call the getRequest method of the JSP page.
• Use the getservietconfig method of the JSP page, then call the getRequest method of
• the ServletConfig object.
• There is never a good reason to access the request object from a JSP page.
• None. It is an implicitly defined variable.
Rate this question:
• The action attribute must specify the relative URL to the target servlet; the method attribute must specify GET or POST.
• The action attribute must specify the relative URL to the target servlet; the name attribute must provide a unique name for the form.
• The name attribute must provide a unique name for the form, the method attribute must specify the relative URL to the target servlet.
• The action attribute must specify GET or POST, and the method attribute must specify the relative URL to the target servlet.
Rate this question:
Quiz Review Timeline (Updated): Mar 20, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.