Results

Job Portal

Carresma jobs

Wednesday, July 25, 2012

if(printf("Logical Programs")); C Inteview Questions Get logical c programs with clear explanation.


Introduction:


Why programs ?

Programming is nothing but making the computers think the same way a human thinks. Programs are made for obtaining a specific solution which can even be solved by humans which when solved by us may consume time. So one thing is clear that man can do all things that a computer can do where in turn a computer can not do all things that a man can do.  Even though the computers are fast,reliable,and robust they are simply current consuming machines unless they are programmed. 

Predict the output

int main()
{
int x=0;
if(x==printf(""))
printf("selva");
else
printf("Neo");
return 0;
}

Coding to create a pyramid using numbers in c program


#include<stdio.h>
void main()
{
 int n;
 do
 {
  printf("How many lines you want to printn");
  scanf("%d",&n);
 }
  while((n<1)||(n>9));
  for(int i=1;i<=n;i++)
  {

   for(int j=1;j<=(n-i);j++)
   printf(" ");

   for(j=1;j<=i;j++)
                        printf("%d",j);    

                        for(j=(i-1);j>=1;j--)
   printf("%d",j);

   printf("n");

  }
}

Predict the output for this program


int main( )
{
printf("%d",printf("%d %d",5,5)&printf("%d %d",7,7));
return 0;
}

1 7 7 5 5
7 7 5 5 1
5 5 7 7 3
7 7 5 5 3

What is the output of the following program?


int main( )
{
printf(" %d %d",printf("%d %d",7,7),printf("%d %d",5,5));
return 0;
}


7 7 5 5 3 3
5 5 7 7 3 3
3 3 7 7 5 5
3 3 5 5 7 7



Produce 2 power n series using bitwise operator

I am printing 2n series up to 210

int main()
{
int i;
for(i=0;i<10;i++)
printf("%d\n",1<<i);

return 0; 
}

This will be the output of the above code

1
2
4
8
16
32
64
128
256
512

Extern variable :predict the output


int i=2;
int main()
{
extern int i;
clrscr();
printf("%d",i);
getch();
return 0;
}
int i=3;

predict the output

#include
void main(){
int check=2;
switch(check){
case 1: printf("D.W.Steyn");
case 2: printf(" M.G.Johnson");
case 3: printf(" Mohammad Asif");
default: printf(" M.Muralidaran");
}
}

(A) M.G.Johnson
(B) M.Muralidaran
(C) M.G.Johnson Mohammad Asif M.Muralidaran
(D) Compilation error
(E) None of the above

output - (c)

#include
#define a 10
main()
{
#define a 50
printf("%d",a);
}

Answer:
50
Explanation:
The preprocessor directives can be redefined anywhere in the program. So the most recently
assigned value will be taken.



main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
Answer:
H
Explanation:
* is a dereference operator & is a reference operator. They can be applied any number of
times provided it is meaningful. Here p points to the first character in the string "Hello". *p
dereferences it and so its value is H. Again & references it to an address and * dereferences
it to the value H.



main()
{
int i=-1;
+i;
printf("i = %d, +i = %d \n",i,+i);
}
Answer:
i = -1, +i = -1

Explanation:
Unary + is the only dummy operator in C. Where-ever it comes you can just ignore it just
because it has no effect in the expressions (hence the name dummy operator).


Posted by sharmi

static

main()
{
static int var = 5;
printf("%d ",var--);
if(var)
main();
}
Answer:
5 4 3 2 1
Explanation:
When static storage class is given, it is initialized once. The change in the value of a static
variable is retained even between the function calls. Main is also treated like any other ordinary function,
which can be called recursively.

Posted by sharmi

Short circuit operators

Short circuit operator is operator in which first operand of expression is evaluated , the second operand is evaluated if it is necessary.

Short circuit operators in c programming are &&(Logical AND), ||(Logical OR).

Logical AND:
In logical AND operator expression if the first operand is false then it is no need of evaluating the second operand.

Logical OR:
In Logical OR operator expression if the first operand is true then it is no need of evaluating the second operand.

AND operator example
OR operator example

Predict the output


extern int a;
int ss();
int main()
{
int a=10;
ss();
return printf("%d",a);
}
int ss()
{
return printf("%d",a);
}
int a=20;
Answer:
2010
1020
1010
Compilation Error

Predict the Output:


main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("shark selva");
else
printf("Matrix Developer");
}


shark selva
Matrix Developer


Difference between a string copy (strcpy) and a memory copy (memcpy)?

What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?


why??

why n++ executes faster than n+1?



Is these two programs same?


for (i=0;i<5;i++)
{
if(i%3==0)
continue;
}

i=0;
while(i<5)
{
if(i%3==0)
continue;
i++;
}

Answer:

Yes
No




Additon without Arithmetic Operators:

Here is the program which use bit wise operator and perform the addition operation. There is no arithmetic operator is used in this program.

int main()
{
int a,b,sum,carry;
printf("Enter the values");
scanf("%d %d",&a,&b);
sum=a^b;
carry=a&b;
while(carry!=0)
{

Program without Header File

is it possible to run the program without header file?  yes, it is possible.  consider the following program.

int main()
{
printf("hi");
return 0;
}
 It will work perfectly ,if you save the file.  But the concept is that while compiling itself ,compiler includes stdio.h header file automatically. 

Tuesday, July 24, 2012

How to Prepare for BPO / Call Center Interview

The word “interview” itself makes a person tense and nervous who needs to appear in the interview. It is normal human behaviour to become confused or get tensed but such things can be overcome with practice, learning from seniors and elders, through own experience. These days Internet is a rich source of information.

In this jobshangout.blogspot.com, you will find questions also along with answers which are frequently asked and questions pertaining to your requirement. Have a walk through in this site. It will improve you performance remarkably and infuse a high level of confidence in you. It will make you more frank and it will develope diplomatic qualities in you too. Overall, it will give an impetus to you personality development.

The following are some frequently asked questions and answers in an interview. They are just suggestions feel free to adjust them to your personality and qualifications.

You should have a prepared response to the frequently asked question Tell me about yourself. Your ability to recite your background in a brief 120-second format is vital to the interview process. The two-minute bio offers a quick peek into your background, strengths, and career direction.

While every personal bio is unique, the traditional format looks something like this:

1. Begin with a brief remark about your background, such as your schooling, hometown, or other items of interest.

2. State your most recent employer, job title, and years with the company.

3. Offer one or two sentences about your job responsibilities.

4. Mention one or two special accomplishments in your most recent positions, including skill strengths.

5. Refer to prior positions to indicate career progression.

6. Indicate career goals.

Rehearse your 2-minute bio until it flows naturally according to the guidelines above.

WHY SHOULD WE HIRE YOU?

The employer wants to hear your interpretation of the important aspects of the job. If you spend your interview for a retail sales position extolling your virtues as a computer expert you aren't likely to convince the interviewer that you have the skills needed to sell merchandise.

This is an opportunity question: an opportunity to tell how well your skills match the company's needs. If the search is for a super salesperson, tell how well you have honed your skills in persuasion, communication, and perseverance. Give an example of a time that you made a successful sale, or that you convinced someone to do something, or when tenacity paid off.

WHY DO YOU WANT TO WORK FOR OUR COMPANY?

This is where your research of the company comes in. In today's world of instant information, we can no longer get away with going into an interview without first having researched the company. The company in turn wants to know if you have done your homework.

This question allows you to show off the research you have done on the organization. Tell the interviewer you like the company's size, location, aggressive market stance, competitive thinking and creative business policies. It is perfectly acceptable to admit that you looked up the company on the Internet or in the reference section of the library. This shows that you know how to find answers to questions and arm yourself with information.

WHERE DO YOU SEE YOURSELF IN 5 YEARS?

Occasionally an interviewer unearths some important information regarding a potential employee's longevity by asking this question. If you plan to go to graduate school, take a vacation tour, or move to a distant state, do not mention these plans to the interviewer under any circumstances. You will be considered a hiring risk no matter how strong your skills.

Remember that the main concern throughout the interview is to fill the open position with someone who will be successful in it. Say something like, First, I'd like to gain a solid foundation in the position you are considering me for, so that I am effective and successful in it. I'm sure that as I continue to grow, there will be opportunities within the company to offer me upward professional growth and new challenges.

WHAT ARE YOUR GREATEST WEAKNESSES?

It is unlikely that most interviewers are straining their ears to hear your list of weaknesses. They simply want to see how you handle the question.

Some job candidates can get away with an answer like, While I certainly have weaknesses, I don't believe I have any that are significant to the position. As you've described the position to me, I think it would allow me to call upon my strengths.

If you don't feel you could pull that off, name a weakness that is first, not closely related to the position for which you are interviewing, and second, a technical skill that you can easily learn rather than a shortcoming in your personality, which is very difficult to change. Then tell the interviewer how you are working to improve your weak spot.

TELL ME ABOUT A PROBLEM YOU'VE FACED AND HOW YOU HANDLED IT

They want to assess your analytical skills as well as your ability to relate a delicate situation with tact and diplomacy.

To prevent yourself from stumbling and fumbling for a good response, prepare one before you set foot in the interview. Your answer should involve a clear presentation of the problem, the steps you took to correct the problem, and the results of your actions. Remember to keep it to less than two minutes.

WHAT ARE YOUR GREATEST STRENGTHS?

The interviewer is hoping to hear that your strengths match the needs of the job. He or she also wants to know how you present yourself and will watch warily for overconfidence, boastfulness, dishonesty, and lack of assertiveness.

This is an opportunity to highlight your strong points, so make the most of it. Speak of one or two strengths and then offer examples of how you have used these strengths.

WHAT INTERESTS YOU MOST ABOUT THIS JOB?

The interviewer is looking for your areas of enthusiasm “ where you will put the most energy into the job. Make sure your strong areas match the needs of the company's needs.

Answer this question with a question. Ask the interviewer to clarify the position for you before you answer, so that I can be sure not miss any key aspects of the job. Then match your interest areas with the key components of the job.

Interview DOs and DON'Ts


Interview DOs

  • Dress appropriately for the industry; err on the side of being conservative to show you take the interview seriously. Your personal grooming and cleanliness should be impeccable.
  • Know the exact time and location of your interview; know how long it takes to get there, park, find a rest room to freshen up, etc.
  • Arrive early; 10 minutes prior to the interview start time.
  • Treat other people you encounter with courtesy and respect. Their opinions of you might be solicited during hiring decisions.
  • Offer a firm handshake, make eye contact, and have a friendly expression when you are greeted by your interviewer.
  • Listen to be sure you understand your interviewer's name and the correct pronunciation.
  • Even when your interviewer gives you a first and last name, address your interviewer by title (Ms., Mr., Dr.) and last name, until invited to do otherwise.
  • Maintain good eye contact during the interview.
  • Sit still in your seat; avoid fidgeting and slouching.
  • Respond to questions and back up your statements about yourself with specific examples whenever possible.
  • Ask for clarification if you don't understand a question.
  • Be thorough in your responses, while being concise in your wording.
  • Be honest and be yourself. Dishonesty gets discovered and is grounds for withdrawing job offers and for firing. You want a good match between yourself and your employer. If you get hired by acting like someone other than yourself, you and your employer will both be unhappy.
  • Treat the interview seriously and as though you are truly interested in the employer and the opportunity presented.
  • Exhibit a positive attitude. The interviewer is evaluating you as a potential co-worker. Behave like someone you would want to work with.
  • Have intelligent questions prepared to ask the interviewer. Having done your research about the employer in advance, ask questions which you did not find answered in your research.
  • Evaluate the interviewer and the organization s/he represents. An interview is a two-way street. Conduct yourself cordially and respectfully, while thinking critically about the way you are treated and the values and priorities of the organization.
  • Do expect to be treated appropriately. If you believe you were treated inappropriately or asked questions that were inappropriate or made you uncomfortable, discuss this with a Career Services advisor or the director.
  • Make sure you understand the employer's next step in the hiring process; know when and from whom you should expect to hear next. Know what action you are expected to take next, if any.
  • When the interviewer concludes the interview, offer a firm handshake and make eye contact. Depart gracefully.
  • After the interview, make notes right away so you don't forget critical details.
  • Write a thank-you letter to your interviewer promptly.


Interview DON'Ts

  • Don't make excuses. Take responsibility for your decisions and your actions.
  • Don't make negative comments about previous employers or professors (or others).
  • Don't falsify application materials or answers to interview questions.
  • Don't treat the interview casually, as if you are just shopping around or doing the interview for practice. This is an insult to the interviewer and to the organization.
  • Don't give the impression that you are only interested in an organization because of its geographic location.
  • Don't give the impression you are only interested in salary; don't ask about salary and benefits issues until the subject is brought up by your interviewer.
  • Don't act as though you would take any job or are desperate for employment.
  • Don't make the interviewer guess what type of work you are interested in; it is not the interviewer's job to act as a career advisor to you.
  • Don't be unprepared for typical interview questions. You may not be asked all of them in every interview, but being unprepared looks foolish.
  • A job search can be hard work and involve frustrations; don't exhibit frustrations or a negative attitude in an interview.
  • Don't go to extremes with your posture; don't slouch, and don't sit rigidly on the edge of your chair.
  • Don't assume that a female interviewer is "Mrs." or "Miss." Address her as "Ms." unless told otherwise. Her marital status is irrelevant to the purpose of the interview.
  • Don't chew gum or smell like smoke.
  • Don't allow your cell phone to sound during the interview. (If it does, apologize quickly and ignore it.) Don't take a cell phone call.
  • Don't take your parents, your pet (an assistance animal is not a pet in this circumstance), spouse, fiance, friends or enemies to an interview. If you are not grown up and independent enough to attend an interview alone, you're insufficiently grown up and independent for a job. (They can certainly visit your new city, at their own expense, but cannot attend your interview.)

Here are the keys to successful phone interviewing. Follow these simple rules and you should achieve success in this important phase of job-hunting.

* Do give accurate and detailed contact information in your cover letter so your interviewers can easily connect with you.

* When in job-hunting mode, don't have a disproportionately silly or long greeting on your answering machine or voicemail. 

* Do ensure that household members understand the importance of phone messages in your job search. 

* Do know what job you are interviewing for. 

* Do practice, if possible. Have a friend call you to do a mock phone interview so you get the feel of being interviewed over the phone.

* When being interviewed by phone, do make sure you are in a place where you can read notes, take notes, and concentrate. 

* If you cannot devote enough time to a phone interview, do suggest a specific alternate time to the recruiter. It's often best to be the one who calls back so you can be mentally prepared.

* Do consider using a phone interview log. 

* Do consider keeping some notecards or an outline in front of you to remind yourself of key points you want to cover with the interviewer. You don't want your responses to sound scripted, but you don't want to fumble for important points either. Do also have your resume in front of you so you can remember highlights of your experience and accomplishments.

* Do ensure that you can hear and are being clearly heard. 

* Do consider standing when being interviewed on the phone. Some experts say you'll sound more professional than if you're slouching in an easy chair.

* Do consider dressing nicely for the phone interview. It may sound silly since the interviewer can't see you, but you really will project a more professional image if you're dressed for the part instead of wearing, for example, a ratty bathrobe.

* Don't feel you have to fill in the silences. If you've completed a response, but the interviewer hasn't asked his or her next question, don't start babbling just to fill in airtime. Instead, ask a question of your own related to your last response.

* Do create a strong finish to your phone interview with thoughtful questions. 

* Don't panic if you have special needs. If you are hearing-impaired, for example, phone interviews are still possible. 

* Don't snuffle, sneeze or cough. If you can't avoid these behaviors, say “excuse me.” 

* Don't chew gum or food, or drink anything noisy.

Job Interview Questions and Answers


Why should you be hired for this job?
Point out how your talents and how they meet what the organization needs. Do not mention any other job candidates and try to make a comparison. Try to tie a few things to your career path and how it is a good fit. Answer this question with confidence. Do not waffle. You show already know why you should be hired. If you have doubts or are tentitive about this answer, your interviewer might also have doubts.

Why did you leave (or want to leave) your last job?
Stay positive regardless of the circumstances. Never refer to a major problem with management and never speak ill of supervisors, co-workers or the organization. If you do, you will be the one looking bad. Keep smiling and talk about leaving for a positive reason such as an opportunity, a chance to do something special or other forward-looking reasons.


What do you know about this company/organization?
This question is one reason to do some research on the organization before the interview. Find out where they have been and where they are going. What are the current issues and who are the major players?

What have you done to improve your knowledge in the last year?
Try to include improvement activities that relate to the job. A wide variety of activities can be mentioned as positive self-improvement. Have some good ones handy to mention.

Do you have any weaknesses?
Trick question. If you know about weakness, they are no longer blind spots. Do not reveal any personal areas of concern here. Let them do their own discovery on your bad points. Do not hand it to them.

What is your greatest strength?
Numerous answers are good, just stay positive. A few good examples: Your ability to prioritize, Your problem-solving skills, Your ability to work under pressure, Your ability to focus on projects, Your professional expertise, Your leadership skills, Your positive attitude.

What have you learned from mistakes on the job?
Here you have to come up with something or you strain credibility. Make it small, well intentioned mistake with a positive lesson learned. An example would be working too far ahead of colleagues on a project and thus throwing coordination off.

Have you ever had to fire anyone? How did you feel about that?
This is serious. Do not make light of it or in any way seem like you like to fire people. At the same time, you will do it when it is the right thing to do. When it comes to the organization versus the individual who has created a harmful situation, you will protect the organization. Remember firing is not the same as layoff or reduction in force.

Are you a team player?
You are, of course, a team player. Be sure to have examples ready. Specifics that show you often perform for the good of the team rather than for yourself are good evidence of your team attitude. Do not brag, just say it in a matter-of-fact tone. This is a key point.

Describe your management style.
Try to avoid labels. Some of the more common labels, like progressive, salesman or consensus, can have several meanings or descriptions depending on which management expert you listen to. The situational style is safe, because it says you will manage according to the situation, instead of one size fits all.

Would you be willing to relocate if required?
You should be clear on this with your family prior to the interview if you think there is a chance it may come up. Do not say yes just to get the job if the real answer is no. This can create a lot of problems later on in your career. Be honest at this point and save yourself future grief.

Are you willing to work overtime? Nights? Weekends?
This is up to you. Be totally honest.

What motivates you to do your best on the job?
This is a personal trait that only you can say, but good examples are:
Challenge, Achievement, Recognition

What motivates you to do your best on the job?
This is a personal trait that only you can say, but good examples are:
Challenge, Achievement, Recognition

What would your previous manager say your strongest point is?
There are numerous good possibilities:
Loyalty, Energy, Positive attitude, Leadership, Team player, Expertise, Initiative, Patience, Hard work, Creativity, Problem solver.

What kind of salary are you asking for?
A common loaded question. A tricky little game that you will probably lose if you answer first. So, do not answer it. Instead, say something like, That’s a tough question. Can you tell me the range for this position? In most cases, the interviewer, taken off guard, will tell you. If not, say that it can depend on the details of the job. Then give a wide range.
Stay away from a specific job. You cannot win. If you say the job you are contending for is it, you strain credibility. If you say another job is it, you plant the suspicion that you will be dissatisfied with this position if hired. The best is to stay genetic and say something like: A job where I love the work, like the people, can contribute and can’t wait to get to work.

Do you think you are overqualified for this position?
Regardless of your qualifications, state that you are very well qualified for the position.

How do you propose to compensate for your lack of experience?
First, if you have experience that the interviewer does not know about, bring that up: Then, point out (if true) that you are a hard working quick learner.

What qualities do you look for in a Manager?
Be generic and positive. Safe qualities are knowledgeable, a sense of humor, fair, loyal to subordinates and holder of high standards. All bosses think they have these traits.

Tell me about a time when you helped resolve a dispute between coworkers.
Pick a specific incident. Concentrate on your problem solving technique and not the dispute you settled.

Describe your work ethic.
Emphasize benefits to the company and the hiring manager. Things like, determination to get the job done and work hard but enjoy your work are good.