<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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>AceTheInterview Q &#038; A</title>
	<link>/questions/cats</link>
	<description>Top Interview questions and their answers</description>
	<pubDate>Wed, 25 Mar 2009 06:05:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Why did you leave your last job?</title>
		<link>/questions/cats/index.php/others/2009/03/25/why-did-you-leave-your-last-job</link>
		<comments>/questions/cats/index.php/others/2009/03/25/why-did-you-leave-your-last-job#comments</comments>
		<pubDate>Wed, 25 Mar 2009 06:05:21 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[others]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/others/2009/03/25/why-did-you-leave-your-last-job</guid>
		<description><![CDATA[Why did you leave your last job?
]]></description>
			<content:encoded><![CDATA[<p>Why did you leave your last job?</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/others/2009/03/25/why-did-you-leave-your-last-job/feed</wfw:commentRss>
		</item>
		<item>
		<title>What is proof you will work here a long time?</title>
		<link>/questions/cats/index.php/others/2009/03/25/what-is-proof-you-will-work-here-a-long-time</link>
		<comments>/questions/cats/index.php/others/2009/03/25/what-is-proof-you-will-work-here-a-long-time#comments</comments>
		<pubDate>Wed, 25 Mar 2009 06:03:43 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[others]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/others/2009/03/25/what-is-proof-you-will-work-here-a-long-time</guid>
		<description><![CDATA[What is proof that you will work here long time ?
]]></description>
			<content:encoded><![CDATA[<p>What is proof that you will work here long time ?</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/others/2009/03/25/what-is-proof-you-will-work-here-a-long-time/feed</wfw:commentRss>
		</item>
		<item>
		<title>Math Number question - by Atul</title>
		<link>/questions/cats/index.php/analytical/2008/10/07/math-number-question-by-atul</link>
		<comments>/questions/cats/index.php/analytical/2008/10/07/math-number-question-by-atul#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:26:22 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[analytical]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/analytical/2008/10/07/math-number-question-by-atul</guid>
		<description><![CDATA[There is a number N
If N is divided by 7 the remainder is 1, it can be shown as mod operator.
N%7=1
N%9=2
N%11=3
What is N?
]]></description>
			<content:encoded><![CDATA[<p>There is a number N</p>
<p>If N is divided by 7 the remainder is 1, it can be shown as mod operator.</p>
<p>N%7=1</p>
<p>N%9=2</p>
<p>N%11=3</p>
<p>What is N?</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/analytical/2008/10/07/math-number-question-by-atul/feed</wfw:commentRss>
		</item>
		<item>
		<title>operator overloading - by smita roshni</title>
		<link>/questions/cats/index.php/fundamental/2008/10/07/operator-overloading-by-smita-roshni</link>
		<comments>/questions/cats/index.php/fundamental/2008/10/07/operator-overloading-by-smita-roshni#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:26:05 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[fundamental]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/fundamental/2008/10/07/operator-overloading-by-smita-roshni</guid>
		<description><![CDATA[Why scope resolution operator (::) cannot be overloaded?
]]></description>
			<content:encoded><![CDATA[<p>Why scope resolution operator (::) cannot be overloaded?</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/fundamental/2008/10/07/operator-overloading-by-smita-roshni/feed</wfw:commentRss>
		</item>
		<item>
		<title>java question. - by uttam kumar</title>
		<link>/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar-2</link>
		<comments>/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar-2#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:25:39 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar-2</guid>
		<description><![CDATA[
garbage collection can&#8217;t call forcibly. why?
how class file loaded in jvm.
what is the disadvantages of garbage collection.
what is system.gc() and run.gc() mathod.
why finalize() mathod have protected keyword. whenever it is called automatically in a class which have main method.

]]></description>
			<content:encoded><![CDATA[<ol>
<li>garbage collection can&#8217;t call forcibly. why?</li>
<li>how class file loaded in jvm.</li>
<li>what is the disadvantages of garbage collection.</li>
<li>what is system.gc() and run.gc() mathod.</li>
<li>why finalize() mathod have protected keyword. whenever it is called automatically in a class which have main method.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar-2/feed</wfw:commentRss>
		</item>
		<item>
		<title>java question. - by uttam kumar</title>
		<link>/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar</link>
		<comments>/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:25:23 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar</guid>
		<description><![CDATA[why main method have all needed keyword like public void main?

if i write private in contrast of public then what happen and why?
]]></description>
			<content:encoded><![CDATA[<p>why main method have all needed keyword like public void main?</p>
<ul></ul>
<p>if i write private in contrast of public then what happen and why?</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/java/2008/10/07/java-question-by-uttam-kumar/feed</wfw:commentRss>
		</item>
		<item>
		<title>square root - by Belete</title>
		<link>/questions/cats/index.php/java/2008/10/07/square-root-by-belete</link>
		<comments>/questions/cats/index.php/java/2008/10/07/square-root-by-belete#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:23:59 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/java/2008/10/07/square-root-by-belete</guid>
		<description><![CDATA[1-Write a function named isSquare that returns 1 if its integer argumentis a square of some integer, otherwise it returns 0. Yourfunction must not use any function or method (e.g. sqrt)that comes with a runtime library or class library!
The signature of the function is
int isSquare(int n)
Examples:


if n is
return
reason


4
1
because 4 = 2*2


25
1
because 25 = 5*5/td&#62;


-4
0
because there [...]]]></description>
			<content:encoded><![CDATA[<p>1-Write a function named <strong>isSquare</strong> that returns 1 if its integer argumentis a square of some integer, otherwise it returns 0. Yourfunction must <strong>not</strong> use any function or method (e.g. sqrt)that comes with a runtime library or class library!</p>
<p>The signature of the function is<br />
int isSquare(int n)</p>
<p>Examples:</p>
<table border="1" cellpadding="0">
<tr>
<td><strong>if n is</strong></td>
<td><strong>return</strong></td>
<td><strong>reason</strong></td>
</tr>
<tr>
<td>4</td>
<td>1</td>
<td>because 4 = 2*2</td>
</tr>
<tr>
<td>25</td>
<td>1</td>
<td>because 25 = 5*5/td&gt;</td>
</tr>
<tr>
<td>-4</td>
<td>0</td>
<td>because there is no integer that when squared equals -4.  (note, -2 squared is 4)</td>
</tr>
<tr>
<td>8</td>
<td>0</td>
<td>because the square root of 8 is not an integer.</td>
</tr>
<tr>
<td>0</td>
<td>1</td>
<td>because 0 = 0*0</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/java/2008/10/07/square-root-by-belete/feed</wfw:commentRss>
		</item>
		<item>
		<title>array - by belete</title>
		<link>/questions/cats/index.php/java/2008/10/07/array-by-belete</link>
		<comments>/questions/cats/index.php/java/2008/10/07/array-by-belete#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:23:32 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/java/2008/10/07/array-by-belete</guid>
		<description><![CDATA[An array is said to be hollow if it contains 3 or more zeros in themiddle that are preceded and followed by the same number of non-zero elements.Furthermore, all the zeroes in the array must be in the middle of the array.Write a function named isHollow that accepts an integer array andreturns 1 if it [...]]]></description>
			<content:encoded><![CDATA[<p>An array is said to be <em>hollow</em> if it contains 3 or more zeros in themiddle that are preceded and followed by the same number of non-zero elements.Furthermore, all the zeroes in the array must be in the middle of the array.Write a function named <em>isHollow</em> that accepts an integer array andreturns 1 if it is a hollow array, otherwise it returns 0.</p>
<p>If you are programming in Java or C#, thefunction signature is<br />
int isHollow(int[ ] a)</p>
<p>If you are programming in C or C++, thefunction signature is<br />
int isHollow(int a[ ], int len) where len is the number of elements in thearray</p>
<p>Examples:</p>
<table border="1" cellpadding="0">
<tr>
<td><strong>if the input array is</strong></td>
<td><strong>is hollow?</strong></td>
<td><strong>reason</strong></td>
</tr>
<tr>
<td>{1,2,0,0,0,3,4}</td>
<td>yes</td>
<td>2 non-zeros precede and follow 3 zeros in the middle</td>
</tr>
<tr>
<td>{1,1,1,1,0,0,0,0,0,2,1,2,18}</td>
<td>yes</td>
<td>4 non-zeros precede and follow the 5 zeros in the middle</td>
</tr>
<tr>
<td>{1, 2, 0, 0, 3, 4}</td>
<td>no</td>
<td>There are only 2 zeroes in the middle; at least 3 are  required</td>
</tr>
<tr>
<td>{1,2,0,0,0,3,4,5}</td>
<td>no</td>
<td>The number of preceding non-zeros(2) is not equal to the  number of following non-zeros(3)</td>
</tr>
<tr>
<td>{3,8,3,0,0,0,3,3}</td>
<td>no</td>
<td>The number of preceding non-zeros(3) is not equal to the  number of following non-zeros(2)</td>
</tr>
<tr>
<td>{1,2,0,0,0,3,4,0}</td>
<td>no</td>
<td>Not all zeros are in the middle</td>
</tr>
<tr>
<td>{0,1,2,0,0,0,3,4}</td>
<td>no</td>
<td>Not all zeros are in the middle</td>
</tr>
<tr>
<td>{0,0,0}</td>
<td>yes</td>
<td>The number of preceding non-zeros is 0 which equals the  number of following non-zeros. And there are three zeros &#8220;in the  middle&#8221;.</td>
</tr>
</table>
<p>Hint: Write three loops. The first counts thenumber of preceding non-zeros. The second counts the number of zeros in themiddle. The third counts the number of following non-zeros. Then analyze theresults.</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/java/2008/10/07/array-by-belete/feed</wfw:commentRss>
		</item>
		<item>
		<title>Binary search on 2D array - by Ruby</title>
		<link>/questions/cats/index.php/algorithm/2008/05/12/binary-search-on-2d-array-by-ruby</link>
		<comments>/questions/cats/index.php/algorithm/2008/05/12/binary-search-on-2d-array-by-ruby#comments</comments>
		<pubDate>Tue, 13 May 2008 04:43:40 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[algorithm]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/algorithm/2008/05/12/binary-search-on-2d-array-by-ruby</guid>
		<description><![CDATA[How do you apply Binary Search on 2D array supposed you have 2D array with integers sorted both horizontally and vertically. If you find any occurrence of the value you are looking for you return true else false. What is the complexity?
For example the 2D array could look like the following
1 4 5 6
2 5 [...]]]></description>
			<content:encoded><![CDATA[<p>How do you apply Binary Search on 2D array supposed you have 2D array with integers sorted both horizontally and vertically. If you find any occurrence of the value you are looking for you return true else false. What is the complexity?</p>
<p>For example the 2D array could look like the following</p>
<p>1 4 5 6<br />
2 5 7 9</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/algorithm/2008/05/12/binary-search-on-2d-array-by-ruby/feed</wfw:commentRss>
		</item>
		<item>
		<title>Binary Search Tree - by aman</title>
		<link>/questions/cats/index.php/algorithm/2008/05/06/binary-search-tree-by-aman-2</link>
		<comments>/questions/cats/index.php/algorithm/2008/05/06/binary-search-tree-by-aman-2#comments</comments>
		<pubDate>Tue, 06 May 2008 06:21:10 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[algorithm]]></category>

		<guid isPermaLink="false">/questions/cats/index.php/algorithm/2008/05/06/binary-search-tree-by-aman-2</guid>
		<description><![CDATA[How to remove extra bracket from expressions,i.e  ((((A+B))*C))?
most optimized answer??
]]></description>
			<content:encoded><![CDATA[<p>How to remove extra bracket from expressions,i.e  ((((A+B))*C))?<br />
most optimized answer??</p>
]]></content:encoded>
			<wfw:commentRss>/questions/cats/index.php/algorithm/2008/05/06/binary-search-tree-by-aman-2/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
