Dev Cafe

Tuesday, July 25, 2006

Few Interview Questions.

I just got a mail from one of the job consultant. Which contained a Job opening and a set of screening questions. This is the first of such kind I have got till date. In IT field, I know when people seeking job in thier friend or friend's friend organzations enquiring about the kind of questions and area of concenration for the current opening. But consultant listing out the list of screening questions, reminded me of one of Srini's blog " Trespassers will be recruited". Any way, the good thing in that mail was the questions. I thought I would post it with answers for them.

1. True or False - JSP can be precompiled into a jar file
Answer – True.

2. In a web application protected resources can be differentiated from unprotected ones at deploy time by
a. defining servlet mapping
b. setting security constraint
c. with use of filters
d. all of the above
e. none of the above
Answer – B – Check this URL for more information.

3. Servlet Filters are designed based on which J2EE pattern
a. Business Delegate
b. Front Controller
c. Intercepting Filter
d. Fits into all above patterns
Answer c. Intercepting filter

4. Use of persistence layer (such as Hibernate) is most appropriate betweena. Business delegate and data access objectb. Data access object and databasec. Can be used only directly with a databased. Can be used only instead of a database
Answer b. Data access object and database

5. Link table in a database schema is necessary to
a. resolve one to many relations
b. achieve 3rd normal form
c. resolve many to many
d. all of the above
Answer d. All of the above

6. Does garbage collector directly impact a heap or a stack?
Answer - Heap URL

7. Uncaught errors cause compile errors – True and False
Answer - False - Errors are caused at Runtime.

8. Which of these data structures does not extend collection interface
a. List
b. Map
c. Set
d. None of the above
Answer B.Map

9. These types of instance fields are not serialized
a. volatile
b. static
c. final
d. transient
Answer d.transient

0 Comments:

Post a Comment

<< Home