Getparameter() is the method of mcq

MCQ Tutorial - JAVA->SERVLET

       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9102696368566174" data-ad-slot="6937758887" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});

1.) The Java __________ specification defines an application programming interface for communication
between the Web server and the application program.
Options are:
A.) Program
B.) Servlet
C.) Randomise
D.) Server
2.) The doGet() method in the example extracts values of the parameter�s type and number by using
__________
Options are:
A.) responce.getAttribute()
B.) responce.getParameter()
C.) request.getParameter()
D.) request.setParameter()
3.) How many JDBC driver types does Sun define?
Options are:
A.) One
B.) Two
C.) Four
D.) Three
4.) Which JDBC driver Type(s) can be used in either applet or servlet code?
Options are:
A.) Both Type 1 and Type 2
B.) Both Type 3 and Type 4
C.) Type 4 only
D.) Both Type 1 and Type 3
5.) A JSP is transformed into a(n):
Options are:
A.) Neither JSP or Applet
B.) Java Applet
C.) Either JSP or Applet
D.) Java Servlet

       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9102696368566174" data-ad-slot="6937758887" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});

       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9102696368566174" data-ad-slot="6937758887" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});

What is getParameter () method?

getParameter(java.lang.String name) Returns the value of a request parameter as a String , or null if the parameter does not exist.

What is used for get () method in servlet?

The doGet() method in servlets is used to process the HTTP GET requests. So, basically, the HTTP GET method should be used to get the data from the server to the browser. Although in some requests, the GET method is used to send data from the browser to the server also.

Which of the following is true about init () method of servlet?

Q 6 - Which of the following is true about init method of servlet? A - The init method simply creates or loads some data that will be used throughout the life of the servlet.

What is the use of C if tag Mcq?

It is used to check if jsp tag library is enabled or not.

Chủ đề