wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Application Development (WAD)

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What does lookup() do in JNDI?

a)

returns a enumeration of object of searched criteria

b)

returns a enumeration of binding objects

c)

find the specified object which was given in the context

d)

returns a enumeration of all the NameClassPair's of current context

2.

What are the functions of Servlet container?

a)

Lifecycle management

b)

Communication support

c)

Communication support

d)

All of the above

3.

Which of the following is true about servlets?

a)

Servlets execute within the address space of web server

b)

Servlets are platform-independent because they are written in java

c)

Servlets can use the full functionality of the Java class libraries

d)

Servlets execute within the address space of web server, platform independent and uses the functionality of java class libraries

4.

The life cycle of a servlet is managed by

a)

servlet context

b)

servlet container

c)

the supporting protocol (such as http or https)

d)

All of the above

5.

Which method shows the client what server is receiving?

a)

doGet

b)

doOption

c)

doOption

d)

doPost

6.

Which of the following is the default scope in Spring?

a)

prototype

b)

singleton

c)

request

d)

session

7.

The Spring container gets its instructions on what objects to instantiate, configure, and assemble by reading the

a)

source code

b)

spring integration data

c)

configuration metadata

d)

configuration text file

8.

The objects that form the backbone of your application and that are managed by the Spring container are called

a)

context

b)

application

c)

metadata

d)

bean

9.

Which of the following statement is/are correct?

a)

Spring is an open source framework.

b)

Spring is heavyweight.

c)

Spring supports tight coupling

d)

Spring helps in reducing boiler-plate code

10.

Spring Dependency Injection is useful because it makes your code:

a)

simple

b)

easier to understand

c)

easier to test

d)

All of the above

11.

Abbreviate the term POJO?

a)

Plain Old Java Object

b)

Performance Old Java Object

c)

Performance Optimize Java Object

d)

None of the above

12.

Struts supports which of these model components?

a)

JavaBeans

b)

EJB

c)

CORBA

d)

All Mentioned above

13.

Abbreviate the term OGNL?

a)

Object-Goal Navigation Language

b)

Object- Graph Navigation Language

c)

Oriented-Graph Navigation Language

d)

None of the above

14.

Which of these simplifies an Object Relational Mapping tool?

a)

Data creation

b)

Data manipulation

c)

Data access

d)

All mentioned above

15.

Which of the following are most common configuration methods of Hibernate Configuration

a)

XML Configuration hibernate.cfg.xml

b)

Mapping files and XML Configuration hibernate.cfg.xml

c)

web.config

d)

http.conf

16.

Which of the following data type is not supported in Python?

a)

· String

b)

Numbers

c)

· Slice

d)

· List

17.

Which statement is correct?

a)

List is immutable && Tuple is mutable

b)

· List is mutable && Tuple is immutable

c)

· Both are Mutable.

d)

· Both are Immutable

18.

Which keyword is used for function?

a)

define

b)

fun

c)

def

d)

function

19.

If return statement is not used inside the function, the function will return

a)

None

b)

0

c)

Null

d)

Arbitary value

20.

In which part of memory does the system stores the parameter and local variables of funtion call?.

a)

heap

b)

stack

c)

Uninitialized data segment

d)

None of the above

21.

What is the Django shortcut method to more easily render an html response?

a)

render_to_html

b)

render_to_response

c)

response_render

d)

render

22.

By using django.contrib.humanize, you can use the following filter in your template to display the number 3 as three.

a)

apnumber

b)

intcomma

c)

intword

d)

ordinal

23.

How do you concatenate two QuerySets into one list?

a)

result = list(query_set_1 | query_set_2)

b)

from itertools import chain

result = list(chain(query_set_1, query_set_2))

c)

from django.db.models import Q result = Q(query_set_1) | Q(query_set_1)

d)

result = query_set_1 + query_set_2

24.

What is the Django command to start a new app named ‘users’ in an existing project?

a)

manage.py –newapp users

b)

manage.py newapp users

c)

manage.py –startapp users

d)

manage.py startapp users

25.

What are the features available in Django web framework?

a)

Admin Interface (CRUD)

b)

Templating

c)

Form handling

d)

All of the above