Showing posts with label OOPS. Show all posts
Showing posts with label OOPS. Show all posts

Wednesday, September 19, 2012

What is Group Discussion and its Importance - HR Interview Questions

It is a methodology used by an organization to gauge whether the candidate has certain personality traits and/or skills that it desires in its members. In this methodology, the group of candidates is given a topic or a situation, given a few minutes to think about the same, and then asked to discuss the it among themselves for 15-20 minutes.

As in a football game, where you play like a team, passing the ball to each team member and aim for a common goal, GD is also based on team work, incorporating views of different team members to reach a common goal.

Here are some of the most important personality traits that a candidate should possess to do well at a GD:

The skills that are usually assessed in a Group Discussion are:


    * Communication Skills
    * Interpersonal Skills
    * Leadership Skills
    * Motivational Skills
    * Team Building Skills
    * Tolerance to Ambiguity
    * Divergent Thinking
    * Listening skills
    * Presentation Skills
    * Analytical / Logical skills

So, it's important to assess your current strengths in all these areas and accordingly put efforts to strenthen your weaknesses.

What GD Panel Looks for - HR Interview Questions

All that one observes in a GD can be categorized into two broad areas: the Content and the Process. The content is all about the matter (or the 'what') spoken in the GD. Whereas, the process refers to the 'how', 'when' and 'why' of the GD. Both are equally important and need adequate attention at all stages. A high quality contribution with no regard to the 'process' is as suicidal as one which is high on packaging with little content.

Skills of an Individual that are Judged in Group Discussion are:

    * How good you are at communication with others.
    * How you behave and interact with group.
    * How open minded are you.
    * Your listening skill.
    * How you put forward your views.
    * Your leadership and decision making skills.
    * Your analysis skill and subject knowledge.
    * Problem solving and critical thinking skill.
    * Your attitude and confidence.

Important Points to Remember about Group Discussion (GD) - HR Interview Questions

   * It is important for all the members of a group discussion to use reasoning.
    * It is also important for you to ask questions that will allow you to determine how much the other members know about a specific topic.
    * You should not make a statement which gives your opinion about the accuracy of a comment that has been made by another member.
    * If you are the one who is planning or leading the group, it is important to make sure every members contributes something to the discussion.
    * It is important to make sure everyone is talking about the topic. The students should talk and make statements regarding the topic.
    * The best way to approach the topic of discussion is to start with a concept that is simple before moving to one that is complex.
    * Once you have researched the topic, you should develop your own thoughts or opinions about it.
    * To successfully participate in group discussion, you must know how to work well with others, and you must understand the topic or materials that are being discussed.

Thursday, September 13, 2012

Find the maximum and minimum of given numbers

pair the numbers in groups of two compare them and winner need not be checked for minimum and loser for maximum thus we would get maximum and minimum in
3n/2 -2 comparison

for example let us have an array of a[]={34,21,45,67}
first compare 34 and 21 winner is 34 loser 21

second compare 45 67 winner is 67 loser 45
third compare 67 and 34 (winners of first two) winner is 67 no need to maintain loser
fourth compare 21 45 (losers of first two) loser is 21 no need to maintain winner
we have found the winner is 67 and loser is 21 in just four comparison. You can try it on more numbers


Find smallest element in rotated array

#include<stdio.h>


int find_smallest_element_position(int *a, int first , int last);

main()

{

int a[10]={4,5,6,7,8,9,1,2,3};

int pos;

pos=find_smallest_element_position(a,0,8);

printf("The smallest element's position is %d\n",pos);

}



int find_smallest_element_position(int *a, int first , int last)

{

int mid;

while(first&lt;last)

{

mid=(first+last)/2;

if(a[mid]&gt;a[last])

{

first=mid+1;

}

else

{

last=mid;

}

}

return first;

}

Find an element in sorted matrix

Questions : you have a [n * n] array which is sorted both row wise and column wise. How do you find an element in this array in O(n) time ?

Answer 1.-

Let X be the bottom left element of the matrix and we need to find the position of an element K.
Now if K = X, we can return the position of X.
Else if K < X, then we can possibly eliminate that row as all the elements in that row are greater than or equal to X.
Else if X < K, then we can eliminate that column as all the elements in that column are lesser than X.
Now in each step, we eliminate either a row or coll which finally leads to that element.



Difference between HashMap and Hashtable

The iterator in the Hash Map is fail-safe (If you change the map while iterating, you’ll know). The enumerator for the Hash table is not fail-safe.Hash Map is unsynchronized.Hash table is synchronized.



Can you store multiple data types in System.Array

No
Note-( array is collection of same data type)

Can we create an object for an interface

Interfaces cannot be instantiated in their own right, so you must write a class that implements the interface and fulfill all the methods defined in it.