About Me

My photo
"Practise makes man Perfect" My Advice is :No need special books for java.. ok

Tuesday, 12 April 2011

Tech Java Interview Question ?


Tech Interview JAVA QUESTIONS

  1. What is the difference between an Abstract class and Interface?
  2. What is user defined exception?
  3. What do you know about the garbage collector?
  4. What is the difference between java and c++?
  5. In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
  6. What is the difference between process and threads?
  7. What is update method called?
  8. Have you ever used HashTable and Directory?
  9. What are statements in Java?
  10. What is a JAR file?
  11. What is JNI?
  12. What is the base class for all swing components?
  13. What is JFC?
  14. What is the difference between AWT and Swing?
  15. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
  16. How does thread synchronization occur in a monitor?
  17. Is there any tag in htm to upload and download files?
  18. Why do you canvas?
  19. How can you know about drivers and database information ?
  20. What is serialization?
  21. Can you load the server object dynamically? If so what are the 3 major steps involved in it?
  22. What is the layout for toolbar?
  23. What is the difference between Grid and Gridbaglayout?
  24. How will you add panel to a frame?
  25. Where are the card layouts used?
  26. What is the corresponding layout for card in swing?
  27. What is light weight component?
  28. Can you run the product development on all operating systems?
  29. What are the benefits if Swing over AWT?
  30. How can two threads be made to communicate with each other?
  31. What are the files generated after using IDL to java compiler?
  32. What is the protocol used by server and client?
  33. What is the functionability stubs and skeletons?
  34. What is the mapping mechanism used by java to identify IDL language?
  35. What is serializable interface?
  36. What is the use of interface?
  37. Why is java not fully objective oriented?
  38. Why does java not support multiple inheritance?
  39. What is the root class for all java classes?
  40. What is polymorphism?
  41. Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
  42. What are virtual functions?
  43. Write down how will you create a Binary tree?
  44. What are the traverses in binary tree?
  45. Write a program for recursive traverse?
  46. What are session variable in servlets?
  47. What is client server computing?
  48. What is constructor and virtual function? Can we call a virtual function in a constructor?
  49. Why do we use oops concepts? What is its advantage?
  50. What is middleware? What is the functionality of web server?
  51. Why is java not 100% pure oops?
  52. When will you use an interface and abstract class?
  53. What is the exact difference in between Unicast and Multicast object? Where will it be used?
  54. What is the main functionality of the remote reference layer?
  55. How do you download stubs from Remote place?
  56. I want to store more than 10 objects in a remote server? Which methodology will follow?
  57. What is the main functionality of Prepared Statement?
  58. What is meant by Static query and Dynamic query?
  59. What are Normalization Rules? Define Normalization?
  60. What is meant by Servelet? What are the parameters of service method?
  61. What is meant by Session? Explain something about HTTP Session Class?
  62. In a container there are 5 components. I want to display all the component names, how will you do that?
  63. Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
  64. Tell some latest versions in JAVA related areas?
  65. What is meant by class loader? How many types are there? When will we use them?
  66. What is meant by flickering?
  67. What is meant by distributed application? Why are we using that in our application?
  68. What is the functionality of the stub?
  69. Explain about version control?
  70. Explain 2-tier and 3-tier architecture?
  71. What is the role of Web Server?
  72. How can we do validation of the fields in a project?
  73. What is meant by cookies? Explain the main features?
  74. Why java is considered as platform independent?
  75. What are the advantages of java over C++?
  76. How java can be connected to a database?
  77. What is thread?
  78. What is difference between Process and Thread?
  79. Does java support multiple inheritance? if not, what is the solution?
  80. What are abstract classes?
  81. What is an interface?
  82. What is the difference abstract class and interface?
  83. What are adapter classes?
  84. what is meant wrapper classes?
  85. What are JVM.JRE, J2EE, JNI?
  86. What are swing components?
  87. What do you mean by light weight and heavy weight components?
  88. What is meant by function overloading and function overriding?
  89. Does java support function overloading, pointers, structures, unions or linked lists?
  90. What do you mean by multithreading?
  91. What are byte codes?
  92. What are streams?
  93. What is user defined exception?
  94. In an htm page form I have one button which makes us to open a new page in 15 seconds. How will you do that?

Test ?

Test Paper :3
Paper Type : General - Interview
Test Date : 30 April 2007
Test Location : Dell Mohali
Posted By : Sweety

DELL PAPER ON 30th APRIL

THIS IS A PLACEMENT PAPER AS WELL AS PATTERN FOR INTERVIEW AT DELL (MOHALI) FOR TECHNICAL SUPPORT AS WELL AS CUSTOMER CARE POSITION

There are 5 round and all of them are elimination rounds so be careful!!!!

1.INTRODUCTION-This wil be a 15 minutes or 10 minutes round depending on the interviewer choice . the interviewer can ask you following questions:

a.Tel me something about yourself
if you have mentioned certain hobbies prepare some topics on those hobbies because they will ask you about them for example if you said during te interview that my hobbies is to read books....then prepare central idea of that particular book which you read because they will definatly peep more into your hobbies..etc

b.what did you leave your previous company (if you are working)
-in case you want to join technical support say "sir.i have an aptitude for computers .i always wanted to be in a technical support line..it wil be a learning experience for meso i left my old company" remember never give any bad point of your previous company to them...this may throw you out

c.why do you want to join dell?
a-Dell is a captive cal centre.it is a brand name. it has excellent growth opportunities and i always want to join a company with which i can grow. besides that i have heard from my friends about great working environment of dell.it wil be a great learning experience as well as privelage to join dell.

d.tel me about an experience with an irated customer........if you have worked somewhere before

note-the following questions can be asked for people who want to apply for technical support positions BE CAREFUL!!!!
while giving technical interview donot mention technical things of which you donot have any technical knowledge . just donot try to act oversmart speak that much which you know

e.CAN YOU TEL ME CONFIGURATION OF YOUR COMPUTER? FOR TECH SUPPOT PEOPLE
f.WHY WE USE A HEAT SINK IN COMPUTER?
g.WHAT IS UPS (UNINTERRUPTABLE POWER SUPPLY)?
h.you should also be prepared with some knowledge about dell
i.what do you know about dell

SOME GYAN ABOUT DELL
some big names, Michael DELL-the founder CEO AND CHAIRMEN of dell inc
ROMI MALHOTRA-director of dell india operations

dell is a trusted and diversified information technology suppliert and partner in employing 65200 employess worldwide working toward selling a comprehensive portfolio of products and services to customers worldwide.Dell is recognized br Fortune magazine as America's most admired company and no 3 globaly,designs,builds and delievers innovative,tailoredsystems that provide customers with exceptional value.Cmpany revenues for the last four quarters were $54.2 billion
Dell India Pvt Limited was incorporated in 1996.Dell's direct operations in india started in ht e year 2000 from banglore.Ever since its launch in india,Dell India has been groing at a tremendous pace

2.GROUP DISCUSSION
In this round ur interview will be taken again by some other person for 15 or more minutes and you will be accessed on your confidence level in a group and always smile while giving the interview .the questions will be almost same as in the first round

NOTE-In both these rounds they check your ACCENT (it should be neutral no mother tongue influence in it {MTI}) AND also check your grammer skills

CTS in Q


1. Some children goto ice-cream shop. 9 flavours are available there.
Each child takes a cone with two different flavours. No two children
take same combination and they have taken all such possible
combinations. How many children went to ice cream shop?
2. (1- 1/6) (1-1/7) .... (1- (1/(n+4))) (1-(1/(n+5))) = ?
Ans: 5/(something)
3. A man has to get air-mail. He starts to go to airport on his motor
bike. Plane comes early and the mail is sent by a horse-cart. The
man meets the cart in the middle after half an hour. He takes the
mail and returns back, by doing so, he saves twenty minutes. How
early did the plane arrive?
4. A,B,C,and D tells the following times by looking at their watches.
A tells it is 3 to 12.
B tells it is 3 past 12.
C tells it is 12:2.
D tells it is half a dozen too soon to 12.
No two watches show the same time. The differences between the
watches is 2,3,4,5 respectively. Whose watch shows maximum time?
5. y
/ |
/ |
/ |
C /-------|D
/ \ /|
/ \ / |
/ \ / |
------------
X B
It is semicircle along X and Y with radius=17. What is length of BD?
6. Ten boxes are there. Each ball weighs 100 gms. One ball is
weighing 90 gms.
i) If there are 3 balls (n=3) in each box, how many times will it
take to find 90 gms ball?
ii) Same question with n=10
iii) Same question with n=9
7. There are three different boxes A,B and C. Difference between
weights of A and B is 3 kgs. And between B and C is 5 kgs. Then what
is the maximum sum of the differences of all possible combinations
when two boxes are taken each time.
8. I lost Rs.68 in two races. My second race loss is Rs.6 more than
the first race. My friend lost Rs.4 more than me in the second race.
What is the amount lost by my friend in the second race?
Ans: 37 (check it)
9. A problem on weather. I don't remember exactly, but its something
like this. We went to some place and it rained for 15 days. Clear
mornings are followed by rainy afternoons. And all clear afternoons
are preceeded by rainy mornings. It rained continuiosly for 10
mornings. It rained for 12 afternoons. And 13 days are without any
rain. How many days we stayed in the new place?
10. A and B are shooters and having their exam. A and B fall short of
10 and 2 shots respectively to the qualifying mark. If each of them
fired atleast one shot and even by adding their total score together,
they fall short of the qualifying mark, what is the qualifying mark?
11. A face of the clock is divided into three parts. First part hours
total is equal to the sum of the second and third part. What is the
total of hours in the bigger part?
12. A INK bug starts jumping 1 mtr to each direction north, south,
east and west respectively. It marks a point in the new locations. It
comes back to its original point after jumping in all directions. It
again starts the same process from the newly drawn unique points.
Totally how many points did the bug mark?
13. There is a six digit code. Its first two digits, multiplied by 3
gives all ones. And the next two digits multiplied by 6 gives all
twos. Remaining two digits multiplied by 9 gives all threes. Then
what is the code?
14. There are 4 balls and 4 boxes of colours yellow, pink, red and
green. Red ball is in a box whose colour is same as that of the ball
in a yellow box. Red box has green ball. In which box you find the
yellow ball?
Ans: Pink
15. Quitub Meenar height is 230 mtrs. A person lays a boulder and
stands on it. He then places a step by its side. Then he goes for
another boulder on it and so on. One step height is 1 mtr. Boulder is
one cubic mtr. Then how many steps are required to reach to the top?
16. A question on quadrilateral. Ans: 20cm sq.
17. A problem on Parallelogram.
18. There are four professors: American, English, Japanese and
Indian. Each take only one subject and all their houses are in a
straight line. Indian doesn't teach maths. American teaches
geography. English man is adjacent to Japanese who is in red house.
Professor in green house teaches history. Indian lives in white
house. Blue house has only one adjacent house which is green. (one
more subject is phylosophy).
Two or Three questions on this, like what does the Indian teach, etc..
20. A similar question, 4 persons (Vijay, Vinay, Ajay and Nanda) in 4
professions: medical, engineering, architecture, and Accountancy.
Each play one different instrument : Sitar, Tabla, Violin and Flute.
There are some conditions and two questions on this. Its easy, just
need to understand the problem.
21. Two tribes of Jadugars are there. One type is always right about
predictions about themselves and others. Another type is always wrong
in their predictions about themselves and others.
Two questions like:
if a jadugar tells 'you are always right' to a man, to which type the
man and the jadugar belong to?
23. Ambanis took over some company. Later they came to know that the
co. was actually in loss. They have learned that ________
four options like:
All that glitters is not gold (I think this option is correct)
24. One more question like the one above.
25. Two questions are given, and some common sense is needed there,
for example,
After 180 successful days, 'News Talk' is taken out of air. The
government wants to woo the journalists before the general elections.
Mr.X of DD says that the program is not completely stopped and it is
just getting reformatted.
Question is 'What is News talk'?
i) A program on govt. issues
ii) A serial on journalists (I think it is right)
iii) A documentary on journalism
iv) Something else
Paper is not that difficult, you just need to chose ur strenth and
answer those questions first. Each right answer +1, wrong answer, -
0.25. In our campus, persons who attempted 10 questions also got thru
the written test. So the cut-off is very less.
Interview was very simple, some questions on C ( test ur c skills is
more than enough) and some questions on your area of interest. Some
puzzles were also asked. But it is more like a mere formality. The
interview panel was very co operative and it was a very good
experience.
ALL THE BEST!!!

CTS technical

(INTERVIEW Exp.) My interview experience in CTS -Technical Interview
From: ajenth rocks
Date: Jan 11, 2006 6:41 AM
Subject: [ www.ChetanaS.com ] (PAPER) My interview experience in CTS-Technical interview
To: Koolkampus , 4futureengineers <4futureengineers@yahoogroups .com>, suresh kumar , Career mirchi , chetana , job_alert , pratyuconsulting

hellow friends,
I was bit carried away by the failure in the CTS HR round and so i was not able to share my experience to u guys.. i shed away my worries and write my experience to u.....
my friend Muthu and myself cleared the apps round.. and he had the interview at D(["mb","2.30 p.m and myself at 3.30p.m on 28th december 2005. we\nboth reached the CTS(Navalur) at around 1.30 p.m we have to\nclear all the formalities in the entrance and they gave us some paper\nand asked us to fill it.. we went inside with the form.. it has\nquestions like
1) ur name?
2) ur degree?
3)ur stream?
4) ur aggregate?
5)y CTS?
6) y software field?
7)\nwhat do u think r needed to be succesfull in software field and\nwhat do u think u have to be successfull in the IT field?
8) wht r the software orientation that u have?
9)ur\n hobbies?
there were totally 12 questions..
finishing this they asked us to go to another block.where the actual interview took place.
i was allocated panel 2 which comprise of two people one lady and another gentle \nman.Both were in their early 30s.
i greeted them both, and they both offered me chair. i thanked them for that.
now let me brief u the interview to u guys.
gentle men:Tell me about urself.\n
me: im Ajeeth.M vagera vagera vagera......
gentle man: fine:tell me about ur project..
me: i basically did two project, one as a course project in ANNA university embedded system course and another as a degree project.\n
My\ncourse project is wireless control of crane model and i explanied it\nusing some paper.. then my degree project is secured data communication\nand i explained it to them..
Lady: what is the frequency of operation of ur RF module?(RF Radio Frequency module)
Me:433.9MHZ
Lady: what is the modulation type that u used in ur project?\n
Me: ASK.
Lady: what r the other type of modulation available?
Me:ASK,PSK,FSK.
" 2.30 p.m and myself at 3.30p.m on 28th december 2005. we both reached the CTS(Navalur) at around 1.30 p.m we have to clear all the formalities in the entrance and they gave us some paper and asked us to fill it.. we went inside with the form.. it has questions like
1) ur name?
2) ur degree?
3)ur stream?
4) ur aggregate?
5)y CTS?
6) y software field?

Give the output & test your self Technical skill of 'C' ?

void main()
{
int d=5;
printf("%f",d);
}Ans: Undefined
void main()
{
int i;
for(i=1;i<4,i++) switch(i) case 1: printf("%d",i);break; { case 2:printf("%d",i);break; case 3:printf("%d",i);break; } switch(i) case 4:printf("%d",i); }Ans: 1,2,3,4 void main() { char *s="\12345s\n"; printf("%d",sizeof(s)); }Ans: 6 void main() { unsigned i=1; /* unsigned char k= -1 => k=255; */
signed j=-1; /* char k= -1 => k=65535 */
/* unsigned or signed int k= -1 =>k=65535 */
if(i printf("less");
else
if(i>j)
printf("greater");
else
if(i==j)
printf("equal");
}Ans: less
void main()
{
float j;
j=1000*1000;
printf("%f",j);
}

1. 1000000
2. Overflow
3. Error
4. None
Ans: 4
How do you declare an array of N pointers to functions returning pointers to functions returning pointers to characters? Ans: The first part of this question can be answered in at least three ways:
Build the declaration up incrementally, using typedefs:
typedef char *pc; /* pointer to char */
typedef pc fpc(); /* function returning pointer to char */
typedef fpc *pfpc; /* pointer to above */
typedef pfpc fpfpc(); /* function returning... */
typedef fpfpc *pfpfpc; /* pointer to... */
pfpfpc a[N]; /* array of... */
Use the cdecl program, which turns English into C and vice versa:
cdecl> declare a as array of pointer to function returning pointer to function returning pointer to char char *(*(*a[])())()
cdecl can also explain complicated declarations, help with casts, and indicate which set of parentheses the arguments go in (for complicated function definitions, like the one above). Any good book on C should explain how to read these complicated C declarations "inside out" to understand them ("declaration mimics use"). The pointer-to-function declarations in the examples above have not included parameter type information. When the parameters have complicated types, declarations can *really* get messy. (Modern versions of cdecl can help here, too.)
A structure pointer is defined of the type time . With 3 fields min,sec hours having pointers to intergers.
Write the way to initialize the 2nd element to 10.
In the above question an array of pointers is declared. Write the statement to initialize the 3rd element of the 2 element to 10
int f()
void main()
{
f(1);
f(1,2);
f(1,2,3);
}
f(int i,int j,int k)
{
printf("%d %d %d",i,j,k);
}What are the number of syntax errors in the above?
Ans: None.
void main()
{
int i=7;
printf("%d",i++*i++);
}Ans: 56
#define one 0
#ifdef one
printf("one is defined ");
#ifndef one
printf("one is not defined ");
Ans: "one is defined"
void main()
{
intcount=10,*temp,sum=0;
temp=&count;
*temp=20;
temp=∑
*temp=count;
printf("%d %d %d ",count,*temp,sum);
}
Ans: 20 20 20
There was question in c working only on unix machine with pattern matching.
what is alloca() Ans : It allocates and frees memory after use/after getting out of scope
main()
{
static i=3;
printf("%d",i--);
return i>0 ? main():0;
}
Ans: 321
char *foo()
{
char result[100]);
strcpy(result,"anything is good");
return(result);
}
void main()
{
char *j;
j=foo()
printf("%s",j);
}
Ans: anything is good.
void main()
{
char *s[]={ "dharma","hewlett-packard","siemens","ibm"};
char **p;
p=s;
printf("%s",++*p);
printf("%s",*p++);
printf("%s",++*p);
}Ans: "harma" (p->add(dharma) && (*p)->harma)
"harma" (after printing, p->add(hewlett-packard) &&(*p)->harma)
"ewlett-packard"

JAVA interview questions and answers?


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 methods.
.


Q:What is the purpose of garbage collection in Java, and when is it used?
A:The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.


Q:Describe synchronization in respect to multithreading.
A:With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.



Q:Explain different way of using thread?
A:The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.



Q:What are pass by reference and passby value?
A:Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.


Q:What is HashMap and Map?
A:Map is Interface and Hashmap is class that implements that.


Q:Difference between HashMap and HashTable?
A:The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.


Q:Difference between Vector and ArrayList?
A:Vector is synchronized whereas arraylist is not.


Q:Difference between Swing and Awt?
A:AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.


Q:What is the difference between a constructor and a method?
A:A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.
A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.


Q:What is an Iterator?
A:Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.


Q:State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.
A:public : Public class is visible in other packages, field is visible everywhere (class must be public too)
private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.
protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.
default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package
.


Q:What is an abstract class?
A:Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.
A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.



Q:What is static in java?
A:Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.


Q:What is final?
A:A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).

WIPRO

SERIES SECTION
Directions: In the following questions complete the series
NOTE: This section is quite tough and consists of 26 questions to be done in 10 minutes. Please keep track of time.
1. A C B D E F G I - I H K J L
Ans. H
2. A I Z B E Y C I X D I - G E N J W
Ans. W
3. A D G J M P - R W T S
Ans. S
4. A B C E F G I J K - M L O N P
Ans. M
5. A B F G K L P Q - T S V U W
Ans. U
6. J W X U V S T - Q P S E T
Ans. Q
7. A R H X Y T D T W S T - N P T K R
Ans. P
8. F M B I P Z V I E V - I R Y O U
9. N Z I Y C X KW F - J F V M Y
Ans. V
10. A A S A S P A S P K A - R Q T S U
Ans. S
11. A E C P S - T R U E
Ans. U
12. B B P R D D L N F F I K - H Q J I K
Ans. H
13 A Z E X I V M T - R Q N S O
Ans. Q
14. A B D G K P - L I W U X
Ans. U
15. B C D A E G H I F J L M N L K N M O
Ans. K
16. X W E F G V U H I J K - P N S R T
Ans. T
17. O D J T O P Q N O E R T - Q O U V W
Ans. O
18. P R N U U P E J R B B - H V U N E
Ans. E
19.L U L M G M N F N P S - O N Q P S
Ans. P
NUMERICAL ABILITY
1. 420% OF 7.79 = ?
Ans. 32.718
2. 3427 / 16.53 = ?
Ans. 202
3. 10995 /95 = ?
Ans.115.7365
4. 43+557-247 =?
Ans. 353
5. 3107*3.082= ?
Ans. 9591
6. 48.7 + 24.9 - 8.7 = ?
Ans. 64.90
7.525.0/47.8 = ?
Ans. 11
8. (135-30-14)*7 - 6 +2 = ?
Ans. 3
9. 3/8 * 5.04=?
Ans. 1.89
10. 697 /219 = ?
Ans. 3.18
11.8/64 +64/16 =?
Ans. 4.14
12. 298 * 312 / 208 = ?
Ans. 453.54
13. 0.33 *1496 /13 = ?
Ans. 37.98
14.0.26 + 1/8 = ?
Ans. 0.385
15. 66.17+1/3= ?
Ans. 67.03
16. 2.84+1/4= ?
Ans. 3.09
17. 33% OF 450 = ?
Ans. 148.5
18. 907.54 / 0,3073= ?
Ans.3002
19.There are two categories of persons in ratio A:B = 2:3. A type earns 2.5 dollars/hr and B type 1 dollar/hr total money earned by both is 24dollars. Then what is the total number of persons
Ans. 15
20. Total balls are z, the number of red balls is n and the remaining are blak balls,then the % of black
balls equal to ?
Ans. (z - n) / z*100
21. If A = C, B = 2D what should be done to make the ratio same. i.e.a/b = c/d
Ans. Multiply A by 2
22. If P=Total number of components, Q = number of defective components .What is the % of non defective components?
Ans. (p-q) / p*100
23. If the cost of an article is x , first discount given is y% of cost, second discount given is z% of cost .The selling price of x is
Ans. x (1-y / 100) (1- z / 100)
24.Which of the following are prime numbers
(a) 119
(b) 115
(c) 127
(d) none
Ans. (c)
25. A / B = C; C > D then
(a) A is always greater than D
(b) C is always greater than D
(c) B is always less than D
(d) None of these
Ans. (a)
26. If B>C and AAns. ( A + B )C
27. If for H hours of work the salary is S and the employee gets x hours of medical leave, then what is the salary/hr ?
Ans. s/H-x
28. ( 1/6 of 596) / (0.695) = ?
Ans. 142
29. 35-30 + 4/7 - 5 + 1 = ?
Ans. 3
30. 10995 + 95 = ?
Ans. 11090
31. If on a salary of Rs."S" per month,one has to pay one tax of x Rs. and a second type of tax of y Rs then % of salary taken home is?
Ans. s-(x+y)/s * 100
32. B>A then which expression will be highest value
(a) A-B
(b) AB
(c) A+B
(d) Can't Say
Ans. (b)
33. K, L are men who take home a salary of x, y respectively.The total amount taken home is
Ans. Kx + Ly
34. If out of X bulbs y bulbs are broken;The % of non broken bulbs
Ans. (x-y) / x*100
35. If on a salary s per month, a tax of x% of the salary and another of r% of the salary is deducted what
is the income.
Ans. s*(1-(x+r)/100
36. 0.512 * 18902358 =?
Ans. 9678007.296
37. If the % of defective balls is 10% balls,and the number of defective balls is 5.The number of balls is
Ans.50

38. 6.29% of 2.8 =?
Ans. 0.18
39. 0.398 * 456= ?
Ans. 181.49
40. 0 < x < 1 which is greater
(a) 1/x2
(b) 1/x
(c) x
(d) x2
Ans. (a)
41. If c = a/b; a-1 = c, what is the relation between a and b?
Ans. b = a/a-1
42. What is the sum of 7 consecutive odd numbers with 27 as the fourth number
Ans.189
FLOWCHART SECTION
Directions: There are 7 flow charts and each has 5-6 blank rectangles/diamonds with
sub question number in the rectangle/diamond. You have to fill the blank from the
5 options given against respective question number
NOTE: These types of questions are not at all tough. You have to understand the logic and then it is very easy to fill the blanks. Some information is provided for getting to the answers. There will be blanks which have to be filled.
Examples of flow charts asked to be filled :
(1) There are 3 boxes of 3 balls each. you have to select the heaviest among all.
(2) There are red and black balls in a box. You select some balls from the blocks. If the ball chosen is red then you get one point. If the chosen ball is ball black and previous ball is red then you get two points. For winning u have to get seven points. No point for selecting consecutive balls of the same color.
(3)Classify objects in class A, class B and scrap. for classing you have to do different tests such as weight test, material test etc.
(4)There is production process in which action depends on temperature and pressure and we have some temperature and pressure controls. Draw a flowchart to complete the process.
(5)Find max. and min. of the 12 nos. in an array. Arrange the array in ascending order and find the maximum and
minimum value in the array
(6)Different age group are given and also different salary slabs are given. Depending on the salary group as well as his group you have to classify the group of people in particular class
WIPRO University Questions : Technical Questions
1. Add 79H and 86H and tell the contents of flags
2. Scr is used for _____ ( ac, dc , both )
3. Push pull amplifier is used to remove which harmonics ( even , odd , both )
4. PAM is demodulated using ___ ( low pass filter , high pass filter )
5. 16k memory is needed. How many chips with 12 address buses and 4 data buses are needed.
6. AM wave is detected using _________ detector
7. Which flip flop is used for shift registers
8. Program counter does what __ (stores a memory address, address of the present instruction)
9. In a bistable multivibrator communication capacitor is used for ______ ( speed up response , ac coupling)
10. Totem pole is what?
11. Time constant for an integrator and differentiator should be ( small , high etc.)
12.TV waves are __ ( sky waves , space waves etc.)
13.Which configuration has highest i/p imp. ( ce , cb , cc )
14. Parabolic antenna with 2degree angle. What is its directivity.
15. Given 10 mhz pe modulation and we got a 100 mhz band. How many channels can be there.
16. If o/p power is doubled by how much does the sound increase ( 1db,2db,3db )
Paper::03
1. Find the odd one out
Eg: a) entice,lure,allure,alarm.
select the odd one out.
b) evince,press,exort,spur.
2.synonyms(majority of the questions)
Eg: Vivacious.
3.Analogies.
eg: If symphony : compose then
a) playwrite : play
b) child : mother
4.Four sentences will be given.For example, a)....
b)....c)...d)....
You have to arrange them in such a way that they form a meaningful paragraph.
5.Question related to alphabets.
A F G T
E G W O +
-------
1 2 3 0
-------
the above is just an example and not a question appeared in the test.
6.Antonyms
Placate
a)abet
b)enrage
c)witness
d).....
7.Questions from 'C' language(only 2 to 3 of them)
int x = 10,y=15,z = 5;
int i;
i = x printf("%d",i);
There will be no problem with the written test if you have prepared for GRE and also good vocabs.
The above are the questions that I was able to get from my classmates.I hope this will be of some use to all of you. here will be no questions from 11th and 12th standard subjects as it was in the previous year.
egarding the interview,there will be a compulsory HR and Technical interview(in any order) for all the short listed candidates.Be strong in your 'C' programming skills.Also,make sure that you take with you your project reports(if you have done any).This might be useful to impress the interviewers.Then be strong in Operating Systems,if you had that in your academics.Do not ever say that,"I will be able to write down the logic,but not the program".Two of my friends told this and they were not selected.
Be Be careful while filling in the resume given by them.The columns in the resume are,for example
1.Where do you think you have to improve yourself?
2.Why have you chosen WIPRO?
3.Your strengths and weaknesses.
HR questions will be from your resume
Paper::02
The aptitude test consisted of 45 questions to be answered in 45 mins..
Most of the questions were English (difficult to understand the questions itself!!!)
All questions were mixed up…(here the questions are not in order)
Some of which I can remember are as follows:
1.antonym of PARSIMONIOUS:
b.generous
ans.b
2.to arrange sentences to form a logical paragraph
3.If MARCH is coded as HCRAM ,then ELBAC is coded as
a.TABLE
b.CABLE
ans : b Freshersworld.com
4. Two clocks A & B..B falls by half a minute every hour while A is correct. Both of them show the correct reading at 8:00AM .If the time shown by clock B is 1:57 P.M., what is the time shown by clock A?
a.3:00A.M
b.3:00PM
c.2:00PM
d.2:00A.M
5.For deadlock to occur what are the conditions which are necessary?
a.mutual exclusion
b. hold & wait without …emption
c.circular ….
d.all of the above
6.analogy …TADPOLE:FROG
a.tumble:fall
b.swell:pain
7.chose the critical word: PERSISTENT,FREQUENTLY,CONSTANT,(some more words were given, I don’t rememberJ)…
a.often
b.perpetual
8.Fill in the blanks with appropriate word/words:
She was not chosen to be the secretary as she was not _________
a.vivacious
c.versatile
9.select sentences so that the third statement can be concluded from the first two…
10.Fill in the blanks with appropriate word/words:
11.which of the following is not a “dynamic data structure”
a.tree
b.binary ..
c.array
d.none of the above
12. Question from congestion control topic:
Ans: source quench.
13. Interchanging + and / also 2 and 3 , which of the following expressions are true?
(easy)
14. Interchanging + & / also 10 & 5, which of the following expressions are true?
(easy)
15.about doubly likn list : to delete a node to the right of p , which of the following is true?
a.p->right=p->right->right;p->right->right->left=…
d.none of the above
16. A long puzzle about 4 people Lewis, Frank ,…going to meet 4 people :insurance agent, consultant, money lender, share broker in a building with 4 floors(G+3floors).
Lewis meets share broker who is above money lender, money lender is not on 1st floor.
Frank meets insurance agent who is below consultant..
Some more conditions were given…which floor is the share broker ?
a.G floor
b.1st floor
c.2nd floor
d.3rd floor
ans: 3rd floor (check out the answer)
17. An island where the people speak 1 sentence truth & other is false..3 people on island: GOL , TOL ,BOL.. One of them was carrying a snake on his shoulder.
2 sentences by each were given..who is the snake charmer?
Ans:BOL (check it out)
18.compiler is used to convert _____ to _____
a.low level language , high level language
b.high level language ,low level language
c.both a & b
d.dependent on the compiler.
19.the best case & worst case merge sort algorithm (I don’t remember the q properly)
a.O(n),O(logn)..(some ans os this sort were givenJ)
20.void main()
{
char *p=””s”Hello”;
printf(“%s”,p);
}
what is the o/p?
a.sHello
b.s
c.Hello
d.error
21. Tcp/ip is
a)connectionless
b)connection oriented
c)both a & b
d)none
ans b
22.Process has memory divided into how many parts?
a.7
b.3
c.10
d.memory is undivided
23.one more question on correcting the error in the given sentence
24.given 4 words, to find out the odd one out..
….: discord: ….: ….
25.small passage was given..the inference from the passage is ?
paper :01
Campus Recruitment at NIT Durgapur : AUG -2003
Mind Here in our Institute within 30 minutes 45 questions were to be answered.
There was no negative marking.
Question Pattern:
[1] Jumble sentences are given ,order the sentences to make a meaningful paragraph
[2] Sentences are given , order the sentences to make conclusion that follows from the options given(Say 5 sentences are given out of which 2 are causes and rest is result , like fallacy in logic) .
[3] Analogies.
[4] Opposite meaning.
[5] Point out the error in a given sentence.
[6] C ( Follow ‘Test your C skills ‘).
[7] Data Structure.
[8] Operating System.
[9] Network.
[10]Puzzles(1-2),Critical reasoning(1-2).
We can not remember all the questions exactly as time was very short .Here are some of the questions ( Not in order).
1. A topic on Gandhiji’s Salt Satyagrah Movement
Four sentences were given and you have to arrange them to make a paragraph.
Ans. CABD (Check it out).
2. What can’t be changed by the user program (Four choices were there).
Ans. Memory Map (Check it out).
3. In which layer ROUTING is performed ?
Ans. Network Layer
4. What is the output of the following code snippet
main()
{
printf(5+”Fascimile”);
}
Ans. mile
5. What is the output
Intcount=10,sum=0,*temp;
Temp=&count;
Sum=? &count;( It was actually given temp=? &count; which is probably wrong)
Printf(“sum=%d count= %d temp=%d “,sum,count,*temp);
Ans. C (most expected answer ,check it)
6.Which one has no L-Value
[i] a[i]
[ii] i
[iii] 2
[iv] *(a+i)
Ans . [iii]
6. In threaded binary for which traversal orders unused left and right links are used?
Ans.
7. Which is false for binary tree?
[i] Any node should have two children.
[ii]
[iii] At fourth level the number of node should be less than 16.
Ans.
8. Which is true for binary search ?
[i] Traversal scheme
[iii]Greedy algorithm
[iv] Divide and conquer algorithm
Ans. [iv]
9. What is the protocol used for getting the physical address by supplying IP address of a node ?
[i] ARP
[ii] RARP
[iii] BOOTP
[iv] DHCP
Ans. [i]
10. If DELHI is coded as CCIDD then how BOMBAY will be coded?
11. Opposite meaning of SPUR.
12. Opposite of HARBINGER .
Ans. Follower
13. Opposite meaning of PROTRUSION.
Ans.
14. Opposite meaning of RESTIVENESS.
Ans.Docility.
15.Find the odd one in a given analogy
Ans. Mundane.
16 . Find the analogy : SURPRISE : EXCLAMATION
Ans. Dismay:groan.
17) Find the analogy : Plateau : Taxonomy.
18)Question from congestion control topic:
Ans: source quench.
19) Question from kernel mode:
Ans:Disable Interrupts.
20) which one is a page replacement algorithim.
[i]fifo
[ii]
[iii]Least recently used.
[iv]All of above.
21)Using two numbers And interchanging + and * there was a question.
Ans:(iii)(some expression=22).
22)For each hour an watch is going slow by 30 seconds.Now time is
8a.m.What will be the actual time at 8p.m.
Ans:ii)7:54.
23)Question regarding while loop.
Ans:(iii).
24)Alphabetical order L,M,…(cant remember)
Ans:F.
25)One puzzle:(I cant exactly remember this question giving brief idea of this question)there were four guys A,B,C,D. the older and younger relation is given . U have to find the age of the A.
Ans: 7 years(check it out).
26)Fallacy question: six sentences are given.
Ans: [i].
28)Nine people six floor. Conditions are given.(This was a very long paragraph).Peoples named like I,J,K,L,M,N,O,P,Q.
Ans:i)J.
29)A question regarding node.
Ans:iii)
30) problem regarding age of father and son(very easy problem u can solve it).
31)Point out error in the follwing sentence:I got the book in the office and slipped it out.
[i]I got the book.
[ii] in the.
[iii]office and .
[iv] slipped it out.
Ans:[iv].
32)Point out error:(about a flowers garden)
ans:(I can’t remember the options).answer will be “among on another”.
TIPS: Try to mug up the answers .check once more only the questions in the hall which we have pointed out by writing “check it out” with the answers.
But the other answers are correct fully. Don’t waste your time on long paragraphs.There was no negative marking.Try to solve all the departmental question.

Perl interview questions and answers


  1. What arguments do you frequently use for the Perl interpreter and what do they mean?
  2. What does the command ‘use strict’ do and why should you use it?
  3. What do the symbols $ @ and % mean when prefixing a variable?
  4. What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
  5. What are the characteristics of a project that is well suited to Perl?
  6. Why do you program in Perl?
  7. Explain the difference between my and local.
  8. Explain the difference between use and require.
  9. What’s your favorite module and why?
  10. What is a hash?
  11. Write a simple (common) regular expression to match an IP address, e-mail address, city-state-zipcode combination.
  12. What purpose does each of the following serve: -w, strict, -T ?
  13. What is the difference between for & foreach, exec & system?
  14. Where do you go for Perl help?
  15. Name an instance where you used a CPAN module.
  16. How do you open a file for writing?
  17. How would you replace a char in string and how do you store the number of replacements?
  18. When would you not use Perl for a project?

J2EE interview questions & Answers?


  1. What makes J2EE suitable for distributed multitiered Applications?
    - The J2EE platform uses a multitiered distributed application model. Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs. The J2EE application parts are:
    • Client-tier components run on the client machine.
    • Web-tier components run on the J2EE server.
    • Business-tier components run on the J2EE server.
    • Enterprise information system (EIS)-tier software runs on the EIS server.
  2. What is J2EE? - J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications.
  3. What are the components of J2EE application?
    - A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components:
    1. Application clients and applets are client components.
    2. Java Servlet and JavaServer Pages technology components are web components.
    3. Enterprise JavaBeans components (enterprise beans) are business components.
    4. Resource adapter components provided by EIS and tool vendors.
  4. What do Enterprise JavaBeans components contain? - Enterprise JavaBeans components contains Business code, which is logic
    that solves or meets the needs of a particular business domain such as banking, retail, or finance, is handled by enterprise beans running in the business tier. All the business code is contained inside an Enterprise Bean which receives data from client programs, processes it (if necessary), and sends it to the enterprise information system tier for storage. An enterprise bean also retrieves data from storage, processes it (if necessary), and sends it back to the client program.
  5. Is J2EE application only a web-based? - No, It depends on type of application that client wants. A J2EE application can be web-based or non-web-based. if an application client executes on the client machine, it is a non-web-based J2EE application. The J2EE application can provide a way for users to handle tasks such as J2EE system or application administration. It typically has a graphical user interface created from Swing or AWT APIs, or a command-line interface. When user request, it can open an HTTP connection to establish communication with a servlet running in the web tier.
  6. Are JavaBeans J2EE components? - No. JavaBeans components are not considered J2EE components by the J2EE specification. They are written to manage the data flow between an application client or applet and components running on the J2EE server or between server components and a database. JavaBeans components written for the J2EE platform have instance variables and get and set methods for accessing the data in the instance variables. JavaBeans components used in this way are typically simple in design and implementation, but should conform to the naming and design conventions outlined in the JavaBeans component architecture.
  7. Is HTML page a web component? - No. Static HTML pages and applets are bundled with web components during application assembly, but are not considered web components by the J2EE specification. Even the server-side utility classes are not considered web components, either.
  8. What can be considered as a web component? - J2EE Web components can be either servlets or JSP pages. Servlets are Java programming language classes that dynamically process requests and construct responses. JSP pages are text-based documents that execute as servlets but allow a more natural approach to creating static content.
  9. What is the container? - Containers are the interface between a component and the low-level platform specific functionality that supports the component. Before a Web, enterprise bean, or application client component can be executed, it must be assembled into a J2EE application and deployed into its container.
  10. What are container services? - A container is a runtime support of a system-level entity. Containers provide components with services such as lifecycle management, security, deployment, and threading.
  11. What is the web container? - Servlet and JSP containers are collectively referred to as Web containers. It manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server.
  12. What is Enterprise JavaBeans (EJB) container? - It manages the execution of enterprise beans for J2EE applications.
    Enterprise beans and their container run on the J2EE server.
  13. What is Applet container? - IManages the execution of applets. Consists of a Web browser and Java Plugin running on the client together.
  14. How do we package J2EE components? - J2EE components are packaged separately and bundled into a J2EE application for deployment. Each component, its related files such as GIF and HTML files or server-side utility classes, and a deployment descriptor are assembled into a module and added to the J2EE application. A J2EE application is composed of one or more enterprise bean,Web, or application client component modules. The final enterprise solution can use one J2EE application or be made up of two or more J2EE applications, depending on design requirements. A J2EE application and each of its modules has its own deployment descriptor. A deployment descriptor is an XML document with an .xml extension that describes a component’s deployment settings.
  15. What is a thin client? - A thin client is a lightweight interface to the application that does not have such operations like query databases, execute complex business rules, or connect to legacy applications.
  16. What are types of J2EE clients? - Following are the types of J2EE clients:
    • Applets
    • Application clients
    • Java Web Start-enabled rich clients, powered by Java Web Start technology.
    • Wireless clients, based on Mobile Information Device Profile (MIDP) technology.
  17. What is deployment descriptor? - A deployment descriptor is an Extensible Markup Language (XML) text-based file with an .xml extension that describes a component’s deployment settings. A J2EE application and each of its modules has its own deployment descriptor. For example, an enterprise bean module deployment descriptor declares transaction attributes and security authorizations
    for an enterprise bean. Because deployment descriptor information is declarative, it can be changed without modifying the bean source code. At run time, the J2EE server reads the deployment descriptor and acts upon the component accordingly.
  18. What is the EAR file? - An EAR file is a standard JAR file with an .ear extension, named from Enterprise ARchive file. A J2EE application with all of its modules is delivered in EAR file.
  19. What is JTA and JTS? - JTA is the abbreviation for the Java Transaction API. JTS is the abbreviation for the Jave Transaction Service. JTA provides a standard interface and allows you to demarcate transactions in a manner that is independent of the transaction manager implementation. The J2EE SDK implements the transaction manager with JTS. But your code doesn’t call the JTS methods directly. Instead, it invokes the JTA methods, which then call the lower-level JTS routines. Therefore, JTA is a high level transaction interface that your application uses to control transaction. and JTS is a low level transaction interface and ejb uses behind the scenes (client code doesn’t directly interact with JTS. It is based on object transaction service(OTS) which is part of CORBA.
  20. What is JAXP? - JAXP stands for Java API for XML. XML is a language for representing and describing text-based data which can be read and handled by any program or tool that uses XML APIs. It provides standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and create the appropriate JavaBeans component to perform those operations.
  21. What is J2EE Connector? - The J2EE Connector API is used by J2EE tools vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged into any J2EE product. Each type of database or EIS has a different resource adapter. Note: A resource adapter is a software component that allows J2EE application components to access and interact with the underlying resource manager. Because a resource adapter is specific to its resource manager, there is typically a different resource adapter for each type of database or enterprise information system.
  22. What is JAAP? - The Java Authentication and Authorization Service (JAAS) provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it. It is a standard Pluggable Authentication Module (PAM) framework that extends the Java 2 platform security architecture to support user-based authorization.
  23. What is Java Naming and Directory Service? - The JNDI provides naming and directory functionality. It provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes. Using JNDI, a J2EE application can store and retrieve any type of named Java object. Because JNDI is independent of any specific implementations, applications can use JNDI to access multiple naming and directory services, including existing naming and
    directory services such as LDAP, NDS, DNS, and NIS.
  24. What is Struts? - A Web page development framework. Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between.
  25. How is the MVC design pattern used in Struts framework? - In the MVC design pattern, application flow is mediated by a central Controller. The Controller delegates requests to an appropriate handler. The handlers are tied to a Model, and each handler acts as an adapter between the request and the Model. The Model represents, or encapsulates, an application’s business logic or state. Control is usually then forwarded back through the Controller to the appropriate View. The forwarding can be determined by consulting a set of mappings, usually loaded from a database or configuration file. This provides a loose coupling between the View and Model, which can make an application significantly easier to create and maintain. Controller: Servlet controller which supplied by Struts itself; View: what you can see on the screen, a JSP page and presentation components; Model: System state and a business logic JavaBeans.