Interview Tips Interview Tips, Interview Questions and Answers

30Jun/100

What is XML

1. What is XML?

XML is the Extensible Markup Language. It improves the functionality
of the Web by letting you identify your information in a more accurate,
flexible, and adaptable way. It is extensible because it is not
a fixed format like HTML (which is a single, predefined markup language).
Instead, XML is actually a meta language.(a language for describing
other languages)which lets you design your own markup languages
for limitless different types of documents. XML can do this because
it’s written in SGML, the international standard meta language for
text document markup (ISO 8879).

2. What is a markup language?

A markup language is a set of words and symbols for describing
the identity of pieces of a document (for example ‘this is
a paragraph’, ‘this is a heading’, ‘this
is a list’, ‘this is the caption of this figure’,
etc). Programs can use this with a style sheet to create output
for screen, print, audio, video, Braille, etc.

Some markup languages (eg those used in word processors) only describe
appearances (’this is italics’, ‘this is bold’),
but this method can only be used for display, and is not normally
re-usable for anything else.

29Jun/100

JavaScript & AJAX interview questions

1.  JavaScript is interpreted by _________

A.  Client

B.   Server

C.  Object

D.  None of the above

2.  Using _______ statement is how you test for a specific condition.

A.  Select

B.  If

C.  Switch

D.  For

3.  Which of the following is the structure of an if statement?

A.  if (conditional expression is true) thenexecute this codeend if

B.   if (conditional expression is true)execute this codeend if

C.  if (conditional expression is true)   {then execute this code>->}

D.  if (conditional expression is true) then {execute this code}

4.  How to create a Date object in JavaScript?

A.  dateObjectName = new Date([parameters])

B.   dateObjectName.new Date([parameters])

C.  dateObjectName := new Date([parameters])

D.  dateObjectName Date([parameters])

5.  The _______ method of an Array object adds and/or removes elements from an array.

A.  Reverse

B.   Shift

C.  Slice

D.  Splice

6.  To set up the window to capture all Click events, we use which of the following statement?

A.  window.captureEvents(Event.CLICK);

B.   window.handleEvents (Event.CLICK);

C.  window.routeEvents(Event.CLICK );

D.  window.raiseEvents(Event.CLICK );

7.  Which tag(s) can handle mouse events in Netscape?

A.  <IMG>

B.  <A>

C.  <BR>

D.  None of the above

8.  ____________ is the tainted property of a window object.

A.  Pathname

B.   Protocol

C.  Defaultstatus

D.  Host

9.  To enable data tainting, the end user sets the _________ environment variable.

A.  ENABLE_TAINT

B.   MS_ENABLE_TAINT

C.  NS_ENABLE_TAINT

D.  ENABLE_TAINT_NS

10.  In JavaScript, _________ is an object of the target language data type that encloses an object of the source language.

A.  a wrapper

B.   a link

C.  a cursor

D.  a form

24Jun/100

The Best Questions to Ask in the Interview

Some good topics to cover include: The company Dave Stanford, executive vice president of client services for contingency and contract staffing firm Winter, Wyman Companies suggests asking:

  • What do you see ahead for your company in the next five years?
  • How do you see the future for this industry?
  • What do you consider to be your firm's most important assets?
  • What can you tell me about your new product or plans for growth?
  • How do you rate your competition? The position's history Asking about why the position is vacant can provide insight into the company and the potential for advancement. According to Annie Stevens and Greg Gostanian, managing partners at executive and career development firm ClearRock, good questions include:
  • What happened to the last person who held this job?
  • What were the major strengths and weaknesses of the last person who held this job?
  • What types of skills do you NOT already have onboard that you're looking to fill with a new hire? The department Asking about your department's workers and role in the company can help you understand more about the company's culture and hierarchy. Stanford suggests asking:
  • What is the overall structure of the company and how does your department fit the structure?
  • What are the career paths in this department?
  • What have been the department's successes in the last couple of years?
  • How do you view your group/division/department? The job's responsibilities To avoid any confusion later on, it pays to gain a solid understanding of the position. FGP International's Eddie Payne recommends inquiring:
  • What would you consider to be the most important aspects of this job?
  • What are the skills and attributes you value most for someone being hired for this position?
  • Where have successful employees previously in this position progressed to within the company?
  • Could you describe a typical day or week in this position? The typical client or customer I would be dealing with? The expectations To determine how and when you will evaluated, Payne recommend advises asking:
  • What are the most immediate challenges of the position that need to be addressed in the first three months?
  • What are the performance expectations of this position over the first 12 months?
  • How will I be evaluated at XYZ company, and how often? The next steps At the end of the interview, don't forget to ask:
  • What are the next steps in the interview process?
  • 22Jun/100

    Why Do They Ask That in an Interview?

    The company wants a team player and an independent worker
    When you are asked whether you work better alone or in a team, what they really want to know is how you interact with others and how much direction you need when you're assigned to work by yourself.

    If you use time alone well, are you able to keep your boss posted on your progress at reasonable intervals? Are you good at brainstorming in a group, the one who comes up with rapid-fire ideas? Or are you the person who is likely to mold them into a collaborative effort to find a solution for the challenge at hand?  Either alone or in a team, you want to convey that you can interact well with co-workers at various levels of authority, but that you're a person who can be productive and come up with answers on your own as well.

    Remember, an interview is a two-way street, and that's true where questions are concerned. Be sure to ask questions that show you have researched the company and that you're aware of current issues faced by the company and the industry it's in. You need to show an interest in the company if you want it to show an interest in you.

    For years, people have been counseled to envelope their "weakness" in an answer that actually makes it sound like a strength. But job interviewers have heard them all, and those answers tend to sound hollow these days. Rather, choose a time when you had to face a significant challenge or adversity -- without getting too personal -- and tell how you overcame that dilemma and were improved by it. Tell what you learned and how that newfound knowledge benefited you as a professional. People who recognize their weaknesses and show they want to do better are showing a prospective employer they are willing to do their best, even if it means learning from mistakes.

    21Jun/100

    Things to Tell an Interviewer

    The best way to show these traits is to take the initiative and have several personal stories that you can tell, taking maybe 30 to 90 seconds each. You may want to start by developing your stories around these seven areas:

    1. Times where you either made money or saved money for your current or previous company.

    2. A crisis in your life or job and how you responded or recovered from it.

    3. A time where you functioned as part of a team and what your contribution was.

    4. A time in your career or job where you had to overcome stress.

    5. A time in your job where you provided successful leadership or a sense of direction.

    6. A failure that occurred in your job and how you overcame it.

    7. Any seminal events that happened during your career to cause you to change direction and how that worked out for you. I want to emphasize that an interview should not be an interrogation. It should be a conversation between two equals. When you accomplish this you come away a step closer to your goal of landing the job you really want, because... It's the conversation that wins an interview, and it's the conversation that wins the job. To have a conversation, have your stories ready.

    19Jun/100

    Things That Seal the Deal

    Here's what hiring managers had to say:

    "One of the big things for me is [following] up. If I'm on the fence about a candidate but they take the time to e-mail me and thank me for having them come in, it shows me that they are motivated, tactful and professional. On the other side of the coin, if I interview someone and they are using lots of banal business speak and don't give me any impression of what their personality is like, I will usually pass. I hate when I ask a candidate what their favorite thing to work on is and they say 'everything' -- it leaves me with the impression that they either have no personality or won't speak their mind." -- Keith Baumwald, interactive marketing analyst, Shoplet.com

    "I know I have a good candidate for hire when they come in prepared with as many questions about the job and company as I have for the candidate -- especially when their questions go beyond just the pay rate and benefits. By showing interest in learning more about what the job opportunity actually involves, it shows that the candidate is just as concerned about this job being the right fit for them as I am." -- Angie Nelson, marketing coordinator, Les Bois Federal Credit Union

    "A quick deal-killer for me is people who are trying to answer questions the way they think I want them answered. Honesty in the interview is refreshing. I appreciate applicants who tell the truth without trying to sugarcoat things. I am not as concerned with bad things that have happened in their past as much as how they dealt with those issues. That shows their true character." -- Phil Wrzesinski, owner, Toy House and Baby Too

    "Confidence is important, but there is a fine line between that and arrogance. I once had a candidate state numerous times he was the one and that no way anyone else could be better. This is not only arrogant, but demonstrates ignorance on the part of the candidate. One does not always know who they are competing with or all of their qualifications." -- Thomasina Tafur, president, Thomasina Tafur Consulting

    "When interviewing candidates to join our firm, two things can be deal breakers: attitude and core values. You can't teach attitude, but you can teach skill.  A positive attitude, strong work ethic and strong values should trump more experience and skill. I also make sure the candidate demonstrates our company's core values. I ask them to tell me their 'story' of their professional journey. Through their story, I get a better understanding of the decisions they made and the values they have (or don't have)." -- Michelle Roccia, senior vice president of corporate organizational development, Winter, Wyman

    "When a candidate is displaying a true desire to come work for your company, they are often the one you want to hire once you are looking at the finalist pool. The fastest way to end up with a short interview and ruling yourself out from being considered is to arrive to an interview to only lack energy, give short answers and show no excitement to be there." -- James Thompson, vice president of business development, JMJ Phillip

    "When I hire, I hire for 'right fit,' which doesn't necessarily have anything to do with experience or training. A 'right fit' candidate is someone who is aligned philosophically with the company, has a passion for the products or industry, and believes that the kind of work that they do is their mission, not just their livelihood. For example, when I was staffing a green business in Orange County, Calif., I didn't hire the people with the longest résumés and the most degrees, I hired the people who were passionate about the 'green' cause and had demonstrated that in some way in their personal life. What we ended up with were employees who were willing to do whatever it took to make the enterprise successful because they were driven by an inner belief, not by a paycheck. They were engaged at an extremely high level from the first day they walked in the door. I hire for passion, and then train for skills, if necessary." --Barbara Farfan, management and retail consultant, Authentic Communications

    18Jun/100

    Cookies with More Than One Value in asp.net

    You can store one value in a cookie, such as user name or last visit. You can also store multiple name-value pairs in a single cookie. The name-value pairs are referred to as subkeys.  For example, instead of creating two separate cookies named userName and lastVisit, you can create a single cookie named userInfo that has the subkeys userName and lastVisit.

    You might use subkeys for several reasons. First, it is convenient to put related or similar information into a single cookie. In addition, because all the information is in a single cookie, cookie attributes such as expiration apply to all the information.

    A cookie with subkeys also helps you limit the size of cookie files. As noted earlier in the "Cookie Limitations" section, cookies are usually limited to 4096 bytes and you can't store more than 20 cookies per site. By using a single cookie with subkeys, you use fewer of those 20 cookies that your site is allotted. In addition, a single cookie takes up about 50 characters for overhead (expiration information, and so on), plus the length of the value that you store in it, all of which counts toward the 4096-byte limit. If you store five subkeys instead of five separate cookies, you save the overhead of the separate cookies and can save around 200 bytes.

    To create a cookie with subkeys, you can use a variation of the syntax for writing a single cookie. The following example shows two ways to write the same cookie, each with two subkeys:
    Response.Cookies["userInfo"]["userName"] = "patrick";
    Response.Cookies["userInfo"]["lastVisit"] = DateTime.Now.ToString();
    Response.Cookies["userInfo"].Expires = DateTime.Now.AddDays(1);

    HttpCookie aCookie = new HttpCookie("userInfo");
    aCookie.Values["userName"] = "patrick";
    aCookie.Values["lastVisit"] = DateTime.Now.ToString();
    aCookie.Expires = DateTime.Now.AddDays(1);
    Response.Cookies.Add(aCookie);

    17Jun/100

    Writing Cookies in asp.net

    The browser manages cookies on a user system. Cookies are sent to the browser via the HttpResponse object that exposes a collection called Cookies. You can access the HttpResponse object as the Response property of your Page class. Any cookies that you want to send to the browser must be added to this collection. When creating a cookie, you specify a Name and Value. Each cookie must have a unique name so that it can be identified later when reading it from the browser. Because cookies are stored by name, naming two cookies the same will cause one to be overwritten.

    You can also set a cookie's date and time expiration. Expired cookies are deleted by the browser when a user visits the site that wrote the cookies. The expiration of a cookie should be set for as long as your application considers the cookie value to be valid. For a cookie to effectively never expire, you can set the expiration date to be 50 years from now.

    Note: Users can clear the cookies on their computer at any time. Utilities such as CCleaner ("crap cleaner") allow you to set the cookies you want to keep, and delete all the rest.

    If you do not set the cookie's expiration, the cookie is created but it is not stored on the user's hard disk. Instead, the cookie is maintained in memory as part of the user's session information. When the user closes the browser, the cookie is discarded. A non-persistent cookie like this is useful for information that needs to be stored for only a short time or that for security reasons should not be written to disk on the client computer. For example, non-persistent cookies are useful if the user is working on a public computer, where you do not want to write the cookie to disk.