Thursday, December 27, 2007

J2EE Interview Questions NEW

J2EE Interview Questions

Question: What do you understand by a J2EE module?
Answer: A J2EE module is a software unit that consists of one or more J2EE components of the same container type along with one deployment descriptor of that type. J2EE specification defines four types of modules:
a) EJB
b) Web
c) application client and
d) resource adapter
   
In the J2EE applications modules can be deployed as stand-alone units. Modules can also be assembled into J2EE applications
   

Question: Tell me something about J2EE component?
Answer: J2EE component is a self-contained functional software unit supported by a container and configurable at deployment time. The J2EE specification defines the following J2EE components:

  • Application clients and applets are components that run on the client.
  • Java servlet and JavaServer Pages (JSP) technology components are Web components that run on the server.
  • Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. J2EE components are written in the Java programming language and are compiled in the same way as any program in the language. The difference between J2EE components and "standard" Java classes is that J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server or client container.

    Source: J2EE v1.4 Glossary
        

Question: What are the contents of web module?
Answer: A web module may contain:
a) JSP files
b) Java classes
c) gif and html files and 
d) web component deployment descriptors
  

Question: Differentiate between .ear,  .jar and .war files.
Answer: These files are simply zipped file using java jar tool. These files are created for different purposes. Here is the description of these files:
.jar files: These files are with the .jar extenstion. The .jar files contains the libraries, resources and accessories files like property files.
.war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.
.ear files: The .ear file contains the EJB modules of the application.
  

Question: What is the difference between Session Bean and Entity Bean?
Answer:  
Session Bean: Session is one of the EJBs and it represents a single client inside the Application Server. Stateless session is easy to develop and its efficient. As compare to entity beans session beans require few server resources.

A session bean is similar to an interactive session and is not shared; it can have only one client, in the same way that an interactive session can have only one user. A session bean is not persistent and it is destroyed once the session terminates. 
  
Entity Bean: An entity bean represents persistent global data from the database. Entity beans data are stored into database.
    

Question: Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
Answer: The J2EE platform consists of multi-tiered distributed application model. J2EE applications allows the developers to design and implement the business logic into components according to business requirement. J2EE architecture allows the development of multi-tired applications and the developed applications can be installed on different machines depending on the tier in the multi-tiered J2EE environment . The J2EE application parts are:

a) Client-tier components run on the client machine.
b) Web-tier components run on the J2EE server.
c) Business-tier components run on the J2EE server and the
d) Enterprise information system (EIS)-tier software runs on the EIS servers
    

Question: Why do understand by a container?
Answer: Normally, thin-client multi-tiered applications are hard to write because they involve many lines of intricate code to handle transaction and state management, multithreading, resource pooling, and other complex low-level details. The component-based and platform-independent J2EE architecture makes J2EE applications easy to write because business logic is organized into reusable components. In addition, the J2EE server provides underlying services in the form of a container for every component type. Because you do not have to develop these services yourself, you are free to concentrate on solving the business problem at hand (Source: http://java.sun.com/j2ee/1.3/docs/tutorial/doc/Overview4.html ). 

In short containers are the interface between a component and the low-level platform specific functionality that supports the component. The application like Web, enterprise bean, or application client component must be assembled and deployed on the J2EE container before
  

Question: What are the services provided by a container?
Answer: The services provided by container are as follows:
a) Transaction management for the bean
b) Security for the bean
c) Persistence of the bean
d) Remote access to the bean
e) Lifecycle management of the bean
f) Database-connection pooling
g) Instance pooling for the bean 
   

Question: What are types of J2EE clients?
Answer: J2EE clients are the software that access the services components installed on the J2EE container. Following are the J2EE clients:
a) Applets
b) Java-Web Start clients
c) Wireless clients
d) Web applications
  

New jobs 29th Dec 2007 - Bangalore

Information: Verified *

Walkin Interview Details:

Date: 29th Dec 2007
Time: Between 9:00 AM – 1:00 PM
Venue:
I-Flex Solutions
I-Flex Park, C/o Embassy Business Park,
CV Raman Nagar, Bangalore- 560 093
Ph: 66593000
Contact: Prabhakar / Vikram

Software Developer –

 
 

Skill:

Strong Oracle PL/SQL with Business Objects

 
 

Exp :2 to 4 yrs

 
 

Work Location – Bangalore.

You need to carry the followingdocuments:

 
 

    * Hard Copy Of Your Resume
    * One Passport size Photograph
    * Last 2 months Payslip


 

Latest Walkin Interview @ L & T Infotech in Chennai on 27th, 28th, 31st, 2nd, 3rd and 4th Jan 08

Walkin Interview @ L & T Infotech in Chennai on 27th, 28th, 31st, 2nd, 3rd and 4th Jan 08


Information:Non - Verified*

Walkin Interview Details:

Date: 27th, 28th, 31st, 2nd, 3rd and 4th Jan 08
Time: 9 AM to 4 PM
Venue:
L & T Infotech Park
Mount poonamalai Road,
Manapakkam,
Chennai-89
Contact: Raja R


 

We are looking for Documentum Professional for Our Chennai Development Center


 

Skills: Documentum, Web/client server app, 4i/5, DCM, WP, Team Mgr, Doc Developer, XSL, XSLT, DTD, Schemas


 

Experience: 3 to 6 Years


 

Interview Process:

Technical Test (Only for the Team Member)
2. HR Round
3. Technical Interview (Oral)
4. Final Level Interview (Business Unit Head)


 

Documents:
* 1 copy of resume
* 1 passport size photo graph
* latest pay slip


 

For technically short listed candidate, Salary slip and photograph are mandatory documents to get the offer letter on the same day.


 


Want a quick revision? Quickly go thorugh the
Important interview questions
(New)


*Non-Verified Walkin: Listing not verified by mywalkin team. User needs to verify the details at his end.

Top Java Interview Questions New

Q:

What is the difference between Exception & RuntimeException in Java?

A:

RuntimeException is a child class of Exception class. You can see the details here. This is one of the many child classes of Exception class. RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine. A method is not required to declare in its throws clause any subclasses of RuntimeException that might be thrown during the execution of the method but not caught.

The hierchy is

java.lang.Object

---java.lang.Throwable

-------java.lang.Exception

-------------java.lang.RuntimeException

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/RuntimeException.html
.


 

Q:

Is it possible to use try-catch in the finally block of java

A:

Yes it is possible to use try catch inside the finally block of java. As a matter of fact it is a good practice to do so as the methods called in finally block may throw an exception. Importance: Highest
.


 

Q:

What is the difference between ApplicationServer and webserver?

A:

Web Server is limited to Web Technology and more over it can't deploy the entriprise applications. So inorder to deploy entriprise applications(EAR Files), we need Application Server. And More Over Web server supports all kinds of protocols not only http.It can support FTP and any, provided the concern jar files must be placed in the lib folder of the Web Server.


 

Q:

Write a recursive programme to reverse a string i.e given an input "catch" the output should be "hctac"

A:

 public String reverse(String str)

 {

 if ((null == str) || (str.length() <= 1))

 {

 return str; /*End */

 }

 return reverse(str.substring(1)) + str.charAt(0); /* Recursion */
}
.


 

Q:

What's the difference between the methods sleep() and wait()

A:

The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.
.


 

Q:

Can you call one constructor from another if a class has multiple constructors

A:

Yes. Use this() syntax
.


 

Q:

What would you use to compare two String variables - the operator == or the method equals()?

A:

I'd use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.
.


 

Q:

How can a subclass call a method or a constructor defined in a superclass?

A:

To call a method use the following syntax: super.myMethod();
To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor
.


 

Q:

What is the difference between an Interface and an Abstract class?

A:

An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract metho

TCS - 29th Dec 2007 - Hyderabad - SQL Developer

We are currently looking for Team Members / Team Leaders / Project Leaders / Project Managers 
  Skills  :   Microsoft Technologies:
 
 SQL Developer (3 to 5 years of experience):
 
Experience in SQL Server programming, DTS, Stored procedures, Triggers, Query Analyzer, Performance tuning Database Designing (Table and views developing)

New Top Java interview questions

  1. How do I instantiate a bean whose constructor accepts parameters using the useBean tag?
  2. Replacing Characters in a String?
  3. Searching a String?
  4. Connecting to a Database and Strings Handling?
  5. What is a transient variable?
  6. What is the difference between Serializalble and Externalizable interface?
  7. How many methods in the Externalizable interface?
  8. How many methods in the Serializable interface?
  9. How to make a class or a bean serializable?
  10. What is the serialization?
  11. What are synchronized methods and synchronized statements?
  12. What is synchronization and why is it important?
  13. What is the purpose of finalization?
  14. What classes of exceptions may be caught by a catch clause?
  15. What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
  16. What happens when a thread cannot acquire a lock on an object?
  17. What restrictions are placed on method overriding?
  18. What restrictions are placed on method overloading?
  19. How does multithreading take place on a computer with a single CPU?
  20. How is it possible for two String objects with identical values not to be equal under the == operator?
  21. How are this() and super() used with constructors?
  22. What class allows you to read objects directly from a stream?
  23. What is the ResourceBundle class?
  24. What interface must an object implement before it can be written to a stream as an object?
  25. What is Serialization and deserialization?
  26. What are the Object and Class classes used for?
  27. Can you write Java code for declaration of multiple inheritance in Java ?
  28. What do you mean by multiple inheritance in C++ ?
  29. Write the Java code to declare any constant (say gravitational constant) and to get its value.
  30. What are the disadvantages of using threads?
  31. Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level.
  32. What do you mean by virtual methods?
  33. What do you mean by static methods?
  34. What do mean by polymorphism, inheritance, encapsulation?
  35. What are the advantages of OOPL?
  36. How many methods do u implement if implement the Serializable Interface?
  37. Are there any other 'marker' interfaces?
  38. What is the difference between instanceof and isInstance?
  39. Why do you create interfaces, and when MUST you use one?
  40. What's the difference between the == operator and the equals() method? What test does Object.equals() use, and why?
  41. Discuss the differences between creating a new class, extending a class and implementing an interface; and when each would be appropriate.
  42. Given a text file, input.txt, provide the statement required
  43. Name four methods every Java class will have.
  44. What does the "abstract" keyword mean in front of a method? A class?
  45. Does Java have destructors?
  46. Are constructors inherited? Can a subclass call the parent's class constructor? When?
  47. What synchronization constructs does Java provide? How do they work?
  48. Why "bytecode"? Can you reverse-engineer the code from bytecode?
  49. Does Java have "goto"?
  50. What does the "final" keyword mean in front of a variable? A method? A class?
  51. Access specifiers: "public", "protected", "private", nothing?
  52. What is JDBC? Describe the steps needed to execute a SQL query using JDBC.
  53. What is RMI?
  54. What are native methods? How do you use them?
  55. What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization?
  56. How many different types of JDBC drivers are present? Discuss them.
  57. What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
  58. Describe java's security model.
  59. Java says "write once, run anywhere". What are some ways this isn't quite true?
  60. What is the difference between an Applet and an Application?
  61. How can you force all derived classes to implement a method present in the base class?
  62. What are abstract classes, abstract methods?
  63. What's the difference between == and equals method?
  64. Describe, in general, how java's garbage collector works?
  65. What is the difference between StringBuffer and String class?
  66. How can you achieve Multiple Inheritance in Java?
  67. What are interfaces?
  68. What are the main differences between Java and C++?
  69. In Java, You can create a String object as: String str = "abc"; & String str = new String("abc"); Why cant a button object be created as : Button bt = "abc" Why is it compulsory to create a button object as: Button bt = new Button("abc"); Why is this not compulsory in String's case?
  70. Why are Java ARchive (JAR) files important?
  71. What is it reflection (introspection) ? Why is reflection possible in the Java language?
  72. How to make application thread-safe ?
  73. What is it object serialization?
  74. What do you know about networking support in Java?
  75. What you know about Corba implementation in Java?
  76. What is Java Beans?
  77. Compare SWING components to standard AWT.
  78. What is layout manager ? How does it work?
  79. What is the purpose of the toolkit in the Abstract Window Toolkit (AWT)? How does AWT work?
  80. What are the differences between Java & C++ in terms of its features?
  81. Is the ternary operator written x : y ? z or x ? y : z ?
  82. What is the List interface?
  83. What is the difference between an if statement and a switch statement?
  84. What are the problems faced by Java programmers who don't use layoutmanagers?
  85. What are the two basic ways in which classes that can be run as threads may be defined?
  86. What are synchronized methods and synchronized statements?
  87. Which Component subclass is used for drawing and painting?
  88. What methods are used to get and set the text label displayed by a Buttonobject?
  89. What method must be implemented by all threads?
  90. When is an object subject to garbage collection?
  91. Can an unreachable object become reachable again?
  92. How does a try statement determine which catch clause should be used tohandle an exception?
  93. What are the Object and Class classes used for?
  94. What modifiers may be used with a top-level class?
  95. What is a Java package and how is it used?
  96. What is the purpose of a statement block?
  97. What is the difference between the prefix and postfix forms of the ++ operator?
  98. Can try statements be nested?
  99. To what value is a variable of the boolean type automatically initialized?

What is the difference between a public and a non-public class?

Tuesday, December 25, 2007

INFOSYS QUESTIONS Papers@ updated

******************************************************************************

THERE WERE THREE MORE QUESTION WHICH I THINK ARE NOT WORTH OF EVEN GIVING A TRY. CUZ THEY WERE SO EASY THAT MY LIL BROTHER(HE'S IN 8TH) SOLVED THEM UP FOR ME.

(THOUGH HE SOLVED THEM BUT ACTUAALY I DONT REMEBER THOSE QUESTION)(L0L)(SORRY BUT THEN THEY WERE VERY EASY. TWO WAS ON MATHS AND OTHER WAS ON LOGIC…OR COMMON SENSE I SHOULD SAY.)
******************************************************************************

The greatest news is I got the call from Infosys and i am joining Infosys on 17th November 2003
and i owed it all to this group. thanks a lot.

I mailed my resume several times to infosys but they never gave me the call. then i read a tip posted on this Group as how to send resume to infosys. Write only Namne,qualification, marks of 1oth 12th and Final year BE. and nothing else.
Then i mailed and then i got the call within 5 days for test.
then i thought i will postpone the test for some time but then i again read something about
Infosys test on this group. It said it is damn easy. ONce u got the call for test and then u have done 70 percent of the work. U will surely get into Infosys if u have something. i mean some common sence and logic. SO i decided to take a try. I was nervous as if i was rejected then i will next have my chance after 9 months. But then i decided to go for it.

Thanks to this group.
Now only thing i have to do is work hard in company to get a -*>A

Vasu went through a job interview and said:

INFOSYS QUESTIONS
___________________________________________________________________________________

Question # 1
————-
Analytical question.

6 poets, liking and disliking of poetry.
E.g.: All who like the poetry of Frost do not like
the poetry of Coolidge. Some who like the poetry
of Dunne like the poetry of Earl.

4 related questions are given on these conditions.

___________________________________________________________________________________

Question # 2
————-
Analytical question.

4 people, 4 products.
E.g.: Vickie will not get a tie unless George buys a scarf.
Remmie will not get a hat unless Jack buys gloves.

Around 12 statements like this.

Who will buy what?

___________________________________________________________________________________

Question # 3
————-
13 kigs and 6 libs can produce 510 tors in 10 hrs,
8 kigs and 14 libs can produce 484 tors in 12 hrs.

Find the rate of production of tors for kigs and libs.
Express the answer in tors/hr.

___________________________________________________________________________________

Question # 4
————-

Find the 3 digit no. whose last digit is the square
root of the first digit and second digit is the sum of
the other two digits.

___________________________________________________________________________________

Question # 5
————-

Meera was playing with her brother using 55 blocks.
She gets bored playing and starts arranging the blocks
such that the no. of blocks in each row is one less
than that in the lower row. Find how many were there
in the bottom most row?

___________________________________________________________________________________

Question # 6
————-

Rahul took part in a cycling game with many others
in a circular closed circuit. After pedaling for
several minutes, he found that 1/5th of the cyclists
ahead of him and 5/6th of the cyclists behind him
together formed the total no. of participants. How
many were participating in the race?

___________________________________________________________________________________

Question # 7
————-

Age sum involving 3 people. Similar to sum no. 127
in Shakuntala Devi but very much tougher than that
sum.

___________________________________________________________________________________

Question # 8
————-

Tom wants to catch a hare. He is standing 250 yards
south from the hare. The hare starts moving due east.
Tom, instead of moving in the northeast direction,
moves in such a way that at every instant, he is going
towards the hare. If speed of tom is one and one-third
times that of the hare, find the distance each
traveled before he caught the hare.

___________________________________________________________________________________

Question # 9
————-

Two people are playing with a pair of dies. Instead
of numbers, the dies have different colors on their
sides. The first person wins if the same color appears
on both the dies and the second person wins if the
colors are different. The odds of their winning are
equal. If the first dice has 5 red sides and 1 blue
side, find the color(s) on the second one.

___________________________________________________________________________________

Question # 10
————-

A company's director said during the board
meeting: " The company's income from roads will be
sufficient to pay 6% of the entire stock issue, but
since we are paying 7.5% interest on the preferred
stock of Rs.4, 000,000 we are able to pay only 5% of
the common stock". Find the value of the common stock.

Amir went through a job interview and said:

1)At 6′o clock clock ticks 6 times. The time between first and
last ticks was 30sec. How much time it takes at 12′o clock.

Ans. 66 sec. 2 marks.

2)Three friends divided some bullets equally. After all of them
shot 4 bullets the total no.of remaining bullets is equal to that of
one has after division. Find the original number divided.

Ans. x x x
x-4 x-4 x-4
3x-12 = x
x= 6
ans is 18 2 marks

3)A ship went on a voyage after 180 miles a plane statrted with 10 times
speed that of the ship. Find the distance when they meet from
starting point.

Ans. 180 + (x/10) = x
x = 20
ans is 180+20=200miles. 2 marks

4) Fill the empty slots.
Three FOOTBALL teams are there. Given below the list of maches.

played won lost draw Goals for Goals against
A 2 2 *0 *0 *7 1
B 2 *0 *1 1 2 4
C 2 *0 *1 *1 3 7

the slots with stars are answers. 4 marks
BC drew with 2-2
A won on B by 2-0
a won on C by 5-1
( YOU HAVE TO FILL THE BLANKS AT APPROPRIATE STAR SYMBOLS.)`
5) There are 3 societies a,b,c. a lent tractors to b and c as many
as they had. After some time b gave as many tractors to a and c
as many as they have. After sometime c did the same thing.
At the end of this transaction each one of them had 24.
Find the tractors each orginally had.

Ans a had 39, b had 21, c had 12, 4 marks

6) There N stations on a railroad. After adding x stations 46 additional
tickets have to be printed. Find N and X.

Ans. let N(N-1) = t;
(N+x)(N+x-1) = t+46;
trail and error method x=2 and N=11 4 marks

7)Given that April 1 is tuesday. a,b,c are 3 persons told that their
farewell party was on
a - may 8, thursday
b - may 10,tuesday
c - june 8, friday
Out of a,b,c one is only correct one of the regarding month,day,date.
Other told two correct and the third person told all wrong.What is
correct date,month,day. 5 marks
(ans may be MAY 10 SUNDAY. check once again)
8)There are 4 parties. df,gs,dl(depositloss),ew ran for a contest.
Anup,Sujit,John made the following statements regarding results.
Anup said either df or ew will definitely win
sujit said he is confident that df will not win
John said he is confident that neither ew nor dl will win
the result has come. only one of the above three has made a correct
statement. Who has made the correct statement and who has won
the contest. 5 marks.
(ans DL )
9)Five people a,b,c,d,e are related to each other. Four of them make
one true statement each as follows.
i) b is my father's brother. (ans. d said this)
ii)e is my mother-in-law. ( b )
iii)c is my son-in-law's brother. ( e )
iv)a is my brother's wife. (c)

10 marks.

10) All members of d are also members of a
All " e " d
all " c " both a and b
not all " a are members of d
not all " d " e
Some questions on these conditions.(5questions 5 marks)
11)
boys are allowed to watch football at c.v.Raman auditorium subjected to
conditions.
i)the boy over age 16 can wear overcoat
ii)no boy over age 15 can wear cap
iii)to watch the football either he has to wear overcoat or cap
or both
iv) a boy with an umberella or above 16 or both cannot wear sweater.
v) boys must either not watch football or wear sweater.

What is the appearence of the boy who is watching football.
Try to solve this question…………….

YOU HAVE TO DO SOME ROUGH WORK FOR EACH QUESTION . IT WILL
CARRY SOME GRACE MARKS.

Praveen went through a job interview and said:

Logical Thinking Test—Time: 1 hour
—Total Marks: 50(All questions do not carry equal marks)

INSTRUCTIONS

* Please do not write/mark on the question paper.
* Read the questions carefully. Work your answers carefully and as
rapidly as possible.
* Do not spend too much time on questions that seem difficult for you.
* If time permits go back to the ones you have left out.
* Answer sheets have been provided to you separately.
* Use the first sheet to write your answers and use the remaining sheets for the detailed working.
* On completion, please put your answer sheet along with the working sheets, inside the question paper and hand them back to us.
* There is no negative marking.
* Do not turn the page until you are told to do so.

(I remember only 9 questions among 10 qs)

1. Ram went to market for selling his melons. He first sells his half of total melon and half a melon. Then he sells half of the remaining melon and half a melon. Then he saw that he has only one melon in his basket. How many melons he had? Ans–7
3 marks

2. Some body said me that now his son?s age is the only reverse of his age?s digit.
A year ago his age was two times of his son?s age. Can you tell me the age of the father and his son.? Ans-73,37. 4 marks

3. One rooster of 5 pound, one hen of 3 pound and 3 checks of 1 pound. How can you
arrange these as 100 type of birds of 100 pounds? 2×3=6 marks
Solution:– rooster hen checks
a) 8 11 81 ( 8×5=40 p;11×3=33 p;81/3=27 p)
b) 12 4 84 ( 12×5=60 p;4×3=12 p;84/3=28 p)
c)

4. In a school there are 500 students. One day one fourth of the students are whole number, then one fifth, one sixth, one seventh are present in the school. How many students are present in that day? Ans-420(L.C.M of 4,5,6,7) 5 marks

5. There are 12 black mice, 1 white mouse. If one cat wants every times to eat the thirteenth no. white mouse then from where he should start? 4 marks
Ans?form white mouse.

6. In a class , there are five students A,B,C,D,E . In an exam they saw that between them one is 1st ,one is 2nd ,one is 3rd ,one is 4th,one is 5th. Then they said the following arguments: 6 marks

A : ? I am not the last and C also not the worst students?
B : ? C is third?.
C : ? A stands after E?.
D : ? B is the best student among all?
E : ? A is the worst student?

Among these the worst students tells the truth. And the best two students tells lie.
Then find the sequence of the students according to their positions.

Ans?B E A C D.
1 2 3 4 5
7. There are four friends Jack, Jim, Seth, and Robert. They are stock broker, doctor, lawyer and musician but not sequentially as their name. They have also cars of one each from Ferrari, Cardilac, Covert and Porches. The stock broker said that the lawyer and jack are the owner of Cardilac and Covert. Musician don?t like these two, he has a fascination of Porches.Seth said that the Doctor don?t like Cardilac.The stock broker likes Ferrari. Find their occupation and the name of their cars?
8 marks
Solution: -(use tick mark where it matches)

Doctor
Lawyer
Stockbroker
Musician
Cardilac
Covert
Ferrari
Porsches
Jack

8. One tea seller sells tea of one type in 6Rs/-per gm and other in 3Rs/- per gm. He mixed those teas of total 40 gms and sells 5Rs/- per gm and he gains 33 and1/3 percent. What kind of each tea he mixed? Ans-10 gm,30 gm (check it ) 4 marks

9. One farmer cultivates beans, corns, kale, squash and wheat in a year. But he follows the following condition:
In one year if he ploughs corns then must plough beans. He repeats only one in two succession in a year. He plough kale in one session only. Then what would be the possibilities of his cultivation:
A : beans,corns,kale ; corn,wheat,squash .
B : corns,squash,kale ; corn,beans,wheat . 6 marks
C : beans,squash,kale ; corn,beans,wheat .
D : beans,wheat,kale ; corn,beans,squash .
E : wheat,kale,corns ; beans, corns, squash .

Solution: - The ans is (D). (**note :he can plough bean without corns but can?t
plough corns without beans and the repetitions is only one and that is beans )

10.There was arithmetic problem I can?t remember that but huge calculation was there 4 marks

HCL -DBMS,Networking,Java,C++

General technical knowledge covering several branches.
( 1 mark for correct -1/4 for wrong )
Topics -DBMS (2 Queries),Networking,Java(1),C++(2),Architecture etc.

1. Semaphores are used in
i) process synchronisation.
ii) dead locks
2. Context switching is used in
a) system call
b) printing instructions
c) floating point instructions
d) all of the above
3. Virtual address to physical address characteresrtics is done by ?
4. What is common to both C and JAVA ?
5. Which feature in ANSI C is not in JAVA ?
6. Piggy backing technique is used in
a) flow control b) acknowledgement c) sequencing
7. Address on internet are
a) unique for particular domain
b) unique for a particular sub-node list
c) unique countrywide
d) unique in a network area
8. Terminal evaluation is in which OSI layer ?
9. No. of bits in one megabite ?
10. The variable pass in function is done by
a) By value.
b) By reference.
c) By value and reference both.
————————————————————————
Section 2:
**********
C fundamentals
( 1 mark for correct -1/4 for wrong )

Example:
1. Why are arguments passed from right to left in a C function?
& other general questions based on precedence and associativity of
operators,pointers,recursion etc.
2. a=(10,15) , b=10,15
what will be the value of a and b in ANSI C ?
3.

———————————————————————–
Section 3 :
***********
Program Analysis.
( 2 mark for correct -1 for wrong )

In this section small blocks of code were given,for which
an account of errors was to be given and for the codes not
containing any error the output was to be given.

What will be the output of the following programs ?

1. main()
{
int i,a[10];

i = 5;
a[5] = 10;
a[6] = 9;
a[7] = 8;
a[8] = 0;
a[i] = i++;
printf("%d %d",a[5],a[6]);
}
2. main()
{
int x=10,y=15,z=16;
x=y==z;
printf("%d",x);
}
3. #define x 1+2
main()
{
printf("%d %d",x/x,x*3);
}
4. main()
{
int b=7,a;
a=b>1 : b>4 ? b>>1 : b
printf("%d ", a);
}
5. main()
{
int x=0,*p;
p=&x;
x++;p++;
printf("%d %d",x,p);
}
6. main()
{
int i=6;
switch (i)
{
default: i+=2;
case 4: i=i-1;
case 5: i+=5;
break;
}
printf("%d",i);
}
7. main()
{
char *p;
p=malloc(10);
free(p);
printf("%d",p);
}
8. Which of the following program is correct for strcpy() ? where a1
copy its contents in a2
a) strcpy(ichar *a1,char *a2) b) strcpy(char *a1,char *a2)
{ {
while (*a1) while (*a2=*a1)
*a2++=*a1++; {
} a2++;a1++;
}
}
9. Find if there is any error in the program below, correct it if there eny.

main()
{
char **a;
*a[0]=malloc(10);
*a[4]=malloc(10);
strcpy(*a[0],"hello");
strcpy(*a[4],"world");
printf("%s\t%s\n",*a[0],*a[4]);
}

————————————————————————
Section 4 :
***********
Analytical reasoning & Quantitative ability.
( 1 mark for correct -1/4 for wrong )

The reasoning part consisted of some puzzles & the quantitative ability
part consisted of questions based on topics such as ratio & proporiton,
profit & loss,simple interest,mensuration etc. GRE type questions.

1. If A B C D E
* 4
———-
E D C B A
Then value of E is ? (6/4/8/1).

2. Hex is converted into radix then can be converted to ?
3. If x can do a work in 5 hrs. ,x and y together in 2 hrs. then what
time would y alone take to do that work ?
4. 10 to the power 2 ( 10 to the power 8 + 10 power 8)/10 power 4 = ?
5. If x earn twice as much as y , z earn Rs.3 more than half as much as
y. Then there increasing order of earning is ?
6. If a=2 , b=4 and c=5 then
(a+b)/c - c/(a+b) = ?
————————————————————————

df

went through a job interview and said:

Clearing aps..is easy..just go thru the old papers thats enough..
Be prepared in your area of interst and have a decent hr interview..
That should take u thru this concern

Srividhya went through a job interview and said:

The paper consists of 4 sections.
1.Computer concepts -15 -1 mark -1/4 -ve
2.C programming -20 -1 mark -1/4 -ve
3.Analysing the programs -10 -2marks - 1 -ve
4.Aptitude -20 -1 mark -1/4 -ve.

I remember only some of questions.

1. How many segment registers are there in the 8086 processor?
a) 4 b) 6 c) 8 d) none
Ans: a

2. What is the addressing mode of this instruction MOV AL, [BX];
a) direct addressing mode
b) register indirect addressing mode
ANS: b I am not sure of it.

3. What is the type of file system used in the CD ROM?
a) VFAT B)

4) About CPU I think but answer is DMA.

5) If we double the clock speed, then?
a) It increases the speed of the processor b) It increases the speed of the system bus c) both of the above D) None

6) Data recovery is done in which layer?
a) physical b) datalink c) network d) transport

7) What is thrashing?
ANS: swapping in and out the pages frequently from memory.

By using 3 nodes how many trees can be formed?
ANS:5

9) They give one tree, and ask the post order traversal for that tree?
ANS:C

10) Page cannibalation is?
ANS:C

Aptitude section:

1) They give one scenario and ask questions on that. that is easy. Those are 5 questions.

2) They ask 2 questions in English, I didn't answer those ones. They are - Find the odd one?

3) They give 2 questions on missing digits. They r matrix type, I didn't remember the questions, But I know answers.
for first one 8. For second one 28 is the answer.

4)Two persons start walking from the same place in opposite directions. After walking for 4 mts, both of them take the left and walk for another 3 mts. Then
what is the distance b/w them?
Ans:10 mt.

5)One person start from his home towards college which is 53 km far away. Another person started from college towards home after an hour. the speed of first one is 4kmph and the second one is 3 kmph. Then, what is the distance from home to their meeting point?
AND:21 km.

6)3 machines can complete the work in 4,5, and 6 hours respectively. due to power failures they did the work alternatively. Then what is time taken to complete the work?
ANS:9/20

7)Two persons take the pair of dies and throws them. If 12 appers first one wins, If two consecutives 7 s appear then second one wins. What is the probability to
win first one in the game?
a)6/15 b)3/13 c)2/13

8)Two questions on figures .They give five figures ,and change them sequentially, u have to find 6 th one. They give 4 choices.

9)one more Q. on number sequence.

C Programming:
1) what is name of the operator in passing variable no. of arguments to function?
ANS: Ellipsis

2) main()
{
printf("%d%d"size of ("Hcl
technologies"),strlen("HCL Technologies"));
}
a)16 16 b)16 17 c)17 17 d)17 16

3) main()
{
char arr[]={ 'a','b','\n',….}
some more instructions;
}
ANS:77

4) main()
{
int arr[]={0,1,2,3,4)
int *a={arr, arr+1,arr+2,…}
int **p=a;
p++;

some instructions:
}

ANS:1 1 1

5)They give one Q on 3-d array?
ANS:4

6)one Question on ++ and && operators.
ANS:1,0,0

7)one question on logical operators
Ans:1 00 1

8)one question on the return value of scanf function ?
ANS:1

HCL Aptitude Papers


 

1. a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c
Ans. 11/30
2. What does the hexa number E78 in radix 7.
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans. (d)

3. 10 : 4 seconds :: ? : 6 minutes
Ans. 90

4. Q is not equal to zero and k = (Q x n - s)/2.What is n?
(a) (2 x k + s)/Q
(b) (2 x s x k)/Q
(c) (2 x k - s)/Q
(d) (2 x k + s x Q)/Q
(e) (k + s)/Q

5. From the following statements determing the order of ranking
M has double the amount as D Y has 3 rupess more than half the amount of D
Ans. Data insuffiecient

Questions 6 - 10 are to be answered on the following data
A causes B or C, but not both
F occurs only if B occurs
D occurs if B or C occurs
E occurs only if C occurs
J occurs only if E or F occurs
D causes G,H or both
H occurs if E occurs
G occurs if F occurs

6. If A occurs which of the following must occurs
I. F and G
II. E and H
III. D
(a) I only
(b) II only
(c) III only
(d) I,II, & III
(e) I & II (or) II & III but not both
Ans. (e)

7. If B occurs which must occur
(a) D
(b) D and G
(c) G and H
(d) F and G
(e) J
Ans. (a)

8. If J occurs which must have occured
(a) E
(b) either B or C
(c) both E & F
(d) B
(e) both B & C
Ans. (b)

9. Which may occurs as a result of cause not mentioned
I. D
II. A
III. F
(a) I only
(b) II only
(c) I & II
(d) II & III
(e) I,II & III
Ans. (c)

10. E occurs which one cannot occurs
(a) A
(b) F
(c) D
(d) C
(e) J
Ans. (b)

11. A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution
spills out of the jug, and the jug is then filled to capacity with water,approximately what percent of the
resulting solution in the jug is salt?
(A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15%

12. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do
the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works
independently, how many hours will it take Ann to complete the remainder of the jobs?
(A)2/3 (B)3/4 (C)1 (D)2 (E)3
Answer :E)3

13. In a murder case there are four suspects P,Q,R,S. Each of them makes a statement. They are p:
"I had gone to the theatre with S at the time of the murder".q: "I was playing cards with P at the time
of the murder".r: "Q didn't commit the murder".s: "R is not the murderer".Assuming the only one of the
above statement is false and that one of them is the murderer, who is the murderer?
a) P
b) Q
c) R
d) Cann't be concluded
e) S
Ans: E

14. Mohan earned twice as much as Deep. Yogesh earned rs.3/- more than half as much as deep.
If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is
the correct ordering of these amounts?
a) M 8 ? b 4 ? b>>1:b;
a) 7 b) 28 c) 3 d) 14 e) None
ans: 3;
10. Which is the output produced by the following program
main()
{
int n=2;
printf("%d %d\n", ++n, n*n);
}
a) 3,6 b) 3,4 c) 2,4 d) cannot determine
Answer : b) 3,4
11. What is th output of the following program?
int x= 0×65;
main()
{
char x;
printf("%d\n",x)
}
a) compilation error b) 'A' c) 65 d) unidentified
12. What is the output of the following program
main()
{
int a=10;
int b=6;
if(a=3)
b++;
printf("%d %d\n",a,b++);
}
a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none
Answer : d) 3,7
13. What can be said of the following program?
main()
{
enum Months {JAN =1,FEB,MAR,APR};
Months X = JAN;
if(X==1)
{
printf("Jan is the first month");
}
}
a) Does not print anything
b) Prints : Jan is the first month
c) Generates compilation error
d) Results in runtime error
Answer: b) Prints : Jan..
14. What is the output of the following program?
main()
{
char *src = "Hello World";
char dst[100];
strcpy(src,dst);
printf("%s",dst);
}strcpy(char *dst,char *src)
{while(*src) *dst++ = *src++;
}
) "Hello World" b)"Hello" c)"World" d) NULL e) unidentified
Answer: d) NULL
15. What is the output of the following program?
main()
{
int l=6;
switch(l)
{ default : l+=2;
case 4: l=4;
case 5: l++;
break;
}
printf("%d",l);
}
a)8 b)6 c)5 d)4 e)none
Answer : c)5
16. What is the output of the following program?
main()
{
int x=20;
int y=10;
swap(x,y);
printf("%d %d",y,x+2);
}
swap(int x,int y)
{
int temp;
temp =x;
x=y;
y=temp;
}
a)10,20 b) 20,12 c) 22,10 d)10,22 e)none
Answer:d)10,22
17. What is the output of the following problem ?
#define INC(X) X++
main()
{
int X=4;
printf("%d",INC(X++));
}
a)4 b)5 c)6 d)compilation error e) runtime error
Answer : d) compilation error
18. what can be said of the following
struct Node {
char *word;
int count;
struct Node left;
struct Node right;
}
a) Incorrect definition
b) structures cannot refer to other structure
c) Structures can refer to themselves. Hence the statement is OK
d) Structures can refer to maximum of one other structure
Answer :c)
19. What is the size of the following union. Assume that the size of int =2, size of float =4 and size of
char =1.
Union Tag{
int a;
flaot b;
char c;
};
a)2 b)4 c)1 d) 7
20. What is the output of the following program? (. has been used to indicate a space)
main()
{
char s[]="Hello,.world";
printf(%15.10s",s);
}
a )Hello,.World…
b)….Hello,.Wor
c)Hello,.Wor….
d)None of the above

HCL Interview Questions

Interview Questions
*******************

1. Family backgroud.

2. Do you have any other offer in hand ?

3. Suppose there are a few systems all connected through some technique and
are independent of each other. Each system identifies the other(s) by
it's name but actually the name has to be mapped with some logical number.
Devise a mechanism to implement it.

4. Suppose there is round robin scheduling in some multi-processing environ-
ment. There are only three processes in the system. First one is to be
alloted 25 % of the total CPU time, second one is to be given 50 % of CPU
time and third one is to be given rest of the CPU time in that order.
Their is no other facility available at OS level. How will you accomplish
it ?

5. What is a B-tree ?

6. What are signals ?

7. What are interrupts ?

8. What is a tree ? Design a data-structure for tree. How would you creat the
first child of any node ? Write code for it ?

9. What are device files ?

10. What are major numbers and minor numbers ?

Adjit went through a job interview and said:

NOTE : Please check answers once again.

section 1.

1.which of the following involves context switch,
a) system call b)priviliged instruction
c)floating poitnt exception
d)all the above
e)none of the above
ans: a
2.In OSI, terminal emulation is done in
a)semion b)appl.. c)presenta… d)transport
ans: b
3……. 25MHz processor , what is the time taken by the
instruction which needs 3 clock cycles,
a)120 nano secs b)120 micro secs
c)75 nano secs d)75 micro secs

4. For 1 MBmemory no of address lines required,
a)11 b)16 c)22 d) 24
ans: 16
5. Semafore is used for
a) synchronization b0 dead-lock avoidence
c)box d) none
ans : a
6. class c: public A, public B
a) 2 member in class A,B shouldnot have same name
b) 2 member in class A,C " " " "
c) both
d) none
ans : a
7. question related to java
8. OLE is used in
a)inter connection in unix
b)interconnection in WINDOWS
c)interconnection in WINDOWS NT
9.No given in HEX —- write it in OCTAL
10.macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
11.preproconia.. does not do one of the following
a)macro …… b)conditional compliclation
c)in type checking d)including load file
ans: c

SECTION B
__________

1.enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
2.main
{
int x,j,k;
j=k=6;x=2; ans x=1
x=j*k;
printf("%d", x);
3. fn f(x)

{ if(x9 && Y++!=10 && Y++>10)
printf("…….. Y);
else printf(""…. )
ans : 13
8. f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
d) ……..
ans : a

9. if x is even, then
(x%2)=0
x &1 !=1
x! ( some stuff is there)
a)only two are correct
b) three are correct
c), d) ….

ans : all are correct
10. which of the function operator cannot be over loaded
a) 10

Ajit went through a job interview and said:

1. Which of the following involves context switch,

(a) system call
(b) priviliged instruction
(c) floating poitnt exception
(d) all the above
(e) none of the above

Ans: (a)

2. In OST, terminal emulation is done in

(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer

Ans: (b)

3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,

(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs

4. For 1 MB memory, the number of address lines required,

(a)11
(b)16
(c)22
(d) 24

Ans. (b)

5. Semaphore is used for

(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none

Ans. (a)

6. Which holds true for the following statement

class c: public A, public B

a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none

Ans. (a)

7. Question related to java

8. OLE is used in

a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT

9. Convert a given HEX number to OCTAL

10. Macros and function are related in what aspect?

(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration

11.Preproconia.. does not do which one of the following

(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file

Ans. (c)

12. Piggy backing is a technique for

a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition

Ans. (c)

13. In signed magnitude notation what is the minimum value that can be represented with 8 bits

(a) -128
(b) -255
(c) -127
(d) 0

14. There is an employer table with key fields as employer number data
in every n'th row are needed for a simple following queries will get required results.

(a) select A employee number from employee A , where exists from employee B where A employee no. >= B
employee having (count(*) mod n)=0

(b) select employee number from employe A, employe B where A employe number>=B employ number group by employee number having(count(*) mod n=0 )
(c) both (a) &a

WIPRO written test consists questions

The written test consists of 60 questions which are divided into 4 sections .The total duration of the test is 90 minutes. There is negative marking .

The sectionwise distribution of the questions is as follows:

Section#1
This section consisting of 15 questions is based on general computer awareness.
In this section:
A correct answer carries 1 mark
1/4 marks will be deducted for a wrong answer.

Section#2
This section also consists of 15 questions. Questions based on C language are asked.
In this section:
A correct answer carries 1 mark
1/4 marks will be deducted for a wrong answer.

Section#3
A total of 10 questions based on pointers and structures in C are asked in this section.You can also be asked one or two questions on JAVA also.
In this section:
A correct answer carries 2 marks
1 mark will be deducted for a wrong answer.

Section#4
This is the aptitude section consisting of 20 questions. Simple maths questions are asked which are very easy. The logical questions asked are similar to the ones given in the Barron's GRE book.
In this section:
A correct answer carries 2 marks
1/4 mark will be deducted for a wrong answer.

Section A
1. Which of the following involves context switch,
(a) system call
(b) priviliged instruction
(c) floating poitnt exception
(d) all the above
(e) none of the above
Ans: (a)

2. In OST, terminal emulation is done in
(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer
Ans: (b)

3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,
(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs

4. For 1 MB memory, the number of address lines required,
(a)11
(b)16
(c)22
(d) 24
Ans. (b)

5. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)

6. Which holds true for the following statement
class c: public A, public B
a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none
Ans. (a)

7. Question related to java

8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT

9. Convert a given HEX number to OCTAL

10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration

11.Preproconia.. does not do which one of the following
(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file
Ans. (c)

12. Piggy backing is a technique for
a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition
Ans. (c)

13. In signed magnitude notation what is the minimum value that can be represented with 8 bits
(a) -128
(b) -255
(c) -127
(d) 0

14. There is an employer table with key fields as employer number data
in every n'th row are needed for a simple following queries will get required results.
(a) select A employee number from employee A , where exists from employee B where A employee no. >= B
employee having (count(*) mod n)=0
(b) select employee number from employe A, employe B where A employe number>=B employ number
group by employee number having(count(*) mod n=0 )
(c) both (a) & (b)
(d) none of the above

15. Type duplicates of a row in a table customer with non uniform key field customer number you can see
a) delete from costomer where customer number exists( select distinct customer number from customer having count )
b) delete customer a where customer number in b rowid
c) delete customer a where custermor number in( select customer number from customer a, customer b )
d) none of the above
Section B

1. Given the following statement
enum day = { jan = 1 ,feb=4, april, may}
What is the value of may?
(a) 4
(b) 5
(c) 6
(d) 11
(e) None of the above

2. Find the output for the following C program
main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);

3. Find the output for the following C program
fn f(x)
{ if(x9 && Y++!=10 && Y++>10)
{printf("%d", Y);
else
printf("%d", Y);
}
Ans. 13

8. Find the output for the following C program
f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
Ans. (a)

9. What is the sizeof(long int)
(a) 4 bytes
(b) 2 bytes
(c) compiler dependent
(d) 8 bytes
10. Which of the function operator cannot be over loaded
(a)

JSP Placement paper

  1. Top 100 JSP Questions Asked in Actual Interviews
  2. Can you make use of a ServletOutputStream object from within a JSP page?
  3. Can a JSP page instantiate a serialized bean?
  4. Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
  5. What is the page directive is used to prevent a JSP page from automatically creating a session?
  6. How do you prevent the Creation of a Session in a JSP Page and why?
  7. How do I include static files within a JSP page?
  8. How can I implement a thread-safe JSP page?
  9. How do I mix JSP and SSI #include?
  10. Can a JSP page process HTML FORM data?
  11. What JSP lifecycle methods can I override?
  12. How do I perform browser redirection from a JSP page?
  13. Is there a way to reference the "this" variable within a JSP page?
  14. Can I stop JSP execution while in the midst of processing a request?
  15. How do I use comments within a JSP page?
  16. How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
  17. How does JSP handle run-time exceptions?
  18. How do I use a scriptlet to initialize a newly instantiated bean?
  19. How can I enable session tracking for JSP pages if the browser has disabled cookies?
  20. How can I declare methods within my JSP page?
  21. How can I set a cookie and delete a cookie from within a JSP page?
  22. Is there a way I can set the inactivity lease period on a per-session basis?
  23. How does a servlet communicate with a JSP page?
  24. How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?
  25. How do you pass control from one JSP page to another?
  26. How do you restrict page errors display in the JSP page?
  27. How do you call stored procedures from JSP?
  28. How do you connect to the database from JSP?
  29. What is Declaration?
  30. What is difference between scriptlet and expression?
  31. What is jsp:use bean. What are the scope attributes & difference between these attributes?
  32. What are the implicit objects in JSP & differences between them?
  33. What are Custom tags. Why do you need Custom tags. How do you create Custom tag?
  34. What is the difference between include directive & jsp:include action?
  35. What are advantages of JSP?
  36. What is JSP?
  37. Can a single JSP page be considered as a J2EE application?
  38. How to call EJB from JSP.
  39. What is the architecture of JSP?
  40. What is the difference between servlet session and jsp session?
  41. Why should we setContentType() in servlet ?what is the use of that method?
  42. When jsp is compiled into servlet, where the servlet is actually stored(storage location)?
  43. How to generate BAR & PIE Graphs using JSP code…?
  44. What is the diff. b/n declaring members in and declaraing in jspinit() method ?
  45. How to check the value in the text field is not a number
  46. what is the use of extends in jsp…we we want to import a class in current jsp file which i am working how can i do that …if i use extnds for that means how can i do that…pls explain me this
  47. I have a String name & Map m, in my bean class. I have get & set methods on both. To Display the String name, i do The above one works fine. Te below one, displays the entire Map contents I know the KEY, how do i display the VALUE for that KEY
  48. What is the difference between , pagedirective include, action tag include ?
  49. What are the default objects provided by JSP container? Other than page, request, session and context objects.
  50. What is the default scope of jsp tags?
  51. When many Users are browsing the same application at the same time and they click the "Submit" button will many objects be created for each and every User?
  52. What is the difference between Difference between doGet() and doPost()?
  53. How do we perform redirect action without using response.sendRedirect(" ");
  54. A] Is the response.sendRedirect ends the existing session? B] If I logged in to a site ( say a.com) & then in same browser window I type the url for another site (say b.com), then does my session gets ended on first site ( a. com ) ?
  55. How to overwrite the init and destroy method in a jsp page.
  56. Where do we use hidden variables and url rewriting? and wat is the difference between them?
  57. What is the difference between session and cookie ?
  58. How to pass java script array to jsp page?
  59. What is the difference betweeen JSP forward and servlet forward methods?
  60. Where can we find the compiled file of jsp in the directory struture.
  61. How we abort jsp page from a servlet
  62. What is difference between getAttribute() and getParameter()?
  63. What is the diff. b/w PAGE,APPLICATION and SESSION implicit objects of JSP?
  64. Wat is the difference between and in jsp..wen translate into servlet..wer it is stored in servlet..can we create global variables in jsp..if yes then how??
  65. How can i restrict the user from Clicking of Back button in any browser
  66. In one class i stored the key and values in the hashmap.so using key value i have to check wheter the value for key is correct or not.so how to retreive the key and values in jsp page
  67. What is the differnce between application server and web server
  68. What is use of implict Objects?why the container is given those one?
  69. How to delete cookies in JSP?
  70. In Oracle table some fields are "null".By default it will show as "null" in JSP page text box.But i dont want that. I want as blank textbox.What i can do for that?
  71. In Internet explorer if we give a jsp , How the server will know it has to execute?
  72. How the jsp changes will be effected in servlet file after converting?
  73. When to use struts technology? What type of applications are developed using struts frame work?
  74. What is the need of taglibraries?
  75. Explain online banking system using java.that means i need architecture of online banking system.please sir i want full details
  76. Text in textarea cant be copy by anyone while it is running in the browser (i.e,the text cant be copy and then paste on the other page) give me suggestion?
  77. How can i clear values in sessions. if i open a jsp page it is containing previous values. then i need to open a new page then only i am getting a fresh page
  78. What data is stored in the variable appname when we give the folowing statement String appname=("manager".equalsIgnoreCAse(request.getContextPath()))?"/manager":"/portal";
  79. Web browser concept using jsp
  80. Why we can't implement interface in JSP? Why we can only extend classes in JSP?
  81. How can we implement logoutpage using jsp ..? and Is there any method to force the browser to show the same page again and again after logout..?
  82. How to Upload a textfile from JSP to Servlet
  83. My html form contains an INPUT "text" element that accepts Date, i want to catch that date and want to query it using JSP? In short, how can i use that HTML form element with Prepared Statements in JSP?
  84. Types of indexing used in oracle applications ? and when and how we decide to implement indexing to database ?
  85. What is the need of implicit objects?
  86. When we design some login form how we manage security for those forms?which technology used for that purpose?
  87. How Do you implement interface in JSP?
  88. How can initialize interface in JSP?
  89. How do u maintain a Session?
  90. What is the differences between JSP LifeCycle and Servlet LifeCycle?
  91. Can I call an interface in a JSP?
  92. What is the Difference between sendRedirect() and Forward?
  93. I want to place two buttons one for save and one for delete.i am using DispatchAction as controller,how can i find which button i am pressing and how to diffrentiate?
  94. What is JSP
  95. What is the difference betweeen a statis and dynamic include?
  96. How can my JSP communicate with java class file
  97. I want to accomplish the following scenario: 1) user submits a jpg/gif file from an html form (using in the form, the user can browse to a file of their choice) 2) upload the jpg/gif file through a combination of Java and JSP's 3) put the jpg/gif into a database on a server and/or into a folder on my local system.
  98. How to pop up a jsp page?refreshing every two seconds.
  99. What is difference between scriptlet and expression
  100. What does < %= obj.getXXX() %> the following expression get evaluated to ?
  101. How can we move from one JSP page to another(mean using what tecnique?)


 

Top data warehousing interview questions

  1. What is the data type of the surrogate key?
  2. What are the steps to build the data warehouse?
  3. What are the different architectures of data warehouse?
  4. What are the advantages data mining over traditional approaches?
  5. What is the difference between view and materialized view?
  6. What is the main difference between Inmon and Kimball philosophies of data warehousing?
  7. What is junk dimension? what is the difference between junk dimension and degenerated dimension?
  8. What is the definition of normalized and denormalized view and what are the differences between them
  9. Why fact table is in normal form?
  10. What is Difference between E-R Modeling and dimensional modeling.
  11. What is conformed fact?
  12. What are the methodologies of Data Warehousing.
  13. What is BUS Schema?
  14. What is Datawarehousing Hierarchy?
  15. What is data validation strategies for data mart validation after loading process
  16. What is a linked cube?
  17. What is meant by metadata in context of a Datawarehouse and how is it important?
  18. What is incremental loading?
  19. What is batch processing?
  20. What is cross-reference table?
  21. What is aggregate fact table?
  22. What are the possible data marts in Retail sales?
  23. What is the main difference between schema in RDBMS and schemas in DataWarehouse?
  24. What are the various ETL tools in the Market?
  25. What is Dimensional Modelling?
  26. What is VLDB?
  27. What is degenerate dimension table?
  28. What is ER Diagram?
  29. Difference between Snow flake and Star Schema. What are situations where Snow flake Schema is better than Star Schema to use and when the opposite is true?
  30. What is a CUBE in data warehousing concept?
  31. Differences between star and snowflake schemas?
  32. What are Datamarts?
  33. Can a dimension table contains numeric values?
  34. What is hybrid slowly changing dimension?