You are on page 1of 129

P8 : JAS

Question 1: Answer - A

Options: a.

b.
c.

d.
Question 2:
Answer - B

a.

b.

c.

d.
Question 3
Answer - B

a.

b.
c.

d.
Question 4.
Answer - A

Options:

a.

b.

c.

d.
Answer - D
Question 5.

Options:

a.

b.

c.

d.
Question 6 Answer - C

Options:

a.

b.

c.

d.
Question 7 Answer - C

Options:

a.

b.

c.

d.
Question 8 Answer - B

Options:

a.

b.
c.

d.

Question 9 Answer - B

Options:

a.
b.

c.

d.
Answer - B
Question 10

Options:

a.

b.

c.

d.
P9 : Lisa Pt1

P: 11 Lisa Pt3
P:10 Lisa Pt2
1

OPTION B

OPTION B
3

OPTION B

OPTION D
4

4
5

OPTION A

OPTION A AND D
6

7
7

OPTION C

7
8

8
8

8
8

THIS OPTION IS CORRECT

9
9

OPTION A
9

S
10

OPTION A AND C

10
10

10
Considering Requirement 2, Anne needs to write a handler method in the controller
Option:A
mapped to the URL like /products/Tables that can return the products ….
Help Anne to choose the most appropriate method .
Assume CatalogueListWrapper is coded already and the method name in controller is
listProductsByCategory

p-11: XYZ corporation has a proposal to develop web based grievance management system to improve quality of life if citizens

1) Lisa wants to use jsp as a view. There are various view resolvers available in the spring framework. Help Lisa to configure correct view resolver to
render JSP Views

Options : A,C

2) AS per reuirement1 lisa implemented the validation functionality in the controller and jsp page. Help lisa to externalize validation messages in separate
property files.

Options: reloaded resource bundle message source

3) Lisa is creating the complaint form. She wants to pre-populate the list of department in a dropdown box that citizen can choose desired department to
make complaint. Help Lisa to populate the list of it in a dropdown box.

Options: Prepopultar or autopapulate ante dispatcher servlet unthndi and autowire kuda chepparu modelattribite undali

4) As per reuirement 2, the controller reuest handler method given below returnsfrom database and then redirects to viewcomplaint.jsp page with model
attribute.
@ReuestMapping(value=”/componentList”, method=ReuestMethod GET)

Options: idhi @ “exceptionhandler” undali has binding errors undali and autowire adigaru so “@modelattribute @autowire” undali options lo

5) Lisa is creating ComplaintEntity for this application. One citizen can make one complaint per department. In complaintEntity, CitizenId will be referred
from citizenEntity whereas deptid will be refered to DepartmentEntity

Options: Idhi options loney citizen I'd ki citizen entity and department I'd ki department entity match avvali konni options lo swap chesestar avi wrong

6) As per requirement1 Lisa is creating controller method to save the complaint raised by citizen. It is also reuired to validate the form fields and in case of
validationffailure display make complaint.jsp page with the success message as mentioned in requirement1 1.Help Lisa to identify the appropriate
controller mmethod 2.Help Lisa to identify the correct JSP snippet to display all the validation error message at the bottom of thre page.
Options: at the bottom of page valiadtaion ante css=* undali and validation ani adigaru so @validation undali adi select cheyyi

7) Lisa decided to use Spring DataJPA for database layer of code. She is trying to configure spring data jpa. Help her to configure the same.

Options: i think I kept c option no need to configure spring jpa ani Kaani I'm not sure whether it is right or wrong ani

8) As per requirement1 whenever a citizen makes a complaint citizen and complaint details gets the databasetable. As per requirement ,Citizens can also
check the status of the complaint. Lisa decided to use Spring Data Jpa with hibernate to perform database operation.

Options: choose 2 options ante idi nenu anni options select chesanu idi naku doubt vacchindi I think they gave 0.5 if u choose all

9) Whenever exception occur in the application stack trace gets deployed on web pagedeal with this problem so that user friendly messages will be

Options: Idhi exception he same exception handler undali with that msg which shown in que

10) As per the reuirement4 create a rest end point that returns list of complaints in the form of JSON help Lisa to choose suitable code for the same

Options: Choose 3 option ani undi first 3 select chesanu nenu


A

You might also like