Session 3 Test has these questions
Servlets and Applets
Identify the correct statement about servlets and applets
A.
|
Servlets run in the Servlet Container of the Web Server
|
B.
|
Servlets get transmitted to the client side and are executed in the client's browser
|
C.
|
Applets are transmitted from the client side and are executed on the server side
|
D.
|
Servlets can not access the databases, since they run inside the servlet container which restricts the access to databases.
|
Servlets
Identify the correct statement about servlets
A.
|
Servlets can not handle specific user requests and always return the same content
|
B.
|
Servlets can create dynamic html, but can not connect to the database
|
C.
|
Servlets can connect to the database and create a dynamic html containing the results from the database
|
D.
|
Servlets can not create dynamic html
|
What are Applets
Identify the incorrect statement about Applets?
A.
|
Applets are transmitted over the internet
|
B.
|
An applet is platform independent and can run in any Java-compatible browser
|
C.
|
Applets are written by the clients and are sent to the server
|
D.
|
Applets help in improving the usability of the web application
|
Java and Internet
What is the incorrect statement about Java and Internet?
A.
|
Java and Internet helped each other grow
|
B.
|
Java was designed for Internet and with out it Internet does not exist
|
C.
|
Internet is a complex network of systems connected together. Some of the systems act as servers and some act as clients.
|
D.
|
Java addressed two important issues of internet, which are security and portability.
|
Applets and Browsers
Identify the incorrect statement about browsers and applets.
A.
|
Applets can also be written in any other programming language apart from Java
|
B.
|
Applets can run on any java-compatible web browser
|
C.
|
Internet Explorer, Firefox, Safari and Chrome are examples of web browsers
|
D.
|
The JVM inside the web browser prevents the applet to a subset of java functions. For e.g. applet can not access the files on the client machine
|