<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Shenbaga&#039;s Blog</title>
	<atom:link href="http://shenbaga.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shenbaga.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 14 Oct 2009 07:17:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='shenbaga.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Shenbaga&#039;s Blog</title>
		<link>http://shenbaga.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://shenbaga.wordpress.com/osd.xml" title="Shenbaga&#039;s Blog" />
	<atom:link rel='hub' href='http://shenbaga.wordpress.com/?pushpress=hub'/>
		<item>
		<title>OOPS</title>
		<link>http://shenbaga.wordpress.com/2009/10/14/oops/</link>
		<comments>http://shenbaga.wordpress.com/2009/10/14/oops/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 07:17:55 +0000</pubDate>
		<dc:creator>shenbaga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shenbaga.wordpress.com/?p=4</guid>
		<description><![CDATA[OOPS 2 mark Question and Answer 1. List out the characteristics of FOP. 1. Large programs are divided into smaller programs known as functions. 2. Most of the functions share global data 3. Functions transform data from one form to another. 4. It employs top-down approach. 2. List out the characteristics of OOP. 1. Programs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shenbaga.wordpress.com&amp;blog=9629582&amp;post=4&amp;subd=shenbaga&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>OOPS 2 mark Question and Answer</strong></p>
<p>1. List out the characteristics of FOP.<br />
1. Large programs are divided into smaller programs known as functions.<br />
2. Most of the functions share global data<br />
3. Functions transform data from one form to another.<br />
4. It employs top-down approach.</p>
<p>2. List out the characteristics of OOP.<br />
1. Programs are divided into objects.<br />
2. Data is hidden.<br />
3. Objects communicate with each other, by sending messages and receiving responses.<br />
4. It follows bottom-up approach.</p>
<p>3. List down the basic concepts of OOP.<br />
1. Objects<br />
2. Classes<br />
3. Data abstraction and encapsulation<br />
4. Inheritance<br />
5. Polymorphism<br />
6. Dynamic binding<br />
7. Message passing</p>
<p>4. Define an object.<br />
Objects are the basic run time entities in an object oriented system.<br />
They may represent a person, a place or any item that a program has to handle.</p>
<p>5. Define Object Oriented Programming.<br />
OOP is a method of implementation in which programs are organized as co-operative collection of objects, each of which represents an instance of some class and whose classes are all members of a hierarchy of classes united through the property called Inheritance.</p>
<p>6. Define a class.<br />
A class is a collection of objects with similar attributes and operations.<br />
Eg. Class – Account<br />
It will create an object savings_account belonging to the class Account.</p>
<p>7. Define Encapsulation.<br />
The wrapping up of data and functions into a single unit is known as encapsulation. The data is kept safe from external interference and misuse.</p>
<p>8. Define Data hiding?<br />
The isolation of data from direct access by the program is called as data hiding or information hiding.</p>
<p>9. Define Abstraction.<br />
It refers to the act of representing essential features without including the background details.</p>
<p>10. Define ADT?<br />
The classes which are using the concept of data abstraction is known as abstract data types (ADT).</p>
<p>11. Define data member and member function?<br />
The attributes which are holding the information is known as data members.<br />
The functions that operate on data member are sometimes called as member function.</p>
<p>12. Define Inheritance?<br />
Inheritance is the process by which objects of one class acquire the properties of objects of another class. The new derived class inherits the members of the base class and also adds its own.</p>
<p>13. Define Polymorphism?<br />
It allows a single name/operator to be associated with different operations depending on the type of data passed to it. An operation may exhibit different behaviors in different instances.</p>
<p>14. Define dynamic binding?<br />
Dynamic binding means that the code associated with the given procedure call is not known until the time of call at runtime.</p>
<p>15. What is message passing?<br />
It is the process of invoking an operation on an object. In response to a message, the corresponding function is executed in the object.</p>
<p>16. List down the benefits of OOP?<br />
1. The principle of data hiding helps to build secure programs.<br />
2. Through inheritance, redundant code is eliminated.<br />
3. Software complexity can be easily managed.</p>
<p>17. List down the applications of OOP.<br />
1. Real time system<br />
2. Simulation and modeling<br />
3. AI and expert system<br />
4. Neural network programming.<br />
5. CAD/CAM systems.</p>
<p>18. What is Implicit Type Conversion?<br />
When an expression consists of data items of different types, the compiler performs type conversions automatically. This is referred as Implicit Type Conversion.</p>
<p>19. What are the differences between ‘break’ and ‘continue’ statement.</p>
<p>Break<br />
Break statement takes the control to the outside of loop<br />
It is used in loop and also in switch statement</p>
<p>continue<br />
Continue statement takes the control to the beginning of loop<br />
It can be used only in loop statement.</p>
<p>20. Distinguish ‘while’ and ‘do – while’ statements.</p>
<p>While<br />
This is the top tested loop<br />
Loop is not executed if the condition is false</p>
<p>do while<br />
This is the bottom tested loop<br />
Loop is executed at least once even though the condition is false.</p>
<p>21. Give the syntax of Array Initialization with an example.<br />
Data-type array-name[size] = {list of values separated by comma};<br />
(eg.) int mark[5] = {96,45,66,74,82};</p>
<p>22. Give four examples for String Manipulation functions.<br />
strlen( ) – finds the length of string<br />
strcpy( ) – copies the contents of one string to another<br />
strcat( ) – concatenates two strings into one single string<br />
strupr( ) – converts a lower case string to upper case</p>
<p>23. List the different types of parameter passing techniques.<br />
(i) Pass by value<br />
(ii) Pass by Address<br />
(iii) Pass by Reference</p>
<p>24. What is Dynamic memory allocation?<br />
Allocation of memory space for any data structure during the course of the program execution is called as Dynamic memory allocation.</p>
<p>25. How memory management is performed dynamically in C++?<br />
Two operators are available for dynamic memory management.<br />
(i) new – for dynamic memory allocation<br />
(ii) delete – for dynamic memory deallocation<br />
PROGRAMMING IN C++</p>
<p>1. Define class?<br />
A class is a way to bind data and its associated functions together. It allows the data to be hidden if necessary.</p>
<p>2. What are the parts of class specification?<br />
The class specification has two parts<br />
1. Class declaration – To describe the type and scope of its members<br />
2. Class function definition – To describe how the class functions are implemented.</p>
<p>3. Write the syntax of class declaration<br />
class classname<br />
{<br />
Private:<br />
Variable declaration;<br />
Function declaration;<br />
Public:<br />
Variable declaration;<br />
Function declaration;<br />
};</p>
<p>4. Where will you define a member function?<br />
Member functions can be defined in two places.<br />
1. Outside the class definition.<br />
2. Inside the class definition.</p>
<p>5. Give the syntax for member function definition outside the class.<br />
Return type class name:: function name (argument name declaration)<br />
{<br />
function body<br />
}</p>
<p>6. List the characteristics of member function.<br />
1. Member function can access the private data of class.<br />
2. A member function can call another member function directly without using the dot operator.</p>
<p>7. Define nesting of member function.<br />
A member function can be called by using its name inside another member function of the same class. This is known as nesting of member functions.</p>
<p>8. List the properties of static members.<br />
A data member of a class can be qualified as static properties.<br />
1. It is always initialized to zero when the first object of its class is created.<br />
2. It is visible only within the class.</p>
<p>9. Write the properties of static member function.<br />
1. A static function can have access to only other static members declared in the same class.<br />
2. A static member function can be called using the class name (Instead of objects) as<br />
follows: class name:: function name;</p>
<p>10. Define constructor?<br />
A constructor is a special member function whose task is to initialize the object of its class.<br />
It is called constructor because it constructs the value of data members of the class.</p>
<p>11. What are the characteristics of constructor?<br />
1. Constructors should be declared in public section.<br />
2. They are involved automatically when the objects are created.<br />
3. They do not have return types.<br />
4. They can not be inherited.</p>
<p>12. Define parameterized constructor.<br />
Arguments can be passed to the constructor function when the objects are created. The constructors that can take arguments are called as parameterized constructor.</p>
<p>13. What is an implicit constructor?<br />
C++ compiler has an implicit constructor which creates objects even though it was not defined in the class.</p>
<p>14. What is the use of copy constructor?<br />
Copy constructor is used to declare and initialize an object from another object.<br />
E.g. Class name object2 (object1);<br />
Will define the object2 and at the same time initialize it the values of object1.</p>
<p>15. What do you mean by dynamic construction?<br />
Allocation of memory to objects at the time of their contraction Is known as dynamic contraction of objects.</p>
<p>16. What is the use of destructor?<br />
It is used to destroy the objects that have been created by a constructor. It releases the memory space for future use.</p>
<p>17. What are the characteristics of destructor?<br />
1. A destructor is a member function whose name is the same as the class name but it is preceded by a tilde.<br />
2. It neither takes any argument nor returns any value.<br />
3. It will be invoked implicitly by the compiler to cleanup the storage.</p>
<p>18. Define operator overloading?<br />
The process of making an operator to exhibit different behaviors in different instances is known as operator overloading.</p>
<p>19. Define function overloading?<br />
Performing different types of task using single function name is referred as function overloading.</p>
<p>20. Define Virtual function.<br />
When the form of a member function is changed at run time, that member function is referred to as virtual function.</p>
<p><a href="http://twomarks.wordpress.com/2007/11/08/">November 8, 2007</a> Posted by <a title="Posts by Roy Antony Arnold" href="http://twomarks.wordpress.com/author/arnoldindia/">Roy Antony Arnold</a> | <a title="View all posts in C++" rel="category tag" href="http://en.wordpress.com/tag/c/">C++</a>, <a title="View all posts in OOPS" rel="category tag" href="http://en.wordpress.com/tag/oops/">OOPS</a> | | <a href="http://twomarks.wordpress.com/2007/11/08/oops-introduction/#comments">No Comments Yet</a></p>
<h2><a href="http://twomarks.wordpress.com/2007/11/08/oops-set-5/">OOPS – Set 5</a></h2>
<p>1. What is an interface?</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; An interface is a kind of class.</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; An interfaces contain methods and variables. But the interfaces define only abstract methods and final fields.</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; That is the interface do not specify any code to implement these methods and data fields contain only constants.</p>
<p> </p>
<p>SYNTAX:<br />
interface InterfaceName<br />
{<br />
variables declaration;<br />
methods declaration;<br />
}</p>
<p> </p>
<p> <br />
2. How the interfaces are extended ?</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; Interfaces can be sub interfaced from other interfaces.</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; The new sub interface will inherit all the members of the super interface in the manner similar to subclasses.</p>
<p> </p>
<p>SYNTAX:</p>
<p> </p>
<p>interface name2 extends name1<br />
{<br />
Body of name2;<br />
}</p>
<p> <br />
3. What is a package?</p>
<p> </p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; Packages are java’s way of grouping a variety of classes and/or interfaces together.</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; This is act as containers for classes.</p>
<p>&lt;!&#8211;[if !supportLists]&#8211;&gt;· &lt;!&#8211;[endif]&#8211;&gt; The advantages are</p>
<p> </p>
<p>(i) The classes contained in the packages of other programs can be easily reused.</p>
<p> </p>
<p>(ii) In packages, classes can be unique compared with classes in other packages. That is two classes in two different packages can have the same name.</p>
<p> </p>
<p>(iii) Packages provide a way to hide classes thus preventing other programs or packages from accessing classes that are meant for internal use</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shenbaga.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shenbaga.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shenbaga.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shenbaga.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shenbaga.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shenbaga.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shenbaga.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shenbaga.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shenbaga.wordpress.com&amp;blog=9629582&amp;post=4&amp;subd=shenbaga&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shenbaga.wordpress.com/2009/10/14/oops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c1925be408defc46255a29e75629f8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shenbaga</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://shenbaga.wordpress.com/2009/09/24/hello-world/</link>
		<comments>http://shenbaga.wordpress.com/2009/09/24/hello-world/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 05:28:04 +0000</pubDate>
		<dc:creator>shenbaga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shenbaga.wordpress.com&amp;blog=9629582&amp;post=1&amp;subd=shenbaga&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shenbaga.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shenbaga.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shenbaga.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shenbaga.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shenbaga.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shenbaga.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shenbaga.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shenbaga.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shenbaga.wordpress.com&amp;blog=9629582&amp;post=1&amp;subd=shenbaga&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shenbaga.wordpress.com/2009/09/24/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c1925be408defc46255a29e75629f8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shenbaga</media:title>
		</media:content>
	</item>
	</channel>
</rss>
