<?xml 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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/category/programming/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 20 Sep 2021 10:56:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>Programming - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/category/programming/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is space complexity of the program ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/what-is-space-complexity-of-the-program/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/what-is-space-complexity-of-the-program/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:53:28 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cognizant Interview Questions]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[difference between time and space complexity]]></category>
		<category><![CDATA[how to calculate space complexity]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[sapient nitro interview questions and answers]]></category>
		<category><![CDATA[Sapient Nitro Placement Questions and Answers]]></category>
		<category><![CDATA[space complexity]]></category>
		<category><![CDATA[space complexity examples]]></category>
		<category><![CDATA[space complexity in data structure]]></category>
		<category><![CDATA[space complexity notation]]></category>
		<category><![CDATA[space complexity of an algorithm]]></category>
		<category><![CDATA[space complexity of sorting algorithms]]></category>
		<category><![CDATA[Time and Space Complexity]]></category>
		<category><![CDATA[time and space complexity of algorithms]]></category>
		<category><![CDATA[Time and Space Complexity Tutorials]]></category>
		<category><![CDATA[time complexity and space complexity]]></category>
		<category><![CDATA[time space complexity]]></category>
		<category><![CDATA[What does 'Space Complexity' mean]]></category>
		<category><![CDATA[What is O 1 space complexity]]></category>
		<category><![CDATA[What is space and time complexity]]></category>
		<category><![CDATA[What is Space Complexity]]></category>
		<category><![CDATA[what is Space Complexity and Why measuring it]]></category>
		<category><![CDATA[What is space complexity in data structure]]></category>
		<category><![CDATA[What is time complexity C]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2592</guid>

					<description><![CDATA[Answer : C. Amount of memory required by the program to run]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">What is space complexity of the program ?</p>
<div class="row">
<div class="col-sm-12">
<p>A. Amount of hard disk space required to store the program</p>
</div>
<div class="col-sm-12">
<p>B. Amount of hard disk space required to compile the program</p>
</div>
<div class="col-sm-12">
<p>C. Amount of memory required by the program to run</p>
</div>
<div class="col-sm-12">
<p>D. Amount of memory required by the program to compile</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-amount-of-memory-required-by-the-program-to-run"><b>Answer : </b>C. Amount of memory required by the program to run</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Space complexity is a measure of how efficient your code is in terms of memory used.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/what-is-space-complexity-of-the-program/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>There are 2 buildings and on each’s window, a flower pot is kept. Ravi’s mother tells him to multiply each cell/window to the other and store in a matrix ? What would be time complexity if he writes a code to do so ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/there-are-2-buildings-and-on-eachs-window-a-flower-pot-is-kept-ravis-mother-tells-him-to-multiply-each-cell-window-to-the-other-and-store-in-a-matrix-what-would-be-time-complexit/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/there-are-2-buildings-and-on-eachs-window-a-flower-pot-is-kept-ravis-mother-tells-him-to-multiply-each-cell-window-to-the-other-and-store-in-a-matrix-what-would-be-time-complexit/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:51:34 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[a flower pot is kept]]></category>
		<category><![CDATA[c - How do I find the time complexity (Big O)]]></category>
		<category><![CDATA[c - Time complexity analysis in finding index]]></category>
		<category><![CDATA[Finding time complexity of algorithms using big-O]]></category>
		<category><![CDATA[How to analyse time complexity]]></category>
		<category><![CDATA[how to calculate time complexity for a given algorithm]]></category>
		<category><![CDATA[how to calculate time complexity of a program in c]]></category>
		<category><![CDATA[how to calculate time complexity of nested loops]]></category>
		<category><![CDATA[How to find time complexity of an algorithm]]></category>
		<category><![CDATA[how to reduce time complexity of for loop]]></category>
		<category><![CDATA[java - What is time complexity and how to find it]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[There are 2 buildings and on each’s window]]></category>
		<category><![CDATA[Time and Space Complexity]]></category>
		<category><![CDATA[time complexity analysis]]></category>
		<category><![CDATA[time complexity calculation examples]]></category>
		<category><![CDATA[time complexity examples]]></category>
		<category><![CDATA[time complexity of algorithms]]></category>
		<category><![CDATA[time complexity of algorithms examples]]></category>
		<category><![CDATA[time complexity tutorial]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2591</guid>

					<description><![CDATA[Answer : D. Theta(n2)]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">There are 2 buildings and on each’s window, a flower pot is kept. Ravi’s mother tells him to multiply each cell/window to the other and store in a matrix ? What would be time complexity if he writes a code to do so ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Omega(n)</p>
</div>
<div class="col-sm-6">
<p>B. Omega(n<sup>2</sup>)</p>
</div>
<div class="col-sm-6">
<p>C. Theta (n)</p>
</div>
<div class="col-sm-6">
<p>D. Theta (n<sup>2</sup>)</p>
</div>
</div>
</div>
</div>
<h3 id="answer-d-thetan2"><b>Answer : </b>D. Theta(n<sup>2</sup>)</h3>
<div class="TextHeading">
<div class="hddn">
<h2 id="explanation">Explanation:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>The multiplication involved will use two for loops and hence the complexity will be Theta(n<sup>2</sup>)</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/there-are-2-buildings-and-on-eachs-window-a-flower-pot-is-kept-ravis-mother-tells-him-to-multiply-each-cell-window-to-the-other-and-store-in-a-matrix-what-would-be-time-complexit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>A code with θ(n) and θ(n2) complexity. Which code will execute faster for a code of size J ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/a-code-with-%ce%b8n-and-%ce%b8n2-complexity-which-code-will-execute-faster-for-a-code-of-size-j/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/a-code-with-%ce%b8n-and-%ce%b8n2-complexity-which-code-will-execute-faster-for-a-code-of-size-j/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:49:36 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[A code with θ(n) and θ(n^2)]]></category>
		<category><![CDATA[A code with θ(n) and θ(n^2) complexity]]></category>
		<category><![CDATA[algorithm - Big O]]></category>
		<category><![CDATA[algorithm - Determining the big-O runtimes of these]]></category>
		<category><![CDATA[big theta examples]]></category>
		<category><![CDATA[big theta notation examples]]></category>
		<category><![CDATA[codes a and b have complexities]]></category>
		<category><![CDATA[complexity theory in oops]]></category>
		<category><![CDATA[complexity theory in oops questions]]></category>
		<category><![CDATA[how do you calculate/approximate it]]></category>
		<category><![CDATA[How to find time complexity of an algorithm]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[o(n) always faster than o(n^2)]]></category>
		<category><![CDATA[object oriented programming in java questions and answers]]></category>
		<category><![CDATA[time complexity What does O(log n) mean exactly]]></category>
		<category><![CDATA[Which code will execute faster for a code of size J]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2590</guid>

					<description><![CDATA[Answer : C. Cant be said as size of K is unknown]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">A code with θ(n) and θ(n<sup>2</sup>) complexity . Which code will execute faster for a code of size J ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. θ(n)</p>
</div>
<div class="col-sm-6">
<p>B. θ(n<sup>2</sup>)</p>
</div>
<div class="col-sm-6">
<p>C. Cant be said as size of K is unknown</p>
</div>
<div class="col-sm-6">
<p>D. Both will be equal</p>
</div>
</div>
<h3 id="answer-c-cant-be-said-as-size-of-k-is-unknown"><b>Answer : </b>C. Cant be said as size of K is unknown</h3>
</div>
</div>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<p>Cant be determined as the size of K is not known.</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/a-code-with-%ce%b8n-and-%ce%b8n2-complexity-which-code-will-execute-faster-for-a-code-of-size-j/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Which type of inheritance needs a virtual function ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/which-type-of-inheritance-needs-a-virtual-function/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/which-type-of-inheritance-needs-a-virtual-function/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:47:53 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[advantages of virtual function in c++]]></category>
		<category><![CDATA[c++ - virtual function in private or protected inheritance]]></category>
		<category><![CDATA[C++ "virtual" keyword for functions in derived classes]]></category>
		<category><![CDATA[Do virtual functions have to be overridden]]></category>
		<category><![CDATA[inheritance - C++ Virtual function implementation]]></category>
		<category><![CDATA[inheritance virtual function]]></category>
		<category><![CDATA[inheritance virtual functionpure virtual function in c++]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[pure virtual function in c++]]></category>
		<category><![CDATA[pure virtual function program in c]]></category>
		<category><![CDATA[Virtual function and inheritance in C++]]></category>
		<category><![CDATA[virtual function c++]]></category>
		<category><![CDATA[virtual function call mechanism in c++]]></category>
		<category><![CDATA[Virtual Function in C++]]></category>
		<category><![CDATA[virtual function in inheritance]]></category>
		<category><![CDATA[virtual function in java]]></category>
		<category><![CDATA[What is need of virtual function]]></category>
		<category><![CDATA[What is virtual function in C]]></category>
		<category><![CDATA[What is virtual inheritance]]></category>
		<category><![CDATA[Which type of inheritance needs a virtual function]]></category>
		<category><![CDATA[Why do we need virtual function]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2589</guid>

					<description><![CDATA[Answer : D. All of the above]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Which type of inheritance needs a virtual function ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. <a href="https://www.wikitechy.com/tutorials/c++/c++-multiple-inheritance" target="_blank" rel="noopener">Multi level inheritance</a></p>
</div>
<div class="col-sm-6">
<p>B. <a href="https://www.wikitechy.com/tutorials/c++/c++-multiple-inheritance" target="_blank" rel="noopener">Multiple inheritance</a></p>
</div>
<div class="col-sm-6">
<p>C. Hybrid inheritance</p>
</div>
<div class="col-sm-6">
<p>D. All of the above</p>
</div>
</div>
</div>
</div>
<h3 id="answer-d-all-of-the-above"><b>Answer : </b>D. All of the above</h3>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/which-type-of-inheritance-needs-a-virtual-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Here is an infix notation: ((A+B)*C-(D-E))^(F+G) Choose the correct postfix notation of the above from the given options ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/here-is-an-infix-notation-abc-d-efg-choose-the-correct-postfix-notation-of-the-above-from-the-given-options/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/here-is-an-infix-notation-abc-d-efg-choose-the-correct-postfix-notation-of-the-above-from-the-given-options/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:46:02 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[((a+b)*c-(d-e))^(f+g) postfix]]></category>
		<category><![CDATA[a+(b*c-(d/e^f)*g)*h to postfix]]></category>
		<category><![CDATA[AMCAT Previous Papers with Solutions]]></category>
		<category><![CDATA[convert infix to postfix]]></category>
		<category><![CDATA[convert infix to prefix]]></category>
		<category><![CDATA[infix examples]]></category>
		<category><![CDATA[infix expression]]></category>
		<category><![CDATA[infix notation]]></category>
		<category><![CDATA[infix operator]]></category>
		<category><![CDATA[infix postfix prefix conversion examples]]></category>
		<category><![CDATA[infix to postfix]]></category>
		<category><![CDATA[infix to postfix algorithm]]></category>
		<category><![CDATA[infix to postfix c]]></category>
		<category><![CDATA[infix to postfix conversion]]></category>
		<category><![CDATA[infix to postfix converter]]></category>
		<category><![CDATA[infix to postfix converter with steps]]></category>
		<category><![CDATA[infix to postfix examples]]></category>
		<category><![CDATA[infix to postfix program in c]]></category>
		<category><![CDATA[infix to postfix questions]]></category>
		<category><![CDATA[infix to postfix using stack]]></category>
		<category><![CDATA[infix to prefix]]></category>
		<category><![CDATA[infix to prefix algorithm]]></category>
		<category><![CDATA[infix to prefix converter]]></category>
		<category><![CDATA[infix to prefix examples]]></category>
		<category><![CDATA[postfix to infix]]></category>
		<category><![CDATA[postfix to prefix]]></category>
		<category><![CDATA[postfix to prefix conversion]]></category>
		<category><![CDATA[postfix to prefix example]]></category>
		<category><![CDATA[prefix expression evaluation]]></category>
		<category><![CDATA[prefix to infix]]></category>
		<category><![CDATA[prefix to infix converter]]></category>
		<category><![CDATA[prefix to postfix conversion using stack in data structure]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2588</guid>

					<description><![CDATA[Answer : B. AB+C*DE–FG+^]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Here is an infix notation: ((A+B)*C-(D-E))^(F+G)<br />
Choose the correct postfix notation of the above from the given options ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. AB+CD*E–FG+^</p>
</div>
<div class="col-sm-6">
<p>B. AB+C*DE–FG+^</p>
</div>
<div class="col-sm-6">
<p>C. AB+C*DE-FG-+^</p>
</div>
<div class="col-sm-6">
<p>D. A+BC*DE-FG-+^</p>
</div>
</div>
</div>
</div>
<h3 id="answer-b-abcde-fg"><b>Answer : </b>B. AB+C*DE–FG+^</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<p><b>Postfix notation</b> is a notation for writing arithmetic expressions in which the operands appear before their operators.</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/here-is-an-infix-notation-abc-d-efg-choose-the-correct-postfix-notation-of-the-above-from-the-given-options/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the time complexity of adding three matrices of size NXN cell-by-cell ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/what-is-the-time-complexity-of-adding-three-matrices-of-size-nxn-cell-by-cell/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/what-is-the-time-complexity-of-adding-three-matrices-of-size-nxn-cell-by-cell/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:44:12 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[adding two nxn matrices]]></category>
		<category><![CDATA[AMCAT Previous Papers with Solutions]]></category>
		<category><![CDATA[complexity of addition of two matrices]]></category>
		<category><![CDATA[complexity of matrix multiplication algorithm]]></category>
		<category><![CDATA[if the depth of a tree is 3 levels]]></category>
		<category><![CDATA[in which area of a class are data and function directly accessible outside the class]]></category>
		<category><![CDATA[then what is the size of the tree?]]></category>
		<category><![CDATA[Time Complexity of Adding Three Matrices]]></category>
		<category><![CDATA[time complexity of adding two matrices]]></category>
		<category><![CDATA[time complexity of adding two numbers]]></category>
		<category><![CDATA[time complexity of addition]]></category>
		<category><![CDATA[What is the complexity of matrix addition?]]></category>
		<category><![CDATA[What is the time complexity of adding three matrices of size NXN]]></category>
		<category><![CDATA[What is the time complexity of adding three matrices of size NXN cell]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2587</guid>

					<description><![CDATA[Answer : B. O(N2)]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">What is the time complexity of adding three matrices of size NXN cell-by-cell ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. O(N)</p>
</div>
<div class="col-sm-6">
<p>B. O(N<sup>2</sup>)</p>
</div>
<div class="col-sm-6">
<p>C. O(N<sup>3</sup>)</p>
</div>
<div class="col-sm-6">
<p>D. None of these</p>
</div>
</div>
</div>
</div>
<h3 id="answer-b-on2"><b>Answer : </b>B. O(N<sup>2</sup>)</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Time complexity will be O(n<sup>2</sup>), because if we add all the elements one by one to other matrics we have to traverse the whole matrix at least 1 time and traversion takes O(n<sup>2</sup>) times.</li>
<li>With this traversion we add 3 elements of location [ i, j ] and storing the result on other matrix at [ i, j ] location.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/what-is-the-time-complexity-of-adding-three-matrices-of-size-nxn-cell-by-cell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Data and function in which area of a class are directly accessible outside the class ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/data-and-function-in-which-area-of-a-class-are-directly-accessible-outside-the-class/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/data-and-function-in-which-area-of-a-class-are-directly-accessible-outside-the-class/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:42:18 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[access specifiers in c++ with example]]></category>
		<category><![CDATA[access specifiers in c++ with example program]]></category>
		<category><![CDATA[access specifiers in c++ with examples]]></category>
		<category><![CDATA[AMCAT Previous Papers with Solutions]]></category>
		<category><![CDATA[c++ protected friend]]></category>
		<category><![CDATA[Data and function in which area of a class are directly accessible]]></category>
		<category><![CDATA[difference between private and protected in c++ with example]]></category>
		<category><![CDATA[difference between private and protected inheritance in c++]]></category>
		<category><![CDATA[difference between private public and protected access specifiers in c++]]></category>
		<category><![CDATA[difference between public and private data members]]></category>
		<category><![CDATA[difference between public private and protected in c++ with example]]></category>
		<category><![CDATA[difference between public private and protected inheritance in c++]]></category>
		<category><![CDATA[Explain public]]></category>
		<category><![CDATA[In which area of a class are data and function directly accessible]]></category>
		<category><![CDATA[inheritance in c++]]></category>
		<category><![CDATA[protected in c++ with example]]></category>
		<category><![CDATA[public private protected c++]]></category>
		<category><![CDATA[public private protected inheritance in c++]]></category>
		<category><![CDATA[public private protected java]]></category>
		<category><![CDATA[sprotected in c++ with example]]></category>
		<category><![CDATA[visibility modes in c++]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2586</guid>

					<description><![CDATA[Answer : A. Public]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Data and function in which area of a class are directly accessible outside the class ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Public</p>
</div>
<div class="col-sm-6">
<p>B. Private</p>
</div>
<div class="col-sm-6">
<p>C. Protected</p>
</div>
<div class="col-sm-6">
<p>D. None of these</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-public"><b>Answer : </b>A. Public</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Public</b> &#8211; The members declared as Public are accessible from outside the Class through an object of the class.</li>
<li><b>Protected</b> &#8211; The members declared as Protected are accessible from outside the class but only in a class derived from it.</li>
<li><b>Private</b> &#8211; These members are only accessible from within the class. No outside Access is allowed</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/data-and-function-in-which-area-of-a-class-are-directly-accessible-outside-the-class/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements ? print x * y / z &#8211; w print x * y / (z &#8211; w)</title>
		<link>https://www.wikitechy.com/interview-questions/programming/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:33:02 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AMCAT Question Papers with Answers]]></category>
		<category><![CDATA[basic c programming interview questionsc programming viva questions and answers]]></category>
		<category><![CDATA[basic c programming questions]]></category>
		<category><![CDATA[c language programming questions]]></category>
		<category><![CDATA[c programming interview programs]]></category>
		<category><![CDATA[c programming interview questions and answers]]></category>
		<category><![CDATA[c programming mcq with answers]]></category>
		<category><![CDATA[c programming multiple choice questions and answers]]></category>
		<category><![CDATA[c programming practice questions]]></category>
		<category><![CDATA[c programming problems and solutions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[c programming questions and answers objective type]]></category>
		<category><![CDATA[Computer Programming o No error the program is correctGiven: integer x = 40]]></category>
		<category><![CDATA[Given integer x 40 y 35 z 20 w 10 Comment about the output]]></category>
		<category><![CDATA[google programming interview questions]]></category>
		<category><![CDATA[programming aptitude questions]]></category>
		<category><![CDATA[programming interview problems]]></category>
		<category><![CDATA[programming technical interview questions]]></category>
		<category><![CDATA[simple programming questions]]></category>
		<category><![CDATA[string programming interview questions]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2575</guid>

					<description><![CDATA[Answer : A. Differ by 80]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements:<br />
print x * y / z – w<br />
print x * y / (z – w) ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Differ by 80</p>
</div>
<div class="col-sm-6">
<p>B. Same</p>
</div>
<div class="col-sm-6">
<p>C. Differ by 50</p>
</div>
<div class="col-sm-6">
<p>D. Differ by 160</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-differ-by-80"><b>Answer : </b>A. Differ by 80</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<p align="justify">print x * y / z – w = 40 * 35 / 20 &#8211; 10 = 60<br />
print x * y / (z – w) = 40 * 35 / ( 20 &#8211; 10 ) = 140<br />
Difference is 80</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1) ? I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:29:47 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AMCAT Question Papers with Answers]]></category>
		<category><![CDATA[basic programming interview questions]]></category>
		<category><![CDATA[basic programming questions]]></category>
		<category><![CDATA[c programming basic questions and answers]]></category>
		<category><![CDATA[c programming interview questions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[C++ Programming Questions]]></category>
		<category><![CDATA[computer programming questions]]></category>
		<category><![CDATA[how to practice programming]]></category>
		<category><![CDATA[object oriented programming interview questions]]></category>
		<category><![CDATA[programming interview]]></category>
		<category><![CDATA[programming interview questions]]></category>
		<category><![CDATA[programming interview questions and answers]]></category>
		<category><![CDATA[programming interview questions and answers for experienced]]></category>
		<category><![CDATA[programming interview questions and answers for freshers]]></category>
		<category><![CDATA[programming interviews exposed]]></category>
		<category><![CDATA[programming mcq questions with answers]]></category>
		<category><![CDATA[programming practice]]></category>
		<category><![CDATA[programming practice questions]]></category>
		<category><![CDATA[programming problems]]></category>
		<category><![CDATA[programming questions]]></category>
		<category><![CDATA[programming quiz]]></category>
		<category><![CDATA[programming tests for interviews]]></category>
		<category><![CDATA[programming topics]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2574</guid>

					<description><![CDATA[Answer : D. Recursion]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1), I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Iteration</p>
</div>
<div class="col-sm-6">
<p>B. Decision-making</p>
</div>
<div class="col-sm-6">
<p>C. Object Oriented Programming</p>
</div>
<div class="col-sm-6">
<p>D. Recursion</p>
</div>
</div>
</div>
</div>
<h3 id="answer-d-recursion"><b>Answer : </b>D. Recursion</h3>
<div class="subheading">
<h2 id="explanation">Explanation</h2>
</div>
<div class="Content">
<div class="hddn">
<p align="justify">Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What will the output of the following code statements be ? Integer x = 34.54, y = 20, z = -5 print (y &gt; 50 AND z &gt; 10 or x &gt; 30)</title>
		<link>https://www.wikitechy.com/interview-questions/programming/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:27:57 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[amcat computer programming questions and answers]]></category>
		<category><![CDATA[AMCAT Question Papers with Answers]]></category>
		<category><![CDATA[basic computer science interview questions]]></category>
		<category><![CDATA[computer programming exam questions]]></category>
		<category><![CDATA[computer programming questions and answers]]></category>
		<category><![CDATA[computer science multiple choice questions with answers]]></category>
		<category><![CDATA[computer science multiple choice questions with answers doc]]></category>
		<category><![CDATA[computer science objective questions for competitive exams]]></category>
		<category><![CDATA[computer science quiz questions with answers]]></category>
		<category><![CDATA[general programming quiz]]></category>
		<category><![CDATA[interview questions to ask a computer programmer]]></category>
		<category><![CDATA[multiple choice questions in computer science]]></category>
		<category><![CDATA[programming languages quiz questions and answers]]></category>
		<category><![CDATA[programming quiz java]]></category>
		<category><![CDATA[technical aptitude questions with answers for computer science]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2573</guid>

					<description><![CDATA[Answer : B. 1]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">What will the output of the following code statements be ?<br />
Integer x = 34.54, y = 20, z = -5 print (y &gt; 50 AND z &gt; 10 or x &gt; 30) ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. 0</p>
</div>
<div class="col-sm-6">
<p>B. 1</p>
</div>
<div class="col-sm-6">
<p>C. -1</p>
</div>
<div class="col-sm-6">
<p>D. 10</p>
</div>
</div>
</div>
</div>
<h3 id="answer-b-1"><b>Answer : </b>B. 1</h3>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>A 8-bit signed integer has the following range ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/a-8-bit-signed-integer-has-the-following-range/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/a-8-bit-signed-integer-has-the-following-range/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:26:13 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[10 bit value range]]></category>
		<category><![CDATA[128 bit integer limit]]></category>
		<category><![CDATA[16 bit integer]]></category>
		<category><![CDATA[16 bit integer max value]]></category>
		<category><![CDATA[16 bit integer range]]></category>
		<category><![CDATA[32 bit integer range]]></category>
		<category><![CDATA[32 bit signed integer range]]></category>
		<category><![CDATA[32 bit signed integer range java]]></category>
		<category><![CDATA[32 bit signed integer range python]]></category>
		<category><![CDATA[32-bit signed integer range c++]]></category>
		<category><![CDATA[32-bit signed integer range javascript]]></category>
		<category><![CDATA[6 bit signed integer range]]></category>
		<category><![CDATA[64 bit integer range]]></category>
		<category><![CDATA[64 bit signed integer]]></category>
		<category><![CDATA[8 bit integer]]></category>
		<category><![CDATA[8 bit integer c++]]></category>
		<category><![CDATA[8 bit integer limit]]></category>
		<category><![CDATA[8 bit integer max value]]></category>
		<category><![CDATA[8 bit integer range]]></category>
		<category><![CDATA[8 bit signed integer range]]></category>
		<category><![CDATA[a 10 bit unsigned integer has the following range]]></category>
		<category><![CDATA[a 8-bit signed integer has the following range]]></category>
		<category><![CDATA[AMCAT Question Papers with Answers]]></category>
		<category><![CDATA[an 8 bit signed integer has the range]]></category>
		<category><![CDATA[how many numbers can be represented with 10 bits]]></category>
		<category><![CDATA[integer range]]></category>
		<category><![CDATA[range of 10 bit signed integer]]></category>
		<category><![CDATA[unsigned integer range]]></category>
		<category><![CDATA[what is the largest number that can be represented by 10 bits]]></category>
		<category><![CDATA[what is the size of an integer on a 32-bit system]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2572</guid>

					<description><![CDATA[Answer : B. -128 to 127]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">A 8-bit signed integer has the following range ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. 0 to 255</p>
</div>
<div class="col-sm-6">
<p>B. -128 to 127</p>
</div>
<div class="col-sm-6">
<p>C. -255 to 254</p>
</div>
<div class="col-sm-6">
<p>D. 0 to 509</p>
</div>
</div>
</div>
</div>
<h3 id="answer-b-128-to-127"><b>Answer : </b>B. -128 to 127</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>There are 2<sup>8</sup> (256) different possible values for 8 bits.
<ul>
<li>When <b>unsigned integer,</b> it has possible values ranging from 0 to 255.</li>
<li>When <b>signed integer,</b> it has -128 to 127</li>
</ul>
</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/a-8-bit-signed-integer-has-the-following-range/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Which of the following cannot be inherited ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:23:45 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[c programming theory questions and answers]]></category>
		<category><![CDATA[c programming viva questions and answers]]></category>
		<category><![CDATA[c# What type of classes cannot be inherited in .NET]]></category>
		<category><![CDATA[c++ what we cannot inherit from a Base class]]></category>
		<category><![CDATA[coding interview questions]]></category>
		<category><![CDATA[interview questions to ask a computer programmer]]></category>
		<category><![CDATA[java interview questionsc programming interview questions and answers with explanations]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[Prevent class inheritance in C++]]></category>
		<category><![CDATA[programming interview questions and answers]]></category>
		<category><![CDATA[programming interview questions c#]]></category>
		<category><![CDATA[programming interview questions java]]></category>
		<category><![CDATA[programming technical interview questionsc programming interview questions and answers]]></category>
		<category><![CDATA[what is not inherited in c++]]></category>
		<category><![CDATA[What is not inherited in Java]]></category>
		<category><![CDATA[which class cannot be inherited in java]]></category>
		<category><![CDATA[Which class that cannot be inherited]]></category>
		<category><![CDATA[Which members are not inherited in a child class]]></category>
		<category><![CDATA[which of the following can be inherited by a derived class from a base class]]></category>
		<category><![CDATA[Which of the following cannot be inherited form base class]]></category>
		<category><![CDATA[Which of the following cannot be inherited from the base class]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2571</guid>

					<description><![CDATA[Answer : C. Destructor]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Which of the following cannot be inherited ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Friend</p>
</div>
<div class="col-sm-6">
<p>B. Static</p>
</div>
<div class="col-sm-6">
<p>C. Destructor</p>
</div>
<div class="col-sm-6">
<p>D. Constructor</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-destructor"><b>Answer : </b>C. Destructor</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Friend Class</b> &#8211; A friend class can access private and protected members of other class in which it is declared as friend. It is sometimes useful to allow a particular class to access private members of other class.</li>
<li><b>Constructor</b> &#8211; A constructor is a member function of a class which initializes objects of a class. In C++, Constructor is automatically called when object (instance of class) create. It is special member function of the class.</li>
<li><b>Static</b> &#8211; Static categories are sealed and thus can&#8217;t be transmissible. They can not inherit from any category except Object. Static categories cannot contain associate instance constructor. but, they will have a static builder.</li>
<li><b>Destructor</b> &#8211; Destructor is a member function which destructs or deletes an object.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Which of the following are available only in the class hierarchy chain ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-are-available-only-in-the-class-hierarchy-chain/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-are-available-only-in-the-class-hierarchy-chain/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:22:04 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c# oops scenario based interview questions]]></category>
		<category><![CDATA[class hierarchy example]]></category>
		<category><![CDATA[class hierarchy in c++]]></category>
		<category><![CDATA[class hierarchy in object oriented programming]]></category>
		<category><![CDATA[class hierarchy in oops]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[oops interview questions and answers]]></category>
		<category><![CDATA[oops interview questions and answers for 4 years experienced]]></category>
		<category><![CDATA[oops interview questions and answers for experienced]]></category>
		<category><![CDATA[oops interview questions c++]]></category>
		<category><![CDATA[oops interview questions in java]]></category>
		<category><![CDATA[oops interview questions in php]]></category>
		<category><![CDATA[oops practical interview questions c#]]></category>
		<category><![CDATA[oops tricky interview question]]></category>
		<category><![CDATA[oops tricky interview question php]]></category>
		<category><![CDATA[oops tricky interview questions and answers for experienced in c#]]></category>
		<category><![CDATA[oops tricky interview questions c#]]></category>
		<category><![CDATA[oops tricky interview questions java]]></category>
		<category><![CDATA[php oops interview questions for 5 year experience]]></category>
		<category><![CDATA[php oops interview questions with examples]]></category>
		<category><![CDATA[what is class hierarchy]]></category>
		<category><![CDATA[What is class hierarchy in OOP]]></category>
		<category><![CDATA[What is the class hierarchy]]></category>
		<category><![CDATA[Which of the following are available in the class hierarchy chain]]></category>
		<category><![CDATA[Which of the following are available only in the class hierarchy chain]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2570</guid>

					<description><![CDATA[Answer : C. Protected data members]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Which of the following are available only in the class hierarchy chain ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Public data members</p>
</div>
<div class="col-sm-6">
<p>B. Private data members</p>
</div>
<div class="col-sm-6">
<p>C. Protected data members</p>
</div>
<div class="col-sm-6">
<p>D. Member functions</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-protected-data-members"><b>Answer : </b>C. Protected data members</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Public</b> &#8211; The members declared as Public are accessible from outside the Class through an object of the class.</li>
<li><b>Protected</b> &#8211; The members declared as Protected are accessible from outside the class but only in a class derived from it.</li>
<li><b>Private</b> &#8211; These members are only accessible from within the class. No outside Access is allowed.</li>
<li><b>Member Function</b> &#8211; Member functions are the functions, which have their declaration inside the class definition and works on the data members of the class. The definition of member functions can be inside or outside the definition of class.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-are-available-only-in-the-class-hierarchy-chain/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:19:40 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[inheritance definition]]></category>
		<category><![CDATA[inheritance in java]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[oops concepts]]></category>
		<category><![CDATA[oops concepts in java]]></category>
		<category><![CDATA[oops interview questions]]></category>
		<category><![CDATA[oops interview questions and answers]]></category>
		<category><![CDATA[oops interview questions c++]]></category>
		<category><![CDATA[oops interview questions in java]]></category>
		<category><![CDATA[oops practical interview questions c#]]></category>
		<category><![CDATA[oops tricky interview question]]></category>
		<category><![CDATA[oops tricky interview questions c#]]></category>
		<category><![CDATA[Tarun works all night long writing code]]></category>
		<category><![CDATA[Tarun works all night long writing code and writing more]]></category>
		<category><![CDATA[Tarun works all night long writing code and writing more and more classes]]></category>
		<category><![CDATA[write a superclass which defines some hierarchical feature]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2569</guid>

					<description><![CDATA[Answer : C. Inheritance]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink" style="text-align: justify;">Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?</p>
<div class="row" style="text-align: justify;">
<div class="col-sm-6">
<p>A. Cascading</p>
</div>
<div class="col-sm-6">
<p>B. Hierarchical super positioning</p>
</div>
<div class="col-sm-6">
<p>C. Inheritance</p>
</div>
<div class="col-sm-6">
<p>D. Polymorphism</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-inheritance" style="text-align: justify;"><b>Answer : </b>C. Inheritance</h3>
<div class="subheading" style="text-align: justify;">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">In object-oriented programming, inheritance is that the mechanism of basing an object or category upon another object (prototypical inheritance) or category (class-based inheritance), holding similar implementation.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tarun wants to write code for his computer class homework but he had misheard the teacher and only can recollect remembering this 4 words. Which of the following is what he couldn’t have had heard ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/tarun-wants-to-write-code-for-his-computer-class-homework-but-he-had-misheard-the-teacher-and-only-can-recollect-remembering-this-4-words-which-of-the-following-is-what-he-couldnt-have-had-h/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/tarun-wants-to-write-code-for-his-computer-class-homework-but-he-had-misheard-the-teacher-and-only-can-recollect-remembering-this-4-words-which-of-the-following-is-what-he-couldnt-have-had-h/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:17:49 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c# interview questions and answers for freshers]]></category>
		<category><![CDATA[c++ inheritance practice questions]]></category>
		<category><![CDATA[important questions on inheritance in c++]]></category>
		<category><![CDATA[inheritance interview questions]]></category>
		<category><![CDATA[inheritance interview questions c#]]></category>
		<category><![CDATA[inheritance interview questions java]]></category>
		<category><![CDATA[inheritance output questions in c++]]></category>
		<category><![CDATA[inheritance practice problems]]></category>
		<category><![CDATA[java inheritance interview questions and answers]]></category>
		<category><![CDATA[java inheritance practice exercises]]></category>
		<category><![CDATA[java interview questions]]></category>
		<category><![CDATA[mcq on inheritance in c++ with answers]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[multiple inheritance in c# interview questions]]></category>
		<category><![CDATA[oops interview questions c++]]></category>
		<category><![CDATA[polymorphism interview questions in c#]]></category>
		<category><![CDATA[practical questions on inheritance in c++]]></category>
		<category><![CDATA[problems on inheritance in java]]></category>
		<category><![CDATA[programming exercises on inheritance in java]]></category>
		<category><![CDATA[programming questions on inheritance in c++]]></category>
		<category><![CDATA[programs on inheritance in c++]]></category>
		<category><![CDATA[questions on inheritance in c++]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2568</guid>

					<description><![CDATA[Answer : A. Distributive]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Tarun wants to write code for his computer class homework but he had misheard the teacher and only can recollect remembering this 4 words. Which of the following is what he couldn’t have had heard?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Distributive</p>
</div>
<div class="col-sm-6">
<p>B. Multilevel</p>
</div>
<div class="col-sm-6">
<p>C. Multiple</p>
</div>
<div class="col-sm-6">
<p>D. Hierarchical</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-distributive"><b>Answer : </b>A. Distributive</h3>
<div class="subheading">
<h2 id="explanation">Explanation:</h2>
</div>
<div class="subheading">
<h2 id="multiple-inheritance" class="color-green">Multiple Inheritance:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>It refers to the concept of one class extending (Or inherits) more than one base class. The inheritance we learnt earlier had the concept of one base class or parent. The problem with “multiple inheritance” is that the derived class will have to manage the dependency on two base classes.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/multiple-inheritance.gif" alt="Multiple Inheritance" /></div>
</div>
<div class="subheading">
<h2 id="multilevel-inheritance" class="color-green">Multilevel Inheritance:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>When a class extends a class, which extends anther class then this is called multilevel inheritance. For example class C extends class B and class B extends class A then this type of inheritance is known as multilevel inheritance.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/multi-level-inheritance.jpg" alt="Multilevel Inheritance" /></div>
</div>
<div class="subheading">
<h2 id="hierarchical-inheritance" class="color-green">Hierarchical Inheritance:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>When more than one classes inherit a same class then this is called hierarchical inheritance. For example class B, C and D extends a same class A.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/heirarchical-inheritance.jpg" alt="Hierarchical Inheritance" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/tarun-wants-to-write-code-for-his-computer-class-homework-but-he-had-misheard-the-teacher-and-only-can-recollect-remembering-this-4-words-which-of-the-following-is-what-he-couldnt-have-had-h/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Palak enters a coding competition she wants to write code to pass down values from one class to another. Which of following concept should she use to do so ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/palak-enters-a-coding-competition-she-wants-to-write-code-to-pass-down-values-from-one-class-to-another-which-of-following-concept-should-she-use-to-do-so/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/palak-enters-a-coding-competition-she-wants-to-write-code-to-pass-down-values-from-one-class-to-another-which-of-following-concept-should-she-use-to-do-so/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:15:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[abstract class interview questions c#]]></category>
		<category><![CDATA[abstract keyword in java]]></category>
		<category><![CDATA[abstraction in java]]></category>
		<category><![CDATA[abstraction interview questions and answers for experienced]]></category>
		<category><![CDATA[c++ friend class]]></category>
		<category><![CDATA[extend function python]]></category>
		<category><![CDATA[implements keyword in java]]></category>
		<category><![CDATA[inheritance in c++]]></category>
		<category><![CDATA[inheritance in c++ with example program]]></category>
		<category><![CDATA[inheritance in java]]></category>
		<category><![CDATA[interface in java]]></category>
		<category><![CDATA[java extends example]]></category>
		<category><![CDATA[javascript extend function prototype]]></category>
		<category><![CDATA[javascript extend object]]></category>
		<category><![CDATA[jquery extend function]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[Palak enters a coding competition]]></category>
		<category><![CDATA[Palak enters a coding competition she wants to write code to pass down values]]></category>
		<category><![CDATA[Palak enters a coding competition she wants to write codewhat is abstraction]]></category>
		<category><![CDATA[polymorphism in java]]></category>
		<category><![CDATA[super keyword in java]]></category>
		<category><![CDATA[types of inheritance in java]]></category>
		<category><![CDATA[what is extend function]]></category>
		<category><![CDATA[write code to pass down values from one class to another]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2567</guid>

					<description><![CDATA[Answer : C. Extends]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Palak enters a coding competition she wants to write code to pass down values from one class to another. Which of following concept should she use to do so ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Inherits</p>
</div>
<div class="col-sm-6">
<p>B. Extends</p>
</div>
<div class="col-sm-6">
<p>C. Construct</p>
</div>
<div class="col-sm-6">
<p>D. All of the mentioned</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-extends"><b>Answer : </b>C. Extends</h3>
<div class="subheading">
<h2 id="explanation">Explanation:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>A class in Java can extend another class to become a subclass. When class B extends the class A, B becomes subclass (child) and A becomes superclass (parent). A subclass can reuse all the features of the parent class and code reuse is a major reason for extending a class</li>
</ul>
</div>
</div>
<div class="text-center row">
<div class="col-sm-12"></div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/inheritance-in-java.jpg" alt="Inheritance in Java" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/palak-enters-a-coding-competition-she-wants-to-write-code-to-pass-down-values-from-one-class-to-another-which-of-following-concept-should-she-use-to-do-so/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How will a class protect the code inside it ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/how-will-a-class-protect-the-code-inside-it/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/how-will-a-class-protect-the-code-inside-it/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:13:17 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[access specifier]]></category>
		<category><![CDATA[access specifier in c++]]></category>
		<category><![CDATA[access specifier in class]]></category>
		<category><![CDATA[access specifiers in c# mcq]]></category>
		<category><![CDATA[access specifiers in c++]]></category>
		<category><![CDATA[access specifiers in c++ with examples]]></category>
		<category><![CDATA[access specifiers in java]]></category>
		<category><![CDATA[encapsulation is also responsible for security and diversity in java]]></category>
		<category><![CDATA[functions of access specifier]]></category>
		<category><![CDATA[How will a class protect the code inside it]]></category>
		<category><![CDATA[Inheritance and access specifiers]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[object oriented programming exam questions and answers]]></category>
		<category><![CDATA[object oriented programming in java mcq with answers]]></category>
		<category><![CDATA[object oriented programming in java questions and answers]]></category>
		<category><![CDATA[object oriented programming mcq with answers]]></category>
		<category><![CDATA[object oriented programming questions and answers]]></category>
		<category><![CDATA[oop mcqs test]]></category>
		<category><![CDATA[protected class]]></category>
		<category><![CDATA[uses of access specifier in class]]></category>
		<category><![CDATA[What are the access specifiers]]></category>
		<category><![CDATA[what is protected class]]></category>
		<category><![CDATA[What is protected in OOP]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2566</guid>

					<description><![CDATA[Answer : A. Using access specifier]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">How will a class protect the code inside it ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Using access specifier</p>
</div>
<div class="col-sm-6">
<p>B. Abstraction</p>
</div>
<div class="col-sm-6">
<p>C. Use of inheritance</p>
</div>
<div class="col-sm-6">
<p>D. All of the mentioned</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-using-access-specifier"><b>Answer : </b>A. Using access specifier</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Public</b> &#8211; The members declared as Public are accessible from outside the Class through an object of the class.</li>
<li><b>Protected</b> &#8211; The members declared as Protected are accessible from outside the class but only in a class derived from it.</li>
<li><b>Private</b> &#8211; These members are only accessible from within the class. No outside Access is allowed.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/how-will-a-class-protect-the-code-inside-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
