<?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>technorahul</title>
	<atom:link href="http://ra1hul2.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ra1hul2.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 06 Dec 2007 16:51:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ra1hul2.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>technorahul</title>
		<link>http://ra1hul2.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ra1hul2.wordpress.com/osd.xml" title="technorahul" />
	<atom:link rel='hub' href='http://ra1hul2.wordpress.com/?pushpress=hub'/>
		<item>
		<title></title>
		<link>http://ra1hul2.wordpress.com/2007/12/06/39/</link>
		<comments>http://ra1hul2.wordpress.com/2007/12/06/39/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 16:51:33 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/12/06/39/</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=39&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="visibility:hidden;width:0;height:0;" border="0" width="0" height="0" src="http://runtime.widgetbox.com/syndication/track/f9e12d24-7932-412a-abda-9a2ab59cd7b1.gif" /><code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=39&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/12/06/39/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>

		<media:content url="http://runtime.widgetbox.com/syndication/track/f9e12d24-7932-412a-abda-9a2ab59cd7b1.gif" medium="image" />
	</item>
		<item>
		<title>hai8</title>
		<link>http://ra1hul2.wordpress.com/2007/08/28/hai8/</link>
		<comments>http://ra1hul2.wordpress.com/2007/08/28/hai8/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 09:41:42 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/08/28/hai8/</guid>
		<description><![CDATA[hai9google910a77b95692309d.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=37&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>hai9<a href="http://ra1hul2.files.wordpress.com/2007/08/ms-word-keyboard-shortcuts.doc" title="google910a77b95692309d.html">google910a77b95692309d.html</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=37&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/08/28/hai8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
		<item>
		<title>Beginning robotic course outline</title>
		<link>http://ra1hul2.wordpress.com/2007/07/28/beginning-robotic-course-outline/</link>
		<comments>http://ra1hul2.wordpress.com/2007/07/28/beginning-robotic-course-outline/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 07:51:15 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/08/28/beginning-robotic-course-outline/</guid>
		<description><![CDATA[hai , this small pdf file will introduce and give basics regarding robotics beginningroboticscourseoutline.pdf<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=12&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>hai , this  small pdf  file will  introduce and give basics  regarding  robotics <a href="http://ra1hul2.files.wordpress.com/2007/08/beginningroboticscourseoutline.pdf" title="beginningroboticscourseoutline.pdf">beginningroboticscourseoutline.pdf</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=12&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/07/28/beginning-robotic-course-outline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
		<item>
		<title>Transmission Line,Representation,Types and Applications</title>
		<link>http://ra1hul2.wordpress.com/2007/06/02/transmission-linerepresentationtypes-and-applications/</link>
		<comments>http://ra1hul2.wordpress.com/2007/06/02/transmission-linerepresentationtypes-and-applications/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 23:05:41 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/08/19/transmission-linerepresentationtypes-and-applications/</guid>
		<description><![CDATA[Transmission Line A transmission line is the material medium or structure that forms all or part of a path from one place to another for directing the transmission of energy, such as electromagnetic waves or acoustic waves, as well as electric power transmission. Components of transmission lines include wires, coaxial cables, dielectric slabs, optical fibers, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=9&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title">                          <a href="http://powerelectrical.blogspot.com/2007/08/transmission-linerepresentationtypes.html"><br />
</a></h3>
<p><span style="font-size:130%;color:#000099;"><strong><span style="color:#333399;">Transmission Line</span> </strong></span><br />
<span>A transmission line is the material medium or structure that forms all or part of a path from one place to another for directing the transmission of energy, such as electromagnetic waves or acoustic waves, as well as electric power transmission. Components of transmission lines include wires, coaxial cables, dielectric slabs, optical fibers, electric power lines, and waveguides.</span><br />
<span></span><br />
<span>An electric transmission line can be generally represented by a <span style="color:#ff0000;">series combination of resistance,inductance and shunt combination of conductance and capacitace</span></span></p>
<p><span>The transmission line model represents the transmission line as an infinite series of two-port elementary components, each representing an infinitesimally short segment of the transmission line: </span><br />
<span style="font-family:Arial;"><img src="http://bp1.blogger.com/_v2T5FtcWTMk/RrVqNDAytmI/AAAAAAAABLA/oC4OBs-1jlI/s400/trans-line.png" style="display:block;text-align:center;margin:0 auto 10px;" border="0" /></span></p>
<p>Transmission lines are basically circuits with distributed constants i.e R,L,C and G are distributed along the whole length of line.each small length at any section of the line will have its own values and concentration of all such parameters for complete length of line in to a single one is not possible.In the above figure</p>
<ul>
<li>The distributed resistance R of the conductors is represented by a series resistor (expressed in ohms per unit length).</li>
<li>The distributed inductance L (due to the magnetic field around the wires, self-inductance, etc.) is represented by a series inductor (henries per unit length).</li>
<li>The capacitance C between the two conductors is represented by a shunt capacitor C (farads per unit length).</li>
<li>The conductance G of the dielectric material separating the two conductors is represented by a conductance G shunted between the signal wire and the return wire (siemens per unit length).</li>
</ul>
<p>Among the parameters R,L,G and C , R and G are least important in the sense that they do not affect much the total equivalent impedance of the line and hence the transmission capacity.They are very much important when transmission efficiency and economy are to be evaluated as they completely determine the real transmission line losses.</p>
<p><strong><span style="font-size:130%;color:#333399;">Practical types of electrical transmission line</span></strong></p>
<p><strong><span style="color:#006600;">Coaxial cable</span></strong><br />
Coaxial lines confine the electromagnetic wave to the area inside the cable, between the center conductor and the shield. The transmission of energy in the line occurs totally through the dielectric inside the cable between the conductors. Coaxial lines can therefore be bent and twisted (subject to limits) without negative effects, and they can be strapped to conductive supports without inducing unwanted currents in them.</p>
<p>In radio-frequency applications up to a few gigahertz, the wave propagates in the transverse electric and magnetic mode (TEM), which means that the electric and magnetic fields are both perpendicular to the direction of propagation. However, above a certain frequency called the cutoff frequency, the cable behaves as a waveguide, and propagation switches to either a transverse electric (TE) or a transverse magnetic (TM) mode or a mixture of modes. This effect enables coaxial cables to be used at microwave frequencies, although they are not as efficient as the more expensive, purpose-built waveguides.</p>
<p>The most common use for coaxial cables is for television and other signals with bandwidth of multiple Megahertz. In the middle 20th Century they carried long distance telephone connections.</p>
<p><strong><span style="color:#006600;">Microstrip<br />
</span></strong>A microstrip circuit uses a thin flat conductor which is parallel to a ground plane. Microstrip can be made by having a strip of copper on one side of a printed circuit board (PCB) or ceramic substrate while the other side is a continuous ground plane. The width of the strip, the thickness of the insulating layer (PCB or ceramic) and the dielectric constant of the insulating layer determine the characteristic impedance.</p>
<p><strong><span style="color:#006600;">Stripline<br />
</span></strong>A stripline circuit uses a flat strip of metal which is sandwiched between two parallel ground planes. The insulating material of the substrate forms a dielectric. The width of the strip, the thickness of the substrate and the relative permittivity of the substrate determine the characteristic impedance of the strip which is a transmission line.</p>
<p><strong><span style="color:#006600;">Balanced lines</span></strong></p>
<p><strong><span style="color:#000000;">Lecher lines</span><br />
</strong>Lecher lines are a form of parallel conductor that can be used at UHF for creating resonant circuits. They are used at frequencies between HF/VHF where lumped components are used, and UHF/SHF where resonant cavities are more practical.</p>
<p><strong><span style="font-size:130%;color:#333399;">General applications of transmission lines</span></strong></p>
<p><span style="color:#000000;"><strong><span style="color:#666600;"><span style="color:#006600;">Transferring signals from one point to another</span><br />
</span></strong>Electrical transmission lines are very widely used to transmit high frequency signals over long or short distances with minimum power loss. One familiar example is the </span><span style="color:#000000;">down lead</span><span style="color:#000000;"> from a TV or radio </span><span style="color:#000000;">aerial</span><span style="color:#000000;"> to the receiver.</span></p>
<p><strong><span style="color:#006600;">Pulse generation</span></strong><br />
Transmission lines are also used as pulse generators. By charging the transmission line and then discharging it into a resistive load, a rectangular pulse equal in length to twice the electrical length of the line can be obtained, although with half the voltage. A Blumlein transmission line is a related pulse forming device that overcomes this limitation. These are sometimes used as the pulsed energy sources for radar transmitters and other devices.</p>
<p><strong><span style="color:#006600;">Stub filters</span></strong><br />
If a short-circuited or open-circuited transmission line is wired in parallel with a line used to transfer signals from point A to point B, then it will function as a filter. The method for making stubs is similar to the method for using Lecher lines for crude frequency measurement, but it is &#8216;working backwards&#8217;. One method recommended in the RSGB&#8217;s radiocommunication handbook is to take an open-circuited length of transmission line wired in parallel with the feeder delivering signals from an aerial. By cutting the free end of the transmission line, a minimum in the strength of the signal observed at a receiver can be found. At this stage the stub filter will reject this frequency and the odd harmonics, but if the free end of the stub is shorted then the stub will become a filter rejecting the even harmonics.</p>
<p>THIS IS COLLECTED FROM</p>
<p><a href="http://www.powerelectrical.blogspot.com/">http://www.powerelectrical.blogspot.com/</a></p>
<p>A GOOD BLOG FOR ELECTRICALS</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=9&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/06/02/transmission-linerepresentationtypes-and-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>

		<media:content url="http://bp1.blogger.com/_v2T5FtcWTMk/RrVqNDAytmI/AAAAAAAABLA/oC4OBs-1jlI/s400/trans-line.png" medium="image" />
	</item>
		<item>
		<title>speed control of D.C motor</title>
		<link>http://ra1hul2.wordpress.com/2007/05/23/speed-control-of-dc-motor/</link>
		<comments>http://ra1hul2.wordpress.com/2007/05/23/speed-control-of-dc-motor/#comments</comments>
		<pubDate>Wed, 23 May 2007 08:37:20 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/05/23/speed-control-of-dc-motor/</guid>
		<description><![CDATA[speed of the d.c. motor is controlled by using ATMEL89C52 lmicrocontroller ,feedback from optocoupler. the circuit diagram can be seen above(click on the diagram to get larger view) the motor speed is controlled by the use of transistor as control switch varying the dutycycle of the switching signal to the transistor varies the power of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=10&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ra1hul2.files.wordpress.com/2007/08/prdiaimp.jpg" title="circuit diagram"><img src="http://ra1hul2.files.wordpress.com/2007/08/prdiaimp.jpg?w=460" alt="circuit diagram" /></a>speed of the  d.c. motor  is controlled   by using  ATMEL89C52 lmicrocontroller ,feedback from optocoupler. the circuit diagram   can be seen above(click on the diagram to get larger view)</p>
<p>the motor speed is controlled by the use of transistor as control switch</p>
<p>varying the dutycycle of the switching signal to the transistor varies the  power of the motor.</p>
<p>the operation is quiet simple,with the help optocoupler speed is measured  and will be in digital form so can be  given directly to micro controller .microcontroller  sends the control signal to uln2003 which magnifies current and  causes the variation off duty cycle . inthis way speed off d.c motor can be controlled. with lcd display  we can see the speed also.</p>
<p>the motor is   a small  d.c motor .</p>
<p>by writting suitable code ,you should successfully control the speed of the motor</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=10&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/05/23/speed-control-of-dc-motor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>

		<media:content url="http://ra1hul2.files.wordpress.com/2007/08/prdiaimp.jpg" medium="image">
			<media:title type="html">circuit diagram</media:title>
		</media:content>
	</item>
		<item>
		<title>Microprocessor Questions</title>
		<link>http://ra1hul2.wordpress.com/2007/05/17/microprocessor-questions/</link>
		<comments>http://ra1hul2.wordpress.com/2007/05/17/microprocessor-questions/#comments</comments>
		<pubDate>Thu, 17 May 2007 22:10:04 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/05/17/microprocessor-questions/</guid>
		<description><![CDATA[8085 : 1.    What are the various registers in 8085? &#8211; Accumulator register, Temporary register, Instruction register, Stack Pointer, Program Counter are the various registers in 8085 . 2.    In 8085 name the 16 bit registers? &#8211; Stack pointer and Program counter all have 16 bits. 3.    What are the various flags used in 8085? [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=8&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>8085 :</p>
<p>1.    What are the various registers in 8085? &#8211; Accumulator register, Temporary register, Instruction register, Stack Pointer, Program Counter are the various registers in 8085 .<br />
2.    In 8085 name the 16 bit registers? &#8211; Stack pointer and Program counter all have 16 bits.<br />
3.    What are the various flags used in 8085? &#8211; Sign flag, Zero flag, Auxillary flag, Parity flag, Carry flag.<br />
4.    What is Stack Pointer? &#8211; Stack pointer is a special purpose 16-bit register in the Microprocessor, which holds the address of the top of the stack.<br />
5.    What is Program counter? &#8211; Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has not been completely fetched. In both the cases it gets incremented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.<br />
6.    Which Stack is used in 8085? &#8211; LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information can be retrieved first.<br />
7.    What happens when HLT instruction is executed in processor? &#8211; The Micro Processor enters into Halt-State and the buses are tri-stated.<br />
8.    What is meant by a bus? &#8211; A bus is a group of conducting lines that carriers data, address, &amp; control signals.<br />
9.    What is Tri-state logic? &#8211; Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels &amp; high impedance state is electrical open circuit conditions. Tri-state logic has a third line called enable line.<br />
10.    Give an example of one address microprocessor? &#8211; 8085 is a one address microprocessor.<br />
11.    In what way interrupts are classified in 8085? &#8211; In 8085 the interrupts are classified as Hardware and Software interrupts.<br />
12.    What are Hardware interrupts? &#8211; TRAP, RST7.5, RST6.5, RST5.5, INTR.<br />
13.    What are Software interrupts? &#8211; RST0, RST1, RST2, RST3, RST4, RST5, RST6, RST7.<br />
14.    Which interrupt has the highest priority? &#8211; TRAP has the highest priority.<br />
15.    Name 5 different addressing modes? &#8211; Immediate, Direct, Register, Register indirect, Implied addressing modes.<br />
16.    How many interrupts are there in 8085? &#8211; There are 12 interrupts in 8085.<br />
17.    What is clock frequency for 8085? &#8211; 3 MHz is the maximum clock frequency for 8085.<br />
18.    What is the RST for the TRAP? &#8211; RST 4.5 is called as TRAP.<br />
19.    In 8085 which is called as High order / Low order Register? &#8211; Flag is called as Low order register &amp; Accumulator is called as High order Register.<br />
20.    What are input &amp; output devices? &#8211; Keyboards, Floppy disk are the examples of input devices. Printer, LED / LCD display, CRT Monitor are the examples of output devices.<br />
21.    Can an RC circuit be used as clock source for 8085? &#8211; Yes, it can be used, if an accurate clock frequency is not required. Also, the component cost is low compared to LC or Crystal.<br />
22.    Why crystal is a preferred clock source? &#8211; Because of high stability, large Q (Quality Factor) &amp; the frequency that doesn&#8217;t drift with aging. Crystal is used as a clock source most of the times.<br />
23.    Which interrupt is not level-sensitive in 8085? &#8211; RST 7.5 is a raising edge-triggering interrupt.<br />
24.    What does Quality factor mean? &#8211; The Quality factor is also defined, as Q. So it is a number, which reflects the lossness of a circuit. Higher the Q, the lower are the losses.<br />
25.    What are level-triggering interrupt? &#8211; RST 6.5 &amp; RST 5.5 are level-triggering interrupts</p>
<p>8086 Interview Questions:<br />
1.    What are the flags in 8086? &#8211; In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.<br />
2.    What are the various interrupts in 8086? &#8211; Maskable interrupts, Non-Maskable interrupts.<br />
3.    What is meant by Maskable interrupts? &#8211; An interrupt that can be turned off by the programmer is known as Maskable interrupt.<br />
4.    What is Non-Maskable interrupts? &#8211; An interrupt which can be never be turned off (ie.disabled) is known as Non-Maskable interrupt.<br />
5.    Which interrupts are generally used for critical events? &#8211; Non-Maskable interrupts are used in critical events. Such as Power failure, Emergency, Shut off etc.,<br />
6.    Give examples for Maskable interrupts? &#8211; RST 7.5, RST6.5, RST5.5 are Maskable interrupts<br />
7.    Give example for Non-Maskable interrupts? &#8211; Trap is known as Non-Maskable interrupts, which is used in emergency condition.<br />
8.    What is the Maximum clock frequency in 8086? &#8211; 5 Mhz is the Maximum clock frequency in 8086.<br />
9.    What are the various segment registers in 8086? &#8211; Code, Data, Stack, Extra Segment registers in 8086.<br />
10.    Which Stack is used in 8086? &#8211; FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored information is retrieved first.<br />
11.    What are the address lines for the software interrupts? -<br />
RST 0    0000 H<br />
RST1    0008 H<br />
RST2    0010 H<br />
RST3    0018 H<br />
RST4    0020 H<br />
RST5    0028 H<br />
RST6    0030 H<br />
RST7    0038 H<br />
12.    What is SIM and RIM instructions? &#8211; SIM is Set Interrupt Mask. Used to mask the hardware interrupts. RIM is Read Interrupt Mask. Used to check whether the interrupt is Masked or not.<br />
13.    Which is the tool used to connect the user and the computer? &#8211; Interpreter is the tool used to connect the user and the tool.<br />
14.    What is the position of the Stack Pointer after the PUSH instruction? &#8211; The address line is 02 less than the earlier value.<br />
15.    What is the position of the Stack Pointer after the POP instruction? &#8211; The address line is 02 greater than the earlier value.<br />
16.    Logic calculations are done in which type of registers? &#8211; Accumulator is the register in which Arithmetic and Logic calculations are done.<br />
17.    What are the different functional units in 8086? &#8211; Bus Interface Unit and Execution unit, are the two different functional units in 8086.<br />
18.    Give examples for Micro controller? &#8211; Z80, Intel MSC51 &amp;96, Motorola are the best examples of Microcontroller.<br />
19.    What is meant by cross-compiler? &#8211; A program runs on one machine and executes on another is called as cross-compiler.<br />
20.    What are the address lines for the hardware interrupts? -<br />
RST 7.5    003C H<br />
RST 6.5    0034 H<br />
RST 5.5    002C H<br />
TRAP    0024 H<br />
21.    Which Segment is used to store interrupt and subroutine return address registers? &#8211; Stack Segment in segment register is used to store interrupt and subroutine return address registers.<br />
22.    Which Flags can be set or reset by the programmer and also used to control the operation of the processor? &#8211; Trace Flag, Interrupt Flag, Direction Flag.<br />
23.    What does EU do? &#8211; Execution Unit receives program instruction codes and data from BIU, executes these instructions and store the result in general registers.<br />
24.    Which microprocessor accepts the program written for 8086 without any changes? &#8211; 8088 is that processor.<br />
25.    What is the difference between 8086 and 8088? &#8211; The BIU in 8088 is 8-bit data bus &amp; 16- bit in 8086.Instruction queue is 4 byte long in 8088and 6 byte in 8086.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=8&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/05/17/microprocessor-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
		<item>
		<title>Ten Lessons Learned as a Technical Communicator</title>
		<link>http://ra1hul2.wordpress.com/2007/04/23/ten-lessons-learned-as-a-technical-communicator/</link>
		<comments>http://ra1hul2.wordpress.com/2007/04/23/ten-lessons-learned-as-a-technical-communicator/#comments</comments>
		<pubDate>Mon, 23 Apr 2007 08:08:46 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/08/28/ten-lessons-learned-as-a-technical-communicator/</guid>
		<description><![CDATA[— Interview with Rahul Prabhakar Rahul is an Indian technical writer living in South Korea working for Samsung. You can read more about the lessons he talks about from his ten lessons learned post. Here’s a snapshot of the 10 lessons: Lesson 1: Choose the Right Words Lesson 2: Strike a Rapport with Your Audience [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=17&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> — Interview with Rahul Prabhakar</p>
<p>Rahul is an Indian technical writer living in South Korea working for Samsung. You can read more about the lessons he talks about from his <a href="http://2brahulprabhakar.blogspot.com/2006/07/top-10-lessons-i-learned-as-technical.html" target="_blank">ten lessons learned post</a>.</p>
<p>Here’s a snapshot of the 10 lessons:</p>
<ul>
<li>Lesson 1: Choose the Right Words</li>
<li>Lesson 2: Strike a Rapport with Your Audience</li>
<li>Lesson 3: Pay Attention to Details</li>
<li>Lesson 4: Meet the Expectations</li>
<li>Lesson 5: Break the Mediocrity</li>
<li>Lesson 6: Know Your Role Well</li>
<li>Lesson 7: Steer Away from the Usual Rut</li>
<li>Lesson 8: Don’t Network for the Heck of It</li>
<li>Lesson 9: Education is only a Catalyst</li>
<li>Lesson 10: Don’t Suppress the Writer in You</li>
</ul>
<p>full link  <a href="http://techwritervoices.com/2007/01/13/rahulprabhakar/">http://techwritervoices.com/2007/01/13/rahulprabhakar/</a></p>
<p>his blog    <a href="http://idratherbewriting.com/">http://idratherbewriting.com/ </a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=17&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/04/23/ten-lessons-learned-as-a-technical-communicator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
		<item>
		<title>Topic : Structures &amp; Unions</title>
		<link>http://ra1hul2.wordpress.com/2007/03/29/topic-structures-unions/</link>
		<comments>http://ra1hul2.wordpress.com/2007/03/29/topic-structures-unions/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 18:33:50 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/03/29/topic-structures-unions/</guid>
		<description><![CDATA[************************************************************************ * NOTE : All the programs are tested under Turbo C/C++ compilers.                  * * It is assumed that,                                        * *            *=&#62; Programs run under DOS environment,                    * *            *=&#62; The underlying machine is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=7&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>************************************************************************<br />
* NOTE : All the programs are tested under Turbo C/C++ compilers.                  *<br />
* It is assumed that,                                        *<br />
*            *=&gt; Programs run under DOS environment,                    *<br />
*            *=&gt; The underlying machine is an x86 system,                *<br />
*            *=&gt; Program is compiled using Turbo C/C++ compiler.            *<br />
*            *=&gt; Necessary header files are included.                *<br />
* The program output may depend on the information based on this assumptions.             *<br />
* (For example sizeof(int) = 2 bytes may be assumed).                         *<br />
************************************************************************</p>
<p>[Q001]. What will be the output of the following program :<br />
struct {<br />
int i;<br />
float f;<br />
}var;<br />
void main()<br />
{<br />
var.i=5;<br />
var.f=9.76723;<br />
printf(&#8220;%d %.2f&#8221;,var.i,var.f);<br />
}<br />
(a)Compile-Time Error    (b)5 9.76723        (c)5 9.76        (d)5 9.77<br />
Ans. (d) Though both &lt;struct type name&gt; and &lt;structure variables&gt; are optional, one of the two<br />
must appear. In the above program, &lt;structure variable&gt; i.e. var is used. (2 decimal places or)<br />
2-digit precision of 9.76723 is 9.77<br />
_________________________________________________________________________________________________</p>
<p>[Q002]. What will be the output of the following program :<br />
struct {<br />
int i;<br />
float f;<br />
};<br />
void main()<br />
{<br />
int i=5;<br />
float f=9.76723;<br />
printf(&#8220;%d %.2f&#8221;,i,f);<br />
}<br />
(a)Compile-Time Error    (b)5 9.76723            (c)5 9.76        (d)5 9.77<br />
Ans. (d) Both &lt;struct type name&gt; and &lt;structure variables&gt; are optional. Thus the structure<br />
defined in the above program has no use and program executes in the normal way.<br />
_________________________________________________________________________________________________</p>
<p>[Q003]. What will be the output of the following program :<br />
struct values{<br />
int i;<br />
float f;<br />
};<br />
void main()<br />
{<br />
struct values var={555,67.05501};<br />
printf(&#8220;%2d %.2f&#8221;,var.i,var.f);<br />
}<br />
(a)Compile-Time Error    (b)55 67.05            (c)555 67.06        (d)555 67.05<br />
Ans. (c) The members of a structure variable can be assigned initial values in much the same<br />
manner as the elements of an array. The initial values must appear in order in which they will be<br />
assigned to their corresponding strucutre members, enclosed in braces and separated by commas.<br />
_________________________________________________________________________________________________</p>
<p>[Q004]. What will be the output of the following program :<br />
typedef struct {<br />
int i;<br />
float f;<br />
}values;<br />
void main()<br />
{<br />
static values var={555,67.05501};<br />
printf(&#8220;%2d %.2f&#8221;,var.i,var.f);<br />
}<br />
(a)Compile-Time Error    (b)55 67.05            (c)555 67.06        (d)555 67.05<br />
Ans. (c) In the above program, values is the user-defined structure type or the new user-defined<br />
data type. Structure variables can then be defined in terms of the new data type.<br />
_________________________________________________________________________________________________</p>
<p>[Q005]. What will be the output of the following program :<br />
struct my_struct{<br />
int i=7;<br />
float f=999.99;<br />
}var;<br />
void main()<br />
{<br />
var.i=5;<br />
printf(&#8220;%d %.2f&#8221;,var.i,var.f);<br />
}<br />
(a)Compile-Time Error    (b)7 999.99            (c)5 999.99        (d)None of these<br />
Ans. (a) C language does not permit the initialization of individual structure members within the<br />
template. The initialization must be done only in the declaration of the actual variables. The<br />
correct way to initialize the values is shown in [Q003] or [Q004].<br />
_________________________________________________________________________________________________</p>
<p>[Q006]. What will be the output of the following program :<br />
struct first{<br />
int a;<br />
float b;<br />
}s1={32760,12345.12345};<br />
typedef struct{<br />
char a;<br />
int b;<br />
}second;<br />
struct my_struct{<br />
float a;<br />
unsigned int b;<br />
};<br />
typedef struct my_struct third;<br />
void main()<br />
{<br />
static second s2={&#8216;A&#8217;,- -4};<br />
third s3;<br />
s3.a=~(s1.a-32760);<br />
s3.b=-++s2.b;<br />
printf(&#8220;%d %.2f\n%c %d\n%.2f %u&#8221;,(s1.a)&#8211;,s1.b+0.005,s2.a+32,s2.b,++(s3.a),&#8211;s3.b);<br />
}<br />
(a)Compile-Time Error    (b)32760 12345.12        (c)32760 12345.13    (d)32760 12345.13<br />
A 4                   a -5               a 5<br />
1 -5                   0.00 65531            0.00 65530<br />
Ans. (d) Illustrating 3 different ways of declaring the structres : first, second and third are<br />
the user-defined structure type. s1, s2 and s3 are structure variables. Also an expression of the<br />
form ++variable.member is equivalent to ++(variable.member), i.e. ++ operator will apply to the<br />
structure member, not the entire structure variable.<br />
_________________________________________________________________________________________________</p>
<p>[Q007]. What will be the output of the following program :<br />
struct {<br />
int i,val[25];<br />
}var={1,2,3,4,5,6,7,8,9},*vptr=&amp;var;<br />
void main()<br />
{<br />
printf(&#8220;%d %d %d\n&#8221;,var.i,vptr-&gt;i,(*vptr).i);<br />
printf(&#8220;%d %d %d %d %d %d&#8221;,var.val[4],*(var.val+4),vptr-&gt;val[4],*(vptr-&gt;val+4),(*vptr).val[4],*((*vptr).val+4));<br />
}<br />
(a)Compile-Time Error    (b)1 1 1            (c)1 1 1        (d)None of these<br />
6 6 6 6 6 6               5 5 5 5 5 5<br />
Ans. (b) Since value of the member &#8216;i&#8217; can be accessed using var.i, vptr-&gt;i and (*vptr).i<br />
Similarly 5th value of the member &#8216;val&#8217; can be accessed using var.val[4], *(var.val+4),<br />
vptr-&gt;val[4], *(vptr-&gt;val+4), (*vptr).val[4] and *((*vptr).val+4)<br />
________________________________________________________________________________________________</p>
<p>[Q008]. What will be the output of the following program :<br />
typedef struct {<br />
int i;<br />
float f;<br />
}temp;<br />
void alter(temp *ptr,int x,float y)<br />
{<br />
ptr-&gt;i=x;<br />
ptr-&gt;f=y;<br />
}<br />
void main()<br />
{<br />
temp a={111,777.007};<br />
printf(&#8220;%d %.2f\n&#8221;,a.i,a.f);<br />
alter(&amp;a,222,666.006);<br />
printf(&#8220;%d %.2f&#8221;,a.i,a.f);<br />
}<br />
(a)Compile-Time error    (b)111 777.007        (c)111 777.01        (d)None of these<br />
222 666.006           222 666.01<br />
Ans. (c) This program illustrates the transfer of a structure to a function by passing the<br />
structure&#8217;s address (a pointer) to the function.<br />
_________________________________________________________________________________________________</p>
<p>[Q009]. What will be the output of the following program :<br />
typedef struct {<br />
int i;<br />
float f;<br />
}temp;<br />
temp alter(temp tmp,int x,float y)<br />
{<br />
tmp.i=x;<br />
tmp.f=y;<br />
return tmp;<br />
}<br />
void main()<br />
{<br />
temp a={111,777.007};<br />
printf(&#8220;%d %.3f\n&#8221;,a.i,a.f);<br />
a=alter(a,222,666.006);<br />
printf(&#8220;%d %.3f&#8221;,a.i,a.f);<br />
}<br />
(a)Compile-Time error    (b)111 777.007        (c)111 777.01        (d)None of these<br />
222 666.006           222 666.01<br />
Ans. (b) This program illustrates the transfer of a structure to a function by value. Also the<br />
altered structure is now returned directly to the calling portion of the program.<br />
_________________________________________________________________________________________________</p>
<p>[Q010]. What will be the output of the following program :<br />
typedef struct {<br />
int i;<br />
float f;<br />
}temp;<br />
temp alter(temp *ptr,int x,float y)<br />
{<br />
temp tmp=*ptr;<br />
printf(&#8220;%d %.2f\n&#8221;,tmp.i,tmp.f);<br />
tmp.i=x;<br />
tmp.f=y;<br />
return tmp;<br />
}<br />
void main()<br />
{<br />
temp a={65535,777.777};<br />
a=alter(&amp;a,-1,666.666);<br />
printf(&#8220;%d %.2f&#8221;,a.i,a.f);<br />
}<br />
(a)Compile-Time error    (b)65535 777.777        (c)65535 777.78        (d)-1 777.78<br />
-1 666.666                  -1 666.67           -1 666.67<br />
Ans. (d) This program illustrates the transfer of a structure to a function by passing the<br />
structure&#8217;s address (a pointer) to the function. Also the altered structure is now returned<br />
directly to the calling portion of the program.<br />
_________________________________________________________________________________________________</p>
<p>[Q011]. What will be the output of the following program :<br />
struct my_struct1{<br />
int arr[2][2];<br />
};<br />
typedef struct my_struct1 record;<br />
struct my_struct2{<br />
record temp;<br />
}list[2]={1,2,3,4,5,6,7,8};<br />
void main()<br />
{<br />
int i,j,k;<br />
for (i=1; i&gt;=0; i&#8211;)<br />
for (j=0; j&lt;2; j++)<br />
for (k=1; k&gt;=0; k&#8211;)<br />
printf(&#8220;%d&#8221;,list[i].temp.arr[j][k]);<br />
}<br />
(a)Compile-Time Error    (b)Run-Time Error        (c)65872143          (d)56781243<br />
Ans. (c) This program illustrates the implementation of a nested structure i.e. structure inside<br />
another structure.<br />
_________________________________________________________________________________________________</p>
<p>[Q012]. What will be the output of the following program :<br />
struct my_struct{<br />
int i;<br />
unsigned int j;<br />
};<br />
void main()<br />
{<br />
struct my_struct temp1={-32769,-1},temp2;<br />
temp2=temp1;<br />
printf(&#8220;%d %u&#8221;,temp2.i,temp2.j);<br />
}<br />
(a)32767 -1        (b)-32769 -1            (c)-32769 65535        (d)32767 65535<br />
Ans. (d) An entire structure variable can be assigned to another structure variable, provided<br />
both variables have the same composition.<br />
_________________________________________________________________________________________________</p>
<p>[Q013]. What will be the output of the following program :<br />
struct names {<br />
char str[25];<br />
struct names *next;<br />
};<br />
typedef struct names slist;<br />
void main()<br />
{<br />
slist *list,*temp;<br />
list=(slist *)malloc(sizeof(slist)); // Dynamic Memory Allocation<br />
strcpy(list-&gt;str,&#8221;Hai&#8221;);<br />
list-&gt;next=NULL;<br />
temp=(slist *)malloc(sizeof(slist)); // Dynamic Memory Allocation<br />
strcpy(temp-&gt;str,&#8221;Friends&#8221;);<br />
temp-&gt;next=list;<br />
list=temp;<br />
while (temp != NULL)<br />
{<br />
printf(&#8220;%s&#8221;,temp-&gt;str);<br />
temp=temp-&gt;next;<br />
}<br />
}<br />
(a)Compile-Time Error    (b)HaiFriends            (c)FriendsHai        (d)None of these<br />
Ans. (c) It is sometimes desirable to include within a structure one member i.e. a pointer to the<br />
parent structure type. Such structures are known as Self-Referencial structures. These structures<br />
are very useful in applications that involve linked data structures, such as lists and trees.<br />
[A linked data structure is not confined to some maximum number of components. Rather, the data<br />
structure can expand or contract in size as required.]<br />
_________________________________________________________________________________________________</p>
<p>[Q014]. Which of the following declarations is NOT Valid :<br />
(i)  struct A{<br />
int a;<br />
struct B {<br />
int b;<br />
struct B *next;<br />
}tempB;<br />
struct A *next;<br />
}tempA;</p>
<p>(ii) struct B{<br />
int b;<br />
struct B *next;<br />
};<br />
struct A{<br />
int a;<br />
struct B tempB;<br />
struct A *next;<br />
};</p>
<p>(iii)struct B{<br />
int b;<br />
}tempB;<br />
struct  {<br />
int a;<br />
struct B *nextB;<br />
};</p>
<p>(iv) struct B {<br />
int b;<br />
struct B {<br />
int b;<br />
struct B *nextB;<br />
}tempB;<br />
struct B *nextB;<br />
}tempB;<br />
(a) (iv) Only        (b) (iii) Only            (c)All of the these    (d)None of these<br />
Ans. (d) Since all the above structure declarations are valid in C.<br />
_________________________________________________________________________________________________</p>
<p>[Q015]. What will be the output of the following program :<br />
union A{<br />
char ch;<br />
int i;<br />
float f;<br />
}tempA;<br />
void main()<br />
{<br />
tempA.ch=&#8217;A';<br />
tempA.i=777;<br />
tempA.f=12345.12345;<br />
printf(&#8220;%d&#8221;,tempA.i);<br />
}<br />
(a)Compile-Time Error    (b)12345            (c)Erroneous output    (d)777<br />
Ans. (c) The above program produces erroneous output (which is machine dependent). In effect,<br />
a union creates a storage location that can be used by any one of its members at a time. When a<br />
different member is assigned a new value, the new value supercedes the previous member&#8217;s value.<br />
[NOTE : The compiler allocates a piece of storage that is large enough to hold the largest<br />
variable type in the union i.e. all members share the same address.]<br />
_________________________________________________________________________________________________</p>
<p>[Q016]. What will be the output of the following program :<br />
struct A{<br />
int i;<br />
float f;<br />
union B{<br />
char ch;<br />
int j;<br />
}temp;<br />
}temp1;<br />
void main()<br />
{<br />
struct A temp2[5];<br />
printf(&#8220;%d %d&#8221;,sizeof temp1,sizeof(temp2));<br />
}<br />
(a)6 30            (b)8 40                (c)9 45            (d)None of these<br />
Ans. (b) Since int (2 bytes) + float (4 bytes) = (6 bytes) + Largest among union is int (2 bytes)<br />
is equal to (8 bytes). Also the    total number of bytes the array &#8216;temp2&#8242; requires :<br />
(8 bytes) * (5 bytes) = (40 bytes).<br />
_________________________________________________________________________________________________</p>
<p>[Q017]. What will be the output of the following program :<br />
void main()<br />
{<br />
static struct my_struct{<br />
unsigned a:1;<br />
unsigned b:2;<br />
unsigned c:3;<br />
unsigned d:4;<br />
unsigned  :6; // Fill out first word<br />
}v={1,2,7,12};<br />
printf(&#8220;%d %d %d %d&#8221;,v.a,v.b,v.c,v.d);<br />
printf(&#8220;\nSize=%d bytes&#8221;,sizeof v);<br />
}<br />
(a)Compile-Time Error    (b)1 2 7 12            (c)1 2 7 12        (d)None of these<br />
Size=2 bytes               Size=4 bytes<br />
Ans. (b) The four fields within &#8216;v&#8217; require a total of 10 bits and these bits can be accomodated<br />
within the first word(16 bits). Unnamed fields can be used to control the alignment of bit fields<br />
within a word of memory. Such fields provide padding within the word.<br />
[NOTE : Some compilers order bit-fields from righ-to-left (i.e. from lower-order bits to high-<br />
order bits) within a word, whereas other compilers order the fields from left-to-right (high-<br />
order to low-order bits).<br />
_________________________________________________________________________________________________</p>
<p>[Q018]. What are the largest values that can be assigned to each of the bit fields defined in<br />
[Q017] above.<br />
(a)a=0 b=2 c=3 d=4    (b)a=1 b=2 c=7 d=15        (c)a=1 b=3 c=7 d=15    (d)None of thes<br />
Ans. (c)a=1  (1 bit: 0 or 1)<br />
b=3  (2 bits: 00 or 01 or 10 or 11),<br />
c=7  (3 bits: 000 or 001 or 010 or 011 or 100 or 101 or 110 or 111)<br />
d=15 (4 bits: 0000 or 0001 or 0010 or 0011 or 0100 or 0101 or 0110 or 0111 or 1000 or<br />
1001 or 1010 or 1011 or 1100 or 1101 or 1110 or 1111)<br />
_________________________________________________________________________________________________</p>
<p>[Q019]. What will be the output of the following program :</p>
<p>void main()<br />
{<br />
struct sample{<br />
unsigned a:1;<br />
unsigned b:4;<br />
}v={0,15};<br />
unsigned *vptr=&amp;v.b;<br />
printf(&#8220;%d %d&#8221;,v.b,*vptr);<br />
}<br />
(a)Compile-Time Error    (b)0 0                (c)15 15        (d)None of these<br />
Ans. (a) Since we cannot take the address of a bit field variable i.e. Use of pointer to access<br />
the bit fields is prohibited. Also we cannot use &#8216;scanf&#8217; function to read values into a bit field<br />
as it requires the address of a bit field variable. Also array of bit-fields are not permitted<br />
and a function cannot return a bit field.<br />
_________________________________________________________________________________________________</p>
<p>[Q020]. What will be the output of the following program :<br />
void main()<br />
{<br />
static struct my_struct{<br />
unsigned a:1;<br />
int i;<br />
unsigned b:4;<br />
unsigned c:10;<br />
}v={1,10000,15,555};<br />
printf(&#8220;%d %d %d %d&#8221;,v.i,v.a,v.b,v.c);<br />
printf(&#8220;\nSize=%d bytes&#8221;,sizeof v);<br />
}<br />
(a)Compile-Time Error    (b)1 10000 15 555         (c)10000 1 15 555    (d)10000 1 15 555<br />
Size=4 bytes               Size=4 bytes           Size=5 bytes<br />
Ans. (d) Here the bit field variable &#8216;a&#8217; will be in first byte of one word, the variable &#8216;i&#8217; will<br />
be in the second word and the bit fields &#8216;b&#8217; and &#8216;c&#8217; will be in the third word. The variables<br />
&#8216;a&#8217;, &#8216;b&#8217; and &#8216;c&#8217; would not get packed into the same word. [NOTE: one word=2 bytes]<br />
_________________________________________________________________________________________________</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=7&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/03/29/topic-structures-unions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
		<item>
		<title>CTEST</title>
		<link>http://ra1hul2.wordpress.com/2007/03/20/ctest/</link>
		<comments>http://ra1hul2.wordpress.com/2007/03/20/ctest/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 19:04:00 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/03/20/ctest/</guid>
		<description><![CDATA[C  TEST This test consists of 50 questions. The Set Code for this paper is D. 1. The C language terminator is (a) semicolon                        (b) colon                        (c) period                                (d) exclamation mark 2. What is false about the following &#8212; A compound statement is (a) A set of simple statements                                                (b) Demarcated on either side by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=6&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;" align="center"><span style="background:#f1e3dd none repeat scroll 0 50%;color:crimson;">C  TEST</span></p>
<p><strong>This test consists of 50 questions. The Set Code for this paper is D.</strong></p>
<p><strong>1.</strong> The C language terminator is<br />
(a) semicolon                        (b) colon                        (c) period                                (d) exclamation mark</p>
<p><strong>2.</strong> What is false about the following &#8212; A compound statement is<br />
(a) A set of simple statements                                                (b) Demarcated on either side by curly brackets<br />
(c) Can be used in place of simple statement                          (d) A C function is not a compound statement.</p>
<p><strong>3. </strong>What is true about the following C Functions<br />
(a) Need not return any value                                                 (b) Should always return an integer<br />
(c) Should always return a float                                              (d) Should always return more than one value</p>
<p><strong>4. </strong>Main must be written as<br />
(a) The first function in the program                                        (b) Second function in the program<br />
(c) Last function in the program                                              (d) Any where in the program</p>
<p><strong>5.</strong> Which of the following about automatic variables within a function is correct ?<br />
(a) Its type must be declared before using the variable             (b) They are local<br />
(c) They are not initialized to zero                                           (d) They are global</p>
<p><strong>6. </strong>Write one statement equivalent to the following two statements:   x=sqr(a);  return(x);<br />
Choose from one of the alternatives<br />
(a) return(sqr(a));                                    (b) printf(&#8220;sqr(a)&#8221;);<br />
(c) return(a*a*a);                                    (d) printf(&#8220;%d&#8221;,sqr(a));</p>
<p><strong>7.</strong> Which of the following about the C comments is incorrect ?<br />
(a) Comments can go over multiple lines<br />
(b) Comments can start any where in the line<br />
(c) A line can contain comments with out any language statements<br />
(d) Comments can occur within comments</p>
<p><strong>8.</strong> What is the value of y in the following code?<br />
x=7;<br />
y=0;<br />
if(x=6) y=7;<br />
else y=1;<br />
(a) 7                                    (b) 0                                (c) 1                                 (d) 6</p>
<p><strong>9.</strong> Read the function conv() given below<br />
conv(int t)<br />
{<br />
int u;<br />
u=5/9 * (t-32);<br />
return(u);<br />
}<br />
What is returned<br />
(a) 15                                    (b) 0                                (c) 16.1                            (d) 29</p>
<p><strong>10. </strong>Which of the following represents true statement either x is in the range of 10 and 50 or y is zero<br />
(a) x &gt;= 10 &amp;&amp; x &lt;= 50 || y = = 0                                (b) x&lt;50<br />
(c) y!=10 &amp;&amp; x&gt;=50                                                    (d) None of these</p>
<p><strong>11.</strong> Which of the following is not an infinite loop ?<br />
(a) while(1)\{ &#8230;.}                                                    (b) for(;;){&#8230;}<br />
(c) x=0;                                                                   (d) # define TRUE 0<br />
do{ /*x unaltered within the loop*/                                &#8230;<br />
&#8230;..}while(x = = 0);                                                while(TRUE){ &#8230;.}</p>
<p><strong>12. </strong>What does the following function print?<br />
func(int i)<br />
{<br />
if(i%2)return 0;<br />
else return 1;<br />
}<br />
main()<br />
{<br />
int =3;<br />
i=func(i);<br />
i=func(i);<br />
printf(&#8220;%d&#8221;,i);<br />
}<br />
(a) 3                                (b) 1                                (c) 0                                (d) 2</p>
<p><strong>13.</strong> How does the C compiler interpret the following two statements<br />
p=p+x;<br />
q=q+y;<br />
(a) p= p+x;                     (b)p=p+xq=q+y;                (c)p= p+xq;                      (d)p=p+x/q=q+y;<br />
q=q+y;                                                                    q=q+y;</p>
<p><em><u>For questions 14,15,16,17 use the following alternatives:</u></em><br />
a.int                                 b.char                                 c.string                              d.float</p>
<p><strong>14.</strong> &#8217;9&#8242;</p>
<p><strong>15.</strong> &#8220;1 e 02&#8243;</p>
<p><strong>16.</strong> 10e05</p>
<p><strong>17.</strong> 15<br />
<strong>18.</strong> Read the folllowing code<br />
# define MAX 100<br />
# define MIN 100<br />
&#8230;.<br />
&#8230;.<br />
if(x&gt;MAX)<br />
x=1;<br />
else if(x&lt;MIN)<br />
x=-1;<br />
x=50;<br />
if the initial value of x=200,what is the value after executing this code?<br />
(a) 200                                (b) 1                                (c) -1                                (d) 50</p>
<p><strong>19.</strong> A memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed:<br />
s=&#8221;Entrance&#8221;<br />
l=strlen(s);<br />
what is the value of l ?<br />
(a)20                                (b)8                                (c)9                                (d)21<br />
<strong>20. </strong>Given the piece of code<br />
int a[50];<br />
int *pa;<br />
pa=a;<br />
To access the 6th element of the array which of the following is incorrect?<br />
(a) *(a+5)                                (b) a[5]                     (c) pa[5]                           (d) *(*pa + 5}<br />
<strong>21.</strong> Consider the following structure:<br />
struct num nam<br />
{<br />
int no;<br />
char name[25];<br />
}<br />
struct num nam n1[]={{12,&#8221;Fred&#8221;},{15,&#8221;Martin&#8221;},{8,&#8221;Peter&#8221;},{11,Nicholas&#8221;}};<br />
&#8230;..<br />
&#8230;..<br />
printf(&#8220;%d%d&#8221;,n1[2],no,(*(n1 + 2),no) + 1);<br />
What does the above statement print?<br />
(a) 8,9                            (b) 9,9                            (c) 8,8                            (d) 8,unpredictable value<br />
<strong>22.</strong> Identify the in correct expression<br />
(a)a=b=3=4;               (b)a=b=c=d=0;                (c)float a=int b= 3.5;        (d)int a; floatb;a=b=3.5;<br />
<strong>23.</strong> Regarding the scope of the varibles;identify the incorrect statement:<br />
(a) automatic variables are automatically initialized to 0    (b) static variables are are automatically initialized to 0<br />
(c) the address of a register variable is not accessible       (d) static variables cannot be initialized with any expression</p>
<p><strong>24.</strong> cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;<br />
is equivalent to which of the following?<br />
(a) if cond 1<br />
exp 1;<br />
else if cond 2<br />
exp 2;<br />
else if cond 3<br />
exp 3;<br />
else exp 4;<br />
(b) if cond 1<br />
if cond 2<br />
if cond 3<br />
exp 1;<br />
else exp 2;<br />
else exp 3;<br />
else exp 4;<br />
(c) if cond 1 &amp;&amp; cond 2 &amp;&amp; cond 3<br />
exp 1 |exp 2|exp 3|exp 4;<br />
(d) if cond 3<br />
exp 1;<br />
else if cond 2 exp 2;<br />
else if cond 3 exp 3;<br />
else exp 4;</p>
<p><strong>25.</strong> The operator for exponentiation is<br />
(a) **                            (b) ^                            (c) %                          <span style="color:maroon;">  <em>(d) not available</em></span></p>
<p><strong>26.</strong> Which of the following is invalid<br />
(a) a+=b                        (b) a*=b                       (c) a&gt;&gt;=b                    (d) a**=b</p>
<p><strong>27.</strong> What is y value of the code if input x=10<br />
y=5;<br />
if (x==10)<br />
else if(x==9)<br />
else y=8;<br />
(a)9                            (b)8                                 (c)6                            (d)7</p>
<p><strong>28.</strong> What does the following code do?<br />
fn(int n, int p, int r)<br />
{<br />
static int a=p;<br />
switch(n)<br />
{<br />
case 4:a+=a*r;<br />
case 3:a+=a*r;<br />
case 2:a+=a*r;<br />
case 1:a+=a*r;<br />
}<br />
}<br />
(a) computes simple interest for one year                (b) computes amount on compound interest for 1 to 4 years<br />
(c) computes simple interest for four year                (d) computes compound interest for 1 year</p>
<p><strong>29.</strong><br />
a=0;<br />
while(a&lt;5)<br />
printf(&#8220;%d\\n&#8221;,a++);<br />
How many times does the loop occurs?<br />
(a) infinite                                    (b)5                                    (c)4                                    (d)6</p>
<p><strong>30.</strong> How many times does the loop iterated ?<br />
for(i=0;i=10;i+=2)<br />
printf(&#8220;Hi\\n&#8221;);<br />
(a)10                                          (b) 2                                    (c) 5                                    (d) None of these</p>
<p><strong>31.</strong> What is incorrect among the following<br />
A recursive function<br />
(a) calls itself                                            (b) is equivalent to a loop<br />
(c) has a termination condition                  (d) does not have a return value at all</p>
<p><strong>32.</strong> Which of the following go out of the loop if expn 2 becoming false<br />
(a) while(expn 1)\{&#8230;if(expn 2)continue;}        (b) while(!expn 1)\{if(expn 2)continue;&#8230;}<br />
(c) do{..if(expn 1)continue;..}while(expn 2);   (d) while(!expn 2)\{if(expn 1)continue;..\}</p>
<p><strong>33.</strong> Consider the following program<br />
main()<br />
{<br />
unsigned int i=10;<br />
while(i&gt;=0)<br />
{<br />
printf(&#8220;%u&#8221;,i)<br />
i&#8211;;<br />
}<br />
}<br />
How many times the loop will get executed<br />
(a)10                                (b)9                                (c)11                                (d) infinite</p>
<p><strong>34.</strong>Pick out the odd one out<br />
(a) malloc()                       (b) calloc()                     (c) free()                           (d) realloc()</p>
<p><strong>35.</strong>Consider the following program<br />
main()<br />
{<br />
int a[5]={1,3,6,7,0};<br />
int *b;<br />
b=&amp;a[2];<br />
}<br />
The value of b[-1] is<br />
(a) 1                            (b) 3                                (c) -6                                (d) none</p>
<p><strong>36.   </strong>                    # define prod(a,b)=a*b<br />
main()<br />
{<br />
int x=2;<br />
int y=3;<br />
printf(&#8220;%d&#8221;,prod(x+2,y-10));<br />
}<br />
the output of the program is<br />
(a) 8                            (b) 6                                (c) 7                                (d) None</p>
<p><strong>37.</strong>Consider the following program segment<br />
int n,sum=1;<br />
switch(n)<br />
{<br />
case 2:sum=sum+2;<br />
case 3:sum*=2;<br />
break;<br />
default:sum=0;<br />
}<br />
If n=2, what is the value of sum<br />
(a) 0                            (b) 6                                (c) 3                                    (d) None of these</p>
<p><strong>38.</strong> Identify the incorrect one<br />
1.if(c=1)<br />
2.if(c!=3)<br />
3.if(a&lt;b)then<br />
4.if(c==1)<br />
(a) 1 only                     (b) 1&amp;3                            (c) 3 only                            (d) All of the above</p>
<p><strong>39.</strong> The format specified for hexa decimal is<br />
(a) %d                          (b) %o                             (c) %x                                (d) %u</p>
<p><strong>40. </strong>Find the output of the following program<br />
main()<br />
{<br />
int x=5, *p;<br />
p=&amp;x<br />
printf(&#8220;%d&#8221;,++*p);<br />
}<br />
(a) 5                                    (b) 6                                    (c) 0                                    (d) none of these</p>
<p><strong>41.</strong>Consider the following C code<br />
main()<br />
{<br />
int i=3,x;<br />
while(i&gt;0)<br />
{<br />
x=func(i);<br />
i&#8211;;<br />
}<br />
int func(int n)<br />
{<br />
static sum=0;<br />
sum=sum+n;<br />
return(sum);<br />
}<br />
}<br />
The final value of x is<br />
(a) 6                                (b) 8                                (c) 1                                    (d) 3</p>
<p><strong>43.</strong> Int *a[5] refers to<br />
(a) array of pointers        (b) pointer to an array        (c) pointer to a pointer          (d) none of these</p>
<p><strong>44.</strong>Which of the following statements is incorrect<br />
(a)                 typedef struct new<br />
{<br />
int n1;<br />
char n2;<br />
} DATA;</p>
<p>(b)                typedef struct<br />
{<br />
int n3;<br />
char *n4;<br />
}ICE;</p>
<p>(c)                typedef union<br />
{<br />
int n5;<br />
float n6;<br />
} UDT;</p>
<p>(d)                        #typedef union<br />
{<br />
int n7;<br />
float n8;<br />
} TUDAT;</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=6&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/03/20/ctest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
		<item>
		<title>DATABASE</title>
		<link>http://ra1hul2.wordpress.com/2007/03/19/database/</link>
		<comments>http://ra1hul2.wordpress.com/2007/03/19/database/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 13:59:51 +0000</pubDate>
		<dc:creator>ra1hul2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ra1hul2.wordpress.com/2007/08/19/database/</guid>
		<description><![CDATA[Database 1. What is database? A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world and which is designed, built and populated with data for a specific purpose. 2. What is DBMS? It is a collection of programs that enables user to create and maintain a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=5&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong><span style="font-size:10pt;font-family:Verdana;color:#252525;">Database</span></strong><span style="font-size:10pt;font-family:Arial;color:black;"><br />
1. What is database?</span></p>
<p>A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world and which is designed, built and populated with data for a specific purpose.</p>
<p>2. What is DBMS?<br />
It is a collection of programs that enables user to create and maintain a database. In other words it is general-purpose software that provides the users with the processes of defining, constructing and manipulating the database for various applications.</p>
<p>3. What is a Database system?<br />
The database and DBMS software together is called as Database system.</p>
<p>4. Advantages of DBMS?<br />
ï¿½ Redundancy is controlled.<br />
ï¿½ Unauthorised access is restricted.<br />
ï¿½ Providing multiple user interfaces.<br />
ï¿½ Enforcing integrity constraints.<br />
ï¿½ Providing backup and recovery.</p>
<p>5. Disadvantage in File Processing System?<br />
ï¿½ Data redundancy &amp; inconsistency.<br />
ï¿½ Difficult in accessing data.<br />
ï¿½ Data isolation.<br />
ï¿½ Data integrity.<br />
ï¿½ Concurrent access is not possible.<br />
ï¿½ Security Problems.</p>
<p>6. Describe the three levels of data abstraction?<br />
The are three levels of abstraction:<br />
ï¿½ Physical level: The lowest level of abstraction describes how data are stored.<br />
ï¿½ Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship among those data.<br />
ï¿½ View level: The highest level of abstraction describes only part of entire database.</p>
<p>7. Define the &#8220;integrity rules&#8221;<br />
There are two Integrity rules.<br />
ï¿½ Entity Integrity: States that ï¿½Primary key cannot have NULL valueï¿½<br />
ï¿½ Referential Integrity: States that ï¿½Foreign Key can be either a NULL value or should be Primary Key value of other relation.</p>
<p>8. What is extension and intension?<br />
Extension -<br />
It is the number of tuples present in a table at any instance. This is time dependent.<br />
Intension -<br />
It is a constant value that gives the name, structure of table and the constraints laid on it.</p>
<p>9. What is System R? What are its two major subsystems?<br />
System R was designed and developed over a period of 1974-79 at IBM San Jose Research Center. It is a prototype and its purpose was to demonstrate that it is possible to build a Relational System that can be used in a real life environment to solve real life problems, with performance at least comparable to that of existing system.<br />
Its two subsystems are<br />
ï¿½ Research Storage<br />
ï¿½ System Relational Data System.</p>
<p>10. How is the data structure of System R different from the relational structure?<br />
Unlike Relational systems in System R<br />
ï¿½ Domains are not supported<br />
ï¿½ Enforcement of candidate key uniqueness is optional<br />
ï¿½ Enforcement of entity integrity is optional<br />
ï¿½ Referential integrity is not enforced</p>
<p>11. What is Data Independence?<br />
Data independence means that ï¿½the application is independent of the storage structure and access strategy of dataï¿½. In other words, The ability to modify the schema definition in one level should not affect the schema definition in the next higher level.<br />
Two types of Data Independence:<br />
ï¿½ Physical Data Independence: Modification in physical level should not affect the logical level.<br />
ï¿½ Logical Data Independence: Modification in logical level should affect the view level.<br />
NOTE: Logical Data Independence is more difficult to achieve</p>
<p>12. What is a view? How it is related to data independence?<br />
A view may be thought of as a virtual table, that is, a table that does not really exist in its own right but is instead derived from one or more underlying base table. In other words, there is no stored file that direct represents the view instead a definition of view is stored in data dictionary.<br />
Growth and restructuring of base tables is not reflected in views. Thus the view can insulate users from the effects of restructuring and growth in the database. Hence accounts for logical data independence.</p>
<p>13. What is Data Model?<br />
A collection of conceptual tools for describing data, data relationships data semantics and constraints.</p>
<p>14. What is E-R model?<br />
This data model is based on real world that consists of basic objects called entities and of relationship among these objects. Entities are described in a database by a set of attributes.</p>
<p>15. What is Object Oriented model?<br />
This model is based on collection of objects. An object contains values stored in instance variables with in the object. An object also contains bodies of code that operate on the object. These bodies of code are called methods. Objects that contain same types of values and the same methods are grouped together into classes.</p>
<p>16. What is an Entity?<br />
It is a &#8216;thing&#8217; in the real world with an independent existence.</p>
<p>17. What is an Entity type?<br />
It is a collection (set) of entities that have same attributes.</p>
<p>18. What is an Entity set?<br />
It is a collection of all entities of particular entity type in the database.</p>
<p>19. What is an Extension of entity type?<br />
The collections of entities of a particular entity type are grouped together into an entity set.</p>
<p>20. What is Weak Entity set?<br />
An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set.</p>
<p>21. What is an attribute?<br />
It is a particular property, which describes the entity.</p>
<p>22. What is a Relation Schema and a Relation?<br />
A relation Schema denoted by R(A1, A2, ï¿½, An) is made up of the relation name R and the list of attributes Ai that it contains. A relation is defined as a set of tuples. Let r be the relation which contains set tuples (t1, t2, t3, &#8230;, tn). Each tuple is an ordered list of n-values t=(v1,v2, &#8230;, vn).</p>
<p>23. What is degree of a Relation?<br />
It is the number of attribute of its relation schema.</p>
<p>24. What is Relationship?<br />
It is an association among two or more entities.</p>
<p>25. What is Relationship set?<br />
The collection (or set) of similar relationships.</p>
<p>26. What is Relationship type?<br />
Relationship type defines a set of associations or a relationship set among a given set of entity types.</p>
<p>27. What is degree of Relationship type?<br />
It is the number of entity type participating.</p>
<p>25. What is DDL (Data Definition Language)?<br />
A data base schema is specifies by a set of definitions expressed by a special language called DDL.</p>
<p>26. What is VDL (View Definition Language)?<br />
It specifies user views and their mappings to the conceptual schema.</p>
<p>27. What is SDL (Storage Definition Language)?<br />
This language is to specify the internal schema. This language may specify the mapping between two schemas.</p>
<p>28. What is Data Storage &#8211; Definition Language?<br />
The storage structures and access methods used by database system are specified by a set of definition in a special type of DDL called data storage-definition language.</p>
<p>29. What is DML (Data Manipulation Language)?<br />
This language that enable user to access or manipulate data as organised by appropriate data model.<br />
ï¿½ Procedural DML or Low level: DML requires a user to specify what data are needed and how to get those data.<br />
ï¿½ Non-Procedural DML or High level: DML requires a user to specify what data are needed without specifying how to get those data.</p>
<p>31. What is DML Compiler?<br />
It translates DML statements in a query language into low-level instruction that the query evaluation engine can understand.</p>
<p>32. What is Query evaluation engine?<br />
It executes low-level instruction generated by compiler.</p>
<p>33. What is DDL Interpreter?<br />
It interprets DDL statements and record them in tables containing metadata.</p>
<p>34. What is Record-at-a-time?<br />
The Low level or Procedural DML can specify and retrieve each record from a set of records. This retrieve of a record is said to be Record-at-a-time.</p>
<p>35. What is Set-at-a-time or Set-oriented?<br />
The High level or Non-procedural DML can specify and retrieve many records in a single DML statement. This retrieve of a record is said to be Set-at-a-time or Set-oriented.</p>
<p>36. What is Relational Algebra?<br />
It is procedural query language. It consists of a set of operations that take one or two relations as input and produce a new relation.</p>
<p>37. What is Relational Calculus?<br />
It is an applied predicate calculus specifically tailored for relational databases proposed by E.F. Codd. E.g. of languages based on it are DSL ALPHA, QUEL.</p>
<p>38. How does Tuple-oriented relational calculus differ from domain-oriented relational calculus<br />
The tuple-oriented calculus uses a tuple variables i.e., variable whose only permitted values are tuples of that relation. E.g. QUEL<br />
The domain-oriented calculus has domain variables i.e., variables that range over the underlying domains instead of over relation. E.g. ILL, DEDUCE.</p>
<p>39. What is normalization?<br />
It is a process of analysing the given relation schemas based on their Functional Dependencies (FDs) and primary key to achieve the properties<br />
ï¿½ Minimizing redundancy<br />
ï¿½ Minimizing insertion, deletion and update anomalies.</p>
<p>40. What is Functional Dependency?<br />
A Functional dependency is denoted by X Y between two sets of attributes X and Y that are subsets of R specifies a constraint on the possible tuple that can form a relation state r of R. The constraint is for any two tuples t1 and t2 in r if t1[X] = t2[X] then they have t1[Y] = t2[Y]. This means the value of X component of a tuple uniquely determines the value of component Y.</p>
<p>41. When is a functional dependency F said to be minimal?<br />
ï¿½ Every dependency in F has a single attribute for its right hand side.<br />
ï¿½ We cannot replace any dependency X A in F with a dependency Y A where Y is a proper subset of X and still have a set of dependency that is equivalent to F.<br />
ï¿½ We cannot remove any dependency from F and still have set of dependency that is equivalent to F.</p>
<p>42. What is Multivalued dependency?<br />
Multivalued dependency denoted by X Y specified on relation schema R, where X and Y are both subsets of R, specifies the following constraint on any relation r of R: if two tuples t1 and t2 exist in r such that t1[X] = t2[X] then t3 and t4 should also exist in r with the following properties<br />
ï¿½ t3[x] = t4[X] = t1[X] = t2[X]<br />
ï¿½ t3[Y] = t1[Y] and t4[Y] = t2[Y]<br />
ï¿½ t3[Z] = t2[Z] and t4[Z] = t1[Z]<br />
where [Z = (R-(X U Y)) ]</p>
<p>43. What is Lossless join property?<br />
It guarantees that the spurious tuple generation does not occur with respect to relation schemas after decomposition.</p>
<p>44. What is 1 NF (Normal Form)?<br />
The domain of attribute must include only atomic (simple, indivisible) values.</p>
<p>45. What is Fully Functional dependency?<br />
It is based on concept of full functional dependency. A functional dependency X Y is full functional dependency if removal of any attribute A from X means that the dependency does not hold any more.</p>
<p>46. What is 2NF?<br />
A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A in R is fully functionally dependent on primary key.</p>
<p>47. What is 3NF?<br />
A relation schema R is in 3NF if it is in 2NF and for every FD X A either of the following is true<br />
ï¿½ X is a Super-key of R.<br />
ï¿½ A is a prime attribute of R.<br />
In other words, if every non prime attribute is non-transitively dependent on primary key.</p>
<p>48. What is BCNF (Boyce-Codd Normal Form)?<br />
A relation schema R is in BCNF if it is in 3NF and satisfies an additional constraint that for every FD X A, X must be a candidate key.</p>
<p>49. What is 4NF?<br />
A relation schema R is said to be in 4NF if for every Multivalued dependency X Y that holds over R, one of following is true<br />
ï¿½ X is subset or equal to (or) XY = R.<br />
ï¿½ X is a super key.</p>
<p>50. What is 5NF?<br />
A Relation schema R is said to be 5NF if for every join dependency {R1, R2, &#8230;, Rn} that holds R, one the following is true<br />
ï¿½ Ri = R for some i.<br />
ï¿½ The join dependency is implied by the set of FD, over R in which the left side is key of R.</p>
<p>51. What is Domain-Key Normal Form?<br />
A relation is said to be in DKNF if all constraints and dependencies that should hold on the the constraint can be enforced by simply enforcing the domain constraint and key constraint on the relation.</p>
<p>52. What are partial, alternate,, artificial, compound and natural key?<br />
Partial Key:<br />
It is a set of attributes that can uniquely identify weak entities and that are related to same owner entity. It is sometime called as Discriminator.<br />
Alternate Key:<br />
All Candidate Keys excluding the Primary Key are known as Alternate Keys.<br />
Artificial Key:<br />
If no obvious key, either stand alone or compound is available, then the last resort is to simply create a key, by assigning a unique number to each record or occurrence. Then this is known as developing an artificial key.<br />
Compound Key:<br />
If no single data element uniquely identifies occurrences within a construct, then combining multiple elements to create a unique identifier for the construct is known as creating a compound key.<br />
Natural Key:<br />
When one of the data elements stored within a construct is utilized as the primary key, then it is called the natural key.</p>
<p>53. What is indexing and what are the different kinds of indexing?<br />
Indexing is a technique for determining how quickly specific data can be found.<br />
Types:<br />
ï¿½ Binary search style indexing<br />
ï¿½ B-Tree indexing<br />
ï¿½ Inverted list indexing<br />
ï¿½ Memory resident table<br />
ï¿½ Table indexing</p>
<p>54. What is system catalog or catalog relation? How is better known as?<br />
A RDBMS maintains a description of all the data that it contains, information about every relation and index that it contains. This information is stored in a collection of relations maintained by the system called metadata. It is also called data dictionary.</p>
<p>55. What is meant by query optimization?<br />
The phase that identifies an efficient execution plan for evaluating a query that has the least estimated cost is referred to as query optimization.</p>
<p>56. What is join dependency and inclusion dependency?<br />
Join Dependency:<br />
A Join dependency is generalization of Multivalued dependency.A JD {R1, R2, &#8230;, Rn} is said to hold over a relation R if R1, R2, R3, &#8230;, Rn is a lossless-join decomposition of R . There is no set of sound and complete inference rules for JD.<br />
Inclusion Dependency:<br />
An Inclusion Dependency is a statement of the form that some columns of a relation are contained in other columns. A foreign key constraint is an example of inclusion dependency.</p>
<p>57. What is durability in DBMS?<br />
Once the DBMS informs the user that a transaction has successfully completed, its effects should persist even if the system crashes before all its changes are reflected on disk. This property is called durability.</p>
<p>58. What do you mean by atomicity and aggregation?<br />
Atomicity:<br />
Either all actions are carried out or none are. Users should not have to worry about the effect of incomplete transactions. DBMS ensures this by undoing the actions of incomplete transactions.<br />
Aggregation:<br />
A concept which is used to model a relationship between a collection of entities and relationships. It is used when we need to express a relationship among relationships.</p>
<p>59. What is a Phantom Deadlock?<br />
In distributed deadlock detection, the delay in propagating local information might cause the deadlock detection algorithms to identify deadlocks that do not really exist. Such situations are called phantom deadlocks and they lead to unnecessary aborts.</p>
<p>60. What is a checkpoint and When does it occur?<br />
A Checkpoint is like a snapshot of the DBMS state. By taking checkpoints, the DBMS can reduce the amount of work to be done during restart in the event of subsequent crashes.</p>
<p>61. What are the different phases of transaction?<br />
Different phases are<br />
ï¿½ Analysis phase<br />
ï¿½ Redo Phase<br />
ï¿½ Undo phase</p>
<p>62. What do you mean by flat file database?<br />
It is a database in which there are no programs or user access languages. It has no cross-file capabilities but is user-friendly and provides user-interface management.</p>
<p>63. What is &#8220;transparent DBMS&#8221;?<br />
It is one, which keeps its Physical Structure hidden from user.</p>
<p>64. Brief theory of Network, Hierarchical schemas and their properties<br />
Network schema uses a graph data structure to organize records example for such a database management system is CTCG while a hierarchical schema uses a tree data structure example for such a system is IMS.</p>
<p>65. What is a query?<br />
A query with respect to DBMS relates to user commands that are used to interact with a data base. The query language can be classified into data definition language and data manipulation language.</p>
<p>66. What do you mean by Correlated subquery?<br />
Subqueries, or nested queries, are used to bring back a set of rows to be used by the parent query. Depending on how the subquery is written, it can be executed once for the parent query or it can be executed once for each row returned by the parent query. If the subquery is executed for each row of the parent, this is called a correlated subquery.<br />
A correlated subquery can be easily identified if it contains any references to the parent subquery columns in its WHERE clause. Columns from the subquery cannot be referenced anywhere else in the parent query. The following example demonstrates a non-correlated subquery.<br />
E.g. Select * From CUST Where &#8217;10/03/1990&#8242; IN (Select ODATE From ORDER Where CUST.CNUM = ORDER.CNUM)</p>
<p>67. What are the primitive operations common to all record management systems?<br />
Addition, deletion and modification.</p>
<p>68. Name the buffer in which all the commands that are typed in are stored<br />
ï¿½Editï¿½ Buffer</p>
<p>69. What are the unary operations in Relational Algebra?<br />
PROJECTION and SELECTION.</p>
<p>70. Are the resulting relations of PRODUCT and JOIN operation the same?<br />
No.<br />
PRODUCT: Concatenation of every row in one relation with every row in another.<br />
JOIN: Concatenation of rows from one relation and related rows from another.</p>
<p>71. What is RDBMS KERNEL?<br />
Two important pieces of RDBMS architecture are the kernel, which is the software, and the data dictionary, which consists of the system-level data structures used by the kernel to manage the database<br />
You might think of an RDBMS as an operating system (or set of subsystems), designed specifically for controlling data access; its primary functions are storing, retrieving, and securing data. An RDBMS maintains its own list of authorized users and their associated privileges; manages memory caches and paging; controls locking for concurrent resource usage; dispatches and schedules user requests; and manages space usage within its table-space structures<br />
.<br />
72. Name the sub-systems of a RDBMS<br />
I/O, Security, Language Processing, Process Control, Storage Management, Logging and Recovery, Distribution Control, Transaction Control, Memory Management, Lock Management</p>
<p>73. Which part of the RDBMS takes care of the data dictionary? How<br />
Data dictionary is a set of tables and database objects that is stored in a special area of the database and maintained exclusively by the kernel.</p>
<p>74. What is the job of the information stored in data-dictionary?<br />
The information in the data dictionary validates the existence of the objects, provides access to them, and maps the actual physical storage location.</p>
<p>75. Not only RDBMS takes care of locating data it also<br />
determines an optimal access path to store or retrieve the data</p>
<p>76. How do you communicate with an RDBMS?<br />
You communicate with an RDBMS using Structured Query Language (SQL)</p>
<p>77. Define SQL and state the differences between SQL and other conventional programming Languages<br />
SQL is a nonprocedural language that is designed specifically for data access operations on normalized relational database structures. The primary difference between SQL and other conventional programming languages is that SQL statements specify what data operations should be performed rather than how to perform them.</p>
<p>78. Name the three major set of files on disk that compose a database in Oracle<br />
There are three major sets of files on disk that compose a database. All the files are binary. These are<br />
ï¿½ Database files<br />
ï¿½ Control files<br />
ï¿½ Redo logs<br />
The most important of these are the database files where the actual data resides. The control files and the redo logs support the functioning of the architecture itself.<br />
All three sets of files must be present, open, and available to Oracle for any data on the database to be useable. Without these files, you cannot access the database, and the database administrator might have to recover some or all of the database using a backup, if there is one.</p>
<p>79. What is an Oracle Instance?<br />
The Oracle system processes, also known as Oracle background processes, provide functions for the user processesï¿½functions that would otherwise be done by the user processes themselves<br />
Oracle database-wide system memory is known as the SGA, the system global area or shared global area. The data and control structures in the SGA are shareable, and all the Oracle background processes and user processes can use them.<br />
The combination of the SGA and the Oracle background processes is known as an Oracle instance</p>
<p>80. What are the four Oracle system processes that must always be up and running for the database to be useable<br />
The four Oracle system processes that must always be up and running for the database to be useable include DBWR (Database Writer), LGWR (Log Writer), SMON (System Monitor), and PMON (Process Monitor).</p>
<p>81. What are database files, control files and log files. How many of these files should a database have at least? Why?<br />
Database Files<br />
The database files hold the actual data and are typically the largest in size. Depending on their sizes, the tables (and other objects) for all the user accounts can go in one database fileï¿½but that&#8217;s not an ideal situation because it does not make the database structure very flexible for controlling access to storage for different users, putting the database on different disk drives, or backing up and restoring just part of the database.<br />
You must have at least one database file but usually, more than one files are used. In terms of accessing and using the data in the tables and other objects, the number (or location) of the files is immaterial.<br />
The database files are fixed in size and never grow bigger than the size at which they were created<br />
Control Files<br />
The control files and redo logs support the rest of the architecture. Any database must have at least one control file, although you typically have more than one to guard against loss. The control file records the name of the database, the date and time it was created, the location of the database and redo logs, and the synchronization information to ensure that all three sets of files are always in step. Every time you add a new database or redo log file to the database, the information is recorded in the control files.<br />
Redo Logs<br />
Any database must have at least two redo logs. These are the journals for the database; the redo logs record all changes to the user objects or system objects. If any type of failure occurs, the changes recorded in the redo logs can be used to bring the database to a consistent state without losing any committed transactions. In the case of non-data loss failure, Oracle can apply the information in the redo logs automatically without intervention from the DBA.<br />
The redo log files are fixed in size and never grow dynamically from the size at which they were created.</p>
<p>82. What is ROWID?<br />
The ROWID is a unique database-wide physical address for every row on every table. Once assigned (when the row is first inserted into the database), it never changes until the row is deleted or the table is dropped.<br />
The ROWID consists of the following three components, the combination of which uniquely identifies the physical storage location of the row.<br />
ï¿½ Oracle database file number, which contains the block with the rows<br />
ï¿½ Oracle block address, which contains the row<br />
ï¿½ The row within the block (because each block can hold many rows)<br />
The ROWID is used internally in indexes as a quick means of retrieving rows with a particular key value. Application developers also use it in SQL statements as a quick way to access a row once they know the ROWID</p>
<p>83. What is Oracle Block? Can two Oracle Blocks have the same address?<br />
Oracle &#8220;formats&#8221; the database files into a number of Oracle blocks when they are first createdï¿½making it easier for the RDBMS software to manage the files and easier to read data into the memory areas.<br />
The block size should be a multiple of the operating system block size. Regardless of the block size, the entire block is not available for holding data; Oracle takes up some space to manage the contents of the block. This block header has a minimum size, but it can grow.<br />
These Oracle blocks are the smallest unit of storage. Increasing the Oracle block size can improve performance, but it should be done only when the database is first created.<br />
Each Oracle block is numbered sequentially for each database file starting at 1. Two blocks can have the same block address if they are in different database files.</p>
<p>84. What is database Trigger?<br />
A database trigger is a PL/SQL block that can defined to automatically execute for insert, update, and delete statements against a table. The trigger can e defined to execute once for the entire statement or once for every row that is inserted, updated, or deleted. For any one table, there are twelve events for which you can define database triggers. A database trigger can call database procedures that are also written in PL/SQL.</p>
<p>85. Name two utilities that Oracle provides, which are use for backup and recovery.<br />
Along with the RDBMS software, Oracle provides two utilities that you can use to back up and restore the database. These utilities are Export and Import.<br />
The Export utility dumps the definitions and data for the specified part of the database to an operating system binary file. The Import utility reads the file produced by an export, recreates the definitions of objects, and inserts the data<br />
If Export and Import are used as a means of backing up and recovering the database, all the changes made to the database cannot be recovered since the export was performed. The best you can do is recover the database to the time when the export was last performed.</p>
<p>86. What are stored-procedures? And what are the advantages of using them.<br />
Stored procedures are database objects that perform a user defined operation. A stored procedure can have a set of compound SQL statements. A stored procedure executes the SQL commands and returns the result to the client. Stored procedures are used to reduce network traffic.</p>
<p>87. How are exceptions handled in PL/SQL? Give some of the internal exceptions&#8217; name<br />
PL/SQL exception handling is a mechanism for dealing with run-time errors encountered during procedure execution. Use of this mechanism enables execution to continue if the error is not severe enough to cause procedure termination.<br />
The exception handler must be defined within a subprogram specification. Errors cause the program to raise an exception with a transfer of control to the exception-handler block. After the exception handler executes, control returns to the block in which the handler was defined. If there are no more executable statements in the block, control returns to the caller.<br />
User-Defined Exceptions<br />
PL/SQL enables the user to define exception handlers in the declarations area of subprogram specifications. User accomplishes this by naming an exception as in the following example:<br />
ot_failure EXCEPTION;<br />
In this case, the exception name is ot_failure. Code associated with this handler is written in the EXCEPTION specification area as follows:<br />
EXCEPTION<br />
when OT_FAILURE then<br />
out_status_code := g_out_status_code;<br />
out_msg := g_out_msg;<br />
The following is an example of a subprogram exception:<br />
EXCEPTION<br />
when NO_DATA_FOUND then<br />
g_out_status_code := &#8216;FAIL&#8217;;<br />
RAISE ot_failure;<br />
Within this exception is the RAISE statement that transfers control back to the ot_failure exception handler. This technique of raising the exception is used to invoke all user-defined exceptions.<br />
System-Defined Exceptions<br />
Exceptions internal to PL/SQL are raised automatically upon error. NO_DATA_FOUND is a system-defined exception. Table below gives a complete list of internal exceptions.</p>
<p>PL/SQL internal exceptions.</p>
<p>PL/SQL internal exceptions.</p>
<p>Exception Name Oracle Error<br />
CURSOR_ALREADY_OPEN ORA-06511<br />
DUP_VAL_ON_INDEX ORA-00001<br />
INVALID_CURSOR ORA-01001<br />
INVALID_NUMBER ORA-01722<br />
LOGIN_DENIED ORA-01017<br />
NO_DATA_FOUND ORA-01403<br />
NOT_LOGGED_ON ORA-01012<br />
PROGRAM_ERROR ORA-06501<br />
STORAGE_ERROR ORA-06500<br />
TIMEOUT_ON_RESOURCE ORA-00051<br />
TOO_MANY_ROWS ORA-01422<br />
TRANSACTION_BACKED_OUT ORA-00061<br />
VALUE_ERROR ORA-06502<br />
ZERO_DIVIDE ORA-01476</p>
<p>In addition to this list of exceptions, there is a catch-all exception named OTHERS that traps all errors for which specific error handling has not been established.</p>
<p>88. Does PL/SQL support &#8220;overloading&#8221;? Explain<br />
The concept of overloading in PL/SQL relates to the idea that you can define procedures and functions with the same name. PL/SQL does not look only at the referenced name, however, to resolve a procedure or function call. The count and data types of formal parameters are also considered.<br />
PL/SQL also attempts to resolve any procedure or function calls in locally defined packages before looking at globally defined packages or internal functions. To further ensure calling the proper procedure, you can use the dot notation. Prefacing a procedure or function name with the package name fully qualifies any procedure or function reference.</p>
<p>89. Tables derived from the ERD<br />
a) Are totally unnormalised<br />
b) Are always in 1NF<br />
c) Can be further denormalised<br />
d) May have multi-valued attributes</p>
<p>(b) Are always in 1NF</p>
<p>90. Spurious tuples may occur due to<br />
i. Bad normalization<br />
ii. Theta joins<br />
iii. Updating tables from join<br />
a) i &amp; ii b) ii &amp; iii<br />
c) i &amp; iii d)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ra1hul2.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ra1hul2.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ra1hul2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ra1hul2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ra1hul2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ra1hul2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ra1hul2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ra1hul2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ra1hul2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ra1hul2.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ra1hul2.wordpress.com&amp;blog=1547053&amp;post=5&amp;subd=ra1hul2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ra1hul2.wordpress.com/2007/03/19/database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/add3987316653eb66c2efc1395f8abda?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ra1hul2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
