<?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>telibrahma interview questions and answers - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/telibrahma-interview-questions-and-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/telibrahma-interview-questions-and-answers/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 02 May 2022 06:20:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>telibrahma interview questions and answers - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/telibrahma-interview-questions-and-answers/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is Polymorphism in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/what-is-polymorphism-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/what-is-polymorphism-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:07:15 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[compile time polymorphism in c++]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[method overloading in java]]></category>
		<category><![CDATA[method overriding in java]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[polaris financial technology interview questions and answers]]></category>
		<category><![CDATA[polymorphism example c#]]></category>
		<category><![CDATA[polymorphism example in c++]]></category>
		<category><![CDATA[polymorphism example in java]]></category>
		<category><![CDATA[polymorphism in java]]></category>
		<category><![CDATA[polymorphism in object oriented programming]]></category>
		<category><![CDATA[polymorphism real time example]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[runtime polymorphism in c# example]]></category>
		<category><![CDATA[runtime polymorphism in c++]]></category>
		<category><![CDATA[runtime polymorphism is achieved by]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[static polymorphism in c++]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[telibrahma interview questions and answers]]></category>
		<category><![CDATA[types of polymorphism in c++]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=628</guid>

					<description><![CDATA[Answer : Polymorphism in Java is a concept in different ways...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-polymorphism-in-java" class="color-pink" style="text-align: justify;">What is Polymorphism in Java ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Polymorphism in Java is a concept in different ways we can perform a single action.</li>
<li>Poly and morphs. The word “poly” means many and “morphs” means forms. Many forms are known as polymorphism.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/polymorphism-in-java.png" alt=" Polymorphism in Java" /></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>There are two types of polymorphism in Java:
<ul>
<li>Compile-Time Polymorphism and</li>
<li>Runtime Polymorphism.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Polymorphism in java we can perform by method overloading and method overriding.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="dynamic-method-dispatch-or-runtime-polymorphism-in-java" class="color-pink">Dynamic Method Dispatch or Runtime Polymorphism in Java</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Java supports Runtime Polymorphism is one of the ways is method overriding</li>
<li>A call to an overridden method is resolved at run time, rather than compile time it is called as dynamic method dispatch mechanism.</li>
<li>At run-time, it depends on the type of the object being referred that determines which version of an overridden method will be executed.</li>
<li>A subclass object refers by a superclass variable. This is also known as upcasting. Java uses this statistic to resolve calls to overridden methods at run time.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/upcasting.jpg" alt=" Upcasting" /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="example-of-java-runtime-polymorphism" class="color-blue">Example of Java Runtime Polymorphism</h2>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4232" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism.png" alt="" width="1092" height="1061" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism.png 1092w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-300x291.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-1024x995.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-768x746.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-390x379.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-820x797.png 820w" sizes="(max-width: 1092px) 100vw, 1092px" /></p>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">class Bike{  <br/>  void run(){System.out.println(&quot;running&quot;);}  <br/>}  <br/>class Splendor extends Bike{  <br/>  void run(){System.out.println(&quot;running safely with 60km&quot;);}  <br/>  <br/>  public static void main(String args[]){  <br/>    Bike b = new Splendor();//upcasting  <br/>    b.run();  <br/>  }  <br/>} </code></pre> </div></figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs javascript" data-lang=""><span class="nt">running safely <span class="hljs-keyword">with</span> <span class="hljs-number">60</span>km.</span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/what-is-polymorphism-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Detect loop in a linked list ?</title>
		<link>https://www.wikitechy.com/interview-questions/data-structure/detect-loop-in-a-linked-list/</link>
					<comments>https://www.wikitechy.com/interview-questions/data-structure/detect-loop-in-a-linked-list/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 11:08:43 +0000</pubDate>
				<category><![CDATA[Data Structure]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Altimetrik India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Bharti Airtel interview questions and answers]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Te interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[find length of linked list java]]></category>
		<category><![CDATA[find length of loop in linked list]]></category>
		<category><![CDATA[find length of loop in linked list in java]]></category>
		<category><![CDATA[find start of loop in linked list]]></category>
		<category><![CDATA[find start of loop in linked list java]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[floyd's cycle detection algorithm]]></category>
		<category><![CDATA[for loop linked list c++]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Globallogic India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[java detect]]></category>
		<category><![CDATA[length of loop in linked list]]></category>
		<category><![CDATA[length of loop in linked list java]]></category>
		<category><![CDATA[linked list algorithm]]></category>
		<category><![CDATA[linked list in data structure]]></category>
		<category><![CDATA[linked list program in c with explanation]]></category>
		<category><![CDATA[linked list program in clinked list algorithm]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[n'th node from end of linked list]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[reverse a linked list]]></category>
		<category><![CDATA[samsung interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Sapient Consulting Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[telibrahma interview questions and answers]]></category>
		<category><![CDATA[Tracxn Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[what is loop]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[WM Global Technology Services India Pvt.Ltd Limited (WMGTS) interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Yodlee Infotech Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=473</guid>

					<description><![CDATA[Answer : There are two ways to detect loop in linked list...
]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="detect-loop-in-a-linked-list" class="color-pink">Detect loop in a linked list ?</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>There are two ways to detect loop in linked list or not.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/data-structure/detect-loop-in-a-linked-list.png" alt=" Detect Loop in a Linked List" /></div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="method-1" class="color-blue">Method 1:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Traverse through each node till end , tracking visited node using Hash map.</li>
<li>If you find node that is already visited, then there is a loop in LinkedList</li>
<li>If you reach till end while traversing then there is no loop in LinkedList</li>
</ul>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">using namespace std; <br/><br/>struct Node <br/>{ <br/>	int data; <br/>	struct Node* next; <br/>}; <br/><br/>void push(struct Node** head_ref, int new_data) <br/>{ <br/><br/>	struct Node* new_node = new Node; <br/><br/>	<br/>	new_node->data = new_data; <br/><br/>	/* link the old list off the new node */<br/>	new_node->next = (*head_ref); <br/><br/>	/* move the head to point to the new node */<br/>	(*head_ref) = new_node; <br/>} <br/><br/>// Returns true if there is a loop in linked list <br/>// else returns false. <br/>bool detectLoop(struct Node *h) <br/>{ <br/>	unordered_set<Node *> s; <br/>	while (h != NULL) <br/>	{ <br/>		// If this node is already present <br/>		// in hashmap it means there is a cycle <br/>		// (Because you we encountering the <br/>		// node for the second time). <br/>		if (s.find(h) != s.end()) <br/>			return true; <br/><br/>		// If we are seeing the node for <br/>		// the first time, insert it in hash <br/>		s.insert(h); <br/><br/>		h = h->next; <br/>	} <br/><br/>	return false; <br/>} <br/><br/>/* Drier program to test above function*/<br/>int main() <br/>{ <br/>	/* Start with the empty list */<br/>	struct Node* head = NULL; <br/><br/>	push(&head, 21); <br/>	push(&head, 14); <br/>	push(&head, 5); <br/>	push(&head, 10); <br/><br/>	/* Create a loop for testing */<br/>	head->next->next->next->next = head; <br/><br/>	if (detectLoop(head)) <br/>		cout << &quot;Loop found&quot;; <br/>	else<br/>		cout << &quot;No Loop&quot;; <br/><br/>	return 0; <br/>} </code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="output" class="color-blue">Output:</h2>
<p><code class="hljs" data-lang=""><span class="nt">Loop found</span></code></p>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="method-2" class="color-blue">Method 2:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Efficient approach for this problem would be Floyd’s cycle detection algorithm, so steps for this algorithm would be:</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>Use two pointer fastPtr and slowPtr and initialize both to head of linkedlist</li>
<li>Move fastPtr by two nodes and slowPtr by one node in each iteration.</li>
<li>If fastPtr and slowPtr meet at some iteration , then there is a loop in linkedlist.</li>
<li>If fastPtr reaches to the end of linkedlist without meeting slow pointer then there is no loop in linkedlist (i.e fastPtr->next or fastPtr->next->next become null).</li>
</ul>
</li>
</ul>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">// C program to detect loop in a linked list <br/>#include<stdio.h> <br/>#include<stdlib.h> <br/>/* Link list node */<br/>struct Node <br/>{ <br/>	int data; <br/>	struct Node* next; <br/>}; <br/><br/>void push(struct Node** head_ref, int new_data) <br/>{ <br/>	/* allocate node */<br/>	struct Node* new_node = <br/>		(struct Node*) malloc(sizeof(struct Node)); <br/><br/>	/* put in the data */<br/>	new_node->data = new_data; <br/><br/>	/* link the old list off the new node */<br/>	new_node->next = (*head_ref); <br/><br/>	/* move the head to point to the new node */<br/>	(*head_ref) = new_node; <br/>} <br/><br/>int detectloop(struct Node *list) <br/>{ <br/>	struct Node *slow_p = list, *fast_p = list; <br/><br/>	while (slow_p && fast_p && fast_p->next ) <br/>	{ <br/>		slow_p = slow_p->next; <br/>		fast_p = fast_p->next->next; <br/>		if (slow_p == fast_p) <br/>		{ <br/>		printf(&quot;Found Loop&quot;); <br/>		return 1; <br/>		} <br/>	} <br/>	return 0; <br/>} <br/><br/>/* Drier program to test above function*/<br/>int main() <br/>{ <br/>	/* Start with the empty list */<br/>	struct Node* head = NULL; <br/><br/>	push(&head, 10); <br/>	push(&head, 4); <br/>	push(&head, 5); <br/>	push(&head, 10); <br/><br/>	/* Create a loop for testing */<br/>	head->next->next->next->next = head; <br/>	detectloop(head); <br/><br/>	return 0; <br/>}</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="output-2" class="color-blue">Output:</h2>
</div>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight">
<pre><code id="code2" class="hljs" data-lang=""><span class="nt">Found Loop</span></code></pre>
</figure>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/data-structure/detect-loop-in-a-linked-list/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is pure virtual function in C++ ?</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/what-is-pure-virtual-function-in-cpp/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/what-is-pure-virtual-function-in-cpp/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 22:24:30 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[abstract vs virtual]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[class virtual]]></category>
		<category><![CDATA[cpp virtual function]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[eInfochips interview questions and answers]]></category>
		<category><![CDATA[Electronics Arts Inc interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Harman International interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Larsen & Toubro interview questions and answers]]></category>
		<category><![CDATA[Mathworks India Private Limited interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Philips Software Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[pure virtual]]></category>
		<category><![CDATA[pure virtual class]]></category>
		<category><![CDATA[pure virtual function]]></category>
		<category><![CDATA[pure virtual function call]]></category>
		<category><![CDATA[pure virtual function call error]]></category>
		<category><![CDATA[pure virtual method]]></category>
		<category><![CDATA[pure virtual method called]]></category>
		<category><![CDATA[runtime error pure virtual function call]]></category>
		<category><![CDATA[SRM Technologies interview questions and answers]]></category>
		<category><![CDATA[Symphony Teleca interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Tecnotree interview questions and answers]]></category>
		<category><![CDATA[telibrahma interview questions and answers]]></category>
		<category><![CDATA[virtual abstract]]></category>
		<category><![CDATA[virtual and pure virtual function]]></category>
		<category><![CDATA[virtual call]]></category>
		<category><![CDATA[virtual class in c++]]></category>
		<category><![CDATA[virtual class in java]]></category>
		<category><![CDATA[virtual example]]></category>
		<category><![CDATA[virtual function]]></category>
		<category><![CDATA[virtual function and pure virtual function]]></category>
		<category><![CDATA[virtual function example]]></category>
		<category><![CDATA[virtual function in java]]></category>
		<category><![CDATA[virtual function table]]></category>
		<category><![CDATA[virtual method]]></category>
		<category><![CDATA[virtual void]]></category>
		<category><![CDATA[what is a virtual method]]></category>
		<category><![CDATA[what is pure virtual function]]></category>
		<category><![CDATA[what is virtual class]]></category>
		<category><![CDATA[what is virtual function]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=370</guid>

					<description><![CDATA[Answer : A virtual function will become pure virtual function...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-pure-virtual-function-in-c" class="color-pink" style="text-align: justify;">What is pure virtual function in C++ ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>A virtual function will become pure virtual function when you append “=0” at the end of declaration of virtual function.</li>
<li>Pure virtual function doesn’t have body or implementation. We must implement all pure virtual functions in derived class.</li>
</ul>
</li>
</ul>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/cpp/what-is-a-pure-virtual-function-in-cpp.png" alt=" What is pure virtual function in C++" /></div>
</div>
<ul>
<li>Pure virtual function is also known as abstract function.</li>
<li>A class with at least one pure virtual function or abstract function is called abstract class. We can’t create an object of abstract class. Member functions of abstract class will be invoked by derived class object.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/cpp/pure-virtual-function.png" alt=" pure virtual function" /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="sample-code" class="color-purple">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-cpp code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-cpp code-embed-code">#include<iostream.h><br/>       #include<conio.h><br/><br/>       class BaseClass       //Abstract class<br/>       {<br/><br/>              public:<br/>               virtual void Display1()=0;     //Pure virtual function or abstract function<br/>               virtual void Display2()=0;     //Pure virtual function or abstract function<br/><br/>               void Method3()<br/>               {<br/>                      cout<<&quot;\n\tMethod3() is Base Class&quot;;<br/>               }<br/><br/>       };<br/><br/>       class DerivedClass : public BaseClass<br/>       {<br/><br/>              public:<br/>               void Method1()<br/>               {<br/>                      cout<<&quot;\n\tMethod1() is Derived Class&quot;;<br/>               }<br/><br/>               void Method2()<br/>               {<br/>                      cout<<&quot;\n\tMethod2() is Derived Class&quot;;<br/>               }<br/><br/>       };<br/><br/>       void main()<br/>       {<br/><br/>              DerivedClass D;<br/><br/>              D.Method1();            // This will invoke Method1() Derived Class<br/>              D.Method2();            // This will invoke Method2() Derived Class<br/>              D.Method3();            // This will invoke Method3() Base Class<br/><br/>       }</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="output" class="color-purple">Output</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-cpp code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-cpp code-embed-code">Method1() is Derived Class<br/>Method2() is Derived Class <br/>Method3() is Base Class</code></pre> </div>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/what-is-pure-virtual-function-in-cpp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to find LCM of two Numbers in C ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/how-to-find-lcm-of-two-numbers-in-c/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/how-to-find-lcm-of-two-numbers-in-c/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 21:04:03 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Accentur interview questions and answers]]></category>
		<category><![CDATA[algorithm to find lcm of n numbers]]></category>
		<category><![CDATA[algorithm to find lcm of two numbers]]></category>
		<category><![CDATA[algorithm to find lcm of two numbers in c]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Asian Paints Ltd. interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[c program to find hcf of two numbers]]></category>
		<category><![CDATA[c program to find lcm of 2 numbers]]></category>
		<category><![CDATA[c program to find lcm of 3 numbers]]></category>
		<category><![CDATA[c program to find lcm of 3 numbers in c]]></category>
		<category><![CDATA[c program to find lcm of 3 numbers using functions]]></category>
		<category><![CDATA[c program to find lcm of 3 numbers using recursion]]></category>
		<category><![CDATA[c program to find lcm of n numbers]]></category>
		<category><![CDATA[c program to find lcm of two numbers using recursion]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[DHFL Pramerica Life Insurance Company Ltd interview questions and answers]]></category>
		<category><![CDATA[Elico HealthCare Services Ltd interview questions and answers]]></category>
		<category><![CDATA[find lcm]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[flowchart to find lcm of two numbers]]></category>
		<category><![CDATA[flowchart to find lcm of two numbers in c]]></category>
		<category><![CDATA[gcd and lcm in c]]></category>
		<category><![CDATA[hcf and lcm formulas]]></category>
		<category><![CDATA[HCL Technol interview questions and answers]]></category>
		<category><![CDATA[how to do lcm]]></category>
		<category><![CDATA[how to find lcm]]></category>
		<category><![CDATA[how to find lcm of 3 numbers in c++]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[lcm examples]]></category>
		<category><![CDATA[lcm finder]]></category>
		<category><![CDATA[lcm formula]]></category>
		<category><![CDATA[lcm method]]></category>
		<category><![CDATA[lcm of 12 and 18]]></category>
		<category><![CDATA[lcm of 3 numbers]]></category>
		<category><![CDATA[lcm of 3 numbers in c using function]]></category>
		<category><![CDATA[lcm of 6 and 8]]></category>
		<category><![CDATA[lcm of fractions]]></category>
		<category><![CDATA[lcm of n numbers formula]]></category>
		<category><![CDATA[lcm of n numbers in python]]></category>
		<category><![CDATA[lcm of two numbers in c++]]></category>
		<category><![CDATA[lcm of two numbers in java]]></category>
		<category><![CDATA[lcm program in clcm meaning]]></category>
		<category><![CDATA[lcm questions]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[program to find lcm of 3 numbers]]></category>
		<category><![CDATA[program to find lcm of 3 numbers in java]]></category>
		<category><![CDATA[program to find lcm of n numbers in java]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[Raqmiyat Information Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tata AIA Life Insurance interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindr interview questions and answers]]></category>
		<category><![CDATA[telibrahma interview questions and answers]]></category>
		<category><![CDATA[The Linde Group interview questions and answers]]></category>
		<category><![CDATA[what is lcm]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=339</guid>

					<description><![CDATA[Answer : The LCM of two numbers a and b is the smallest positive integer that is perfectly divisible...]]></description>
										<content:encoded><![CDATA[<h2 id="to-find-lcm-of-two-numbers-in-c" class="color-pink" style="text-align: justify;">To Find LCM of Two Numbers in C</h2>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The LCM of two numbers a and b is the smallest positive integer that is perfectly divisible by both a and b (without a remainder). For example: The LCM of 72 and 120 is 360.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<h2 id="sample-code" class="color-blue" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">#include <stdio.h> <br/>// Recursive function to return gcd of a and b<br/>int gcd(int a, int b)<br/>{<br/>// Everything divides 0<br/>    if (a == 0 || b == 0)<br/>        return 0;<br/>// Base case<br/>    if (a == b)<br/>        return a;<br/>// a is greater<br/>    if (a > b)<br/>        return gcd(a-b, b);<br/>    return gcd(a, b-a);<br/>}<br/>// Function to return LCM of two numbers<br/>int lcm(int a, int b)<br/>{<br/>    return (a*b)/gcd(a, b);<br/>}<br/>// Driver program to test above function<br/>int main()<br/>{<br/>    int a = 10, b = 28;<br/>    printf(&quot;LCM of %d and %d is %d &quot;, a, b, lcm(a, b));<br/>    return 0;<br/>}</code></pre> </div>
<h2 id="output" class="color-blue" style="text-align: justify;">Output</h2>
<div class="Output" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">LCM of 10 and 28 is 140</code></pre> </div></figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/how-to-find-lcm-of-two-numbers-in-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Pattern programs in C ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/pattern-programs-in-c/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/pattern-programs-in-c/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 20:26:13 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Accentur interview questions and answers]]></category>
		<category><![CDATA[alphabet and star pattern programs in c]]></category>
		<category><![CDATA[alphabet diamond pattern in c]]></category>
		<category><![CDATA[alphabet pattern programs in c]]></category>
		<category><![CDATA[alphabet pattern programs in c using for loop]]></category>
		<category><![CDATA[alphabet pyramid pattern programs in c]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Asian Paints Ltd. interview questions and answers]]></category>
		<category><![CDATA[Barracuda Networks Interview Questions and Answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[c program for different patterns]]></category>
		<category><![CDATA[c program to print patterns]]></category>
		<category><![CDATA[c program to print patterns of numbers]]></category>
		<category><![CDATA[c programming]]></category>
		<category><![CDATA[c programming language]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[cstar programme]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[DHFL Pramerica Life Insurance Company Ltd interview questions and answers]]></category>
		<category><![CDATA[Diamond pattern programs in c]]></category>
		<category><![CDATA[Elico HealthCare Services Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[HCL Technol interview questions and answers]]></category>
		<category><![CDATA[how to print in c]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[java program to print pattern of numbers]]></category>
		<category><![CDATA[java program to print patterns of numbers and stars]]></category>
		<category><![CDATA[loop pattern]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[number pattern programs in c]]></category>
		<category><![CDATA[number pattern programs in c with explanation]]></category>
		<category><![CDATA[number patterns in c]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[pattern code]]></category>
		<category><![CDATA[pattern generation in c]]></category>
		<category><![CDATA[pattern printing in c]]></category>
		<category><![CDATA[pattern programs in c]]></category>
		<category><![CDATA[pattern programs in cpattern programs in c++]]></category>
		<category><![CDATA[pattern programs in java]]></category>
		<category><![CDATA[patterns in c]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[print pattern]]></category>
		<category><![CDATA[programming patterns]]></category>
		<category><![CDATA[pyramid pattern]]></category>
		<category><![CDATA[pyramid program in c]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[Raqmiyat Information Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[reverse a string in c]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[star pattern]]></category>
		<category><![CDATA[star pattern in c]]></category>
		<category><![CDATA[star pattern programs in c]]></category>
		<category><![CDATA[star pattern programs in c with explanation]]></category>
		<category><![CDATA[star pattern programs in java]]></category>
		<category><![CDATA[Tata AIA Life Insurance interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindr interview questions and answers]]></category>
		<category><![CDATA[telibrahma interview questions and answers]]></category>
		<category><![CDATA[The Linde Group interview questions and answers]]></category>
		<category><![CDATA[toughest pattern programs in c]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=323</guid>

					<description><![CDATA[Answer : Pattern programs in C print various patterns of numbers and stars...]]></description>
										<content:encoded><![CDATA[<h2 id="pattern-programs-in-c" class="color-pink" style="text-align: justify;">Pattern programs in C ?</h2>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Pattern programs in C print various patterns of numbers and stars. These codes explain how to create various patterns using C programming. The C programs involve usage of <a href="https://www.wikitechy.com/technology/breaking-nested-loops-java/" target="_blank" rel="noopener">nested for loops</a> (a for loop inside a for loop).</li>
<li>A pattern of numbers, star or characters is a way of arranging these in some logical manner or they may form a sequence. Some of these patterns are triangles which have special importance in mathematics.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="example-1" class="color-blue">Example 1</h2>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="sample-code-in-c" class="color-green">Sample Code in C:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">#include <stdio.h><br/>int main()<br/>{<br/>    int i, space, rows, k=0;<br/><br/>    printf(&quot;Enter number of rows: &quot;);<br/>    scanf(&quot;%d&quot;,&rows);<br/><br/>    for(i=1; i<=rows; ++i, k=0)<br/>    {<br/>        for(space=1; space<=rows-i; ++space)<br/>        {<br/>            printf(&quot;  &quot;);<br/>        }<br/><br/>        while(k != 2*i-1)<br/>        {<br/>            printf(&quot;* &quot;);<br/>            ++k;<br/>        }<br/><br/>        printf(&quot;\n&quot;);<br/>    }<br/>    <br/>    return 0;<br/>}</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="output" class="color-purple">Output</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>Enter number of rows : 5</ul>
</div>
</div>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">        *<br/>      * * *<br/>    * * * * *<br/>  * * * * * * *<br/>* * * * * * * * *</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="example-2" class="color-blue">Example 2</h2>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code-in-c-2" class="color-green">Sample Code in C:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">#include <stdio.h><br/>int main()<br/>{<br/>    int i, space, rows, k=0, count = 0, count1 = 0;<br/><br/>    printf(&quot;Enter number of rows: \n&quot;);<br/>    scanf(&quot;%d&quot;,&rows);<br/><br/>    for(i=1; i<=rows; ++i)<br/>    {<br/>        for(space=1; space <= rows-i; ++space)<br/>        {<br/>            printf(&quot;  &quot;);<br/>            ++count;<br/>        }<br/><br/>        while(k != 2*i-1)<br/>        {<br/>            if (count <= rows-1)<br/>            {<br/>                printf(&quot;%d &quot;, i+k);<br/>                ++count;<br/>            }<br/>            else<br/>            {<br/>                ++count1;<br/>                printf(&quot;%d &quot;, (i+k-2*count1));<br/>            }<br/>            ++k;<br/>        }<br/>        count1 = count = k = 0;<br/><br/>        printf(&quot;\n&quot;);<br/>    }<br/>    return 0;<br/>}</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="output-2" class="color-purple">Output</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>Enter number of rows : 5</ul>
</div>
</div>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">         1 <br/>      2 3 2 <br/>    3 4 5 4 3 <br/>  4 5 6 7 6 5 4 <br/>5 6 7 8 9 8 7 6 5</code></pre> </div>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/pattern-programs-in-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
