Showing posts with label fresher hr interview question and answers. Show all posts
Showing posts with label fresher hr interview question and answers. Show all posts

schedule threads in java programming


 schedule threads in java programming
Java defines methods wait, notify, and notifyAll in the base class Object. The method wait is used when a thread is waiting for some condition that is typically controlled by another thread. It allows us to put a thread to sleep while waiting for the condition to change, and the thread will be wakened up when a notify or notifyAll occurs. Therefore, wait provides a method to synchronize activities between threads, and it is applicable to solve this problem.
A solution based on methods wait and notify is found in Listing 2-19. Listing 2-19. Java code to schedule threads
public class SimpleThread extends Thread {
    private int value;
    public SimpleThread(int num) {
        this.value = num;
start();
}
    public void run() {
        while(true) {
            synchronized(this) {
                try {
                    wait();
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.print(value + " ");
            }
} }
}
public class Scheduler {
    static final int COUNT = 3;
    static final int SLEEP = 37;
    public static void main(String args[]) {
        SimpleThread threads[] = new SimpleThread[COUNT];
        for(int i = 0; i < COUNT; ++i)
            threads[i] = new SimpleThread(i + 1);
        int index = 0;
        while(true){
            synchronized(threads[index]) {
                threads[index].notify();
}
            try {
                Thread.sleep(SLEEP);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
}
            index = (++index) % COUNT;
        }
} }
 There are four threads in the code above. The first is the main thread in the Java application, which
acts as the scheduler, and it creates three printing threads and stores them into an array. The main thread
awakens threads one by one according to their index in the array via the method notify. Once a thread
wakes up, it prints a number and then sleeps again to wait for another notification.
Source Code:
   004_Scheduler.java
www.cinterviews.com appreciates your contribution please mail us the questions 
you have to cinterviews.blogspot.com@gmail.com so that it will be useful 
to our job search community    
   
  
 

C++ Concepts


  1. C++C++ might be the most difficult programming language in many software engineers' judgment. Many interviewers believe a candidate who is proficient on C++ has the abilities needed to master other technical skills, so questions about C++ are quite popular during interviews. 

    Interview questions about the C++ programming language can be divided into three categories: C++ concepts, tricky C++ coding problems, and implementing a class or member function.
    C++ Concepts
    Questions in the first category are about C++ concepts, especially about C++ keywords. For example, what are the four keywords for type casting, and under what are scenarios would you use each of them?
    The most popular questions in this category concern the keyword sizeof.
    For instance, the following dialog is repeated again and again in many interviews:

    Interviewer:      There is an empty class, without any member fields and functions inside its definition. What is the result of      sizeof for this class?
    Candidate:       It is 1.
     Interviewer:     Why not 0?
     Candidate:      The size seems to be 0 since the class is empty without any data. However, it should occupy some memory; otherwise, it cannot be accessed. The size of memory is decided by compilers. It occupies 1 byte in Visual Studio.
    Interviewer:     What is the result of sizeof if we add the constructor and destructor functions in the class?
    Candidate:       It is also 1. The addresses for functions are irrelevant to instances, and compilers do not add any data in instances of this class.
    Interviewer:      How about declaring the destructor function as a virtual function?
    Candidate:        When a C++ compiler sees a virtual function inside a class, it creates a virtual function table for the class and adds a pointer to the table in each instance. A pointer in a 32-bit machine occupies 4 bytes, so the result of sizeof is 4. The result on a 64-bit machine is 8 because a pointer occupies 8 bytes there.
      www.cinterviews.com appreciates your contribution please mail us the questions you have to cinterviews.blogspot.com@gmail.com so that it will be useful to our job search community




Interviews Phases

Each round of interview is usually split into three phases, as shown in Figure 1-2. The first phase is the behavioral interview, in which interviewers examine candidates' experience while referring to their résumés. The second phase is the technical interview when it is highly possible for a candidate to be asked to solve some coding interview problems. Finally, the candidate is given time to ask a few questions. 
Behavior Interview
The first five to ten minutes of a round of interview is used for becoming acquainted. Usually, this is time for the behavioral interview, and no difficult technical questions are asked. Interviewers look for someone who would be a good fit for the job in terms of technical skills as well as personality. A person who is too timid might not fit well into an environment where he or she needs to be vocal. Interviewers also look for enthusiasm and excitement. If candidates are not excited about the position, they may not be motivated to contribute, even if they are a strong technical fit.
Most interviews begin with candidates' introducing themselves. A candidate usually doesn’t need to spend a lot of time introducing his or her main study and work experiences because interviewers have seen his or her résumé which contains detailed information. However, if an interviewer feels interested in a project the candidate has worked on, he or she may ask several questions on that subject in the introductory phase.

Project Experience
After a candidate has introduced him- or herself, interviewers may follow up with some questions on interesting projects listed on his or her résumé. It is recommended to use the STAR pattern to describe each project both on your résumé and during interviews (Figure 1-3).
  • Situation: Concise information about the project background, including the size, features, and target customers of the project.
  • Task: Concrete tasks should be listed when describing a big project. Please notice the difference between “taking part in a project” and “taking charge of a project.” When candidates mentioned they have taken charge of a project, it is highly possible for them to be asked about the overall architectural design, core algorithms, and team collaboration. These questions would be very difficult to answer if the candidates only joined a team and wrote dozens of lines of code. Candidates should be honest during interviews. Reference checks will also query claims made on résumés.
  • Action: Detailed information should be covered about how to finish tasks. If the task was architectural design, what were the requirements and how were they fulfilled? If the task was to implement a feature, what technologies were applied on which platforms? If it was to test, was it tested automatically or manually, with black boxes or white boxes?
  • Result: Data, especially numbers, about your contribution should be listed explicitly. If the task is to implement features, how many features have been delivered in time? If the task is to maintain an existing system, how many bugs have been fixed?
Let’s look at an example of the STAR patter in use. I usually describe my experience working on the Microsoft Winforms team in the following terms:
Winforms is a mature UI platform in Microsoft .NET (Situation). I mainly focused on maintenance and on implementing a few new features (Task). For the new features, I implemented new UI styles on Winforms controls in C# in order to make them look consistent between Windows XP and Windows 7. I tried to debug most of the reproducible issues we had with Visual Studio and employed WinDbg to analyze dump files (Action). I fixed more than 200 bugs in those two years (Result).
Interviewers may follow up with a few questions if the information you supplied in these four categories has not been described clearly. Additionally, interviewers are also interested in the candidates’ answers to the following questions:
  • What was the most difficult issue in the project? How did you solve it?
  • What did you learn from the project?
  • When did you conflict with other team members (developers, testers, UI designers, or project managers)? How did you eliminate these conflicts?
    It is strongly recommended that candidates prepare answers to each of the questions above when they write their résumés. The more time they spend preparing, the more confident they will be during interviews.
When describing a project either on a résumé or during an interview, candidates should be concise regarding project background, but they should provide detailed information about their own tasks, actions, and contributions. 
  1. Technical Skills
    Besides project experiences, technical skills are also a key element that interviewers pay close attention to on candidates’ résumés. Candidates should be honest in describing the proficiency level of their skills. Only when candidates feel confident that they are capable of solving most of the problems in a certain domain, should they declare themselves experts. Interviewers have higher expectation of candidates who claim to be experts and ask them more difficult questions. It is very disappointing when you cannot meet these expectations. 
    Candidates should be honest when they are describing their project experiences and technical skills. 
  2. www.cinterviews.com appreciates your contribution please mail us the questions you have to cinterviews.blogspot.com@gmail.com so that it will be useful to our job search community

Fresher Interview Preparation tips

Fresher Interview Preparation tips
Some resume writing tips
• The first important thing is your resume should not have any grammatical or spelling mistakes. I see many resumes without any proper alignment of the text. Use a good font and size.
• For a fresher it is always must to mention their percentages in the resume. Some people mention only for their highest degree and not for all. This is not acceptable in most of the companies. Try to keep your highest degree as the first in the table.
• Your e-mail and phone number should be visible at first sight. Please do not expect HR to search and find your mail-id in the resume. Some people keep their mail-id in the header of the doc. Try to avoid this practice. Double check your mail-id and phone number before sending your resume
• Save the mail in your sent items whenever you apply to a company.
• Do not apply to multiple companies in one mail. If you cannot avoid it at least use "BCC" instead of "To"
• Do not keep your passport number in the resume, nobody will ask for that.
• Do not keep more than three pages in your resume.
• Make sure that your resume contains at least two very good projects but do not keep more than three. Generally two are enough. The more the projects you keep the more the questions you face.
Preparation
You must be familiar with C, C++ and basic JAVA concepts
Following is the descending order of number questions from each subject interviewer will ask.
• Data Structures (Very important) - Try to exercise simple programs on all types of data structures
• Operating systems - Should be familiar with all basic concepts and definitions, try to learn some OS algorithms
• Computer Networks (TCP/IP, ISO-OSI, Congestion, etc...)
• DBMS (Basic definitions, Normalization with examples)
• Software Engineering (s/w paradigms, types of testing and its definition and SDLC)
Apart from the above you should exercise RS Agarwal Objective Aptitude, Sukunthala Devi Puzzles and some math and English in old GRE book.

For a fresher no one will ask for J2EE, .NET and some other software in the market. Once you are selected they will train you according to their requirement. Please remove it from your resume unless if you get a call based on those software.

Interview

• The most important thing is confidence. Just attend the interview that you will get the job.
• Be clear in your answers
• Ask twice if you are unable to understand the question
• Use paper if you are unable to explain. It is always easy explaining using a paper
• If you do not know something, say frankly. But the answer should not be "NO" to basic questions.
• Try to know about the company before attending the interview.
• If a company is working on networking concentrate more on Computer networks and Data structures. You should plan your preparation according to the area of working.
• You should be very familiar with your projects. Please do not keep some application projects in your resume if you are an engineer. This is ok for MCAs.
• Please keep in mind that interviewer does not know anything about your projects, he will ask questions only from your explanation. Be well prepared about your projects.
• I have personally seen many resumes got rejected in my company even after they cleared the written test because of bad resume and projects.
• For management and HR rounds you should expose yourself that taking you into their company will be a big asset to them
• Try to know about the company history, their area of working, no.of people, number of countries they work, CEO of the company and etc... Everything is available in their web site.
I hope I am not wrong in the above points and will help at least one fresher to get a job. Please let me know if someone wants very clear info about the books to refer, topics to concentrate more and any other doubts you have. I will try my best to answer you.
www.cinterviews.com
Do not keep hopes on trying on a fake experience; many companies started doing background verification...

You can work hard if you can just imagine software life, money and comforts you are going to get...Interviews are always simple it just depends on how confident you are...

BE CONFIDENT and TOMORROW WILL BE YOURS

HR Interview Questions and Best Answers

Mental fear of the unknown is often what produces the physical symptoms of nervousness. In addition to preparing yourself physically, you need to prepare yourself mentally. The best way to prepare mentally is to know what may be coming. Fear of the unknown can only exist when there is an unknown. Take the time to understand some of the standards when it comes to interviewing questions.
The following are some of the most difficult questions you will face in the course of your job interviews. Some questions may seem rather simple on the surfacesuch as Tell me about yourselfbut these questions can have a variety of answers. The more open ended the question, the wider the variation in the answers. Once you have become practiced in your interviewing skills, you will find that you can use almost any question as a launching pad for a particular topic or compelling story.
Others are classic interview questions, such as What is your greatest weakness? Questions most people answer improperly. In this case, the standard textbook answer for the greatest weakness question is to provide a veiled positive such as: I work too much. I just work and work and work. Wrong. Either you are lying or, worse yet, you are telling the truth, in which case you define working too much as a weakness and really do not want to work much at all.
The following answers are provided to give you a new perspective on how to answer tough interview questions. They are not there for you to lift from the page and insert into your next interview. They are provided for you to use as the basic structure for formulating your own answers. While the specifics of each reply may not apply to you, try to follow the basic structure of the answer from the perspective of the interviewer. Answer the questions behaviorally, with specific examples that show that clear evidence backs up what you are saying about yourself. Always provide information that shows you want to become the very best _____ for the company and that you have specifically prepared yourself to become exactly that. They want to be sold. They are waiting to be sold. Dont disappoint them!
  1. Tell me about yourself. It seems like an easy interview question. Its open ended. I can talk about whatever I want from the birth canal forward. Right?
    Wrong. What the hiring manager really wants is a quick, two- to three-minute snapshot of who you are and why youre the best candidate for this position.
    So as you answer this question, talk about what youve done to prepare yourself to be the very best candidate for the position. Use an example or two to back it up. Then ask if they would like more details. If they do, keep giving them example after example of your background and experience. Always point back to an example when you have the opportunity.
    Tell me about yourself does not mean tell me everything. Just tell me what makes you the best.
  2. Why should I hire you? The easy answer is that you are the best person for the job. And dont be afraid to say so. But then back it up with what specifically differentiates you.
    For example: You should hire me because Im the best person for the job. I realize that there are likely other candidates who also have the ability to do this job. Yet I bring an additional quality that makes me the best person for the job--my passion for excellence. I am passionately committed to producing truly world class results. For example . . .
    Are you the best person for the job? Show it by your passionate examples.
  3. What is your long-range objective?
    Make my job easy for me. Make me want to hire you.
    The key is to focus on your achievable objectives and what you are doing to reach those objectives.
    For example: Within five years, I would like to become the very best accountant your company has on staff. I want to work toward becoming the expert that others rely upon. And in doing so, I feel Ill be fully prepared to take on any greater responsibilities which might be presented in the long term. For example, here is what Im presently doing to prepare myself . . .
    Then go on to show by your examples what you are doing to reach your goals and objectives.
  4. How has your education prepared you for your career? This is a broad question and you need to focus on the behavioral examples in your educational background which specifically align to the required competencies for the career.
    An example: My education has focused on not only the learning the fundamentals, but also on the practical application of the information learned within those classes. For example, I played a lead role in a class project where we gathered and analyzed best practice data from this industry. Let me tell you more about the results . . .
    Focus on behavioral examples supporting the key competencies for the career. Then ask if they would like to hear more examples.
  5. Are you a team player? Almost everyone says yes to this question. But it is not just a yes/no question. You need to provide behavioral examples to back up your answer.
    A sample answer: Yes, Im very much a team player. In fact, Ive had opportunities in my work, school and athletics to develop my skills as a team player. For example, on a recent project . . .
    Emphasize teamwork behavioral examples and focus on your openness to diversity of backgrounds. Talk about the strength of the team above the individual. And note that this question may be used as a lead in to questions around how you handle conflict within a team, so be prepared.
  6. Have you ever had a conflict with a boss or professor? How was it resolved? Note that if you say no, most interviewers will keep drilling deeper to find a conflict. The key is how you behaviorally reacted to conflict and what you did to resolve it.
    For example: Yes, I have had conflicts in the past. Never major ones, but there have been disagreements that needed to be resolved. I've found that when conflict occurs, it helps to fully understand the other persons perspective, so I take time to listen to their point of view, then I seek to work out a collaborative solution. For example . . .
    Focus your answer on the behavioral process for resolving the conflict and working collaboratively.
  7. What is your greatest weakness? Most career books tell you to select a strength and present it as a weakness. Such as: I work too much. I just work and work and work. Wrong. First of all, using a strength and presenting it as a weakness is deceiving. Second, it misses the point of the question.
    You should select a weakness that you have been actively working to overcome. For example: I have had trouble in the past with planning and prioritization. However, Im now taking steps to correct this. I just started using a pocket planner . . . then show them your planner and how you are using it.
    Talk about a true weakness and show what you are doing to overcome it.
  8. If I were to ask your professors to describe you, what would they say? This is a threat of reference check question. Do not wait for the interview to know the answer. Ask any prior bosses or professors in advance. And if theyre willing to provide a positive reference, ask them for a letter of recommendation.
    Then you can answer the question like this:
    I believe she would say I'm a very energetic person, that Im results oriented and one of the best people she has ever worked with. Actually, I know she would say that, because those are her very words. May I show you her letter of recommendation?
    So be prepared in advance with your letters of recommendation.
  9. What qualities do you feel a successful manager should have? Focus on two words: leadership and vision.
    Here is a sample of how to respond: The key quality in a successful manager should be leadership--the ability to be the visionary for the people who are working under them. The person who can set the course and direction for subordinates. The highest calling of a true leader is inspiring others to reach the highest of their abilities. I'd like to tell you about a person whom I consider to be a true leader . . .
    Then give an example of someone who has touched your life and how their impact has helped in your personal development.
  10. If you had to live your life over again, what one thing would you change? Focus on a key turning point in your life or missed opportunity. Yet also tie it forward to what you are doing to still seek to make that change.
    For example: Although Im overall very happy with where Im at in my life, the one aspect I likely would have changed would be focusing earlier on my chosen career. I had a great internship this past year and look forward to more experience in the field. I simply wish I would have focused here earlier. For example, I learned on my recent internship… …then provide examples.
    Stay focused on positive direction in your life and back it up with examples.
In reviewing these responses, please remember that they are only to be viewed samples. Please do not rehearse them verbatim or adopt them as your own. They are meant to stir your creative juices and get you thinking about how to properly answer the broader range of questions that you will face.