programming languages Online Quiz - 280
Description: programming languages Online Quiz - 280 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Choose the components of Java Platform
What data type should be used for storing precise values ?
arraycopy is to copy one array into another.
Choose the methods that are not available in StringBuilder class.
Java packages are to be hierarchical.
To declare a bounded type parameter, which keyword is used ?
Choose the one which is not a branching statement in Java.
Which of the below statement is True?
What will be the answer of a,b,c,d after the following statement? a = 2 b = 3 c = 4 d = a + + b + + + c
What is the value of a? b = 3 a = b == 3 print a
Consider the following code snippet: class A: a = 1 def foo(self): print "Hello",self.a class B(A): a = 3 def foo(self): print "Hi",self.a A = B a = A() b = B() What is the value of a.foo()
What will be the output? class A: def foo(self): print "Test" a = A() a.foo()
Which of the following directories are legal locations for the deployment descriptor file? Note that all paths are shown as from the root of the machine or drive.
Identify which of the following are true statements about web applications
Which of the following are true statements about the deployment descriptor for a web application?
Assume that there is a file called secure.txt, located at /WEB-INF/securefiles, whose contents are "Password=WebCert." What statements are false about the result of compiling and running the following code? 11 public class CodeTestServlet extends HttpServlet { 12 protected void doGet(HttpServletRequest request, 13 HttpServletResponse response) throws IOException { 14 ServletContext sc = getServletContext(); 15 InputStream is = sc.getResourceAsStream("/WEB-" + 16 "INF/securefiles/secure.txt"); 17 BufferedReader br = new BufferedReader(new InputStreamReader(is)); 18 System.out.println(br.readLine()); 19 } 20 }