programming languages Online Quiz - 177
Description: programming languages Online Quiz - 177 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
package loop; public class TestLoop3 { public static void main(String[] args) { int p = 0; for (int i = 0; i < 3; i++) { p = i+1; if (p == 2) { continue; } System.out.println("i in loop = " + i); } } }
package loop; public class TestLoop1 { void testFor() { for (int i = 1; i < 3; i++) { System.out.println("i in for loop = " + i); if (i == 1) { break; } } System.out.println("For loop over"); } public static void main(String[] args) { TestLoop1 tl = new TestLoop1(); tl.testFor(); System.out.println("Method call Over"); } }
What is the maximum number of parameter values that can be forwarded to the servlet from the following HTML form? (Choose one.)
Chapter 1 Question 9
Java C# C C++ Pascal AdaWhich of the following servlet methods can return null? (Choose one.)
Given the following deployment descriptor: InitParams com.osborne.c02.InitParamsServlet initParm question14 What is the outcome of running the following servlet? (Choose one.) public class InitParamsServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ServletContext sc = this.getServletContext(); PrintWriter out = response.getWriter(); out.write("Initialization Parameter is: " + sc.getInitParameter("initParm")); } }