This set of Advanced Java Multiple Choice Questions & Answers (MCQs) on “Web application”.
1. Servlet are used to program which component in a web application? Answer: b 2. Which component can be used for sending messages from one application to another? Answer: c 3. How are java web applications packaged? Answer: d 4. How can we connect to database in a web application? Answer: c 5. How can we take input text from user in HTML page? Answer: a 6. Which of the below is not a javascript framework for UI? Answer: d 7. Which of the below can be used to debug front end of a web application? Answer: c 8. What type of protocol is HTTP? Answer: a 9. What does MIME stand for? Answer: b 10. What is the storage capacity of single cookie? Answer: c
a) client
b) server
c) tomcat
d) applet
Clarification: A servlet class extends the capabilities of servers that host applications which are accessed by way of a request-response programming model.
a) server
b) client
c) mq
d) webapp
Clarification: Messaging is a method of communication between software components or applications. MQ can be used for passing message from sender to receiver.
a) jar
b) war
c) zip
d) both jar and war
Clarification: war are deployed on apache servers or tomcat servers. With Spring boot and few other technologies tomcat is brought on the machine by deploying jar.
a) oracle sql developer
b) toad
c) JDBC template
d) mysql
Clarification: JDBC template can be used to connect to database and fire queries against it.
a) input tag
b) inoutBufferedReader tag
c) meta tag
d) scanner tag
Clarification: HTML provides various user input options like input, radio, text, etc.
a) Vaadin
b) AngularJS
c) KendoUI
d) Springcore
Clarification: Springcore is not a javascript framework. It is a comprehensive programming and configuration model for enterprise applications based on java.
a) Junit
b) Fitnesse
c) Firebug
d) Mockito
Clarification: Firebug integrates with firefox and enables to edit, debug and monitor CSS, HTML and javascript of any web page.
a) stateless
b) stateful
c) transfer protocol
d) information protocol
Clarification: HTTP is a stateless protocol. It works on request and response mechanism and each request is an independent transaction.
a) Multipurpose Internet Messaging Extension
b) Multipurpose Internet Mail Extension
c) Multipurpose Internet Media Extension
d) Multipurpose Internet Mass Extension
Clarification: MIME is an acronym for Multi-purpose Internet Mail Extensions. It is used for classifying file types over the Internet. It contains type/subtype e.g. application/msword.
a) 2048 MB
b) 2048 bytes
c) 4095 bytes
d) 4095 MB
Clarification: Storage capacity of cookies is 4095 bytes/cookie.
