Choose the one which is not a branching statement in Java.
return
break
goto
continue
Which of the below statement is True?
Python is faster than C
Python is faster than C++
Python is slower than C
None of the above
What will be the answer of a,b,c,d after the following statement? a = 2 b = 3 c = 4 d = a + + b + + + c
a=2, b=3, c=4, d=9
a=3, b=5,c=4, d=9
a=3, b=4,c=4, d=11
Error
What is the value of a? b = 3 a = b == 3 print a
Not assigned yet
3
1
True
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()
Hello 1
Hi 3
Hello 3
What will be the output? class A: def foo(self): print "Test" a = A() a.foo()
Test
Syntax error
Value error
Attribute error
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.
/WEB-INF
/appserverInstallDirectory/webapps/webappName/WEB-INF/xml
/appserverInstallDirectory/webapps/webappName/WEB-INF
/appserverInstallDirectory/webapps/webappName/WEB-INF/classes
Identify which of the following are true statements about web applications
The only way to access resources under the /WEB-INF directory is through appropriate servlet mapping directives in the deployment descriptor
Server-side code has access to all resources in the web application
Clients of web applications can't directly access resources in /WEB-INF/tld.
A good place to keep a .tld (tag library file) is directly in the /WEB-INF directory.
Which of the following are true statements about the deployment descriptor for a web application?
At least one element must be present.
is a child element of .
is the root element
elements must all be declared before elements.