﻿<?phpxml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<channel>
<title>Common Interview Questions / CMaster / All</title>
<link>http://commoninterview.com</link>
<description>The source for Job Interview Questions and Job Search Networking</description>
<pubDate>Sat, 11 Feb 2012 01:35:16 -0700</pubDate>
<language>en</language>
<item>
<title><![CDATA[Disk spinning puzzle]]></title>
<link>http://commoninterview.com/interview_puzzles/disk-spinning-puzzle-1/</link>
<comments>http://commoninterview.com/interview_puzzles/disk-spinning-puzzle-1/</comments>
<pubDate>Sat, 11 Feb 2012 02:35:16 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/disk-spinning-puzzle-1/</guid>
<description><![CDATA[Imagine a disk spinning like a record player turn table. Half of the disk is black and the other is white. Assume you have an unlimited number of color sensors. How many sensors would you have to place around the disk to determine the direction the disk is spinning? Where would they be placed?<br /><br />Answer:<br /><br />There are only two sensors required. Place sensor close together. Reset sensors. The switching sequence of two sensors will indicate the directional rotation of the disk easily. <br /><br />This is common approach in industrial automation. <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Sum of hats Puzzle ]]></title>
<link>http://commoninterview.com/interview_puzzles/sum-of-hats-puzzle--1/</link>
<comments>http://commoninterview.com/interview_puzzles/sum-of-hats-puzzle--1/</comments>
<pubDate>Fri, 10 Feb 2012 21:36:06 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/sum-of-hats-puzzle--1/</guid>
<description><![CDATA[There are 3 people Abel, Bill and Clark. Three of them have numbers written on their hats. One can only see the numbers written on others hats and can not see the number written on his own hat. Sum of numbers on any two 2 hats is equal to the number on the third hat. <br /><br /><u>Now the following event occurs</u><br /><br />1. Abel was asked about the number on his hat. He replied "Don't Know"<br /><br />2. Bill was asked about the number on his hat. He also replied "Don't Know"<br /><br />3. Clark was asked about the number on his hat. He also replied "Don't Know"<br /><br />4. Abel was asked again ,to which he replied "50"<br /><br />Now the question is how did he know it. And what are the numbers on other people's hats.<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What are the advantages of the demat account?]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-are-the-advantages-of-the-demat-account/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-are-the-advantages-of-the-demat-account/</comments>
<pubDate>Fri, 03 Feb 2012 00:21:54 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-are-the-advantages-of-the-demat-account/</guid>
<description><![CDATA[Sample answer:<br /><br />A demat account is similar to a saving bank account with a difference that instead of money shares are held electronically in this account. <br /><br /><u>The advantages of a demat account are:</u><br /><br />- Eliminates the risk of forgery, counterfeiting and loss due to events like theft, fire, mutilation etc.;<br /><br />- Reduces brokerage charges;<br /><br />- Ensures quick ownership of securities; <br /><br />- Reduces the time spent in stock trading to a great extent as problems like signature mismatch, postal delays are not encountered; <br /><br />- Eliminates the need to undertake tedious paperwork;<br /><br />Holders of demat accounts do not need to pay stamp duty. <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How would you call an expense incurred in the unsuccessful attempt to realize payment of a Account Receivable?  Give an example.]]></title>
<link>http://commoninterview.com/accounting-interview-questions/how-would-you-call-an-expense-incurred-in-the-unsuccessful-attempt-to-realize-payment-of-a-account-receivable-give-an-example-/</link>
<comments>http://commoninterview.com/accounting-interview-questions/how-would-you-call-an-expense-incurred-in-the-unsuccessful-attempt-to-realize-payment-of-a-account-receivable-give-an-example-/</comments>
<pubDate>Fri, 03 Feb 2012 00:19:40 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/how-would-you-call-an-expense-incurred-in-the-unsuccessful-attempt-to-realize-payment-of-a-account-receivable-give-an-example-/</guid>
<description><![CDATA[Sample Answer:<br /><br />Expenses incurred in an unsuccessful attempt to realize a payment of an account receivable are termed as ‘Uncollectable Account Expense' or ‘Bad Debts'. An example of an uncollectable account expense is - Account Receivable originating from a credit sale in the month of February is considered as uncollectable after its recovery becomes impossible. The sale represents an expense in the month of February. <br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What are Natural Accounts? Give example from your practice]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-are-natural-accounts-give-example-from-your-practice/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-are-natural-accounts-give-example-from-your-practice/</comments>
<pubDate>Fri, 03 Feb 2012 00:16:12 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-are-natural-accounts-give-example-from-your-practice/</guid>
<description><![CDATA[Sample answer:<br /><br />Natural accounts are user defined accounts. In these data is captured at the transaction level. Natural accounts exist for all five categories of accounts. Some examples of these accounts are - purchase of a car for business purposes, payment of salary, receipt of interest.  <br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What is GAAP? Name at least three of the principles]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-is-gaap-name-at-least-three-of-the-principles/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-is-gaap-name-at-least-three-of-the-principles/</comments>
<pubDate>Fri, 03 Feb 2012 00:13:21 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-is-gaap-name-at-least-three-of-the-principles/</guid>
<description><![CDATA[Sample answer:<br /><br />The term GAAP - Generally Accepted Accounting Principles refers to the common principles, standards that companies resort to for compiling their financial statements. <br /><br />These principles are commonly accepted methods of recording and reporting accounting information that have been accepted as authoritative standards. GAAP standards are imposed on companies to ensure that a minimum level of consistency is maintained in the financial statements. <br /><br />It proves a great help for investors while analyzing financials of companies while making investments. The basic principles underlying GAAP accounting are: <br /><br />- Principle of Consistency;<br />- Principle of Non-Compensation<br />- Principle of Regularity;<br />- Principle of Sincerity;<br />- Principle of the Permanence of Methods<br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Define cash and accrual methods of accounting, what are the advantages/disadvantages of each method?]]></title>
<link>http://commoninterview.com/accounting-interview-questions/define-cash-and-accrual-methods-of-accounting-what-are-the-advantagesdisadvantages-of-each-method/</link>
<comments>http://commoninterview.com/accounting-interview-questions/define-cash-and-accrual-methods-of-accounting-what-are-the-advantagesdisadvantages-of-each-method/</comments>
<pubDate>Fri, 03 Feb 2012 00:11:40 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/define-cash-and-accrual-methods-of-accounting-what-are-the-advantagesdisadvantages-of-each-method/</guid>
<description><![CDATA[Sample answer:<br /><br />There are two methods of accounting - Cash Based Accounting and Accrual Method of Accounting. The main difference between the two methods is in the approach towards revenues and expenses.   <br /><br /><b>Cash Based Accounting:</b> This is the most commonly used method adopted for maintaining personal accounts. It recognizes revenue, income as and when the payment is received and the expenses are recognized when payments are made.<br /> <br /><b>Accrual Accounting:</b> As per this method, revenue and expenses are assigned to the accounting period in which they are earned or incurred. The method is based on the principle - expenses for a period that are the costs of running a business or earn income should be compared to the revenues for that period.  <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Can you describe income statement and name it limitations?]]></title>
<link>http://commoninterview.com/accounting-interview-questions/can-you-describe-income-statement-and-name-it-limitations/</link>
<comments>http://commoninterview.com/accounting-interview-questions/can-you-describe-income-statement-and-name-it-limitations/</comments>
<pubDate>Fri, 03 Feb 2012 00:10:20 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/can-you-describe-income-statement-and-name-it-limitations/</guid>
<description><![CDATA[Sample answer:<br /><br />Also known as ‘profit and loss statement', ‘statement of revenue and expenses' it is one of the three major financial statements. It measures a company's financial performance for a specific accounting period.  It informs about the income earned, amount receivables, expenses incurred, profit and loss over a period. The statement is created on monthly, quarterly or annual basis. To derive the figure for actual profit or loss all costs are subtracted from the revenue to reach the ‘Net Income'.<br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What are the trial balance limitations?]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-are-the-trial-balance-limitations/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-are-the-trial-balance-limitations/</comments>
<pubDate>Fri, 03 Feb 2012 00:08:15 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-are-the-trial-balance-limitations/</guid>
<description><![CDATA[Sample Answer:<br /><br />A trial balance only enters the totals of credits against the total of debits. The fact that a trial balance tallies is only a basic assurance that there are no mathematical errors in the preparation of accounts. There are limitations to a trial balance. Errors which cannot be detected through a trial balance are:<br /><br /><b>Errors of Omission:</b> An error of omission occurs when a transaction is not recorded in the books of entry. In such a case the credits and debits for the transaction would balance and omitting to record it would have no impact on the trial balance. <br /><br /><b>Errors of Commission:</b> These are errors made by the accounting staff while recording the transactions. These errors generally involve cases where the amount entered and the side (debit or credit) are correct but the head is wrong. For example, putting postage expenses under the head of fuel expenses would be termed as an error of commission.<br /> <br /><b>Compensating Errors:</b> Errors of this type have a tendency to nullify the effect of errors committed earlier. This is a case of multiple errors, where the errors put together tend to cancel out each other. <br /><br /><b>Errors of Principle:</b> This category refers to instances where an income or an expenditure is not allocated correctly between the capital and revenue heads.<br /> <br />The other common errors that go unnoticed in a trial balance are: <br /> - Errors of Original <br /> - Errors of Reversal and  <br /> - Errors while Transporting <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What is the purpose of the trial balance? ]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-is-the-purpose-of-the-trial-balance-/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-is-the-purpose-of-the-trial-balance-/</comments>
<pubDate>Fri, 03 Feb 2012 00:06:58 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-is-the-purpose-of-the-trial-balance-/</guid>
<description><![CDATA[Sample Answer:<br /><br />A trial balance is an accounting worksheet in which the balances from all ledgers maintained in the business are compiled under the headings - Debit and Credit. It is prepared at the end of every reporting period. <br /><br />The objective behind preparing a trial balance is to ensure mathematical correctness of the double entry accounting system being maintained by the company. If the amount received after totaling all debts equals the amount received after totaling all credits, a trial balance is taken to be balanced and it also means that there are no arithmetical errors in the ledgers maintained. A trail balance is also used for preparing final accounts etc.<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What is the accounting equation?]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-is-the-accounting-equation/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-is-the-accounting-equation/</comments>
<pubDate>Fri, 03 Feb 2012 00:04:38 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-is-the-accounting-equation/</guid>
<description><![CDATA[Sample Answer:<br /><br />Accounting equation is the basic equation that keeps all the accounts of the business in a balance. When a business is started, the owner puts in some money in order to provide finance for the operations. This is the owner's interest in the business and is therefore termed as equity/owners equity. This money is an asset for the company.  Representing the relation as an equation:<br /><br /><br /><b><br />Assets = Owner's Equity<br /></b><br /><br /><br />In case the owner of the business is in need of money and decides to take a loan from the bank, it would have the impact of increasing his Assets. The loan is a liability. Hence the above equation would be changed to: This leads to the above equation becoming:<br /><br /><br /><b><br />Assets = Liabilities + Owner's Equity<br /></b><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What are the five basic categories in which all accounts are grouped?]]></title>
<link>http://commoninterview.com/accounting-interview-questions/what-are-the-five-basic-categories-in-which-all-accounts-are-grouped/</link>
<comments>http://commoninterview.com/accounting-interview-questions/what-are-the-five-basic-categories-in-which-all-accounts-are-grouped/</comments>
<pubDate>Fri, 03 Feb 2012 00:01:44 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Accounting Interview Questions</category>
<guid>http://commoninterview.com/accounting-interview-questions/what-are-the-five-basic-categories-in-which-all-accounts-are-grouped/</guid>
<description><![CDATA[Sample answer:<br /><br />An ‘account' is the most basic concept of accounting. Accounts are maintained to record information. It is a specific location where transactions of the same nature are recorded. To explain with the help of an example, recording all expenses incurred for buying equipment like a lawn mower, mushroom knife, weed cutter, spades etc. by a person involved in gardening business would be recorded in the account ‘Equipment'. <br /><br />The basic types of accounts can be represented as:<br /><br /><b>Assets:</b> These are properties of value that are owned by the business. These assets can be tangible or intangible. Building, real estate, machinery, merchandise, goodwill are assets of a business. They are generally divided into three sub categories -    Current, Fixed and Intangible.<br /> <br /><b>Liabilities:</b> A liability is a legal obligation that a business owes. The liability could accrue in terms of money, goods or services. Generally discharged in cash. The most common examples of liabilities are - wages payable, salaries payable, taxes to be paid and outstanding debts.<br /><br /><b>Equity:</b> Equity is the interest of the owner in the assets of the business. After all liabilities have been discharged what is left is the owner's interest/owner's equity. This is also termed as ‘Net Assets'.<br /> <br /><b>Revenues/Income:</b> Under this head, money that the company earns is recorded. The company may receive money from selling its goods, providing services or dividends from securities are recorded. <br /><br /><b>Expenses:</b> Expenses are the costs that a company incurs for staying in business. Examples of expenses are - salaries, rent, interest on borrowed money etc. <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How to increase stack limit in w3wp.exe?]]></title>
<link>http://commoninterview.com/Programming_Interview_Questions/how-to-increase-stack-limit-in-w3wp-exe/</link>
<comments>http://commoninterview.com/Programming_Interview_Questions/how-to-increase-stack-limit-in-w3wp-exe/</comments>
<pubDate>Thu, 02 Feb 2012 01:42:16 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Programming Interview Questions</category>
<guid>http://commoninterview.com/Programming_Interview_Questions/how-to-increase-stack-limit-in-w3wp-exe/</guid>
<description><![CDATA[<br />The default stack size of IIS starting with Windows Server 2003 was changed.  Prior to 2003, it was set to 1 MB but in 2003 and later, it is set to 256 KB.<br /><br />You can change it with The Microsoft COFF Binary File Editor (EDITBIN.EXE).<br /><br />Example:<br /><br /><br />EDITBIN /STACK:1048576 w3wp.exe<br /><br />You can use DUMPBIN utility, which is provided with the 32-bit version of Microsoft Visual C++, to view the sizes:<br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Can a Silverlight application create or change Office Documents via Open XML? ]]></title>
<link>http://commoninterview.com/Programming_Interview_Questions/can-a-silverlight-application-create-or-change-office-documents-via-open-xml-/</link>
<comments>http://commoninterview.com/Programming_Interview_Questions/can-a-silverlight-application-create-or-change-office-documents-via-open-xml-/</comments>
<pubDate>Wed, 01 Feb 2012 23:38:58 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Programming Interview Questions</category>
<guid>http://commoninterview.com/Programming_Interview_Questions/can-a-silverlight-application-create-or-change-office-documents-via-open-xml-/</guid>
<description><![CDATA[It depends on the library. For example, you won't be able to use Open XML SDK from Silverlight - it is only available for the .Net Framework. However there are number of custom implementations of OpenXML Standard in Silverlight. <br /><br /><u>Example from CodePlex</u>:<br /><br />This is a Silverlight proof of concept application that takes a simple Word document and displays it in the form of a book. <br /><br />http://openxmlpageturn.codeplex.com/<br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How to use conditional operator in Razor to alterate CSS class on anchor element]]></title>
<link>http://commoninterview.com/Programming_Interview_Questions/how-to-use-conditional-operator-in-razor-to-alterate-css-class-on-anchor-element/</link>
<comments>http://commoninterview.com/Programming_Interview_Questions/how-to-use-conditional-operator-in-razor-to-alterate-css-class-on-anchor-element/</comments>
<pubDate>Sun, 01 Jan 2012 14:31:49 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Programming Interview Questions</category>
<guid>http://commoninterview.com/Programming_Interview_Questions/how-to-use-conditional-operator-in-razor-to-alterate-css-class-on-anchor-element/</guid>
<description><![CDATA[This questions tests your hands on experience with Razor View Engine - the new View Engine in ASP.NET MVC 3 framework. <br /><br />The answer is to use parentheses after the @ (at) delimiter.<br /><br /><b>Razor view code:</b><br /><code><br /><br />...<br /><br />&lt;a class='@(isCondition?"classA":"classB")' href='/test.html'&gt;My Link&lt;a&gt;<br /><br />...<br /><br /></code><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Cubic array]]></title>
<link>http://commoninterview.com/interview_puzzles/cubic-array/</link>
<comments>http://commoninterview.com/interview_puzzles/cubic-array/</comments>
<pubDate>Tue, 08 Nov 2011 01:04:43 -0700</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/cubic-array/</guid>
<description><![CDATA[Given a cubic array made up of NxNxN smaller cubes: the cubic array is N cubes wide, N cubes deep and N cubes high. <br /><br />Question: How many cubes are on the surface of the array.<br /><br /><u>Answer</u>:<br /><br />There are N<sup>3</sup> cubes total. If you can calculate how many cubes are hidden you can answer this questions. The number of hidden cubes is simply a number of cubes with sides (N-2)x(N-2)x(N-2). ie.  (N-2)<sup>3</sup>.<br /><br />Thus, the answer is<br /><b style='font-size:16px'><br /> N<sup>3</sup> - (N-2)<sup>3</sup>.<br /></b><br /><br />Bonus question:<br /><br />Calculate number of 4D hypercubes on the surface of NxNxNxN hypercubic array<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Have You Ever Fired Someone, if yes how it make you feel?]]></title>
<link>http://commoninterview.com/general_questions/have-you-ever-fired-someone-if-yes-how-it-make-you-feel/</link>
<comments>http://commoninterview.com/general_questions/have-you-ever-fired-someone-if-yes-how-it-make-you-feel/</comments>
<pubDate>Mon, 10 Oct 2011 01:06:52 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>General Questions</category>
<guid>http://commoninterview.com/general_questions/have-you-ever-fired-someone-if-yes-how-it-make-you-feel/</guid>
<description><![CDATA[Good Answer<br /> <br />"Yes, I have. Though it is never easy, for the company to succeed, it must make tough decisions on those in its employ. Without making those tough decisions, the company would fail and everyone that works for it would be without employment. I recognize that, so while I may not enjoy it, I also know that it is these tough decisions that help the company survive in the tough economy."<br /><br /><br />Read more: http://www.everydayinterviewtips.com/management-interview-question-have-you-ever-fired-someone-if-yes#ixzz1aMOt7WzQ<br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What would you do if senior management demanded delivery of software in an impossible deadline?]]></title>
<link>http://commoninterview.com/Programming_Interview_Questions/what-would-you-do-if-senior-management-demanded-delivery-of-software-in-an-impossible-deadline/</link>
<comments>http://commoninterview.com/Programming_Interview_Questions/what-would-you-do-if-senior-management-demanded-delivery-of-software-in-an-impossible-deadline/</comments>
<pubDate>Fri, 07 Oct 2011 00:38:46 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Programming Interview Questions</category>
<guid>http://commoninterview.com/Programming_Interview_Questions/what-would-you-do-if-senior-management-demanded-delivery-of-software-in-an-impossible-deadline/</guid>
<description><![CDATA[This is a variation of an iron triangle question:<br /><br />The Project Management Triangle (called also Triple Constraint) is a model of the constraints of project management:<br /><br />TIME - COST - SCOPE<br /><br />if senior management demanded delivery of software in an impossible deadline, which means changing time, one or two other components of the triange should chang as well.<br /><br />More details:<br />http://commoninterview.com/project_management_questions/what-do-you-do-when-project-priorities-constantly-change-/<br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What methods would you use to retain employees within the company]]></title>
<link>http://commoninterview.com/general_questions/what-methods-would-you-use-to-retain-employees-within-the-company/</link>
<comments>http://commoninterview.com/general_questions/what-methods-would-you-use-to-retain-employees-within-the-company/</comments>
<pubDate>Fri, 07 Oct 2011 00:19:11 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>General Questions</category>
<guid>http://commoninterview.com/general_questions/what-methods-would-you-use-to-retain-employees-within-the-company/</guid>
<description><![CDATA[Per Wikipedia,churn or attrition rate is a measure of the number of individuals moving into or out of a collective over a specific period of time. It is one of two primary factors that determine the steady-state level of customers a business will support;<br /><br />How to manage Attrition?<br /><br />1. Transparent reward policy clearly communicated to all team<br /><br />2. Create opportunities for employees both - self development and career path<br /><br />3. Team spirit and engagement. Give more responsibility and ownership.<br /><br />4. Recognizing sucess and providing appreciation (team events, lunches, etc.)<br /><br />5. Regular health index surveys as feedback to management<br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How to create add bookmark (favorites) link in JavaScript]]></title>
<link>http://commoninterview.com/technical_questions/how-to-create-add-bookmark-favorites-link-in-javascript-1/</link>
<comments>http://commoninterview.com/technical_questions/how-to-create-add-bookmark-favorites-link-in-javascript-1/</comments>
<pubDate>Mon, 26 Sep 2011 22:13:17 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Technical Questions</category>
<guid>http://commoninterview.com/technical_questions/how-to-create-add-bookmark-favorites-link-in-javascript-1/</guid>
<description><![CDATA[<b>Answer</b><br />In the context of the World Wide Web, a bookmark(favorites) is a locally stored Uniform Resource Identifier (URI). All modern web browsers include bookmark features. The key to answering this question is mentioning X-browser compatibility. The implementations can vary from very simple to more complex. Here is one of the approaches which is using window.sidebar and window.external objects for IE and Firefox and createElement for Opera.<br /><br /><code><br />function Bookmark(title, url) <br />{ <br />if (window.sidebar) <br />{ <br />window.sidebar.addPanel(title, url,"");	<br />return true;<br />} <br /><br />if( window.external)<br />{ <br />window.external.AddFavorite( url, title);<br />return true; 	<br />}<br /><br />if(window.opera && window.print){ <br />    var elem = document.createElement('a');<br />    elem.setAttribute('href',url);<br />    elem.setAttribute('title',title);<br />    elem.setAttribute('rel','sidebar');<br />    elem.click();<br />    return true;<br />} <br /><br /><br />return false;<br />}<br /></code><br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How to read file asynchronous with C#]]></title>
<link>http://commoninterview.com/technical_questions/how-to-read-file-asynchronous-with-c/</link>
<comments>http://commoninterview.com/technical_questions/how-to-read-file-asynchronous-with-c/</comments>
<pubDate>Sat, 17 Sep 2011 01:13:41 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Technical Questions</category>
<guid>http://commoninterview.com/technical_questions/how-to-read-file-asynchronous-with-c/</guid>
<description><![CDATA[How to read file asynchronous with C#?<br /><br />.NET provides Stream.BeginRead Method  with following parameters:<br /><br />buffer<br />The buffer to read the data into. <br /><br />offset<br />The byte offset in buffer at which to begin writing data read from the stream. <br /><br />count<br />The maximum number of bytes to read. <br /><br />callback<br />An optional asynchronous callback, to be called when the read is complete. <br /><br />state<br />A user-provided object that distinguishes this particular asynchronous read request from other requests.<br /><br />Example:<br /><br /><code><br />FileStream fs = new FileStream(fileA, FileMode.Open);<br />Byte[] data = new byte[200];<br />long timeNow = Stopwatch.GetTimestamp();<br />fs.BeginRead(data, 0, data.Length, delegate(IAsyncResult ar)<br />{<br /> int bytesRead = fs.EndRead(ar);<br /> fs.Close();<br />// do some stuff…<br />}, null);<br />// do some stuff…<br /></code><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Filling Matrix Interview Puzzle]]></title>
<link>http://commoninterview.com/interview_puzzles/filling-matrix-interview-puzzle-1/</link>
<comments>http://commoninterview.com/interview_puzzles/filling-matrix-interview-puzzle-1/</comments>
<pubDate>Sun, 11 Sep 2011 00:52:47 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/filling-matrix-interview-puzzle-1/</guid>
<description><![CDATA[Puzzle:<br /><br />You are given a matrix N x M size. Each cell of the matrix contains a random capital letter of English alphabet ["A".."Z"].  If matrix contains letter "A" in position {i,j} you should substitute all letters in column i and row j with a letter "A". You can't use extra memory. The matrix can store only capital letters "A" to "Z" in a cell.<br /><br />Example:<br /><br /><img src='http://commoninterview.com/images/matrix-interview-puzzle.png' /><br /><br /><br />Write an algorithm and solution in code (C++/C#/JAVA).<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Finding Celebrity logical interview puzzle]]></title>
<link>http://commoninterview.com/interview_puzzles/finding-celebrity-logical-interview-puzzle/</link>
<comments>http://commoninterview.com/interview_puzzles/finding-celebrity-logical-interview-puzzle/</comments>
<pubDate>Sun, 11 Sep 2011 00:26:25 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/finding-celebrity-logical-interview-puzzle/</guid>
<description><![CDATA[Finding Celebrity logical interview puzzle<br /><br />Puzzle: You are on a party with N guests. Some people at the party know each other some don't. However there is a celebrity who joined the party. Everyone knows him, but he knows no one. There is only one celebrity at this party. Imagine you have a function  bool IsKnown(P1, P2) which takes two people as an input and returns true if P1 knows P2 or false if P1 doesn't know P2. <br /> <br />Question: Write an algorithm to find a celebrity. What is the complexity of this algorithm?<br /><br />Bonus question: What if there are m celebrities? How would you change the algorithm? What would be the complexity?<br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Tell Me About A Big Choice You Had To Make In Your Life And Outcome]]></title>
<link>http://commoninterview.com/behavioral_questions/tell-me-about-a-big-choice-you-had-to-make-in-your-life-and-outcome/</link>
<comments>http://commoninterview.com/behavioral_questions/tell-me-about-a-big-choice-you-had-to-make-in-your-life-and-outcome/</comments>
<pubDate>Fri, 02 Sep 2011 01:29:30 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Behavioral Questions</category>
<guid>http://commoninterview.com/behavioral_questions/tell-me-about-a-big-choice-you-had-to-make-in-your-life-and-outcome/</guid>
<description><![CDATA[When you attend an interview, you need to overcome many tricky questions of the interviewer. And we all know that an interview is not the perfect place to think about the answer and waste time. You need to play a rapid fire round with your interviewer especially when you are asked about your personal life. In an interview you may come across this question "Tell me about a big choice you had to make in your life and outcome". Well this sounds a bit tricky, right, because you will often wonder what points to focus on as a big choice that you have made. <br /><br />In our day to day life, we face many challenges and of course, learn to overcome them. So which one will you quote as a big choice in your life? Well here are some points that can help you frame your answer in an acceptable way. First, it is important to practice this answer before you head on for the interview. Frame your answer in a lucid and comprehensible manner so that your interviewer understands what you are trying to say rather then making your interviewer feel "What!! Why!! How!!"<br /><br /> Secondly, it will be better if you make your big choice from your career. That means a turning point of your professional life and how you have dealt with it. Since your interview involves our professional career and your future, it is better state a few big choices you have made with respect to your career. Fourthly, explain how this big choice has helped you advance your career. Get into the details about how you benefited from this big choice and what the outcome was. This will help the interviewer understand how focused you are and how you learn from your own experiences which is very important for a person's career growth. This quality of yours will definitely help the company in many ways if you do get selected. <br /><br />Through this answer you can prove that how vital resource you can be if you get selected for this job. You can also discuss about the skills on which you had worked on for making the big choice, what were the complexities you have come across and how you have prevailed over by using your proficiency. This is an important point that you should highlight in you answer. But remember you should not exaggerate about yourself. The question is to know your big choice and how you have made it happen. It is not about how great you are for making it possible.<br /><br /> In an interview, always be yourself and do not pretend to be someone you are not. Everything that you say should be true and you should be able to prove it to your interviewer in every way possible. Remember an interviewer has the knack of bringing out the truth from a candidate. <br /><br />Try not to be long-winded, instead, try to focus on your actual accomplishments and the steps you took to achieve them. Remember that in an interview, the interviewer wants to know whether you will be able to contribute something to the company and this is a great opportunity to prove that you can.  <br /><br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Open/Closed doors logical interview puzzle]]></title>
<link>http://commoninterview.com/interview_puzzles/openclosed-doors-logical-interview-puzzle/</link>
<comments>http://commoninterview.com/interview_puzzles/openclosed-doors-logical-interview-puzzle/</comments>
<pubDate>Fri, 02 Sep 2011 01:00:46 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/openclosed-doors-logical-interview-puzzle/</guid>
<description><![CDATA[<img alt='Doors interview puzzle' src='http://commoninterview.com/images/doors_open_close.png' style='float:left;text-align:top;padding-right:10px'><br /><br />Full question:<br /><br />You are standing in a corridor with N closed doors. The person walks by you and opens every door. Then the second person walks by and stops by every second door; If the door is open he closes it, if it is closes he opens it. The third person does the same with every third door; fourth person does the same with every fourth door and so on until N people would walk the corridor. The question to you is to tell which door is open and which is closed after that.<br /><br /><u>Solution:</u><br /><br />The approach I took trying to solve this problem was to write down all state switches for 1..16. Let's say that 1 means door opened and 0 means door closed for simplicity. <br />The initial state of our system (all doors closed) would be represented in the form of an array:<br /><br /><img alt='Doors interview puzzle' src='http://commoninterview.com/images/doors_open_close_p1.png'><br /><br />After first person all door will be opened:<br /><br /><img alt='Doors interview puzzle' src='http://commoninterview.com/images/doors_open_close_p2.png'><br /><br /><br />The second person would close even doors:<br /><br /><img alt='Doors interview puzzle' src='http://commoninterview.com/images/doors_open_close_p3.png'><br /><br /><br />If we continue this calculation we would end up with following 16x16 matrix, there I marked in yellow then the state switch is happening.<br /><br /><img alt='Doors interview puzzle' src='http://commoninterview.com/images/doorInterviewQuestion.png'><br /><br /><br />Where the final state look like:<br /><br /><img alt='Doors interview puzzle' src='http://commoninterview.com/images/doors_open_close_final_state.png'><br /><br /><br />This pattern threw me off a little at the beginning, but after careful look on the matrix it is obvious that we have 1's at the places there we had odd number of switches and 0's where we had even number of switches. However, number of switches we did is actually number of divisors of a given number (count amount of yellow cells for a given column - door).  <br /><br /><u>This would lead us to the solution:</u><br /><br /><i>The doors with numbers which has even amount of divisors will remain closed and with odd amount of divisors will be opened.</i> <br /><br />Now the question is how we can calculate if number X has odd or even number of divisors… Fortunately, Math101 comes to rescue. <br /><br />If you remember, In number theory, a square number, sometimes also called a perfect square, is an integer that is the square of an integer; in other words, it is the product of some integer with itself. <br /><br />So, for example, 4 is a perfect square, since it can be written as 2 × 2, same with 9 (3x3), 16 (4x4), etc. One of interesting properties of  a square number is that it has an odd number of divisors, while other numbers have an even number of divisors.  Why? Because, an integer root is the only divisor that pairs up with itself to yield the square number, while other divisors come in pairs.<br /><br /><u>Thus, in the question above the full answer would be:</u><br /><br /><i>The doors which are located on perfect square positions will be open, all other doors will be closed.</i><br /><br /><br /><br /> <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How would you do 301 redirect with PHP?]]></title>
<link>http://commoninterview.com/Programming_Interview_Questions/how-would-you-do-301-redirect-with-php/</link>
<comments>http://commoninterview.com/Programming_Interview_Questions/how-would-you-do-301-redirect-with-php/</comments>
<pubDate>Sun, 21 Aug 2011 19:43:11 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Programming Interview Questions</category>
<guid>http://commoninterview.com/Programming_Interview_Questions/how-would-you-do-301-redirect-with-php/</guid>
<description><![CDATA[Solution:<br /><br />In the HTTP protocol used by the WWW, a redirect is a response with a status code beginning with 3 that induces a browser to go to another location, with annotation describing the reason, which allows for the correct subsequent action.<br /><br />Here is the example how to do it in PHP:<br /><br />&lt;?php<br />   header("HTTP/1.1 301 Moved Permanently"); <br />   header( 'Location: http://www.commoninterview.com' ) ;<br />?&gt;<br /><br /><br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Pirates have to decide how to divide their loot of gold coins]]></title>
<link>http://commoninterview.com/interview_puzzles/pirates-have-to-decide-how-to-divide-their-loot-of-gold-coins-1/</link>
<comments>http://commoninterview.com/interview_puzzles/pirates-have-to-decide-how-to-divide-their-loot-of-gold-coins-1/</comments>
<pubDate>Sun, 21 Aug 2011 14:12:21 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/pirates-have-to-decide-how-to-divide-their-loot-of-gold-coins-1/</guid>
<description><![CDATA[<b>Puzzle:</b> A pirate ship with total crew of N pirates acquired a chest with K gold coins. Now they have to divide up the loot. <br /><br />By long term pirate tradition the rules are as follow: <br /><br />- The most senior pirate gets to propose a way to divide the loot. <br /><br />- Each pirate, including the most senior pirate himself gets to vote.<br /><br />- If the majority accept the proposal, the loot is divided as proposed. <br /><br />- If the majority decline the proposal, then the most senior pirate is executed, and they start over again with the next senior pirate <br /><br />Assume the pirates has perfect logic, extremely greed and don't want to die. <br /><br /><i>What solution does the most senior pirate propose? </i><br /><br /><b>Solution:</b> <br /><br />As with any puzzles of this kind lest use induction with<br />N=1,2,3 etc until we get the pattern: <br /><br />if N=2, <br />Let's say pirate #1 being the most senior, he would just vote for himself and that would be the majority thus he is going to keep all the money, leaving pirate #2 empty handed. <br /><br />if N=3, <br />Pirate #1 has to one other person to vote for his plan. Pirate #1 has perfect logic so, he realize that in case his proposal declined and he is executed pirate #3 will get nothing (see N=2 scenario). <br /><br />So, his proposal is straight forward, give 1 coin to pirate #3 and keep (K-1) coins. Pirate #3 has to vote for his plan or he guaranteed to get nothing.<br /><br />if N=4, <br />Now pirate #1 needs one vote as well, he know if he is executed,<br />pirate #3 guaranteed to get nothing, so the solution to give him one coin and keep the rest to himself. <br /><br /><u>If we continue the sequence following pattern will emerge:</u><br /><br /><img src='http://commoninterview.com/images/Pirates_Puzzle_Solution.png' alt='Pirates with gold coins' title='Pirates puzzle' /><br /><br />So the general solution is to give away Math.Floor((N-1)/2) coins keeping K- Math.Floor((N-1)/2).<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Sample cover letter (Junior Software Engineer)]]></title>
<link>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-junior-software-engineer/</link>
<comments>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-junior-software-engineer/</comments>
<pubDate>Sun, 21 Aug 2011 13:58:03 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Web Resources</category>
<guid>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-junior-software-engineer/</guid>
<description><![CDATA[Dear Hiring Manager:<br /><br />I was interested to see your C# Developer posting on Monster and would like to learn more about this opportunity.  I am very interested in applying for the position. As you will see from my resume, I have over 5 years of overall experience in IT field with 3 years of expertise in different aspects of .NET framework, using Visual C# and over 3 years of experience working with MS SQL Server, writing stored procedures, extended stored procedures, triggers and optimization of data bases. <br /><br />As you requested, I am disclosing the minimum annual salary I would require to accept employment with your firm. This amount is $65K per year excluding benefits.  This amount is based on my experience and the cost of living in the Ann Arbor area.<br /><br />If it appears that my qualifications meet your needs, I will be happy to discuss my background in a personal meeting.<br /><br />Sincerely Yours,<br /><br />Joe Doe<br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Sample cover letter (Java Software Engineer) ]]></title>
<link>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-java-software-engineer--1/</link>
<comments>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-java-software-engineer--1/</comments>
<pubDate>Sun, 21 Aug 2011 13:43:35 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Web Resources</category>
<guid>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-java-software-engineer--1/</guid>
<description><![CDATA[Dear Hiring Manager,<br /><br />Please consider me for the  position as advertised on  web site dated.<br /><br />I am Master of Applied Mathematics with more than 11 years of experience in system analysis, design, development and implementation of small, medium, and large software projects.  I also have more than 5 years of experience in project leadership.<br /><br /><u>SKILLS:</u><br /><br />- Expert in object oriented design and development (UML, Java, J2EE, EJB, Servlets, JSP, Struts, XML, XSLT, WebSphere Application Server, MQ Series, IIS, Apache, Tomcat);<br /><br />- Very experienced in relational databases design and development (DB/2, MS SQL, Oracle, Sybase, ANSI SQL, Transact SQL, PL SQL)<br /><br />-Very experienced in project leadership (Microsoft Project, MS Vision, PVCS, Microsoft Visual Source Save, CVS)<br /><br /><u>CERTIFICATIONS:</u><br /><br />- Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition, Sun Microsystems, In Progress<br /><br />- IBM Certified Specialist (IBM WebSphere Application Server), IBM, 2003<br /><br />- Sun Certified Web Component Developer for J2EE platform, Sun Microsystems, 2002<br /><br />- Sun Certified Programmer for Java 2 Platform, Sun Microsystems, 2001<br /><br />- Microsoft Certified Professional (SQL Server), Microsoft, 2000<br /><br />The attached file is a copy of my resume that details my background and skills.  I would appreciate an opportunity to talk to you to discuss my candidacy.  <br /><br />I will contact you if you give me the telephone number and most convenient time for you.  Should you need to contact me, I can be reached at 323-232-2323 or email@address.com. <br /><br />Sincerely, <br /><br />Joe Doe<br /><br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How do you manager underperforming employees?]]></title>
<link>http://commoninterview.com/general_questions/how-do-you-manager-underperforming-employees/</link>
<comments>http://commoninterview.com/general_questions/how-do-you-manager-underperforming-employees/</comments>
<pubDate>Sat, 20 Aug 2011 23:55:43 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>General Questions</category>
<guid>http://commoninterview.com/general_questions/how-do-you-manager-underperforming-employees/</guid>
<description><![CDATA[<b>Strategy Statement:</b><br />  <br />We would define underperforming employees as a staff member who has a detrimental effect on productivity, morale or deliverables of the group. Under performing employees are risks for the company and the business. This is a change to prove your management experience and leadership skills.<br /><br />The framework for addressing the problem of an underperforming employee should already exist in your organization and you should keep close contact with your HR representative regarding the case. The actions should be taken to help employee perform to the required standard, rather than to dismiss them. <br /><br />By the law, the employer must ensure that the employee:<br /><br /><u>First</u>, understands what is expected of them<br /><br /><u>Second</u>, understands in which areas they are not performing to the required standard<br /><br /><u>Third</u>, is given appropriate training and support<br /> <br /><u>Fourth</u>, is given sufficient time to improve<br /><br />Employee must be issued with appropriate written warnings and they have the rights to notice and representation.<br /><br />Also, the best way to avoid having underperforming employees in your group or company is not to hire them in the first place. As part of the answer you can mention your hiring process and selection methodology.<br /><br /><b>Sample Response:</b><br /> <br />I identify the strengths, the areas of expertise, which each person brings to the task and I take my selection process and interviewing really seriously. <br /><br />However, the problem of having underperforming team members occasionally arise. My policy is to be open and upfront. I clearly define what is expected from every of my reports and how do I measure their performance. <br /><br />If I see someone lagging behind, I am trying to understand the problem and propose the solution in form of training, coaching or work reassignment. I ensure that employee get fair amount of time to correct his or her actions and improve. <br /><br />If this doesn't work and I strongly feel that employee doesn't have room for improvement I do engage with our HR department to follow company procedure for managing underperforming personnel. <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How do you motivate people around you?]]></title>
<link>http://commoninterview.com/behavioral_questions/how-do-you-motivate-people-around-you/</link>
<comments>http://commoninterview.com/behavioral_questions/how-do-you-motivate-people-around-you/</comments>
<pubDate>Sat, 20 Aug 2011 11:25:21 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Behavioral Questions</category>
<guid>http://commoninterview.com/behavioral_questions/how-do-you-motivate-people-around-you/</guid>
<description><![CDATA[<b>Strategy Statement:</b>  <br /><br />The interviewer wants to know more about your managerial philosophies with regards to motivation strategies and your ability to enable others. <br /><br />The topic of motivation is hard to cover in simple interview answer and there are hundreds of book written on the subject and motivational theories are the main topic to the study of industrial-organizational psychology. The key things to know is that motivation is said to be <u>intrinsic</u> or <u>extrinsic</u>. Intrinsic motivation is a motivation that is driven by an interest or enjoyment in the work, while extrinsic motivation comes from outside of the individual.<br /><br />Common extrinsic motivations are rewards like money or threat of punishment. Based on the two types of motivators Frederick Herzberg's developed famous two-factor theory which distinguishes between:<br /><br />- <b>Motivators</b> such as interesting work, recognition and responsibility) which give positive satisfaction<br /><br />- <b>Hygiene factors</b> such as salary or benefits. Such factors despite common believe do not motivate if present, but, if absent, result in dissatisfaction.<br /> <br />The name Hygiene factors is used because, similar to hygiene, the presence will not make you healthier, but absence will cause health degradation.<br /><br />While successful managers employ both types of motivations to ensure highest productivity of the team in was proven that significant portion of human behavior is energized and directed by unconscious motives i.e. intrinsically motivated. Professor Steven Reiss performed a serious of studies involving more than 6,000 people which resulted in 16 factors theory - 16 basic desires that guide nearly all human behavior. <br /><br />The list includes such desires as <br />Power, <br />Independence, <br />Curiosity, <br />Family, <br />Vengeance, <br />Status and others.<br /><br /><i>"These desires are what drive our everyday actions and make us who we are," Reiss said. "What makes individuals unique is the combination and ranking of these desires. Every person has a unique desire profile."</i> <br /><br />We recommend reading his book "The 16 Basic Desires That Guide Us" for more information.<br /><br /><b>Sample interview question response:</b> <br /><br />My most strong believe is that my team members should be highly motivated to give their best and realize their full potential.  As first line manager I cannot control salary and benefits our company provides but I can ensure the work-live balance is in place and work conditions are above industry standards to address extrinsic motivators. <br /><br />Form the other side; I pay a lot of attention to intrinsic motivators. I take care in assigning tasks, making sure that I have right person for the job. When communicating my expectations to employees, I make sure they   understand exactly why they were selected for a job. If I can connect people and tasks based on their background, education, and experience, I can   feel confident that they are properly motivated and will give the project their all.<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Describe a situation then you had a conflict in your team, how did you handle it?]]></title>
<link>http://commoninterview.com/project_management_questions/describe-a-situation-then-you-had-a-conflict-in-your-team-how-did-you-handle-it/</link>
<comments>http://commoninterview.com/project_management_questions/describe-a-situation-then-you-had-a-conflict-in-your-team-how-did-you-handle-it/</comments>
<pubDate>Fri, 19 Aug 2011 23:31:48 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Project Management Questions</category>
<guid>http://commoninterview.com/project_management_questions/describe-a-situation-then-you-had-a-conflict-in-your-team-how-did-you-handle-it/</guid>
<description><![CDATA[<b>Strategy Statement: </b><br /><br />Just as no interviewee is perfect, no person is blameless. The employer needs to get a sense that you are not above blame and are prepared to be proactive in resolving workplace conflict. This is the opportunity to showcase your management or leadership experience and inspiration.<br /><br />Knowing basics of conflict resolution would help to build a solid foundation to answer any question about conflict situations. Researcher Thomas and Kilmann in 1976 proposed five basic ways of addressing conflict:<br /><br /><u>Accommodation</u> - one party must surrender to accommodate the other party. This is win-lose type of conflict resolution.<br /><br /><u>Avoidance</u> - as the name suggests the strategy is to avoid conflict by ignoring it. Avoidance can be useful as a temporary measure but really dangerous long term solution and usually results in lose-lose conflict outcome.<br /><br /><u>Collaboration</u> - Thomas and Kilmann viewed this as the only win-win solution to conflict. The approach suggests working together and finding a mutually beneficial solution. <br /><br /><u>Compromise</u> - bring the conflict to third party arbitration. The aim of any conflict resolution is to reach an agreement and most often this will mean to compromise.<br /><br /><u>Competition</u> - accept one party at the expense of another. This often can be done by involving management and letting them choose the winner.<br /><br />The question clearly suggests Accommodation or Collaborations strategies to be used in the answer. <br /><br /><b>Sample Response:</b> <br /><br />I have found that any efforts toward conflict resolution without open collaboration are ineffective. Accepting responsibility, creating grounds for resolution, and following up--these are essential ingredients of conflict resolution.  <br /><br />Once I had conflict with my colleague regarding testing tools we been planning to use. He insisted on in-house solution while I felt strong on using existing third party test harness. While started as regular discussion around tools conflict quickly aggravated.  I had to act fast and reached out to my colleague to have one on one meeting.  During the meeting I made it clear that I do not question his technical expertise nor his ability to develop great in house solution. <br /><br />However I iterated that his time is valuable and instead of building something we shell can buy it. At the same time he can concentrate on developing features which would advance our business. We spend two hours brainstorming new and innovative ideas he can work on and both were very happy with the outcome of this meeting. Moreover, during the review time my colleague remembered this situation and commented positively on my leadership skills.    <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What do you do when project priorities constantly change? ]]></title>
<link>http://commoninterview.com/project_management_questions/what-do-you-do-when-project-priorities-constantly-change-/</link>
<comments>http://commoninterview.com/project_management_questions/what-do-you-do-when-project-priorities-constantly-change-/</comments>
<pubDate>Fri, 19 Aug 2011 23:19:05 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Project Management Questions</category>
<guid>http://commoninterview.com/project_management_questions/what-do-you-do-when-project-priorities-constantly-change-/</guid>
<description><![CDATA[<b>Strategy Statement:</b><br />  <br /><img src='http://commoninterview.com/images/IronTriangle.jpg' style='float:left;padding:5px'>Are you agile? Can organization still be maintained in a flexible environment?  Many people confuse agility and chaos, flexibility and poor planning, be sure to base your answer on advocating first and avoiding second.  It is also well known, that any project is executed under certain constraints, which traditionally include scope, time and cost.  <br /><br />Those three constrains are known as "iron-triangle" due to the fact that as in triangle changing one side would lead to affecting two others, changing one constrain cannot be changed without impact on the others.  <br /><br />Frequent changes in priorities usually mean scope change which directly affects cost (budget) and time (schedule). This is true for both formal large scale projects such as building of a bridge and small projects such as house cleaning. <br /><br />The construction of Sydney Opera House is one of the classical examples of vague scope and poor planning. The project started in 1957 with initial estimates of $7 million of cost and 6 years of work.  Without clear plan and with constant scope change the project was falling apart. <br /><br />As an example during construction phase multipurpose opera hall was redesign into concert hall which caused the layout of the interiors to be changed, and the stage machinery, already designed and fitted inside the major hall, was  thrown away. A theatre, a cinema and a library were added, and the minor hall was drastically redesigned. These changes were primarily because of poor original planning and lack of scope definition, which did not make it clear how the Opera House was to be used which in turn lead to constant priority changes as new requirements were discovered.  <br /><br />The Opera House was formally completed in 1973, having cost $102 million the project was completed ten years late and over-budget by more than fourteen times.<br /><br /><b>Sample Response:</b> <br /><br />Changes in priorities are not something extraordinary in our industry. The way we handle and prepare for the priority switches make all the difference.  <br /><br />When priorities change, the two things that are generally impacted are the schedule and cost and I do my best to communicate it clearly to the management the severity of the impact. <br /><br />I see frequent changes in priorities as weak definition of the scope, which might be due to nature of business, poor management, force major circumstances and many other reasons. In such cases, my approach is to split the job on as small pieces as possible, so then the priority changes won't leave any part of the project part-done. <br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Sample cover letter (Software Engineer)]]></title>
<link>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-software-engineer/</link>
<comments>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-software-engineer/</comments>
<pubDate>Fri, 19 Aug 2011 23:08:40 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Web Resources</category>
<guid>http://commoninterview.com/Interview_Preparation_Resources/sample-cover-letter-software-engineer/</guid>
<description><![CDATA[<p style="font-face:Arial; font-size:14px"><br />Dear Hiring Manager,<br /><br />As my resume reveals, I have a Master's degree in Applied Math and Ph.D in Computer Science. I have more then six years of professional software development experience. I enjoy working in a high energy and high performance work environment. I have<br />worked on and learned a great deal from several very interesting and complex commercial projects.<br /><br />Recently I was working on the project to build online XYZ system available at www.xyz.com. Now this project is successfully completed, I am anxious to take on new challenges and build upon my knowledge base.<br /><br />I have enclosed my resume for your review. I would like the opportunity to meet and share more about my qualifications and the ways in which I can contribute to the team. <br /><br />Thank you for your consideration.<br /><br />Sincerely,<br /><br />Alex Ivanov<br /></p><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Sample Offer rejection letter]]></title>
<link>http://commoninterview.com/Interview_Preparation_Resources/sample-offer-rejection-letter/</link>
<comments>http://commoninterview.com/Interview_Preparation_Resources/sample-offer-rejection-letter/</comments>
<pubDate>Fri, 19 Aug 2011 23:04:44 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Web Resources</category>
<guid>http://commoninterview.com/Interview_Preparation_Resources/sample-offer-rejection-letter/</guid>
<description><![CDATA[<p style=\"font-face:Arial; font-size:14px\"><br />Dear Mr. Crawford:<br /><br />I would like to thank you once again for the fine offer which you made to me for a position of Software Developer reporting to Mr. Gupta. I was impressed with your company and the manner in which my visit was handled.<br /><br />Unfortunately, I must inform you that I find it necessary to decline your offer. I am accepting a position with the XYZ in Seattle. Their training program will enable me to pursue my engineering interests immediately and to attend graduate school in the area.<br /><br />I appreciate your interest on my behalf and wish to express my thanks again for all of your courtesies.<br /><br /><br />Very truly yours,<br /><br />Joe Doe<br /></p><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[SQL statement to aggregate multiplied rows]]></title>
<link>http://commoninterview.com/Programming_Interview_Questions/sql-statement-to-aggregate-multiplied-rows-1/</link>
<comments>http://commoninterview.com/Programming_Interview_Questions/sql-statement-to-aggregate-multiplied-rows-1/</comments>
<pubDate>Thu, 18 Aug 2011 23:02:59 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Programming Interview Questions</category>
<guid>http://commoninterview.com/Programming_Interview_Questions/sql-statement-to-aggregate-multiplied-rows-1/</guid>
<description><![CDATA[<img style='float:left;padding:10px;vertical-aligment:top' alt='SQL aggregation interview question'  src='http://commoninterview.com/images/Sql_table_aggregation.png'><br />Full question:<br />Given a  SQL table which has three columns: Name, Amount  and Date  the task is to write a SQL statement to aggregate rows in a such way that each row has unique Name along with multiplied values of Amount cell for that name (see picture below for details).<br /><br /><img style='padding:5px;clear:both'  src='http://commoninterview.com/images/Sql_table_aggregation_multiplication.png' alt='SQL Interview Question Aggregation'><br /><br />Solution:<br /><br />SQL aggregate functions return a single value, calculated from values in a column.  At the first glance the question seems to be very trivial usage of SQL aggregates. However, along with all available aggregate functions there is no multiplication.<br /><br />Transact-SQL provides the following aggregate functions:<br /><br />AVG <br />MIN <br />CHECKSUM_AGG <br />COUNT <br />ROWCOUNT_BIG<br />COUNT_BIG <br />STDEV<br />GROUPING <br />STDEVP<br />GROUPING_ID<br />SUM<br />MAX <br />VAR <br />VARP<br /><br />Again, no multiplication. <br /><br /><a href='http://msdn.microsoft.com/en-us/library/ms173454.aspx'><br />Aggregate Functions (Transact-SQL)</a><br /><br />So, the solution would be to utilize summation to achieve multiplication. From math 101 you might remember that the logarithm of a number is the exponent by which a fixed number, the base, has to be raised to produce that number. <br /><br /><u>From that definition:</u><br /><br />X = EXP(LOG(X)),  i.e if we take exponent from logarithm of x we will get same x.<br /><br />The rest is simple, by using properties of logarithms that the logarithm of a product is the sum of the logarithms of the factors:<br /><br />LOG(X * B) = LOG(X)+LOG(Y)<br /><br />Hooray ! We got to the sum ! Finally combining those two formulas together, we have<br /><br />X*Y = EXP(LOG(X)+LOG(Y))<br /><br />Thus, the solution would be surprisingly simple SQL statement:<br /><br /><br /><img style='padding:5px;clear:both'  src='http://commoninterview.com/images/Sql_table_aggregation_multiplication_solution.png' alt='SQL Aggregation Solution Statement'><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How virtual functions are implemented internaly?]]></title>
<link>http://commoninterview.com/technical_questions/how-virtual-functions-are-implemented-internaly/</link>
<comments>http://commoninterview.com/technical_questions/how-virtual-functions-are-implemented-internaly/</comments>
<pubDate>Thu, 04 Aug 2011 23:40:27 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Technical Questions</category>
<guid>http://commoninterview.com/technical_questions/how-virtual-functions-are-implemented-internaly/</guid>
<description><![CDATA[<b> Answer </b><br />In 1994 Microsoft published a patent on implementing Virtual Function tables in OOP Programming Languages:<br /><br />"A virtual function table for a class contains addresses corresponding to the virtual function members associated with that class. <br /><br />The virtual function table is used at run time to invoke the virtual functions indirectly. Each primary class with a virtual function member has an associated virtual function table. The virtual function table contains the addresses of each virtual function member. <br /><br />The object data structure for such a class contains a virtual function table pointer (vfptr). When memory for an object is allocated at run time, the virtual function table pointer is initialized with the address of the associated virtual function table. Thus, all objects of the same class type point to the same virtual function table. To implement the invoking of a virtual function, the compiler generates code to access the virtual function member through the virtual function table."<br /><br /><br /><a href="http://www.google.co.in/patents?id=GkwkAAAAEBAJ&zoom=4&dq=Virtual%20Function&pg=PA2#v=onepage&q&f=false">METHOD FOR IMPLEMENTING VIRTUAL FUNCTION TABLES IN A COMPILER FOR AN OBJECT-ORIENTED PROGRAMMING LANGUAGE</a><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[How can you simulate a fair dice using a fair coin?]]></title>
<link>http://commoninterview.com/interview_puzzles/how-can-you-simulate-a-fair-dice-using-a-fair-coin/</link>
<comments>http://commoninterview.com/interview_puzzles/how-can-you-simulate-a-fair-dice-using-a-fair-coin/</comments>
<pubDate>Fri, 29 Jul 2011 22:10:54 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/how-can-you-simulate-a-fair-dice-using-a-fair-coin/</guid>
<description><![CDATA[In other terms, you have random number generator function Rnd2 you need to produce Rnd6 function by using Rnd2.<br /> <br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[Drinking beer interview puzzle]]></title>
<link>http://commoninterview.com/interview_puzzles/drinking-beer-interview-puzzle/</link>
<comments>http://commoninterview.com/interview_puzzles/drinking-beer-interview-puzzle/</comments>
<pubDate>Fri, 29 Jul 2011 21:52:23 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>Interview Puzzles</category>
<guid>http://commoninterview.com/interview_puzzles/drinking-beer-interview-puzzle/</guid>
<description><![CDATA[Full question:<br /><br />You are meeting in a bar with your best friend, Alex.<br /><br />You ordered 60 ounces (3 Imperial pints) beer pitcher to drink between you. Alex is late and you drink half of a pitcher while waiting for him. <br /><br />Then he finaly arrives you give the pitcher to Alex and he drinks half of what's left, and gives it back to you.<br />You drink half of what's left, and give it back to him ... you continue in the same way until there is no beer left.<br /> <br /><u>Question:</u> How much do you drink, and how much does Alex drink ?<br /><br/><br/>1 Vote(s) ]]></description>
</item>

<item>
<title><![CDATA[What's the expectation of dice roll ?]]></title>
<link>http://commoninterview.com/general_questions/whats-the-expectation-of-dice-roll-/</link>
<comments>http://commoninterview.com/general_questions/whats-the-expectation-of-dice-roll-/</comments>
<pubDate>Fri, 29 Jul 2011 21:46:00 -0600</pubDate>
<dc:creator>CMaster</dc:creator>
<category>General Questions</category>
<guid>http://commoninterview.com/general_questions/whats-the-expectation-of-dice-roll-/</guid>
<description><![CDATA[<b>Answer</b><br />In probability theory, the expectation of a random variable is the weighted average of all possible values that this random variable can take on.<br /><br />Thus, for one dice the expectation is<br /><br />1/6*(1+2+3+4+5+6) = 3.5<br /><br /><br />and as the expectation of two indepentent distributions is the sum of the expectation of each, the answer would be<br /><br />3.5+3.5 = 7<br/><br/>1 Vote(s) ]]></description>
</item>

</channel>
</rss>

