WorksheetsWeb Application Development (WAD)
Total questions: 25
Worksheet time: 13mins
What does lookup() do in JNDI?
returns a enumeration of object of searched criteria
returns a enumeration of binding objects
find the specified object which was given in the context
returns a enumeration of all the NameClassPair's of current context
What are the functions of Servlet container?
Lifecycle management
Communication support
Communication support
All of the above
Which of the following is true about servlets?
Servlets execute within the address space of web server
Servlets are platform-independent because they are written in java
Servlets can use the full functionality of the Java class libraries
Servlets execute within the address space of web server, platform independent and uses the functionality of java class libraries
The life cycle of a servlet is managed by
servlet context
servlet container
the supporting protocol (such as http or https)
All of the above
Which method shows the client what server is receiving?
doGet
doOption
doOption
doPost
Which of the following is the default scope in Spring?
prototype
singleton
request
session
The Spring container gets its instructions on what objects to instantiate, configure, and assemble by reading the
source code
spring integration data
configuration metadata
configuration text file
The objects that form the backbone of your application and that are managed by the Spring container are called
context
application
metadata
bean
Which of the following statement is/are correct?
Spring is an open source framework.
Spring is heavyweight.
Spring supports tight coupling
Spring helps in reducing boiler-plate code
Spring Dependency Injection is useful because it makes your code:
simple
easier to understand
easier to test
All of the above
Abbreviate the term POJO?
Plain Old Java Object
Performance Old Java Object
Performance Optimize Java Object
None of the above
Struts supports which of these model components?
JavaBeans
EJB
CORBA
All Mentioned above
Abbreviate the term OGNL?
Object-Goal Navigation Language
Object- Graph Navigation Language
Oriented-Graph Navigation Language
None of the above
Which of these simplifies an Object Relational Mapping tool?
Data creation
Data manipulation
Data access
All mentioned above
Which of the following are most common configuration methods of Hibernate Configuration
XML Configuration hibernate.cfg.xml
Mapping files and XML Configuration hibernate.cfg.xml
web.config
http.conf
Which of the following data type is not supported in Python?
· String
Numbers
· Slice
· List
Which statement is correct?
List is immutable && Tuple is mutable
· List is mutable && Tuple is immutable
· Both are Mutable.
· Both are Immutable
Which keyword is used for function?
define
fun
def
function
If return statement is not used inside the function, the function will return
None
0
Null
Arbitary value
In which part of memory does the system stores the parameter and local variables of funtion call?.
heap
stack
Uninitialized data segment
None of the above
What is the Django shortcut method to more easily render an html response?
render_to_html
render_to_response
response_render
render
By using django.contrib.humanize, you can use the following filter in your template to display the number 3 as three.
apnumber
intcomma
intword
ordinal
How do you concatenate two QuerySets into one list?
result = list(query_set_1 | query_set_2)
from itertools import chain
result = list(chain(query_set_1, query_set_2))
from django.db.models import Q result = Q(query_set_1) | Q(query_set_1)
result = query_set_1 + query_set_2
What is the Django command to start a new app named ‘users’ in an existing project?
manage.py –newapp users
manage.py newapp users
manage.py –startapp users
manage.py startapp users
What are the features available in Django web framework?
Admin Interface (CRUD)
Templating
Form handling
All of the above
