<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6202301539178143894</id><updated>2011-11-27T17:36:45.869-08:00</updated><title type='text'>Welcome to PARADISE</title><subtitle type='html'>Paradise...heaven......</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-3503883306972955059</id><published>2010-08-24T23:47:00.000-07:00</published><updated>2010-08-24T23:56:16.329-07:00</updated><title type='text'>CS2203-OBJECT ORIENTED PROGRAMMING PREVIOUS YEAR QUESTION PAPER</title><content type='html'>&lt;a href="http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx1Z3Jlc3VsdHN8Z3g6NmIzNjUzYTMxOWQwZTQ0MQ&amp;amp;pli=1"&gt;http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx1Z3Jlc3VsdHN8Z3g6NmIzNjUzYTMxOWQwZTQ0MQ&amp;amp;pli=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx1Z3Jlc3VsdHN8Z3g6MmJlYmJjNGNiZjRmMTRiZA"&gt;http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx1Z3Jlc3VsdHN8Z3g6MmJlYmJjNGNiZjRmMTRiZA&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx1Z3Jlc3VsdHN8Z3g6YWYxNDhmYmRiMjNmODEx"&gt;http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx1Z3Jlc3VsdHN8Z3g6YWYxNDhmYmRiMjNmODEx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-3503883306972955059?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/3503883306972955059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/08/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/3503883306972955059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/3503883306972955059'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/08/blog-post.html' title='CS2203-OBJECT ORIENTED PROGRAMMING PREVIOUS YEAR QUESTION PAPER'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-4093392616788002407</id><published>2010-06-10T00:38:00.000-07:00</published><updated>2010-06-10T00:38:16.178-07:00</updated><title type='text'>Blogger Buzz: Blogger integrates with Amazon Associates</title><content type='html'>&lt;a href="http://buzz.blogger.com/2009/12/blogger-integrates-with-amazon.html"&gt;Blogger Buzz: Blogger integrates with Amazon Associates&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-4093392616788002407?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://buzz.blogger.com/2009/12/blogger-integrates-with-amazon.html' title='Blogger Buzz: Blogger integrates with Amazon Associates'/><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/4093392616788002407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/06/blogger-buzz-blogger-integrates-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/4093392616788002407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/4093392616788002407'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/06/blogger-buzz-blogger-integrates-with.html' title='Blogger Buzz: Blogger integrates with Amazon Associates'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-3643683185919743898</id><published>2010-02-28T20:26:00.000-08:00</published><updated>2010-02-28T20:29:15.830-08:00</updated><title type='text'>VISUAL PROGRAMMING QP</title><content type='html'>&lt;a&gt;http://www.ziddu.com/download/4350256/AUPVPND06.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4350258/AUPVPMJ07.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4350258/AUPVPMJ07.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4354087/mj07vp.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4354088/AUPvpam08.pdf.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-3643683185919743898?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/3643683185919743898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/visual-programming-qp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/3643683185919743898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/3643683185919743898'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/visual-programming-qp.html' title='VISUAL PROGRAMMING QP'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-5405632883523167394</id><published>2010-02-28T20:24:00.000-08:00</published><updated>2010-02-28T20:26:11.036-08:00</updated><title type='text'>CRYTOGRAPHY AND NETWORK SECURITY QP</title><content type='html'>&lt;a&gt;http://www.ziddu.com/download/4350577/AUPCNSIT1352MJ07.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4350578/AUPCNSND07.pdf.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-5405632883523167394?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/5405632883523167394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/crytography-and-network-security-qp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/5405632883523167394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/5405632883523167394'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/crytography-and-network-security-qp.html' title='CRYTOGRAPHY AND NETWORK SECURITY QP'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-2229018148670446378</id><published>2010-02-28T20:22:00.000-08:00</published><updated>2010-02-28T20:24:13.044-08:00</updated><title type='text'>E-COMMERCE QP</title><content type='html'>&lt;a&gt;http://www.ziddu.com/download/4416333/AUPeleccommerceam08.pdf.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-2229018148670446378?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/2229018148670446378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/e-commerce-qp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2229018148670446378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2229018148670446378'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/e-commerce-qp.html' title='E-COMMERCE QP'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-2298914446924024988</id><published>2010-02-28T20:21:00.000-08:00</published><updated>2010-02-28T20:22:36.297-08:00</updated><title type='text'>WEB TECHNOLOGY QUESTION PAPER</title><content type='html'>&lt;a&gt;http://www.ziddu.com/download/4416205/AUPwebtech.pdf.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-2298914446924024988?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/2298914446924024988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/web-technology-question-paper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2298914446924024988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2298914446924024988'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/web-technology-question-paper.html' title='WEB TECHNOLOGY QUESTION PAPER'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-2550253970459768295</id><published>2010-02-28T20:17:00.000-08:00</published><updated>2010-02-28T20:21:37.212-08:00</updated><title type='text'>NETWORK PROGRAMMING MANAGEMENT</title><content type='html'>&lt;a&gt;http://www.ziddu.com/download/4161268/IT1351mayjune2007.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4161270/IT1351aupaprilmay2008.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4224354/AUPnd07NPM.pdf.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-2550253970459768295?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/2550253970459768295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/network-programming-management.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2550253970459768295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2550253970459768295'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/network-programming-management.html' title='NETWORK PROGRAMMING MANAGEMENT'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-3258429262533352311</id><published>2010-02-28T20:00:00.000-08:00</published><updated>2010-02-28T20:12:53.671-08:00</updated><title type='text'>SOFTWARE ENGINEERING QUESTION PAPER</title><content type='html'>&lt;a&gt;href="http://www.ziddu.com/download/4367491/AUPSE1353ITMJ07.pdf.html&lt;/a&gt;&lt;br /&gt;&lt;a&gt; href="http://www.ziddu.com/download/4296856/send07.pdf.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a&gt; href="http://www.ziddu.com/download/4296855/softwareenggam08.pdf.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a&gt;http://www.ziddu.com/download/4367492/AUPITSEAM08.pdf.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-3258429262533352311?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/3258429262533352311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/software-engineering-question-paper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/3258429262533352311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/3258429262533352311'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2010/02/software-engineering-question-paper.html' title='SOFTWARE ENGINEERING QUESTION PAPER'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-2717846060587105904</id><published>2009-11-25T02:20:00.000-08:00</published><updated>2009-11-25T02:36:33.293-08:00</updated><title type='text'>VISUAL PROGRAMMING LAB MANUAL</title><content type='html'>Ex. No:  1            DISPLAY SIMPLE SDK WINDOW&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt; To write a program to display a simple SDK window.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Open Microsoft VC++.&lt;br /&gt; 2. Select new from the file menu and click the project tab.&lt;br /&gt; 3. Select win32 application.&lt;br /&gt; 4. In the project name field type the name of the project.&lt;br /&gt; 5. Create a new workspace and select win32 and click empty project and then        &lt;br /&gt;                Press finish button.&lt;br /&gt; 6. Select new from file menu, again click c++ source file&lt;br /&gt; 7. Type the program. &lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt; #include&lt;Windows.h&gt;&lt;br /&gt; LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);&lt;br /&gt; int WINAPI WinMain(HINSTANCE h,HINSTANCE hp,LPSTR lps,int in)&lt;br /&gt; {&lt;br /&gt; WNDCLASS wc;&lt;br /&gt; HWND hw;&lt;br /&gt; MSG ms;&lt;br /&gt; wc.style=CS_HREDRAW/CS_VREDRAW;&lt;br /&gt; wc.cbClsExtra=0;&lt;br /&gt; wc.cbWndExtra=0;&lt;br /&gt; wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);&lt;br /&gt; wc.hCursor=LoadCursor(NULL,IDC_ARROW);&lt;br /&gt; wc.hIcon=LoadIcon(NULL,IDI_APPLICATION);&lt;br /&gt; wc.hInstance=h;&lt;br /&gt; wc.lpfnWndProc=WndProc;&lt;br /&gt; wc.lpszClassName="Window";&lt;br /&gt; wc.lpszMenuName=NULL;&lt;br /&gt; RegisterClass(&amp;wc);&lt;br /&gt; hw=CreateWindow("Window","First Window",WS_OVERLAPPEDWINDOW,0,0,300,300,NULL,NULL,h,NULL);&lt;br /&gt; ShowWindow(hw,in);&lt;br /&gt; UpdateWindow(hw);&lt;br /&gt; while(GetMessage(&amp;ms,hw,0,0))&lt;br /&gt; {&lt;br /&gt;  TranslateMessage(&amp;ms);&lt;br /&gt;  DispatchMessage(&amp;ms);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; return ms.wParam;&lt;br /&gt;           }&lt;br /&gt;          LRESULT CALLBACK WndProc(HWND hw,UINT ms,WPARAM w,LPARAM l)&lt;br /&gt;         {&lt;br /&gt; return DefWindowProc(hw,ms,w,l);&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No: 2         KEYBOARD AND MOUSE  EVENTS&lt;br /&gt;    &lt;br /&gt;AIM:&lt;br /&gt; To write a program to display keyboard and mouse events.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Open Microsoft VC++.&lt;br /&gt; 2. Select new from the file menu and click the project tab.&lt;br /&gt; 3. Select win32 application.&lt;br /&gt; 4. In the project name field type the name of the project.&lt;br /&gt; 5. Create a new workspace and select win32 and click empty project and then        &lt;br /&gt;                Press finish button.&lt;br /&gt; 6. Select new from file menu, again click c++ source file&lt;br /&gt; 7. Type the program. &lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;#include&lt;windows.h&gt;&lt;br /&gt;LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);&lt;br /&gt;int WINAPI WinMain(HINSTANCE h,HINSTANCE hp,LPSTR lps,int in)&lt;br /&gt;{&lt;br /&gt; WNDCLASS wc;&lt;br /&gt; HWND hw;&lt;br /&gt; MSG ms;&lt;br /&gt; wc.style=CS_HREDRAW|CS_VREDRAW;&lt;br /&gt; wc.cbClsExtra=0;&lt;br /&gt; wc.cbWndExtra=0;&lt;br /&gt; wc.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);&lt;br /&gt; wc.hCursor=LoadCursor(NULL,IDC_ARROW);&lt;br /&gt; wc.hIcon=LoadIcon(NULL,IDI_APPLICATION);&lt;br /&gt; wc.hInstance=h;&lt;br /&gt; wc.lpfnWndProc=WndProc;&lt;br /&gt; wc.lpszClassName="Window";&lt;br /&gt; wc.lpszMenuName=NULL;&lt;br /&gt; RegisterClass(&amp;wc);&lt;br /&gt; hw=CreateWindow("window","MY FIRST WINDOW", WS_OVERLAPPEDWINDOW, &lt;br /&gt;          0,0,300,300,NULL,NULL,h,NULL);&lt;br /&gt; ShowWindow(hw,in);&lt;br /&gt; UpdateWindow(hw);&lt;br /&gt; while(GetMessage(&amp;ms,hw,0,0))&lt;br /&gt; {&lt;br /&gt;  TranslateMessage(&amp;ms);&lt;br /&gt;  DispatchMessage(&amp;ms);&lt;br /&gt; }&lt;br /&gt; return ms.wParam;&lt;br /&gt;}&lt;br /&gt;LRESULT CALLBACK WndProc(HWND hw,UINT ms,WPARAM w,LPARAM l)&lt;br /&gt;{&lt;br /&gt; HDC hdc;&lt;br /&gt; switch(ms)&lt;br /&gt; {&lt;br /&gt; case WM_LBUTTONDOWN:&lt;br /&gt;  hdc=GetDC(hw);&lt;br /&gt;  TextOut(hdc,10,10,TEXT("LEFT BUTTON PRESSED"),25);&lt;br /&gt;  ReleaseDC(hw,hdc);&lt;br /&gt;  return 0;&lt;br /&gt; case WM_LBUTTONUP:&lt;br /&gt;  hdc=GetDC(hw);&lt;br /&gt;  TextOut(hdc,10,40,TEXT("LEFT BUTTON RELEASED"),25);&lt;br /&gt;  ReleaseDC(hw,hdc);&lt;br /&gt;  return 0;&lt;br /&gt; case WM_RBUTTONDOWN:&lt;br /&gt;  hdc=GetDC(hw);&lt;br /&gt;  TextOut(hdc,10,70,TEXT("RIGHT BUTTON PRESSED"),25);&lt;br /&gt;  ReleaseDC(hw,hdc);&lt;br /&gt;  return 0;    &lt;br /&gt; case WM_RBUTTONUP:&lt;br /&gt;  hdc=GetDC(hw);&lt;br /&gt;  TextOut(hdc,10,100,TEXT("RIGHT BUTTON RELEASED"),25);&lt;br /&gt;  ReleaseDC(hw,hdc);&lt;br /&gt;  return 0;&lt;br /&gt; case WM_KEYDOWN:&lt;br /&gt;  switch(w)&lt;br /&gt;  {&lt;br /&gt;  case VK_END:&lt;br /&gt;   MessageBox(hw,"YOU PRESSED END KEY","ERROR",MB_OK);&lt;br /&gt;   break;&lt;br /&gt;  case VK_HOME:&lt;br /&gt;   MessageBox(hw,"YOU PRESSED HOME KEY","ERROR",MB_OK);&lt;br /&gt;   break;&lt;br /&gt;  case VK_INSERT:&lt;br /&gt;   MessageBox(hw,"YOU PRESSED INSERT KEY","ERROR",MB_OK);&lt;br /&gt;   break;&lt;br /&gt;  case VK_DELETE:&lt;br /&gt;MessageBox(hw,"YOU PRESSED DELETE KEY","ERROR",MB_OK);&lt;br /&gt;   break;&lt;br /&gt;   }&lt;br /&gt;   return 0;&lt;br /&gt;  case WM_DESTROY:&lt;br /&gt;  PostQuitMessage(0);&lt;br /&gt;  return 0;&lt;br /&gt;  }&lt;br /&gt;  return DefWindowProc(hw,ms,w,l);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Ex. No:3           BASIC DRAWING FUNCTIONS&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To write a program to display keyboard and mouse events.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Open Microsoft VC++.&lt;br /&gt; 2. Select new from the file menu and click the project tab.&lt;br /&gt; 3. Select win32 application.&lt;br /&gt; 4. In the project name field type the name of the project.&lt;br /&gt; 5. Create a new workspace and select win32 and click empty project and then        &lt;br /&gt;                Press finish button.&lt;br /&gt; 6. Select new from file menu, again click c++ source file&lt;br /&gt; 7. Type the program. &lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;#include&lt;windows.h&gt;&lt;br /&gt;LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);&lt;br /&gt;int WINAPI WinMain(HINSTANCE h,HINSTANCE hp,LPSTR lps,int in)&lt;br /&gt;{&lt;br /&gt; WNDCLASS wc;&lt;br /&gt; HWND hw;&lt;br /&gt; MSG ms;&lt;br /&gt; wc.style=CS_HREDRAW|CS_VREDRAW;&lt;br /&gt; wc.cbClsExtra=0;&lt;br /&gt; wc.cbWndExtra=0;&lt;br /&gt; wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);&lt;br /&gt; wc.hCursor=LoadCursor(NULL,IDC_ARROW);&lt;br /&gt; wc.hIcon=LoadIcon(NULL,IDI_APPLICATION);&lt;br /&gt; wc.hInstance=h;&lt;br /&gt; wc.lpfnWndProc=WndProc;&lt;br /&gt; wc.lpszClassName="Window";&lt;br /&gt; wc.lpszMenuName=NULL;&lt;br /&gt; RegisterClass(&amp;wc);&lt;br /&gt; hw=CreateWindow("window","FIRST WINDOW",  WS_OVERLAPPEDWINDOW, 0, 0, 300, 300,NULL,NULL,h,NULL);&lt;br /&gt; ShowWindow(hw,in);&lt;br /&gt; UpdateWindow(hw);&lt;br /&gt; while(GetMessage(&amp;ms,NULL,0,0))&lt;br /&gt; {&lt;br /&gt;  TranslateMessage(&amp;ms);&lt;br /&gt;  DispatchMessage(&amp;ms);&lt;br /&gt; }&lt;br /&gt; return ms.wParam;&lt;br /&gt; }&lt;br /&gt; LRESULT CALLBACK WndProc(HWND hw,UINT ms,WPARAM w,LPARAM l)&lt;br /&gt; {&lt;br /&gt; PAINTSTRUCT Ps;&lt;br /&gt; HDC hdc;&lt;br /&gt; static int x1,x2,y1,y2;&lt;br /&gt; switch(ms)&lt;br /&gt; {&lt;br /&gt; case WM_SIZE:&lt;br /&gt;  x1=LOWORD(l);&lt;br /&gt;  x2=HIWORD(l);&lt;br /&gt;  return 0;&lt;br /&gt; case WM_PAINT:&lt;br /&gt;  hdc=BeginPaint(hw,&amp;Ps);&lt;br /&gt;  Rectangle(hdc,7*x1/8,7*x2/8,7*x1/8,7*x2/8);&lt;br /&gt;  MoveToEx(hdc,0,0,NULL);&lt;br /&gt;  LineTo(hdc,x1,x2);&lt;br /&gt;  MoveToEx(hdc,0,x2,NULL);&lt;br /&gt;  LineTo(hdc,x1,0);&lt;br /&gt;  Ellipse(hdc,x1/8,x2/8,7*x1/8,7*x2/8);&lt;br /&gt;  RoundRect(hdc,x1/4,x2/4,3*x1/4,3*x2/4,x1/4,x2/4);&lt;br /&gt;  EndPaint(hw,&amp;Ps);&lt;br /&gt;  return 0;&lt;br /&gt; case WM_LBUTTONDOWN:&lt;br /&gt;  x1=LOWORD(l);&lt;br /&gt;  x2=HIWORD(l);&lt;br /&gt;  hdc=GetDC(hw);&lt;br /&gt;  TextOut(hdc,x1,x2,"KCG College of Technology",25);&lt;br /&gt;  ReleaseDC(hw,hdc);&lt;br /&gt;  break;&lt;br /&gt;  }&lt;br /&gt;  return DefWindowProc(hw,ms,w,l);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:4           DIALOG BASED APPLICATION USING SDK&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To write a program for a dialog base application using SDK.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Open Microsoft VC++.&lt;br /&gt; 2. Select new from the file menu and click the project tab.&lt;br /&gt; 3. Select win32 application.&lt;br /&gt; 4. In the project name field type the name of the project.&lt;br /&gt; 5. Create a new workspace and type the program.     &lt;br /&gt;           6. After typing, select resource from insert menu and select dialog box.&lt;br /&gt; 7. Construct the required box.&lt;br /&gt; 8. Choose the approximate class for application program.&lt;br /&gt; 9. Execute the program.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;#include&lt;windows.h&gt;&lt;br /&gt;#include"resource.h"&lt;br /&gt;LRESULT CALLBACK DlgProc(HWND hw,UINT ms,WPARAM w,LPARAM         &lt;br /&gt;l);&lt;br /&gt;INT APIENTRY WinMain(HINSTANCE h,HINSTANCE hp,LPSTR lps,int in)&lt;br /&gt;{&lt;br /&gt;DialogBox(h,MAKEINTRESOURCE(IDD_DIALOG1),NULL,(DLGPROC)DlgProc);&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;LRESULT CALLBACK DlgProc(HWND hw,UINT ms,WPARAM w,LPARAM l)&lt;br /&gt;{&lt;br /&gt; static int inc;&lt;br /&gt; static BOOL B;&lt;br /&gt; switch(ms)&lt;br /&gt; {&lt;br /&gt; case WM_CREATE:&lt;br /&gt;  inc=0;&lt;br /&gt;  break;&lt;br /&gt; case WM_CLOSE:&lt;br /&gt;  EndDialog(hw,0);&lt;br /&gt;  break;&lt;br /&gt; case WM_INITDIALOG:&lt;br /&gt;  SetDlgItemInt(hw,IDC_EDIT1,0,TRUE);&lt;br /&gt;  SendMessage(GetDlgItem(hw,IDC_RONE),BM_SETCHECK,TRUE,0);&lt;br /&gt;  inc=1;&lt;br /&gt;  break;&lt;br /&gt;  case WM_COMMAND:&lt;br /&gt;  switch(LOWORD(w))&lt;br /&gt;  {&lt;br /&gt;  case IDOK:&lt;br /&gt;   EndDialog(hw,TRUE);&lt;br /&gt;   break;&lt;br /&gt;  case IDCANCEL:&lt;br /&gt;   EndDialog(hw,FALSE);&lt;br /&gt;   break;&lt;br /&gt;  case IDC_ADD:&lt;br /&gt;   ms=GetDlgItemInt(hw,IDC_EDIT1,&amp;B,TRUE);&lt;br /&gt;   ms+=inc;&lt;br /&gt;   SetDlgItemInt(hw,IDC_EDIT1,ms,TRUE);&lt;br /&gt;   break;&lt;br /&gt;  &lt;br /&gt;  case IDC_SUB:&lt;br /&gt;   ms=GetDlgItemInt(hw,IDC_EDIT1,&amp;B,TRUE);&lt;br /&gt;   ms-=inc;&lt;br /&gt;   SetDlgItemInt(hw,IDC_EDIT1,ms,TRUE);&lt;br /&gt;   break;&lt;br /&gt;  &lt;br /&gt;  case IDC_RONE:&lt;br /&gt;   inc=1;&lt;br /&gt;   break;&lt;br /&gt;  case IDC_RTWO:&lt;br /&gt;   inc=2;&lt;br /&gt;   break;&lt;br /&gt;  case IDC_RFOUR:&lt;br /&gt;   inc=4;&lt;br /&gt;   break;&lt;br /&gt;  case IDC_REIGHT:&lt;br /&gt;   inc=8;&lt;br /&gt;   break;&lt;br /&gt;   }&lt;br /&gt;   break;&lt;br /&gt;  }&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:5           DIALOG BASED APPLICATION USING VC++&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To write a vc++  program to create a dialog based application.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Select MFC AppWizard(exe).&lt;br /&gt; 2. Select dialog based application.&lt;br /&gt; 3. Accept all default settings.&lt;br /&gt; 4. Design the calculator.&lt;br /&gt; 5. Use dialog editor assign as&lt;br /&gt;        &lt;br /&gt;            CONTROL         ID&lt;br /&gt;&lt;br /&gt;              EDIT1 IDC_FIRST&lt;br /&gt;              EDIT2 IDC_SECOND&lt;br /&gt;              EDIT3 IDC_RESULT&lt;br /&gt;              RADIO BUTTON IDC_OPERATION&lt;br /&gt;              COMMAND BUTTON IDC_COMPUTE&lt;br /&gt;&lt;br /&gt;     &lt;br /&gt;          6. Open dialog box properties.&lt;br /&gt;&lt;br /&gt;                  CLICKS-STYLE TAB&lt;br /&gt;    SELECT-SYSTEM MENU&lt;br /&gt;                   -MINIMIZE BOX&lt;br /&gt; 7. Use class wizard to add member variables and command handler (in view).&lt;br /&gt; 8. Add data member as follows:&lt;br /&gt;&lt;br /&gt;             CONTROL  ID MEMBERVARIABLE    TYPE&lt;br /&gt;             IDC_LEFT          m_dfirst   double&lt;br /&gt;             IDC_RIGHT          m_dsecond   double&lt;br /&gt;             IDC_RESULT          m_dresult   double&lt;br /&gt;             IDC_OPERATION  m_noperator    int&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;        9. Use class wizard to add the message handler for IDC_COMPUTE        &lt;br /&gt;           msg;accept Default function name oncomputer().&lt;br /&gt; 10. Write the following code for oncompute() function.&lt;br /&gt;&lt;br /&gt;      PROGRAM:&lt;br /&gt;&lt;br /&gt;          Write the following code for OnCompute function in the DialogBased        MenuDlg.cpp file&lt;br /&gt;&lt;br /&gt;void MENUDlg::OnCompute() &lt;br /&gt;{&lt;br /&gt;   UpdateData(TRUE);&lt;br /&gt;   switch(m_nOperation)&lt;br /&gt;   {&lt;br /&gt;   case 0:&lt;br /&gt;    m_dResult=m_dFirst+m_dSecond;&lt;br /&gt;    break;&lt;br /&gt;   case 1:&lt;br /&gt;    m_dResult=m_dFirst-m_dSecond;&lt;br /&gt;    break;&lt;br /&gt;   case 2:&lt;br /&gt;    m_dResult=m_dFirst*m_dSecond;&lt;br /&gt;    break;&lt;br /&gt;   case 3:&lt;br /&gt;    if(m_dSecond!=0.0)&lt;br /&gt;    {&lt;br /&gt;    m_dResult=m_dFirst/m_dSecond;&lt;br /&gt;    }&lt;br /&gt;   {&lt;br /&gt;    MessageBox("Divide by zero");&lt;br /&gt;    m_dResult=0.0;&lt;br /&gt;    }&lt;br /&gt;   break;&lt;br /&gt;   }&lt;br /&gt;   UpdateData(FALSE);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Ex. No:6          SDI AND MDI APPLICATION&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To develop a SDI and MDI application using application wizard.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;SDI APPLICATION:&lt;br /&gt;&lt;br /&gt; 1. Chose new from VC++ file menu.&lt;br /&gt; 2. Select the MFC Appwizard(exe) and give project name.&lt;br /&gt; 3. Select single document and deselect the document view architecture.&lt;br /&gt; 4. Accept all the default settings and press finish.&lt;br /&gt; 5. Now the application wizard creates a new SDI project.&lt;br /&gt; 6.Add the code in view.cpp file.&lt;br /&gt;        7. Edit the onpain() function in childview.cpp and the code is given.&lt;br /&gt; 8. Build and run the application. &lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;Single Document Interface&lt;br /&gt;&lt;br /&gt;              Open the file childView.cpp and edit the OnPaint() function&lt;br /&gt;&lt;br /&gt;void CChildView::OnPaint() &lt;br /&gt;{&lt;br /&gt; CPaintDC dc(this);&lt;br /&gt; dc.SelectStockObject(2);&lt;br /&gt; dc.Rectangle(10,10,100,100);&lt;br /&gt; dc.SelectStockObject(3);&lt;br /&gt; dc.Ellipse(100,100,200,200);&lt;br /&gt; dc.TextOut(250,250,"welcome to SDI application");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MDI APPLICATION:&lt;br /&gt;&lt;br /&gt; 1. Chose new from VC++ file menu.&lt;br /&gt; 2. Select the MFC Appwizard(exe) and give project name.&lt;br /&gt; 3. Select Multiple document and deselect the document view architecture.&lt;br /&gt; 4. Accept all the default settings.&lt;br /&gt; 5. Go to header file and click childview and add the given codes.&lt;br /&gt; 6. Edit childview.cpp in source file and add the given codes.&lt;br /&gt; 8. Build and run the application. &lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;Multiple Document Interface&lt;br /&gt;&lt;br /&gt;Add the private variables in CMDIView.h &lt;br /&gt;&lt;br /&gt;private:&lt;br /&gt;CRect m_rectEllipse;&lt;br /&gt;&lt;br /&gt;Add the initialization code in MDIView.cpp file constructor.&lt;br /&gt;&lt;br /&gt;Open the file ChildView.cpp and do the following changes in OnPaint()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:7           MENUS AND KEYBOARD ACCELERATOR&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To develop menu and keyboard accelerator using application wizard.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step1- Run vc++ application wizard(exe) to create an SDI application and select the document view architecture and deselect the printing and print preview by accepting all the default settings and click finish to design the project.&lt;br /&gt;&lt;br /&gt;Step 2 - Use the resource editor to edit the applications main menu&lt;br /&gt;&lt;br /&gt;Step 3 - Click on the resource view tab in the workspace window and edit the IDR_MAINFRAME menu resource to add a separator and a clear document item to edit menu.&lt;br /&gt;&lt;br /&gt;Step 4 - Fill the following command ids for the new menu items &lt;br /&gt;&lt;br /&gt;Menu  Caption  Command id&lt;br /&gt;&lt;br /&gt;Transfer &amp;GetData From Document \t F2 ID_TRANSFER_GETDATA&lt;br /&gt;&lt;br /&gt;Step 5 - Use the resource editor to add keyboard accelerator.&lt;br /&gt;&lt;br /&gt;Step 6 - Open the IDR_MAINFRAME accelerator table and then use the insert key to add the items.&lt;br /&gt;Accelerator ID Key&lt;br /&gt;ID_TRANSFER_GETDATA VK_F2&lt;br /&gt;&lt;br /&gt;Step 7 - Using class wizard select the CMenuViewClass in Class Name and then add the following member functions as shown below &lt;br /&gt;&lt;br /&gt;Object ID Message Member function&lt;br /&gt;ID_TRANSFER_GETDATA Command OnTransferGetData&lt;br /&gt;&lt;br /&gt;Step 8 - Using class wizard select the Cmenudoc class and the following member functions &lt;br /&gt;Object id   Message          Member fucntion&lt;br /&gt;ID_EDIT_CLEAR   COMMAND          OnEditClear&lt;br /&gt;ID_EDIT_CLEAR   UPDATE_COMMAND_UI OnUpdateEditClear&lt;br /&gt;&lt;br /&gt;Step 9 - Add a CString data member to the CMenuDoc class and edit the file MenuDoc.h&lt;br /&gt;&lt;br /&gt;Step 10 - Edit the document class member functions in MenuDoc.cpp&lt;br /&gt;&lt;br /&gt;Step 11 - Add a CRichEditCtrl datamember to the CMenuView class and edit the file MenuView.h &lt;br /&gt;&lt;br /&gt;Step 12 - Select the classwizard from menu view to map the WM_CREATE and WM_SIZE messages in the CMenuView class.&lt;br /&gt;&lt;br /&gt;Step13 - Edit OnCreate( ) Message handler&lt;br /&gt;&lt;br /&gt;Step 14 - Edit OnSize( ) Message handler&lt;br /&gt;&lt;br /&gt;Step 15 - Edit OnTransferGetdata( ) Message handler&lt;br /&gt;&lt;br /&gt;Step 16 - Build and test the program.&lt;br /&gt; &lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;Add a CString data member to the Cmenudoc class and edit the file MenuDoc.h&lt;br /&gt;&lt;br /&gt;Public:&lt;br /&gt;CString m_strWindowText;&lt;br /&gt;&lt;br /&gt;Edit the document class member functions in MenuDoc.cpp&lt;br /&gt;&lt;br /&gt;BOOL CMenuDoc::OnNewDocument()&lt;br /&gt;{&lt;br /&gt; m_strWindowText = "Copy Successful";&lt;br /&gt; if (!CDocument::OnNewDocument())&lt;br /&gt;  return FALSE;&lt;br /&gt; return TRUE;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Add a CrichEditCtrl datamember to the cmenuviewclass and edit the file MenuView.h &lt;br /&gt;&lt;br /&gt;public:&lt;br /&gt;CRichEditCtrl m_richEdit;&lt;br /&gt;&lt;br /&gt;Edit OnCreate( ) Message handler&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int CMenuView::OnCreate(LPCREATESTRUCT lpCreateStruct) &lt;br /&gt;{&lt;br /&gt; CRect rect(0,0,0,0);&lt;br /&gt; m_richEdit.Create(ES_AUTOVSCROLL|ES_MULTILINE|ES_WANTRETURN|WS_CHILD|WS_VISIBLE|WS_VSCROLL,rect,this,1);&lt;br /&gt; if (CView::OnCreate(lpCreateStruct) == -1)&lt;br /&gt;  return -1;&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnSize( ) Message handler&lt;br /&gt;&lt;br /&gt;void CMenuView::OnSize(UINT nType, int cx, int cy) &lt;br /&gt;{&lt;br /&gt; CView::OnSize(nType, cx, cy);&lt;br /&gt; CRect rect;&lt;br /&gt; GetClientRect(rect);&lt;br /&gt; m_richEdit.SetWindowPos(&amp;wndTop,0,0,rect.right - rect.left,rect.bottom - rect.top,SWP_SHOWWINDOW); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnTransferGetdata( ) Message handler&lt;br /&gt;&lt;br /&gt;void CMenuView::OnTransferGetdata() &lt;br /&gt;{&lt;br /&gt; CMenushriDoc* pDoc=GetDocument();&lt;br /&gt; m_richEdit.SetWindowText(pDoc-&gt;m_strWindowText);&lt;br /&gt; m_richEdit.SetModify(FALSE);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:8         TOOLBAR   &lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt; To prepare a tool bar to perform drawing functions.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Run vc++ application wizard(exe) to create an SDI application and select the  &lt;br /&gt;               Document view architecture and deselect the printing and print preview by            &lt;br /&gt;               Accepting all the default settings and click finish to design the project.&lt;br /&gt;&lt;br /&gt; 2. Use the resource editor to edit the applications main menu.&lt;br /&gt; 3. In resource view,double click on IDR_MAINFRAME under MENU and EDIT  &lt;br /&gt;                The ID_MAINFRAME menu resource to create a menu.&lt;br /&gt;                  &lt;br /&gt;                    MENU  CAPTION        COMMAND ID&lt;br /&gt;&lt;br /&gt;                    Draw Circle               ID_DRAW_CIRCLE&lt;br /&gt;                    Draw Pattern               ID_DRAW_PATTERN &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Use the resource editor to update the application’s toolbar.&lt;br /&gt; 5. Edit the IDR_MAINFRAME toolbar resource to create a bitmap.       &lt;br /&gt;            6. Assign the IDs as ID_DRAW_CIRCLE and ID_DRAW_PATTERN to the two  &lt;br /&gt;                 new buttons.&lt;br /&gt; 7. Use class wizard to add CToolBarsStatusView.h view class message handlers &lt;br /&gt;                for the following command and update command UI messages.&lt;br /&gt;           &lt;br /&gt; OBJECT ID  MESSAGE                 MEMBER FUNCTION&lt;br /&gt; ID_DRAW_CIRCLE  COMMAND                  OnDrawCircle&lt;br /&gt; ID_DRAW_CIRCLE  UPDATE_COMMAND_UI OnUpdateDrawCircle&lt;br /&gt; ID_DRAW_PATTERN  COMMAND                 OnDrawPattern&lt;br /&gt; ID_DRAW_PATTERN  UPDATED_COMMAND_UI OnUpdateDrawPattern&lt;br /&gt;&lt;br /&gt;8. Add three data members to the CToolBarStatusView Class and edit the file ToolBarStatusView.cpp.&lt;br /&gt;9. Build and test the application.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;Edit the ToolBarView.h file and &lt;br /&gt;             add the following  three data members&lt;br /&gt;private:&lt;br /&gt;        Crect m_rect;&lt;br /&gt;        BOOL m_bCircle;&lt;br /&gt;   BOOL m_Pattern;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Edit the ToolBarView.cpp file as follows.&lt;br /&gt;&lt;br /&gt;CToolView::CToolView():m_rect(0,0,150,150)&lt;br /&gt;{&lt;br /&gt; m_bCircle=TRUE;&lt;br /&gt; m_bPattern=FALSE;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnDraw() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;CToolDoc* pDoc = GetDocument();&lt;br /&gt; ASSERT_VALID(pDoc);&lt;br /&gt; CBrush brush(HS_BDIAGONAL,5L);&lt;br /&gt; if(m_bPattern)&lt;br /&gt; {&lt;br /&gt;  pDC-&gt;SelectObject(&amp;brush);&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;  pDC-&gt;SelectStockObject(WHITE_BRUSH);&lt;br /&gt; }&lt;br /&gt; if(m_bCircle)&lt;br /&gt; {&lt;br /&gt;  pDC-&gt;Ellipse(m_rect);&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;  pDC-&gt;Rectangle(m_rect);&lt;br /&gt; }&lt;br /&gt; pDC-&gt;SelectStockObject(WHITE_BRUSH);&lt;br /&gt;&lt;br /&gt; Edit OnDrawCircle() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;void CToolView::OnDrawCircle() &lt;br /&gt;{&lt;br /&gt; // TODO: Add your command handler code here&lt;br /&gt; m_bCircle=TRUE;&lt;br /&gt; m_rect+=CPoint(25,25);&lt;br /&gt; InvalidateRect(m_rect); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnUpdateDrawCircle() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;void CToolView::OnUpdateDrawCircle(CCmdUI* pCmdUI) &lt;br /&gt;{&lt;br /&gt; // TODO: Add your command update UI handler code here&lt;br /&gt; pCmdUI-&gt;Enable(!m_bCircle);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnDrawPattern() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;void CToolView::OnDrawPattern() &lt;br /&gt;{&lt;br /&gt; // TODO: Add your command handler code here&lt;br /&gt; m_bPattern ^=1; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnUpdateDrawPattern() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;void CToolView::OnUpdateDrawPattern(CCmdUI* pCmdUI) &lt;br /&gt;{&lt;br /&gt; // TODO: Add your command update UI handler code here&lt;br /&gt; pCmdUI-&gt;SetCheck(m_bPattern);&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnDrawSquare() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;void CToolView::OnDrawSquare() &lt;br /&gt;{&lt;br /&gt; // TODO: Add your command handler code here&lt;br /&gt; m_bCircle=FALSE;&lt;br /&gt; m_rect+=CPoint(25,25);&lt;br /&gt; InvalidateRect(m_rect);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Edit OnUpdateDrawSquare() Function in ToolBarView.cpp file&lt;br /&gt;&lt;br /&gt;void CToolView::OnUpdateDrawSquare(CCmdUI* pCmdUI) &lt;br /&gt;{&lt;br /&gt; // TODO: Add your command update UI handler code here&lt;br /&gt; pCmdUI-&gt;Enable(m_bCircle);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:9           DYNAMIC LINKING LIBRARY&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To create a server DLL with a function to display the string and to invoke that function from the client DLL.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Run  VC++ to create an MFC AppWizard(DLL) and type the project name.&lt;br /&gt;2. Select regular DLL using shared MFC DLL and click finish.&lt;br /&gt; 3. Goto class view and right click the MyDLL class and choose new class.&lt;br /&gt; 4. Select class type to be generic class and type the class name as CMyclass then &lt;br /&gt;                click ok.&lt;br /&gt; 5. Then add member function to the CMyClass by right clicking the CMyClass and type the function type as double and function name as calc(double a,double b) and acces type as public.&lt;br /&gt;           6. Add the function definition in MyClass.cpp.&lt;br /&gt; 7. To call the dll function from external application we have to prefix the function with the signature in myclass.h-declspec(dllexport).&lt;br /&gt; 8.complete the code without executing.&lt;br /&gt;&lt;br /&gt;DLL CLIENT(testdll.dsw):&lt;br /&gt; &lt;br /&gt;1. Run vc++ application wizard(exe) to develop a dialog based application and click finish to develop the project.&lt;br /&gt;2. The resource editor will be enabled on finishing the project and add now design the dialog box.&lt;br /&gt;3. Add the Id  for the edit control IDC_NAME and add the add the member variable as m_edit and type as CString by using the class wizard.&lt;br /&gt;4. Use the class wizard to map the message OnOk function for IDOk in the testDlldlg.cpp.&lt;br /&gt;5. Now edit the code no TestDlldlg.cpp.&lt;br /&gt;6. Now add the entire path of MyDll server reader file in TeatDlldlg.&lt;br /&gt;7. Create an object for CMyclass of Mydll in TestDlldlg.cpp as CMyclass.objmyclass.&lt;br /&gt;8. click the project menu and select the settings and click on the link tab type the entire path of Mydll lib file in the object/library modules text box as C:\MyDll\debug\MyDll.lib.&lt;br /&gt;9. Now copy the MyDll.dll in the MyDll debug folder in to the TestDll folder.&lt;br /&gt;10. Now build the project and execute by giving your name on the editbox.press ok.so that the message box will be displayed.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;Open the file MyClass.cpp and do the following changes in the function SayHello()&lt;br /&gt;&lt;br /&gt;CString CMyClass::SayHello(CString StrName)&lt;br /&gt;{&lt;br /&gt; return "Hello"+StrName;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;________________________________________________________________________&lt;br /&gt;&lt;br /&gt;Open the file MyClass.h and do the following changes&lt;br /&gt;&lt;br /&gt;public:&lt;br /&gt;&lt;br /&gt; _declspec(dllexport)CString SayHello(CString StrName);&lt;br /&gt; _declspec(dllexport)CMyClass();&lt;br /&gt;_declspec(dllexport)virtual ~CMyClass();&lt;br /&gt;&lt;br /&gt;_______________________________________________________________________&lt;br /&gt;&lt;br /&gt;Open the file testdlldlg.cpp and do the following changes in OnOk() function.&lt;br /&gt;&lt;br /&gt;void CTestDLLDlg::OnOK() &lt;br /&gt;{&lt;br /&gt; // TODO: Add extra validation here&lt;br /&gt; UpdateData(TRUE);&lt;br /&gt; CMyClass ObjMyClass;&lt;br /&gt; CString Str = ObjMyClass.SayHello(m_edit);&lt;br /&gt; AfxMessageBox(Str);&lt;br /&gt; CDialog::OnOK();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Open the file testDlldlg.h file and include the following statement.&lt;br /&gt;&lt;br /&gt;#include "c:\MyDLL\MyDLL\MyClass.h"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click the project menu and select the settings option and click the link tab and type the path as &lt;br /&gt;&lt;br /&gt;"C:\MyDLL\MyDLL\debug\MyDLL.lib"  in the object library text box.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now copy the mydll.dll in the MyDLL debug folder into the testdll folder.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:10           ACTIVEX CONTROLS&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To install ActiveX controls in our program and to perform some operation.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;1. Run vc++ application wizard(exe) to create an SDI application and select the document view architecture and deselect the printing and print preview by accepting all the default settings.&lt;br /&gt;2. Select the ActiveX controls in the AppWizard step3 dialog make sure ActiveX controls option is selected.&lt;br /&gt;3. Choose add to project from VC++ project menu,then chosse the components and conrrols.&lt;br /&gt; 4. Choose registered ActiveX controls and choose calendar control 8.0.&lt;br /&gt;5. Use the dialog editor to Create a new dialog resource .choose resource from insert menu and then choose dialog and create the dialog.  &lt;br /&gt;6. Change the ID of newly created dialog as IDD_ACTIVEXDIALOG Accept  default then click ok and CANCEL with ID’s IDOK and IDCANCEL.Select new from file menu, again click c++ source file.&lt;br /&gt;7. Modify the ID of all the controls in the dialog box.Add the ID of the controls in the  dialog.&lt;br /&gt;  &lt;br /&gt;CONTROL ID&lt;br /&gt;Calendar Control IDC_CALENDAR&lt;br /&gt;Select date Button IDC_SELECTDATE&lt;br /&gt;Edit Control IDC_DAY&lt;br /&gt;Edit control IDC_MONTH&lt;br /&gt;Edit Control IDC_YEAR&lt;br /&gt;Next Week Button IDC_NEXTWEEK&lt;br /&gt;&lt;br /&gt;8.Use class wizard to create the CActiveXDialog class for newly created Dialog box.Select the class wizard from view menu.&lt;br /&gt;9. Click on the class wizard message maps tab an dthen add the following message handler functions.&lt;br /&gt;   &lt;br /&gt;OBJECT  ID MESSAGE MEMBER FUNCTION&lt;br /&gt;CActiveXDialog WM_INIDIALOG OnInitDialog(virtual function)&lt;br /&gt;IDC_CALENDAR NextMonth(event) OnNewmonthCalendar&lt;br /&gt;IDC_SELECTDATE BN_CLICKED OnSelectDate&lt;br /&gt;IDC_NEXTWEEK BN_CLICKED Onnextweek&lt;br /&gt;IDOK BN_CLICKED OnOk(virtual function)&lt;br /&gt;&lt;br /&gt;10.Use class wizard to add datamembers to CActiveXDialog class.Add the data member in the CActiveDialog class by using class wizard.&lt;br /&gt;11.Edit the ActiveXDialog .h and add the  m_varvalue and m_back data members.&lt;br /&gt;12.Initialize the m_BackColor value in Active in ActiveDialog.h.&lt;br /&gt;13.Edit the message handling functions OnInitDialog,OnNewMonthCalendar,OnSelectDate,OnNextWeek and OnOk in ActiveDialog.cpp.&lt;br /&gt;14.Add the message handler for the view class for displaying the dialog box on the view window when the user presses the left mouse button.Use class wizard to map the WM_LBUTTONDOWN message and then edit the handler function.&lt;br /&gt;15.Edit the virtual function OnDraw function and include the header file #include”ActiveXDialog.h” in the file&lt;br /&gt;AcitveXcontorlsView.cpp.&lt;br /&gt;16.Build and run the project.&lt;br /&gt; &lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;Edit the ActiveXDialog.h file and add the data members &lt;br /&gt;&lt;br /&gt;// Dialog Data&lt;br /&gt;//{{AFX_DATA(CactiveXDialog)&lt;br /&gt; enum { IDD = IDD_ACTIVEXDIALOG };&lt;br /&gt; Ccalendar m_calendar;&lt;br /&gt; short  m_sDay;&lt;br /&gt; short  m_sMonth;&lt;br /&gt; short  m_sYear;&lt;br /&gt;//}}AFX_DATA&lt;br /&gt;COleVariant m_varValue;&lt;br /&gt;Unsigned long m_BackColor;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Initialize the m_BackColor value in ActiveXDialog.cpp  file as,&lt;br /&gt;CActiveXDialog::CActiveXDialog(CWnd* pParent /*=NULL*/)&lt;br /&gt;:Cdialog(CActiveXDialog::IDD,pParent)&lt;br /&gt;{&lt;br /&gt; //{{AFX_DATA_INIT(CActiveXDialog)&lt;br /&gt;  m_sDay = 0;&lt;br /&gt;  m_sMonth = 0;&lt;br /&gt;  m_sYear = 0;&lt;br /&gt; //}}AFX_DATA_INIT&lt;br /&gt; m_BackColor = 0x8000000F;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Open the file CActiveXDialog.cpp file and do the following changes on OnInitDialog, OnNewMonthCalendar1, OnSelectDate, OnNextWeek, and OnOk as follows,&lt;br /&gt;&lt;br /&gt;BOOL CActiveXDialog::OnInitDialog()&lt;br /&gt;{&lt;br /&gt; CDialog::OnInitDialog();&lt;br /&gt; m_calendar.SetValue(m_varValue);&lt;br /&gt; return TRUE;&lt;br /&gt;}&lt;br /&gt;void CActiveXDialog::OnNewMonthCalendar1()&lt;br /&gt;{&lt;br /&gt; AfxMessageBox(“EVENT:ActiveXDialog::OnNewMonthCalendar1”);&lt;br /&gt;}&lt;br /&gt;void CActiveXDialog::OnSelectDate()&lt;br /&gt;{&lt;br /&gt; CDataExchange dx(this,TRUE);&lt;br /&gt; DDX_Text(&amp;dx, IDC_DAY,m_sDay);&lt;br /&gt; DDX_Text(&amp;dx, IDC_month,m_sMonth);&lt;br /&gt; DDX_Text(&amp;dx, IDC_YEAR,m_sYear);&lt;br /&gt; m_calendar.SetDay(m_sDay);&lt;br /&gt; m_calendar.SetMonth(m_sMonth);&lt;br /&gt; m_calendar.SetYear(m_sYear);&lt;br /&gt;}&lt;br /&gt;void CActiveXDialog::OnNextWeek()&lt;br /&gt;{&lt;br /&gt; m_calendar.NextWeek();&lt;br /&gt;}&lt;br /&gt;void CActiveXDialog::OnOk()&lt;br /&gt;{&lt;br /&gt; CDialog::OnOk();&lt;br /&gt; m_varValue = m_calendar.GetValue();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Use class wizard to map WM_LBUTTONDOWN message and then edit the handler function OnLButtonDown  which is as follows.&lt;br /&gt;void CActiveXControlsView::OnLButtonDown(UINT nFlags, CPoint point)&lt;br /&gt;{&lt;br /&gt; CActiveXDialog dlg;&lt;br /&gt; dlg.m_BackColor = RGB(255, 251, 240);&lt;br /&gt; COleDateTime today = COleDateTime::GetCurrentTime();&lt;br /&gt; dlg.m_varValue =OleDateTime(today.GetYear(),today.GetMonth(), today.GetDay(), 0, 0, 0);&lt;br /&gt; if(dlg.DoModal() == IDOk)&lt;br /&gt; {&lt;br /&gt;  COleDateTime date(dlg.m_varValue);&lt;br /&gt;  AfxMessageBox(date.Format(“%B %d, %Y”);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Open the ActiveXDialog.cpp file to include the following statements.&lt;br /&gt;#include “ActiveXDialog.h”&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Open ActiveXControlView.cpp and do thye following changes in OnDraw function.&lt;br /&gt;void CActiveXControls View::OnDraw(CDC* pDC)&lt;br /&gt;{&lt;br /&gt; pDC-&gt;TextOut(0,0,”Press the left mouse here”);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No:11           DATABASE ACCESS THROUGH ODBC&lt;br /&gt;   &lt;br /&gt;AIM:&lt;br /&gt; To create a database using MS Access the database from VC++ through ODBC database connectivity.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Create the database namely purchase with the fields namely book name and cost using MS Access.&lt;br /&gt; 2. Run VC++ application wizard to create an SDI application.Accept all the default settings and select MFC AppWizard(exe) and type the project name and select the document view architecture.&lt;br /&gt; 3. In step of MFC Appwizard.Select database view with support and click the database button.&lt;br /&gt; 4. Then select ODBC and select MS Access database and click ok.&lt;br /&gt; 5. Then select the database from the directory where we have created the database and click ok.select the table.     &lt;br /&gt;            6. Now click OK  and then accept all the default settings of the project and click finish and the files developed.Select new from file menu, again click c++ source file&lt;br /&gt; 7. Once you click finish a dialog box will appear and design the dialog box as shown.&lt;br /&gt; 8.Then create member variables for two variables name and cost.&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;CONTROL ID TYPE MEMBER&lt;br /&gt;IDC_EDIT1 CString m_text1&lt;br /&gt;IDC_EDIT CString M_text2&lt;br /&gt;&lt;br /&gt; 9. Then create message handler function for the button and edit the code.&lt;br /&gt; 10. Build and run the program.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;                 &lt;br /&gt;                  void CDatabaseView::OnButton1() &lt;br /&gt;{&lt;br /&gt;m_text1=m_pSet-&gt;m_StudentName;&lt;br /&gt;UpdateData(false);&lt;br /&gt;m_text2=m_pSet-&gt;m_RollNo;&lt;br /&gt;UpdateData(false);&lt;br /&gt;m_text4=m_pSet-&gt;m_Fee;&lt;br /&gt;UpdateData(false);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Ex. No:12           IMPLEMENTATION OF COM&lt;br /&gt;&lt;br /&gt;  AIM:&lt;br /&gt;&lt;br /&gt;      To implement COM and to check its functionality using visual basic.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt; 1. Start VC++.&lt;br /&gt; 2. Select new from file menu and select Allcom AppWizard.accept all the default &lt;br /&gt;               Settings.Clicking Dll and then finish button.&lt;br /&gt; 3. Click class file, right click and then select new ATL object.&lt;br /&gt; 4. Then click simple object in ATL object wizard and click next.&lt;br /&gt; 5. Fill the ATL object wizard attributes and click ok.&lt;br /&gt; 6. Right click the project class workspace to add a method.&lt;br /&gt; 7. Fill the method name ‘add’ and attributes as [in]long a,[in]long &lt;br /&gt;           b,[out]long c and click ok.&lt;br /&gt; 8. Right click and write the following code for the function.&lt;br /&gt; 9. Save the project, compile the code without executing and the com is      &lt;br /&gt;            new Created successfully.&lt;br /&gt; 10. Now test COM using Visual Basic and open VB6.0 and create a new standard &lt;br /&gt;            exe project.&lt;br /&gt; 11. Then create a new form and design a button.&lt;br /&gt; 12. Select references on the project menu. Browse and select COM project.&lt;br /&gt; 13. Open the COM project and select library file and activate COM type &lt;br /&gt;             library.&lt;br /&gt; 14. Write the following code for the command button.&lt;br /&gt; 15. Run the project.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;   STDMETHODIMP CTEST_ATL::add(long a, long b, long *c)&lt;br /&gt;            {&lt;br /&gt;*c=a+b;&lt;br /&gt;  return S_OK;&lt;br /&gt;              }&lt;br /&gt;    private sub Command1_Click()&lt;br /&gt;    Dim a As KCG_ATL1Lib.TEST_ATL&lt;br /&gt;    Set a = New TEST_ATL&lt;br /&gt;    Dim x As Long&lt;br /&gt;    a.Add 20, 30, x&lt;br /&gt;    MsgBox (“20+30”= &amp;x)&lt;br /&gt;    End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-2717846060587105904?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/2717846060587105904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/11/visual-programming-lab-manual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2717846060587105904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2717846060587105904'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/11/visual-programming-lab-manual.html' title='VISUAL PROGRAMMING LAB MANUAL'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-2538929713874267932</id><published>2009-08-18T22:11:00.000-07:00</published><updated>2009-08-18T23:32:48.437-07:00</updated><title type='text'>COMPONENT BASED TECHNOLOGY (IT-1401)</title><content type='html'>&lt;span style="font-weight:bold;"&gt;UNIT-I &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TWO MARK QUESTIONS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt;1. Define software component. &lt;/span&gt;&lt;br /&gt;A software component is a system element offering a predefined serviceable to communicate with other components.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Specify the characteristics of object?&lt;/span&gt;&lt;br /&gt; Object is a unit of instantiation, it has a unique identity. It may have state and this can be externally observable.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. What is prototype object? &lt;/span&gt;&lt;br /&gt; The object may be implicitly available in the form of an object that already exists. Such a preexisting object is called a prototype object.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. What is factory object and methods? &lt;/span&gt;&lt;br /&gt;Factory objects: It can be an object of its own. Factory methods: Methods on objects that return freshly created other objects are another variation.  &lt;br /&gt;COMPONENT BASED TECHNOLOGY (IT-1401) &lt;br /&gt; Modules do not have a concept of instantiation whereas classes do. Modules can be used and always and have been used to package multiple entities.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. Specify the non-technical aspects that are need in interfaces&lt;/span&gt;&lt;br /&gt;A component have multiple interfaces, each representing a service that the component offers. &lt;br /&gt;Redundant introductions of similar interfaces need to be minimized.&lt;br /&gt;Requires a small number of widely accepted unique naming schemes.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. Define callback. &lt;/span&gt;&lt;br /&gt; Callbacks are a common feature in procedural libraries that has to handle asynchronous events.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. What is component architecture? &lt;/span&gt;&lt;br /&gt; Component architecture is the pivotal basis of any large-scale software technology and is of utmost importance for component based systems.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. Specify some cornerstones of a component architecture. &lt;/span&gt;&lt;br /&gt; Interaction between components and their environment is regulated.  &lt;br /&gt;The roles of components are defined. &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. Specify the roles of an architecture. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Architecture needs to create simultaneously the basis for independence and cooperation. &lt;br /&gt; An Architecture defines overall invariants. &lt;br /&gt;It needs to be based on the principal considerations of overall functionality &lt;br /&gt;It prescribes proper frameworks for all involved mechanisms.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. What is the use of conceptual level? &lt;/span&gt;&lt;br /&gt;A component framework is a dedicated and focused  architecture usually around a few key mechanisms and a fixed set of policies for mechanisms at the component level.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. Define component framework. &lt;/span&gt;&lt;br /&gt; A component framework is a dedicated and focused architecture usually around a few key mechanisms and a fixed set of policies for mechanisms at the component level.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. What is a resource? &lt;/span&gt;&lt;br /&gt; A resource is a frozen collection of typed items.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. Define middleware. &lt;/span&gt;&lt;br /&gt; Middleware is a name for the set of software that sits between various operating systems and a higher distributed programming platform.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. Categorize the middleware. &lt;/span&gt;&lt;br /&gt;Message oriented middleware(MOM). &lt;br /&gt;Object oriented middleware(OOM).  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. What is generative programming? &lt;/span&gt;&lt;br /&gt; Generative programming aims at transformations approach to the construction of software.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. Specify the areas used in generative approaches. &lt;/span&gt;&lt;br /&gt; Used to produce individual components. &lt;br /&gt; &lt;br /&gt;Used to enhance composed systems.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;18. Specify the criteria that is used to fulfill the software definition. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Multiple use &lt;br /&gt;Non-context specific. &lt;br /&gt;Composable with other component.&lt;br /&gt; Encapsulated.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;19. Specify the fundamental properties of component technology. &lt;/span&gt;&lt;br /&gt;If a component fails to function it must not violate system-wide rules. &lt;br /&gt;Software development processes that do not depending on testing &lt;br /&gt;Performance of a component system is affected in non-trivial ways by the actual composition&lt;br /&gt;Tool interfaces are standardized.  &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;20. What is enhance composed systems and give example. &lt;/span&gt;&lt;br /&gt; They need to be positioned in such a way that they do not interfere with the unit of deployment characteristic of components. Eg:JIT technique. &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;BIG QUESTIONS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt; 1.Explain the fundamental properties of component technology. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Technological feasibility &lt;br /&gt; &lt;br /&gt;Technical problems &lt;br /&gt;&lt;br /&gt;Integration and testing &lt;br /&gt;&lt;br /&gt;Potential of software components &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Explain briefly about component architecture. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Role of architecture &lt;br /&gt;&lt;br /&gt;A Tiered component architecture  &lt;br /&gt;&lt;br /&gt;Components and middleware &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 3. Explain briefly about callbacks with example&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Definition &lt;br /&gt; &lt;br /&gt;Diagram &lt;br /&gt; &lt;br /&gt;Explanation &lt;br /&gt; &lt;br /&gt;Eg: Directory service  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Write short notes on modules, interfaces&lt;/span&gt;. &lt;br /&gt;&lt;br /&gt;Modules &lt;br /&gt; &lt;br /&gt;Interfaces &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Write short notes on objects and software components.&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Software components.&lt;br /&gt; &lt;br /&gt;Objects   &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;UNIT II  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TWO MARK QUESTIONS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt; 1. Define Java Bean. &lt;/span&gt;&lt;br /&gt;Java Bean is a software component  that has been designed to be reusable in a variety of different environment.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. What are the aspects of the bean model? &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Events  &lt;br /&gt; &lt;br /&gt;Properties  &lt;br /&gt;&lt;br /&gt;Introspection  &lt;br /&gt;&lt;br /&gt;Customization &lt;br /&gt;&lt;br /&gt;Persistence &lt;br /&gt; &lt;span style="font-weight:bold;"&gt;3. Give any 4 advantages of java bean? &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;A bean contain all the benefits of java “Write once,Run anywhere” paradigm &lt;br /&gt;&lt;br /&gt;The configuration settings of a bean can be saved in persistence storage and restored at later time. &lt;br /&gt; &lt;br /&gt;A bean may register to receive  events from other objects. &lt;br /&gt; &lt;br /&gt;Auxillary software provided to help a person configure a bean.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. What is the use of application builder tool? &lt;/span&gt;&lt;br /&gt;When working with java beans, most developers use an application builder tool, a utility that enables you to configure a ser of beans , connect them together and produce a working application.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. What are the major capabilities of application builder tool? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A pallete is provided that lists all of the beans, as additional beans  are developed or purchased , they can be added to the palette. &lt;br /&gt;&lt;br /&gt;A worksheet is displayed that allows the designer to layout  beans in  a graphical user interface. A designer may drag and drop a bean from the palette to this worksheet.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. What are Events? &lt;/span&gt;&lt;br /&gt;Bean instances  are potential sources or listener of specific types of events. An assembly tool can then connect listeners to sources.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. What is multicast and unicast semantics? &lt;/span&gt;&lt;br /&gt;Unicast semantics –  At a time, one listener is active. Multicast semantics  - All listeners are active at anytime.    &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. Define property? &lt;/span&gt;&lt;br /&gt;Property is a discrete named attribute of a bean that can affect its appearance or behaviour.   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9.What are the different properties that a bean can define? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Simple &lt;br /&gt;&lt;br /&gt;Indexed &lt;br /&gt; &lt;br /&gt;Bound &lt;br /&gt; &lt;br /&gt;Constrained &lt;br /&gt;                            &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. What is introspection and reflection? &lt;/span&gt;&lt;br /&gt; Introspection is used to find out events mthods, properties, standard interface and classes.  Reflection is a type of event listener. It is used to analyze software components or software.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. Write syntax to create jar and manifest file. &lt;/span&gt;&lt;br /&gt;For jar file:   Jar cf XYZ.jar  *. class *.gif For manifest file:   Jar cfm XYZ.jar YXZ.mf *.class *.gif.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. What is the use of manifest file? &lt;/span&gt;&lt;br /&gt; Developers much provide a manifest file to indicate which of the components in a JAR file are java beans.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. Advantageof reflection. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;It allows a package (java.lang.reflect) store in class.&lt;br /&gt;It is used to get information at runtime.  &lt;br /&gt;17. Which method is used for serializes and deserializes an object. &lt;br /&gt; The method Externalizable is used for serializes and deserializes an object.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;18. Specify the methods that are used in Externalizable interface.&lt;/span&gt; &lt;br /&gt; Void read External (object input I stream)  Throws IOException, classNotFoundException.  Void write external(object output out stream)throws to Exception.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;19. What is EJB? &lt;/span&gt;&lt;br /&gt; EJB is a comprehensive technology that provides the infrastructure for building enterprise level server side distributed java components.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;20. Differentiatebetween java bean and EJB. &lt;/span&gt;&lt;br /&gt;Java bean approach to composition is connection-oriented programming where as EJB to composition is conventional model of object oriented composition.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;21. Specify the varieties of bean. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Session &lt;br /&gt;&lt;br /&gt;Stateful &lt;br /&gt;Stateless &lt;br /&gt;Entity &lt;br /&gt;Message driven  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;22. What are the steps to create a simple bean? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create subdirectory &lt;br /&gt;&lt;br /&gt;Compile the source code &lt;br /&gt;&lt;br /&gt;Create the manifest file. &lt;br /&gt;&lt;br /&gt;Create jar file &lt;br /&gt;&lt;br /&gt;Run   &lt;span style="font-weight:bold;"&gt;&lt;br /&gt;     BIG QUESTIONS:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  1.Explain the thread lifecycle. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;New born state &lt;br /&gt;&lt;br /&gt;Running state &lt;br /&gt;&lt;br /&gt;Runnable state &lt;br /&gt;&lt;br /&gt;Dead state  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Explain the different properties that a bean can define. &lt;/span&gt;&lt;br /&gt;Simple &lt;br /&gt;Indexed &lt;br /&gt;Bound &lt;br /&gt;&lt;br /&gt;Constrained  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Explain object serialization in detail. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Serializable &lt;br /&gt;&lt;br /&gt;Externalizable &lt;br /&gt;&lt;br /&gt;Object input/stream &lt;br /&gt;&lt;br /&gt;Object output/stream &lt;br /&gt; &lt;br /&gt;Example  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. What is EJB? Explain about EJB architecture. &lt;/span&gt;&lt;br /&gt;Definition&lt;br /&gt;Diagram &lt;br /&gt;Varieties of bean &lt;br /&gt;Entity relationship  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Write a program to create a color bean by using event handling. &lt;br /&gt; Program  &lt;/span&gt;&lt;br /&gt;6. Write briefly about distributed object models and RMI. &lt;br /&gt;Definition &lt;br /&gt;Explanation &lt;br /&gt;Example    &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;UNIT III &lt;br /&gt;&lt;br /&gt; TWO MARK QUESTIONS:&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Why we need CORBA? &lt;/span&gt;&lt;br /&gt; It is used to solve one fundamental problem-“how can distributed object oriented systems implemented in different languages and running on different platforms?”  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. What are the essential parts of CORBA? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Invocation Interfaces &lt;br /&gt;&lt;br /&gt;Object Request Broker &lt;br /&gt; &lt;br /&gt;Object Adapters  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. What are the requirements need to work invocation interfaces and object adapters?&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;All object interfaces need to be described in a common language. &lt;br /&gt; &lt;br /&gt;All languages used must have bindings to the common language.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. What is the use ORB? &lt;/span&gt;&lt;br /&gt; An ORB is capable of loading and starting an object servant which receiving invocation requests for an object of that servant.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. What is responsible of object adapter?  &lt;/span&gt;&lt;br /&gt; An object adapter is responsible for which servant serves telling an ORB which new object.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. Differentiate stubs and skeletons. &lt;/span&gt;&lt;br /&gt;Sl.no&lt;br /&gt; &lt;br /&gt;Stubs Skeletons &lt;br /&gt;1.  2. &lt;br /&gt;Called client side proxy objects.  It forwards all invocations through the &lt;br /&gt; &lt;br /&gt;ORB to the real target object. &lt;br /&gt;Called server side stubs  It directly invokes the target method.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. Specify the features of SOM. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Meta programming &lt;br /&gt;&lt;br /&gt;Binary compatibility  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. Specify any four services supporting enterprise distributed computing. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Naming and trader service. &lt;br /&gt;Event and notification service &lt;br /&gt;Object transaction service &lt;br /&gt;Security service   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. Specify any four services supporting architecture using fine-grained objects? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Concurrency control service  &lt;br /&gt;Licensing service &lt;br /&gt;Lifecycle service &lt;br /&gt;Relationship service &lt;br /&gt;Persistent state service  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. What is naming service? &lt;/span&gt;&lt;br /&gt;It allows arbitrary names to be associated with an object. Names are unique within a naming context and naming contexts from a hierarchy.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. What is push model? &lt;/span&gt;&lt;br /&gt;In push model the event supplier calls a push method on the event channel, which reacts by calling the push method of all registered consumers.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. What is pull model? &lt;/span&gt;&lt;br /&gt;In pull model the consumers call the pull method of the event channel, effectively pooling the channel for events.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. What is the life cycle service? &lt;/span&gt;&lt;br /&gt;This service supports creation, copying, moving and deletion of objects and related group of objects.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. What are the features of CCM components?&lt;/span&gt;&lt;br /&gt;Ports that are classified into facets, receptacles, event sources and event sinks. &lt;br /&gt;Primary keys, which are values that instances of entity components &lt;br /&gt;Attributes and configuration  &lt;br /&gt;Home interfaces  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. What is facet? &lt;/span&gt;&lt;br /&gt;A special of CCM components is the equivalent interface, which enables navigation between the different facts of a CCM component.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. What is Receptacles? &lt;/span&gt;&lt;br /&gt;Receptacles provide connect and disconnect operations and internally correspond to object references top other objects of appropriate type.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. What is home interface? &lt;/span&gt;&lt;br /&gt;The home interface is provided by a component, not its instances, and supports the creation of new instances.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;18. What is the use of primary keys?&lt;/span&gt; &lt;br /&gt;Primary keys which are values that instances of entity components provide to allow client identification of the instances.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;19. What is attribute and configuration? &lt;/span&gt;&lt;br /&gt;Configuration interfaces  support initial configuration of new component instances. They are described as IDL attributes with set and get operations.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;20. What is MDA? &lt;/span&gt;&lt;br /&gt;The OMG architecture board introduced a new approach called model driven architecture for all forthcoming OMG specifications.      &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;BIG QUESTIONS:&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span style="font-weight:bold;"&gt;&lt;br /&gt;1. Explain briefly about the CORBA services &lt;/span&gt;&lt;br /&gt;Services supporting enterprise distributed computing. &lt;br /&gt;Services supporting architecture using fine-grained objects.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Explain the CORBA component model. &lt;/span&gt;&lt;br /&gt;Portable object adapter &lt;br /&gt;CCM components &lt;br /&gt;CCM containers  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Write short notes on SOM and MDA.&lt;/span&gt;&lt;br /&gt;SOM &lt;br /&gt;&lt;br /&gt;Meta programming &lt;br /&gt;Binary compatibility &lt;br /&gt;MDA  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Explain briefly about IDL interface. &lt;/span&gt;&lt;br /&gt;IDL interface &lt;br /&gt;Modules &lt;br /&gt;Data types  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Explain briefly about CCM components. &lt;/span&gt;&lt;br /&gt;Features &lt;br /&gt;Diagram  &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;UNIT-IV &lt;br /&gt;&lt;br /&gt;TWO MARK QUESTIONS:&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Define COM? &lt;/span&gt;&lt;br /&gt;COM is binary standard, it specifies nothing about how a particular programming language may be bound to it. COM does not specify what a component or an object is.  &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Name and two interfaces that is used in COM? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Query interface &lt;br /&gt;&lt;br /&gt;Iunknown interface  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. What is the use of Query interface method? &lt;/span&gt;&lt;br /&gt;  Query interface takes the name of an interface, checks if the current COM object supports it, and if so returns the corresponding interface reference.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. What is the use of Iunknown interface? &lt;/span&gt;&lt;br /&gt;  The identity of the Iunknown interface can serve to identify the entire COM object with out requiring any specific functionality.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. What are the methods supported by Iunknown interface? &lt;/span&gt;&lt;br /&gt;Query Interface &lt;br /&gt;AddRef &lt;br /&gt;AddRelease  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7.Specify the use of HRESULT type. &lt;/span&gt;&lt;br /&gt; The type HRESULT is used by most COM interface methods to indicate success or failure to call. It may also indicate network failure.  &lt;br /&gt;Interface node       OP1            OP2       OPn  Component&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. What is AddRef and Release? &lt;/span&gt;&lt;br /&gt; On creation of an object or node, the reference count  is initialized to 1 before handling out a first reference. Each time a copy of a reference is created  the count must be incremented (AddRef). Each time a reference is given up, the count must be decremented (Release).  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. Specify the two forms of object reuse. &lt;/span&gt;&lt;br /&gt;Containment &lt;br /&gt;Aggregation &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 10. What is containment? &lt;/span&gt;&lt;br /&gt;Containment is a form of object reuse. It is just the simple object composition technique. One object holds an exclusive reference to another. Here the call is forwarded and handled by another object.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. What is aggregation? &lt;/span&gt;&lt;br /&gt;Aggregation is a form of object reuse. Here instead of forwarding requests, an inner object’s interface reference could be handed out directly to another object’s client.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. When we use Aggregation? &lt;/span&gt;&lt;br /&gt;Aggregation is only useful where the outer object does not wish to intercept calls to perform some filtering or additional processing.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. Compare COM and DCOM. &lt;/span&gt;&lt;br /&gt;DCOM transparently expands the concepts and services of COM. DCOM builds on the client-side proxy objects and the server side stub objects already present in COM.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. What is outgoing interface? &lt;/span&gt;&lt;br /&gt;An outgoing interface is an interface that a COM object would use if it were “connected” to an object that provides this interface.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. Name the interface that is declared within outgoing interface.&lt;/span&gt; &lt;br /&gt;IConnectionPointContainer &lt;br /&gt;IConectionPoint     &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. Specify the use of IConnectionPointContainer&lt;/span&gt;&lt;br /&gt;?   Using IConnectionPointContainer ,the various connection point objects of a connectable object can be found and enumerated.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. Specify the use ofIConnectionPoint? &lt;/span&gt;&lt;br /&gt;IConnectionPoint can be used to establish, enumerate and tear down connections.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;18. How the connectable objects implement change propagation? &lt;/span&gt;&lt;br /&gt;Connectable objects provide a uniform way to implement change propagation. As outgoing and incoming interfaces are matched, the propagation can take the form of regular method invocations instead of requiring the creation of event objects.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;19. Specify the policies that are used to determine the shared assemblies in GAC. &lt;/span&gt;&lt;br /&gt;Publisher policy &lt;br /&gt;Application policy&lt;br /&gt;Machine policy  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;20. What is Appdomains? &lt;/span&gt;&lt;br /&gt;The CLR execution engine partitions a process into one or more AppDomains. An AppDomain isolates sets of object from all objects in other appdomain, but is more light weight and cheaper than operating systems.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;21. What are contexts? &lt;/span&gt;&lt;br /&gt;A context is a partition of an appdomain the member objects, objects of which share the propreties of their contexts.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;22. What is reflection? &lt;/span&gt;&lt;br /&gt;The CLI reflection support grants full access to the type structure of loaded assemblies including all  attributes defined on these types.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;23. What is remoting? &lt;/span&gt;&lt;br /&gt;The CLI remoting support combines context and reflection infrastructure with flexible  support for proxies, channels and messages provide building  blocks for a wide variety of communication styles and patterns.   &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;BIG QUESTIONS:&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; &lt;br /&gt;1. Explain the COM services in detail. &lt;/span&gt;&lt;br /&gt;Dispatch interfaces &lt;br /&gt;Connectable objects    &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Explain in detail the compound document and OLE. &lt;/span&gt;&lt;br /&gt;OLE containers and services&lt;br /&gt;Controls-ActiveXcontrols   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Explain briefly about the .Net components. &lt;/span&gt;&lt;br /&gt;Assemblies &lt;br /&gt;Single application &lt;br /&gt;Shared application &lt;br /&gt;Policies  &lt;br /&gt;4. Write short notes on AppDomains, contexts, reflection,remoting &lt;br /&gt;AppDomains &lt;br /&gt;Loading &lt;br /&gt;Unloading &lt;br /&gt;Contexts &lt;br /&gt;Context bound &lt;br /&gt;Context Agile &lt;br /&gt;Reflection &lt;br /&gt;Remoting  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Explain about dual interface and outgoing interfaces. &lt;/span&gt;&lt;br /&gt;Dual interface &lt;br /&gt;Idispatch method &lt;br /&gt;DispID&lt;br /&gt;Outgoing interface &lt;br /&gt;IConnectionPointContainer &lt;br /&gt;IConnectionPoint          &lt;br /&gt;  &lt;br /&gt;      &lt;span style="font-weight:bold;"&gt;  UNIT V &lt;br /&gt;&lt;br /&gt;TWO MARK QUESTIONS&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. What is component and connectors? &lt;/span&gt;&lt;br /&gt;        Architecture Description Language(ADL) typically distinguish components and Connectors .Components are mean to provide functionally while connectors focus on connectivity .  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. What is connection oriented approach? &lt;/span&gt;&lt;br /&gt;                             A pure connection oriented approach, all components are restricted to only interact with other components if connected appropriately  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. What is the main difference between earley and later ADL? &lt;/span&gt;&lt;br /&gt;                            Early ADL:were restricted to static connectivity .     Later ADL:Added su&lt;br /&gt;pport for dynamic connectivity and dynamic                                                                           &lt;br /&gt;                         reconfiguration.                      &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. What is the use of COM apartments and MTS? &lt;/span&gt;&lt;br /&gt;                            COM apartments are used to separate objects by threading model . MTS contexs are used to separate objects by transational domain  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. What is the use of EJB container? &lt;/span&gt;&lt;br /&gt;                            An EJB container allows a class to be attributed to request  explicit transaction  control   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. What is CLR context? &lt;/span&gt;&lt;br /&gt;                            The CLR context infrastructure is probably the first mainstream attempt to provide a genuinely extensible infrastructure for contextual composition  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. What are the flavours in CLR objects? &lt;br /&gt; &lt;/span&gt;&lt;br /&gt;Value types &lt;br /&gt;Pass-by-value type &lt;br /&gt;Pass-by-reference type &lt;br /&gt;Context-bound type  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. What is context bound type? &lt;/span&gt;&lt;br /&gt;                        Context bound types always reside inside a context that is equipped with  Appropriate properties. All other objects reside outside of any context and so are context agile  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. What is black box component framework? &lt;/span&gt;&lt;br /&gt;                  The black box component frame work is part of the black box component oriented rapid development tool and component oriented programming environment  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. Why we need black box? &lt;/span&gt;&lt;br /&gt;                            Black box was designed to avoid a single language island syndrome by supporting the standard object model of the underlying platform, most prominently COM on windows platforms  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. Compare OOP and COP. &lt;/span&gt;&lt;br /&gt;    OOP:  addresses the fundamental aspects of programming object oriented                                      solutions                 COP:  addresses the aspects of programming components   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. Specify the things that are required in component programming . &lt;/span&gt;&lt;br /&gt;Polymorphism &lt;br /&gt;Modular encapsulation &lt;br /&gt;Late binding and loading  &lt;br /&gt;Safety &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. What is caller encapsulation ? &lt;/span&gt;&lt;br /&gt;               Is the area that benefits from language support is that of interfece definitions .  When exposing an interface on a component boundary ,two  different intensions may be   Involved     &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. Specify the two different intensions that are used in caller encapsulation&lt;/span&gt;&lt;br /&gt;Component external code may need to invoke operations of the  Exposed interface &lt;br /&gt;Component internal code may need to invoke operations that implement the exposed interface  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. What are the problems of asynchrony? &lt;/span&gt;&lt;br /&gt;Te natural form of  event  distribution is multicasting  &lt;br /&gt;Event object recipients are themselves free to post new events &lt;br /&gt;The set of recipients could change while a multicast is in process  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. What is multithreading? &lt;/span&gt;&lt;br /&gt;                          It is the concept of supporting multiple sequential activities concurrently over the same state space. The resulting increase in complexity over sequential programming is substantial.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. What is the use of RAD? &lt;/span&gt;&lt;br /&gt;                     Component development should use rapid application development methods to capture requirements quickly within a working component system  &lt;br /&gt;18. What are the two strategies used in component testing tool? &lt;br /&gt;To avoid  errors statically wherever possible &lt;br /&gt;To make sure that components are deployed in such a way that  faults leave logged traces&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;19. What is rule of thumb? &lt;/span&gt;&lt;br /&gt;                 A rule of thumb is that most errors that can be caught using automated runtime debugging aids could be statically avoided , had a better language been chosen for the implementation.  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;20. What is software assembly? &lt;/span&gt;&lt;br /&gt;              Software assembly is different from hardware assembly in that it is not  necessary to assemble individual instances repeatedly –the entire assembled product can instead be cloned     &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; BIG  QUESTIONS:&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Explain briefly about component oriented programming   &lt;/span&gt;&lt;br /&gt;Problems of asynchrony &lt;br /&gt;Multithreading  &lt;br /&gt;Leaning from circuit design  &lt;br /&gt;Nutshell classes  &lt;br /&gt;Language support &lt;br /&gt;Caller encapsulation  &lt;span style="font-weight:bold;"&gt;&lt;br /&gt;2. Explain about component framework  &lt;/span&gt;&lt;br /&gt;Component framework verses connectors  &lt;br /&gt;Component framework verses  metaprogramming &lt;br /&gt;Component framework verses  aspect-oriented programming  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Explain about black box and OLE &lt;/span&gt;&lt;br /&gt;Direct-to-COM &lt;br /&gt;Black box components  &lt;br /&gt;OLE  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Explain the tools that are used in components  &lt;/span&gt;&lt;br /&gt;Component design and implementation tools  &lt;br /&gt;Component testing tools  &lt;br /&gt;Component assembly tools   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Explain briefly the cross development environment  &lt;/span&gt;&lt;br /&gt;Portos IDE &lt;br /&gt;IDE with black box &lt;br /&gt;Cross-development tools&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-2538929713874267932?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/2538929713874267932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/component-based-technology-it-1401.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2538929713874267932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2538929713874267932'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/component-based-technology-it-1401.html' title='COMPONENT BASED TECHNOLOGY (IT-1401)'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-8906040460616322958</id><published>2009-08-17T21:20:00.000-07:00</published><updated>2009-08-17T21:37:30.162-07:00</updated><title type='text'>E-COMMERCE (IT1007)</title><content type='html'>&lt;span style="font-weight:bold;"&gt;EIGHT SEMESTER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;            &lt;span style="font-weight:bold;"&gt;   UNIT-1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                 TWO MARKS QUESTIONS&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. What is e-commerce?&lt;/span&gt;&lt;br /&gt;E-commerce is a modern business methodology that addresses the needs&lt;br /&gt;of organization, merchants and consumers to cut costs while improving the&lt;br /&gt;quality of goods and services and increasing the speed of service delivery.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. What is i-way?&lt;/span&gt;&lt;br /&gt;E-commerce is associated with the buying and selling of information,&lt;br /&gt;products, and services via computer networks today and in the future via any one&lt;br /&gt;of the myriad of networks that make up the information superhighway (i-way).&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. What is cross-media convergence?&lt;/span&gt;&lt;br /&gt;Cross-media convergence refers to the integration of various industries—&lt;br /&gt;entertainment, publication, and communication media—based on multimedia&lt;br /&gt;content.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. List some simple technological advances that drive the phenomenon of&lt;br /&gt;convergence?&lt;/span&gt;&lt;br /&gt;· Convergence of content&lt;br /&gt;· Convergence of transmission&lt;br /&gt;· Convergence of information access&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. List some components of multimedia?&lt;/span&gt;&lt;br /&gt;Some components of multimedia are: text, audio, video, images,&lt;br /&gt;animation, graphics, hologram, and numerical data.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. What is message passing?&lt;/span&gt;&lt;br /&gt;The client-server model allows the client to interact with the server&lt;br /&gt;through a request –reply sequence governed by a paradigm known as message&lt;br /&gt;passing.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. List some challenges that each highway route provider faces?&lt;/span&gt;&lt;br /&gt;· Telecom-based&lt;br /&gt;· Cable-based&lt;br /&gt;· Computer Network-based&lt;br /&gt;· Wireless&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. List the functions of the supply-chain management?&lt;/span&gt;&lt;br /&gt;· Supplier Management&lt;br /&gt;· Inventory Management&lt;br /&gt;· Distribution Management&lt;br /&gt;· Channel Management&lt;br /&gt;· Payment Management&lt;br /&gt;· Financial Management&lt;br /&gt;· Sales force productivity&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. What is a terminal equipment?&lt;/span&gt;&lt;br /&gt;Customer Premises Equipment(CPE) or terminal equipment is a generic&lt;br /&gt;term for privately owned communications equipment that is attached to the&lt;br /&gt;network.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. List some drawbacks of ADSL?&lt;/span&gt;&lt;br /&gt;Asymmetric digital subscriber line has the following drawbacks: It cannot&lt;br /&gt;handle live transmissions, and the picture it produces is not as clear as that&lt;br /&gt;provided by a well-tuned cable hookup.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. What is fast packet switching?&lt;/span&gt;&lt;br /&gt;The bundles of data, known as packets move through a network at very&lt;br /&gt;high speeds and this routing technique is known as fast packet switching.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. List the 4 types of “last mile” connections?&lt;/span&gt;&lt;br /&gt;The four types of last mile connections are: plain old telephone system&lt;br /&gt;(POTS) wires, cable TV coaxial cable, electricity wires, and wireless.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. What is HDT?&lt;/span&gt;&lt;br /&gt;The digital video signals from all providers are combined on a video&lt;br /&gt;distribution element known as host digital terminal (HDT).&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. Give two advantages of DBS?&lt;/span&gt;&lt;br /&gt;Two advantages of Direct Broadcast satellite are:&lt;br /&gt;· Availability&lt;br /&gt;· Affordability&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. List the two types of DBS available?&lt;/span&gt;&lt;br /&gt;· PrimeStar DBS service&lt;br /&gt;· Direct Satellite Service&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. List some major issues that will play a crucial role in defining the i-way?&lt;/span&gt;&lt;br /&gt;The major issues are: cost, subsidies, allocation of scarce resources,&lt;br /&gt;regulation, universal access, privacy, and social issues.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. What is a Network Access Point?&lt;/span&gt;&lt;br /&gt;A NAP is a high speed network or switch to which a number of routers&lt;br /&gt;can be connected for the purpose of traffic exchange and interoperation.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;18. What is a routing arbiter?&lt;/span&gt;&lt;br /&gt;A Routing Arbiter (RA) is an element that is introduced into the NAP&lt;br /&gt;architecture. RA organization implements the concept of policy-based network&lt;br /&gt;routing that enables routing of traffic between different network operators.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;19. List the goals of Gigabit Network Research?&lt;/span&gt;&lt;br /&gt;There are two goals:&lt;br /&gt;· To advance the technology and understanding of requirements for high speed&lt;br /&gt;networking.&lt;br /&gt;· To explore the potential applications for such a network that are of importance&lt;br /&gt;to business and society in general.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;20. List some services of the internet?&lt;/span&gt;&lt;br /&gt;Some services of the internet are:&lt;br /&gt;· Individual to group communications&lt;br /&gt;· Information Transfer and delivery services&lt;br /&gt;· Information Databases&lt;br /&gt;· Information Processing services&lt;br /&gt;· Resource-sharing services&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16-MARKS QUESTIONS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Explain E-commerce Framework? ¾Information Super-highway ¾Information and Multimedia Content ¾Technical Standards&lt;br /&gt;2. Explain E-commerce and Media Convergence? ¾E-commerce, Convergence ¾Cross-Media ¾Technological Advances&lt;br /&gt;3. Explain the anatomy of E-commerce applications? ¾Multimedia Content for e-commerce applications ¾Multimedia Storage servers &amp; e-commerce applications ¾Information Delivery/ Transport and e-commerce applications ¾Consumer access devices&lt;br /&gt;4. Explain the network infrastructure for e-commerce? ¾Market forces influencing the i-way ¾Network access equipment ¾The “Last Mile” ¾Global Information Distribution Networks ¾Public policy issues shaping the i-way&lt;br /&gt;5. Explain the Internet as a Network Infrastructure? ¾Chronological history of the internet ¾NSFNET: Architecture and components ¾National Research and Education network ¾Globalization of the Academic Internet ¾Internet Governance and Applications&lt;br /&gt;UNIT – II&lt;br /&gt;1. What are the 3 types of electronic tokens?&lt;br /&gt;· Cash or real-time&lt;br /&gt;· Debit or prepaid&lt;br /&gt;· Credit or postpaid&lt;br /&gt;2. What are the properties of e-cash?&lt;br /&gt;· E-cash must have a monetary value&lt;br /&gt;· It must be interoperable&lt;br /&gt;· It must be storable and retrievable&lt;br /&gt;· It should not be easy to copy or tamper with while being exchanged&lt;br /&gt;3. Write notes on electronic checks.&lt;br /&gt;Electronic checks are another form of electronic tokens. They are designed&lt;br /&gt;to accommodate the many individuals and entities that might prefer to pay on&lt;br /&gt;credit or through some mechanism other than cash.&lt;br /&gt;4. What are smart cards?&lt;br /&gt;Smart cards are credit and debit cards and other card products enhanced&lt;br /&gt;with microprocessors capable of holding more information than the traditional&lt;br /&gt;magnetic stripe.&lt;br /&gt;5. Mention the 2 types of smart cards.&lt;br /&gt;· Relationship-based smart credit cards&lt;br /&gt;· Electronic purses&lt;br /&gt;6. What are the 3 basic categories of credit card payment on on-line networks?&lt;br /&gt;· Payment using plain credit card details&lt;br /&gt;· Payment using encrypted credit card details&lt;br /&gt;· Payments using third-party verification&lt;br /&gt;7. Mention some factors to be included for designing electronic payment&lt;br /&gt;systems.&lt;br /&gt;· Privacy&lt;br /&gt;· Security&lt;br /&gt;· Intuitive interface&lt;br /&gt;· Database integration&lt;br /&gt;· Brokers&lt;br /&gt;· Pricing&lt;br /&gt;· Standards&lt;br /&gt;8. Define EDI.&lt;br /&gt;Electronic Data Interchange (EDI) is the electronic transfer, from computer to&lt;br /&gt;computer, commercial and administrative data using an agreed standard to&lt;br /&gt;structure an EDI message.&lt;br /&gt;9. Specify the 4 layers of EDI architecture.&lt;br /&gt;· EDI semantic layer&lt;br /&gt;· EDI standard layer&lt;br /&gt;· EDI transport layer&lt;br /&gt;· Physical layer&lt;br /&gt;10. Mention the benefits for international trade.&lt;br /&gt;· Reduced transaction expenditure&lt;br /&gt;· Quicker movement of imported and exported goods&lt;br /&gt;· Improved customer service through “track and trace” programs&lt;br /&gt;· Faster customer clearance and reduced opportunities for corruption, a huge&lt;br /&gt;problem in trade.&lt;br /&gt;11. Give out the basic kit necessary for EDI implementation.&lt;br /&gt;· Common EDI standards&lt;br /&gt;· Translation software&lt;br /&gt;· Trading partners&lt;br /&gt;· Banks&lt;br /&gt;· EDI value-added networks (VANs)&lt;br /&gt;· Proprietary hardware and networking&lt;br /&gt;12. What are the 2 major ED standards?&lt;br /&gt;· ANSI X.12&lt;br /&gt;· EDIFACT&lt;br /&gt;13. Give the elements of an EDI message.&lt;br /&gt;· Transaction set&lt;br /&gt;· Data segments&lt;br /&gt;· Data elements&lt;br /&gt;14. Compare EDIFACT and X.12 Standards.&lt;br /&gt;· Both are comprised of strings of data elements called segments.&lt;br /&gt;· ANSI standards require each element to have a very specific name, such&lt;br /&gt;as order date or invoice date. EDIFACT segments, in contrast, allow for&lt;br /&gt;generic or multiuse elements, such as date.&lt;br /&gt;15. Mention the layers of EDI software implementation.&lt;br /&gt;· Business Application Layer&lt;br /&gt;· Internal format conversion&lt;br /&gt;· EDI Translator Layer&lt;br /&gt;· EDI envelope for document messaging&lt;br /&gt;16. Mention the 3 types of EDI access methods.&lt;br /&gt;· Direct dial or modem to modem connection&lt;br /&gt;· Limited third-party VANs&lt;br /&gt;· Full-service third-party VANs&lt;br /&gt;17. What are the factors involved in EDI implementation cost?&lt;br /&gt;· The expected volume of electronic documents.&lt;br /&gt;· Economics of the EDI translation software&lt;br /&gt;· Implementation time&lt;br /&gt;· Maintenance fees&lt;br /&gt;· VAN charges&lt;br /&gt;18. What are the 2 types of EDI envelopes used?&lt;br /&gt;· X.435&lt;br /&gt;· Internet EDI based on MIME&lt;br /&gt;19. Define VAN.&lt;br /&gt;A value-added network (VAN) is a communications network that typically&lt;br /&gt;exchanges EDI messages among trading partners.&lt;br /&gt;20. What are the factors that make the internet useful for EDI?&lt;br /&gt;· Flat pricing&lt;br /&gt;· Cheap access&lt;br /&gt;· Common mail standards&lt;br /&gt;· Security&lt;br /&gt;1. Explain EDI Software Implementation.&lt;br /&gt;· Diagram: How EDI works&lt;br /&gt;· EDI Business application layer&lt;br /&gt;· Diagram: The preparation process followed by the application s/w&lt;br /&gt;· EDI Translator layer&lt;br /&gt;· EDI Communications layer&lt;br /&gt;2. Write notes on digital token-based electronic payment systems.&lt;br /&gt;· E-cash &amp; its properties&lt;br /&gt;· E-cash in action&lt;br /&gt;· Business issues&lt;br /&gt;· Operational risk&lt;br /&gt;· Legal issues&lt;br /&gt;· E-checks with diagram&lt;br /&gt;3. Explain the EDI applications in business.&lt;br /&gt;· International trade and EDI&lt;br /&gt;· Financial EDI&lt;br /&gt;· Health care and insurance EDI&lt;br /&gt;· Manufacturing/Retail procurement using EDI&lt;br /&gt;· Business information, product design, and procurement&lt;br /&gt;4. Define VAN. Explain it in detail.&lt;br /&gt;· Definition&lt;br /&gt;· VAN pricing structures&lt;br /&gt;· VAN service providers&lt;br /&gt;· VANs and the internet&lt;br /&gt;5. Write notes on smart cards and electronic payment systems.&lt;br /&gt;· Relationship-based smart cards&lt;br /&gt;· Electronic purses and debit cards&lt;br /&gt;· Smart card readers and smart phones&lt;br /&gt;· Business issues and smart cards&lt;br /&gt;UNIT-III&lt;br /&gt;Part-A&lt;br /&gt;1. What is mean by Marketing?&lt;br /&gt;Marketing is a way of managing a business so that each important&lt;br /&gt;business decision is made with full knowledge of the impact it will have on the&lt;br /&gt;customer.&lt;br /&gt;2. What are the assumptions of marketing?&lt;br /&gt;The assumptions are (i) all company policies and activities should be&lt;br /&gt;aimed at satisfying customer needs and (ii) profitable sales volume is better&lt;br /&gt;company goal than maximum sales volume.&lt;br /&gt;3. What is mean by Advertising?&lt;br /&gt;Advertising is the process of reaching the customer using a broadcast or&lt;br /&gt;direct mail campaign orchestrated to influence purchasing behavior.&lt;br /&gt;4. What is mean Bundling?&lt;br /&gt;Bundling is a classic marketing strategy in which two or more&lt;br /&gt;complementary products and/or services are offered as a package at a discounted&lt;br /&gt;price.&lt;br /&gt;5. List out the bundling strategies. ¾Only components. ¾Only bundles. ¾Mixed strategy.&lt;br /&gt;6. What are the two important information based products?&lt;br /&gt;The two important information based products are: ¾Pricing. ¾Priority.&lt;br /&gt;7. What are the two main types of micromarketing?&lt;br /&gt;The two main types of micromarketing are: ¾Direct-relationship micromarketing. ¾Direct-order micromarketing.&lt;br /&gt;8. What are the two different advertising paradigms in the on-line world?&lt;br /&gt;The two different advertising paradigms in the on-line world are: ¾Active or Push-Based Advertising. ¾Passive or Pull-Based Advertising.&lt;br /&gt;9. What are the two types of Push-based advertising?&lt;br /&gt;The two types of Push-based advertising are: ¾Broadcast Model. ¾Junk Mail Model.&lt;br /&gt;10. What are the disadvantages of television advertising?&lt;br /&gt;The disadvantages of television advertising are: ¾High cost of production. ¾Limited exposure time. ¾Short air time. ¾Clutter of many other ads.&lt;br /&gt;11. What are the types of Pull-based advertising?&lt;br /&gt;The types of Pull-based advertising are: ¾Billboards. ¾Catalogs or yellow page directories. ¾Endorsements.&lt;br /&gt;12. What is Billboard or World Wide Web Model?&lt;br /&gt;Billboard model refers to information placed where it will come to the&lt;br /&gt;attention of customers in the course of other activities and does not require active&lt;br /&gt;search.&lt;br /&gt;13. What are the advantages of Billboard Model?&lt;br /&gt;The advantages of Billboard Model are: ¾Ability to completely cover a market. ¾Maintain high levels of viewing frequency.&lt;br /&gt;14. List the four major classifications of Electronic publishing.&lt;br /&gt;The four major classifications of Electronic publishing are: ¾On-line full text publishing. ¾CD-ROM publishing. ¾Collaboratories. ¾Video.&lt;br /&gt;15. What are the two types of software agents function?&lt;br /&gt;The two types of software agents function are: ¾Static ¾Mobile.&lt;br /&gt;16. What are the properties of Mobile Software Agents?&lt;br /&gt;The properties of Mobile Software Agents are: ¾Programming ¾Safety. ¾Resource usage. ¾Navigation ¾Privacy. ¾Communication.&lt;br /&gt;17. What are the challenges for resource discovery of software agents?&lt;br /&gt;The challenges for resource discovery of software agents are: ¾The scale of problem. ¾Need for cooperative brokerages. ¾Need for resource sharing.&lt;br /&gt;18. What are the three camps of agent requests?&lt;br /&gt;The three camps of agent requests are: ¾Synchronous communication-oriented remote procedure&lt;br /&gt;call (RPC). ¾Asynchronous message-oriented agents. ¾Intermediaries or database middleware.&lt;br /&gt;19. What are the ‘features of software agent?&lt;br /&gt;The features of software agent are: ¾Owner ¾Author ¾Lifetime ¾Account ¾Goal ¾Subject description ¾Background&lt;br /&gt;20. What are the three approaches of Agent Reasoning Capability?&lt;br /&gt;The three approaches of Agent Reasoning Capability are: ¾Rule-based approach. ¾Knowledge-based approach. ¾Learning approach.&lt;br /&gt;Part-B&lt;br /&gt;1. What are the technological components of Education on-Demand?&lt;br /&gt;¾On-line full text publishing. ¾CD-ROM publishing. ¾Collaboratories. ¾Video.&lt;br /&gt;2. What are characteristics and properties of user agent? ¾Characteristics ¾Properties&lt;br /&gt;3. Write notes on On-Line Advertising Paradigms. ¾Active or Push-Based Advertising ¾Passive or Pull-Based Advertising&lt;br /&gt;4. Write briefly on computer-based education and training. ¾On-Line Education and Virtual Classrooms ¾Training On-Demand ¾Changing Roles Of Institutions&lt;br /&gt;5. Write notes on digital copyrights and electronic commerce ¾Digital Copyright Basics ¾Digital Copyright Wording in On-Line Databases ¾Enforcing Digital Copyrights Using Technology&lt;br /&gt;UNIT IV&lt;br /&gt;2 Marks&lt;br /&gt;1. What is operational picture?&lt;br /&gt;Managers and workers need to obtain information regarding their own situation,&lt;br /&gt;including the customers, suppliers, and other department in the areas of interest and, of&lt;br /&gt;course, the disposition of a competitor through market intelligence. The totality of the&lt;br /&gt;information relevant to manager can be referred to as the operational picture.&lt;br /&gt;2. What are the challenges faced by a companies in handling data?&lt;br /&gt;The challenges are:&lt;br /&gt;i. To pull together the technology for amassing operational information&lt;br /&gt;ii. To maximize the utility of existing information to managers&lt;br /&gt;3. What were/was expected to help improve a company’s competitive position in the&lt;br /&gt;1990s to manage information overload?&lt;br /&gt;a. Decision Support Systems(DSS)&lt;br /&gt;b. Management Support Systems(MSS)&lt;br /&gt;c. Visual Information Access and Analysis(VIAA)&lt;br /&gt;d. Data/Information Warehouses&lt;br /&gt;e. Structured Document and Imaging Databases&lt;br /&gt;f. Executive Information Systems(EIS)&lt;br /&gt;g. Business Intelligence Systems(BIS)&lt;br /&gt;h. On-line Analytical Processing(OLAP)&lt;br /&gt;i. Multidimensional databases(MDD)&lt;br /&gt;4. Write the three key decision support trends&lt;br /&gt;1. Digital information infrastructure consisting of documents and data.&lt;br /&gt;2. Better utilization of information in strategic and operational decision making,&lt;br /&gt;which involves effective on-line information search and retrieval in a&lt;br /&gt;distributed environment.&lt;br /&gt;3. Architecture for implementing decisions through workflow automation and&lt;br /&gt;business process integration.&lt;br /&gt;5. What is an “infosphere”?&lt;br /&gt;Millions of transactions and oceans of multimedia data will flow through the network&lt;br /&gt;every day. This creates an “infosphere”.&lt;br /&gt;6. What are the two types of on-line transactions?&lt;br /&gt;Two types of on-line transactions are:&lt;br /&gt;i. On-line transaction processing(OLTP)&lt;br /&gt;ii. On-line analytic processing(OLAP)&lt;br /&gt;7. What are the two activities related to navigating the infosphere?&lt;br /&gt;Navigating the infosphere involves two related activities:&lt;br /&gt;i. Information search, discovery, and retrieval&lt;br /&gt;ii. Presentation or visualization of the retrieved information&lt;br /&gt;8. List few document management schemes&lt;br /&gt;i. Ad hoc documents&lt;br /&gt;ii. Process-specific documents&lt;br /&gt;iii. Knowledge-oriented documents&lt;br /&gt;9. Give some examples for Ad-hoc documents.&lt;br /&gt;i. Letters&lt;br /&gt;ii. Financial reports&lt;br /&gt;iii. Manuals&lt;br /&gt;10. Write about Process-specific documents&lt;br /&gt;Some of the process specific documents are invoices and purchase orders. They&lt;br /&gt;are typically created, constructed, and distributed by support personnel. These are often&lt;br /&gt;forms-based: context and appearance undergo virtually no alteration and context varies&lt;br /&gt;only slightly according to well-articulated rules.&lt;br /&gt;11. What are Knowledge-oriented documents?&lt;br /&gt;Knowledge-oriented documents encompass documentation, catalogs of product&lt;br /&gt;information, and design documents.&lt;br /&gt;12. What are User models?&lt;br /&gt;User models are interposed between the user interface and information sources to&lt;br /&gt;filter the available information according to the needs of the task and the user. These&lt;br /&gt;models can be customized.&lt;br /&gt;13. List the types of digital documents&lt;br /&gt;· Document imaging&lt;br /&gt;· Structured documents&lt;br /&gt;· Hypertext documents&lt;br /&gt;· Active documents&lt;br /&gt;14. What are the steps involved in document oriented processes?&lt;br /&gt;· Document creation&lt;br /&gt;· Document media conversion&lt;br /&gt;· Document production and distribution&lt;br /&gt;· Document storage and retrieval&lt;br /&gt;15. Write notes on document imaging.&lt;br /&gt;Document imaging emulates microfiche and microfilm. An imaging system&lt;br /&gt;passes a paper document through a scanner that renders it digital and then stores the&lt;br /&gt;digital data as a bit-mapped image of the document. Keywords are used for indexing and&lt;br /&gt;retrieval of document.&lt;br /&gt;16. Write brief notes on hypertext documents.&lt;br /&gt;Hypertext is a way of making document based information more mobile.&lt;br /&gt;Relationships between documents can be represented through hypermedia links.&lt;br /&gt;17. Write notes on active document.&lt;br /&gt;Active documents (or compound documents) represent what is known as&lt;br /&gt;document-oriented computing. Active documents provide an interactive interface where&lt;br /&gt;all documents, applications, and data related to a particular task are assembled, arranged,&lt;br /&gt;and interlinked in such a manner that the user can focus on the task at hand and be&lt;br /&gt;shielded from nontask-related issues like access, storage, data formats, location,&lt;br /&gt;computing, or delivery mechanisms.&lt;br /&gt;18. Name the activities involved in document-based work flows&lt;br /&gt;· Document modeling&lt;br /&gt;· Transformation&lt;br /&gt;· Synthesizing&lt;br /&gt;· Business modeling&lt;br /&gt;19. List the advantages of structured documents.&lt;br /&gt;· Allows document formatting&lt;br /&gt;· Documents can be edited, linked to graphics, video, photo etc.&lt;br /&gt;· Easy to search and query documents.&lt;br /&gt;20. Name the types of data warehouses.&lt;br /&gt;· Physical data warehouse&lt;br /&gt;· Logical data warehouse&lt;br /&gt;· Data library&lt;br /&gt;· Decision support systems&lt;br /&gt;21. List the elements in building data warehouse&lt;br /&gt;· Back end: Accessing and organizing data easily from disparate&lt;br /&gt;sources.&lt;br /&gt;· Preparing data for analysis: Querying, searching, and governing&lt;br /&gt;the data.&lt;br /&gt;· Front end: Providing means for effective analysis of the&lt;br /&gt;information.&lt;br /&gt;22. What are the advantages of data warehouses?&lt;br /&gt;· Users can manage and access large volumes of information in&lt;br /&gt;one cohesive framework.&lt;br /&gt;· Managers can distribute information on a variety of platforms.&lt;br /&gt;· Enables faster access and decision making.&lt;br /&gt;· Increases flexibility.&lt;br /&gt;16 Marks&lt;br /&gt;1. Explain in detail the dimensions of internal electronic commerce systems.&lt;br /&gt;Infosphere- complexity of data-technological architecture for internal commerce(figure)-&lt;br /&gt;key areas-user modeling interaction-Effective utilization of information-Types of On-line&lt;br /&gt;transactions-Navigating the infosphere-Electronic Brokerages and Work Flow&lt;br /&gt;Automation&lt;br /&gt;2. What is a document library? Explain in detail about business can be promoted to&lt;br /&gt;meet customer’s needs by improving document management support with an&lt;br /&gt;example.&lt;br /&gt;Definiions-Challenges in an organization-Corporate digital library as a core of document&lt;br /&gt;management (figure)-Digital document management-issues and concerns.&lt;br /&gt;3. Explain the types of digital documents.&lt;br /&gt;· Document imaging&lt;br /&gt;· Structured documents&lt;br /&gt;· Hypertext documents&lt;br /&gt;· Active documents&lt;br /&gt;4. Explain the elements in building data warehouse&lt;br /&gt;· Back end: Accessing and organizing data easily from disparate&lt;br /&gt;sources.&lt;br /&gt;· Preparing data for analysis: Querying, searching, and governing&lt;br /&gt;the data.&lt;br /&gt;· Front end: Providing means for effective analysis of the&lt;br /&gt;information.&lt;br /&gt;5. Explain the issues behind document infrastructure.&lt;br /&gt;· Document constituencies&lt;br /&gt;· Document-oriented processes&lt;br /&gt;· Document-based work flows&lt;br /&gt;UNIT-5&lt;br /&gt;1. What is the compression method used in Multimedia?&lt;br /&gt;· Sector-oriented disk Compression&lt;br /&gt;· Backup or archive-oriented compression&lt;br /&gt;· Graphics and video-oriented Compression&lt;br /&gt;· Compression of data being transmitted over low-speed networks&lt;br /&gt;2. What is the goal of data compression in action?&lt;br /&gt;The goal of data compression is to make the size of the 100 –bit message&lt;br /&gt;as close as possible to the 100 bits of underlying information.&lt;br /&gt;3. What is the disadvantage of data compression?&lt;br /&gt;The most obvious problem is the time to transfer that much data from&lt;br /&gt;storage to the display. Nearly 30 Mb per second is enough to choke almost&lt;br /&gt;any I/O port or data bus. Other problems include both storage and&lt;br /&gt;processing.&lt;br /&gt;4. What are the types of Compression Technique? Grief brief notes on them&lt;br /&gt;Compression techniques can be divided into two major categories,&lt;br /&gt;· Lossless Compression&lt;br /&gt;· Lossy Compression&lt;br /&gt;Lossless compression:&lt;br /&gt;It means that a given set of data will undergo a loss of accuracy or&lt;br /&gt;resolution after a cycle of compression and decompression.&lt;br /&gt;Lossy Compression:&lt;br /&gt;It produces compressed output that is exactly the same as the input.&lt;br /&gt;5. Define Multiprocessing?&lt;br /&gt;Multiprocessing is defined as the ability to support the concurrent&lt;br /&gt;execution of several tasks on multiple processors. This implies that ability&lt;br /&gt;to use more than one CPU for executing programs. The processors can be&lt;br /&gt;tightly or loosely coupled.&lt;br /&gt;6. Define multitasking?&lt;br /&gt;Multitasking means that the server operating systems can run multiple&lt;br /&gt;programs and give the illusion that they are running simultaneously by&lt;br /&gt;switching control between them.&lt;br /&gt;Two types of multitasking are used:&lt;br /&gt;· Preemptive&lt;br /&gt;· No preemptive&lt;br /&gt;7. Define Multithreading?&lt;br /&gt;Multithreading is a sophisticated and refers to the ability to support paths&lt;br /&gt;of execution within a single address space. Older operating systems&lt;br /&gt;achieve multitasking by creating multiple processes, which creates a great&lt;br /&gt;deal of overhead.&lt;br /&gt;8. Give brief notes about the types of storage technology?&lt;br /&gt;Storage technology can be divided in to two types:&lt;br /&gt;· Network-based (disk arrays)&lt;br /&gt;· Desktop-based (CD-ROM)&lt;br /&gt;Disk arrays:&lt;br /&gt;Disk arrays store enormous of information and are becoming an important&lt;br /&gt;storage technology for firewall servers and other electronic commerce&lt;br /&gt;servers.&lt;br /&gt;CD-ROM:&lt;br /&gt;The preemptive desktop storage technology for electronic commerce&lt;br /&gt;applications is CD-ROM.&lt;br /&gt;9. What are the types of Desktop video conferencing?&lt;br /&gt;There are three types of desktop video conferencing they are&lt;br /&gt;· Plain Old Telephone lines(POTS)&lt;br /&gt;· ISDN&lt;br /&gt;· Internet&lt;br /&gt;10. What is MBONE?&lt;br /&gt;The MBONE is a virtual network that has been in existence since early&lt;br /&gt;1992. The MBONE shares the same physical media as the internet. It uses&lt;br /&gt;a network of routers is not for the faint of heart and is time consuming&lt;br /&gt;because a lot of learning and fixing are involved.&lt;br /&gt;11. Define SONET?&lt;br /&gt;SONET, or Synchronous Optical NETwork, is a set of standards that&lt;br /&gt;govern synchronous fiber optic data transmission at rates ranging from&lt;br /&gt;51.8Mbps to 2.5Gbps.&lt;br /&gt;12. How fast packet switching differs from the traditional circuit switching?&lt;br /&gt;The fast packet switching differs from the traditional circuit switching in&lt;br /&gt;the following three aspects&lt;br /&gt;· Call set-up&lt;br /&gt;· Traffic management&lt;br /&gt;· Switching&lt;br /&gt;13. Describe the benefits of Frame relay?&lt;br /&gt;Frame relay has two benefits:&lt;br /&gt;Speed:&lt;br /&gt;It is no longer necessary to carryout error controls and corrections between&lt;br /&gt;each node due to the improvements in transmission media.&lt;br /&gt;Sharing costly bandwidth:&lt;br /&gt;Frame relay allows users to share costly, high throughput channels over a&lt;br /&gt;single access line, and it uses a “hubbing” approach to distribute traffic&lt;br /&gt;over a wide area.&lt;br /&gt;14. Describe the three functional levels in physical layer?&lt;br /&gt;The physical layer can be divided into three functional levels:&lt;br /&gt;· Transmission path&lt;br /&gt;· Digital section&lt;br /&gt;· Regenerator section&lt;br /&gt;15. What are the four dimensions in mobile computing?&lt;br /&gt;The four dimensions in mobile computing are,&lt;br /&gt;· Wireless delivery technology and switching methods&lt;br /&gt;· Mobile information access devices&lt;br /&gt;· Mobile data internetworking standards and equipment&lt;br /&gt;· Mobile computing based business applications&lt;br /&gt;16. What are the categories of Radio based systems?&lt;br /&gt;Radio based services can be grouped into two main categories:&lt;br /&gt;· Land based&lt;br /&gt;· Satellite based&lt;br /&gt;17. What is palmtop?&lt;br /&gt;Palmtop computers attempt to provide higher functionality and more&lt;br /&gt;closely resemble what’s available in desktop computers. Palmtops called&lt;br /&gt;personal organizers. It offer the combined functionality of a personal&lt;br /&gt;organizer and communications terminal to provide access an applicationspecific&lt;br /&gt;personal computer and communications terminal to provide&lt;br /&gt;access to e-mail.&lt;br /&gt;18. Specify the advantage of circuit-Switched Cellular transmission?&lt;br /&gt;The advantage of circuit switched cellular transmission is that users should&lt;br /&gt;be able to use a cellular modem as they would any modem. Because the&lt;br /&gt;charge call is by the minute and also for set-up, cellular modems can be&lt;br /&gt;more cost-effective when used to send large messages.&lt;br /&gt;19. What is licensed broadband?&lt;br /&gt;Licensed bandwidth allocation of 120 MHz in the 1850 MHz to 1990&lt;br /&gt;MHz band represents a considerable amount of spectrum-by comparison,&lt;br /&gt;the current cellular phone system, known as advanced mobile phone&lt;br /&gt;system occupies only 50 MHz.&lt;br /&gt;20. What is the application of unlicensed broadband?&lt;br /&gt;These applications today are relegated to the industrial/scientific/medical&lt;br /&gt;bands should make better use of the radio spectrum and allow for more&lt;br /&gt;simultaneous users and better signal quality.&lt;br /&gt;1. Explain about digital video and electronic commerce?&lt;br /&gt;· Characteristics of Digital video&lt;br /&gt;· Digital video compression/Decompression&lt;br /&gt;· Types of Codecs ¾Hybrid ¾Software-based&lt;br /&gt;· Three Hybrid standards ¾JPEG ¾MPEG I ¾MPEG II&lt;br /&gt;2. Describe Desktop Video Processing?&lt;br /&gt;Video on the desktop is a key element in turning a computer into a true&lt;br /&gt;multimedia platform. However digital video isn’t what one would call a&lt;br /&gt;“natural fit’ when it comes to desktop computers due to their inability to&lt;br /&gt;process the compression and decompression of video satisfactorily.&lt;br /&gt;· Desktop Video Hardware for playback and capture&lt;br /&gt;· Video playback&lt;br /&gt;· Video capture and Editing&lt;br /&gt;· Desktop Video Application Software&lt;br /&gt;· Apple’s Quick Time&lt;br /&gt;· Microsoft’s video for Windows&lt;br /&gt;3. Explain Desktop video conferencing? What are the types of Desktop video&lt;br /&gt;Conferencing?&lt;br /&gt;Desktop video conferencing is gaining momentum as a communications&lt;br /&gt;tool. For many business users, face-to-face videoconferences are already a&lt;br /&gt;common practice allowing distant colleagues to communicate without the&lt;br /&gt;expense and inconvenience of traveling.&lt;br /&gt;TYPES OF DESKTOP VIDEO CONFRENCING:&lt;br /&gt;· Using POTS for video conferencing&lt;br /&gt;· Using ISDN for video conferencing&lt;br /&gt;· Using the internet for video conferencing ¾CU-SeeMe ¾MBONE&lt;br /&gt;4. Describe the concept of Broadband background?&lt;br /&gt;· Narrowband Versus Broadband Networks&lt;br /&gt;· Integrated services Digital Network (ISDN)&lt;br /&gt;· SONET and SDH&lt;br /&gt;· BISDN Versus ATM&lt;br /&gt;· Connectionless versus connection oriented networks&lt;br /&gt;· Switching techniques ¾Call set-up ¾Traffic management ¾Switching&lt;br /&gt;5. Explain about Asynchronous Transfer Mode (ATM)?&lt;br /&gt;ATM is a high-speed, connection-oriented, cell based transmission scheme&lt;br /&gt;that offers bandwidth on demand for voice, data and video telephony applications.&lt;br /&gt;ATM networks are being created to switching technology voice, data and video&lt;br /&gt;signals at multiples of 155 Mbps through multigigabit “hubbing devices”&lt;br /&gt;Types of ATM traffic and switching:&lt;br /&gt;· ATM Switching&lt;br /&gt;· ATM cell structure&lt;br /&gt;· ATM system Architecture&lt;br /&gt;6. Give brief description about wireless delivery technology and switching&lt;br /&gt;methods?&lt;br /&gt;· Radio-Based Systems&lt;br /&gt;· Cellular Communications ¾Increasing Capability and widespread coverage for cordless&lt;br /&gt;telephones ¾Decreasing cell size (micro cells) and power levels for&lt;br /&gt;hand-held and vehicular cellular radio. ¾Specialized wireless data systems&lt;br /&gt;· Wireless packet data networks&lt;br /&gt;· Satellite networks&lt;br /&gt;· Very small aperture terminals (VSATs)&lt;br /&gt;· Paging and satellite Networks&lt;br /&gt;· Infrared or Light-Based Mobile computing&lt;br /&gt;7. Explain Mobile information access devices?&lt;br /&gt;· Portable computers&lt;br /&gt;· Hybrid pen computers&lt;br /&gt;· Personal Digital Assistants (PDAs)&lt;br /&gt;· Digital Assistants&lt;br /&gt;· Personal communicators&lt;br /&gt;· Palmtops&lt;br /&gt;· Cellular modems and PCMIA adapters&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-8906040460616322958?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/8906040460616322958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/e-commerce-it1007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/8906040460616322958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/8906040460616322958'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/e-commerce-it1007.html' title='E-COMMERCE (IT1007)'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-8095041653220727827</id><published>2009-08-17T20:58:00.001-07:00</published><updated>2009-08-17T21:00:16.465-07:00</updated><title type='text'>CS1301-DATABASE MANAGEMENT SYSTEMS</title><content type='html'>TWO MARKS:&lt;br /&gt;UNIT: 1&lt;br /&gt;INTRODUCTION AND CONCEPTUAL MODELLING&lt;br /&gt;1. Define database management system?&lt;br /&gt;Database management system (DBMS) is a collection of interrelated data and a&lt;br /&gt;set of programs to access those data.&lt;br /&gt;2. List any eight applications of DBMS.&lt;br /&gt;a) Banking&lt;br /&gt;b) Airlines&lt;br /&gt;c) Universities&lt;br /&gt;d) Credit card transactions&lt;br /&gt;e) Tele communication&lt;br /&gt;f) Finance&lt;br /&gt;g) Sales&lt;br /&gt;h) Manufacturing&lt;br /&gt;i) Human resources&lt;br /&gt;3. What are the disadvantages of file processing system?&lt;br /&gt;The disadvantages of file processing systems are&lt;br /&gt;a) Data redundancy and inconsistency&lt;br /&gt;b) Difficulty in accessing data&lt;br /&gt;c) Data isolation&lt;br /&gt;d) Integrity problems&lt;br /&gt;e) Atomicity problems&lt;br /&gt;f) Concurrent access anomalies&lt;br /&gt;4. What are the advantages of using a DBMS?&lt;br /&gt;The advantages of using a DBMS are&lt;br /&gt;a) Controlling redundancy&lt;br /&gt;b) Restricting unauthorized access&lt;br /&gt;c) Providing multiple user interfaces&lt;br /&gt;d) Enforcing integrity constraints.&lt;br /&gt;e) Providing back up and recovery&lt;br /&gt;5. Give the levels of data abstraction?&lt;br /&gt;a) Physical level&lt;br /&gt;b) logical level&lt;br /&gt;c) view level&lt;br /&gt;6. Define instance and schema?&lt;br /&gt;Instance: Collection of data stored in the data base at a particular moment is&lt;br /&gt;called an Instance of the database.&lt;br /&gt;Schema: The overall design of the data base is called the data base schema.&lt;br /&gt;7. Define the terms 1) physical schema 2) logical schema.&lt;br /&gt;Physical schema: The physical schema describes the database design at the&lt;br /&gt;physical level, which is the lowest level of abstraction describing how the data are&lt;br /&gt;actually stored.&lt;br /&gt;Logical schema: The logical schema describes the database design at the logical&lt;br /&gt;level, which describes what data are stored in the database and what relationship exists&lt;br /&gt;among the data.&lt;br /&gt;8. What is conceptual schema?&lt;br /&gt;The schemas at the view level are called subschemas that describe different views&lt;br /&gt;of the database.&lt;br /&gt;9. Define data model?&lt;br /&gt;A data model is a collection of conceptual tools for describing data, data&lt;br /&gt;relationships, data semantics and consistency constraints.&lt;br /&gt;10. What is storage manager?&lt;br /&gt;A storage manager is a program module that provides the interface between the&lt;br /&gt;low level data stored in a database and the application programs and queries submitted to&lt;br /&gt;the system.&lt;br /&gt;11. What are the components of storage manager?&lt;br /&gt;The storage manager components include&lt;br /&gt;a) Authorization and integrity manager&lt;br /&gt;b) Transaction manager&lt;br /&gt;c) File manager&lt;br /&gt;d) Buffer manager&lt;br /&gt;12. What is the purpose of storage manager?&lt;br /&gt;The storage manager is responsible for the following&lt;br /&gt;a) Interaction with he file manager&lt;br /&gt;b) Translation of DML commands in to low level file system commands&lt;br /&gt;c) Storing, retrieving and updating data in the database&lt;br /&gt;13. List the data structures implemented by the storage manager.&lt;br /&gt;The storage manager implements the following data structure&lt;br /&gt;a) Data files&lt;br /&gt;b) Data dictionary&lt;br /&gt;c) indices&lt;br /&gt;14. What is a data dictionary?&lt;br /&gt;A data dictionary is a data structure which stores meta data about the structure of&lt;br /&gt;the database ie. the schema of the database.&lt;br /&gt;15. What is an entity relationship model?&lt;br /&gt;The entity relationship model is a collection of basic objects called entities and&lt;br /&gt;relationship among those objects. An entity is a thing or object in the real world that is&lt;br /&gt;distinguishable from other objects.&lt;br /&gt;16. What are attributes? Give examples.&lt;br /&gt;An entity is represented by a set of attributes. Attributes are descriptive properties&lt;br /&gt;possessed by each member of an entity set.&lt;br /&gt;Example: possible attributes of customer entity are customer name, customer id,&lt;br /&gt;customer street, customer city.&lt;br /&gt;17. What is relationship? Give examples&lt;br /&gt;A relationship is an association among several entities.&lt;br /&gt;Example: A depositor relationship associates a customer with each account that&lt;br /&gt;he/she has.&lt;br /&gt;18. Define the terms&lt;br /&gt;i) Entity set&lt;br /&gt;ii) Relationship set&lt;br /&gt;Entity set: The set of all entities of the same type is termed as an entity set.&lt;br /&gt;Relationship set: The set of all relationships of the same type is termed as a&lt;br /&gt;relationship set.&lt;br /&gt;19. Define single valued and multivalued attributes.&lt;br /&gt;Single valued attributes: attributes with a single value for a particular entity are&lt;br /&gt;called single valued attributes.&lt;br /&gt;Multivalued attributes: Attributes with a set of value for a particular entity are&lt;br /&gt;called multivalued attributes.&lt;br /&gt;20. What are stored and derived attributes?&lt;br /&gt;Stored attributes: The attributes stored in a data base are called stored attributes.&lt;br /&gt;Derived attributes: The attributes that are derived from the stored attributes are&lt;br /&gt;called derived attributes.&lt;br /&gt;21. What are composite attributes?&lt;br /&gt;Composite attributes can be divided in to sub parts.&lt;br /&gt;22. Define null values.&lt;br /&gt;In some cases a particular entity may not have an applicable value for an attribute&lt;br /&gt;or if we do not know the value of an attribute for a particular entity. In these cases null&lt;br /&gt;value is used.&lt;br /&gt;23. Define the terms&lt;br /&gt;i) Entity type&lt;br /&gt;ii) Entity set&lt;br /&gt;Entity type: An entity type defines a collection of entities that have the same&lt;br /&gt;attributes.&lt;br /&gt;Entity set: The set of all entities of the same type is termed as an entity set.&lt;br /&gt;24. What is meant by the degree of relationship set?&lt;br /&gt;The degree of relationship type is the number of participating entity types.&lt;br /&gt;25. Define the terms&lt;br /&gt;i) Key attribute&lt;br /&gt;ii) Value set&lt;br /&gt;Key attribute: An entity type usually has an attribute whose values are distinct&lt;br /&gt;from each individual entity in the collection. Such an attribute is called a key attribute.&lt;br /&gt;Value set: Each simple attribute of an entity type is associated with a value set&lt;br /&gt;that specifies the set of values that may be assigned to that attribute for each individual&lt;br /&gt;entity.&lt;br /&gt;26. Define weak and strong entity sets?&lt;br /&gt;Weak entity set: entity set that do not have key attribute of their own are called&lt;br /&gt;weak entity sets.&lt;br /&gt;Strong entity set: Entity set that has a primary key is termed a strong entity set.&lt;br /&gt;27. What does the cardinality ratio specify?&lt;br /&gt;Mapping cardinalities or cardinality ratios express the number of entities to which&lt;br /&gt;another entity can be associated. Mapping cardinalities must be one of the&lt;br /&gt;following:&lt;br /&gt;• One to one&lt;br /&gt;• One to many&lt;br /&gt;• Many to one&lt;br /&gt;• Many to many&lt;br /&gt;28. Explain the two types of participation constraint.&lt;br /&gt;• Total: The participation of an entity set E in a relationship set R is said to&lt;br /&gt;be total if every entity in E participates in at least one relationship in R.&lt;br /&gt;• Partial: if only some entities in E participate in relationships in R, the&lt;br /&gt;participation of entity set E in relationship R is said to be partial.&lt;br /&gt;29. Define the terms&lt;br /&gt;i) DDL&lt;br /&gt;ii) DML&lt;br /&gt;DDL: Data base schema is specified by a set of definitions expressed by a special&lt;br /&gt;language called a data definition language.&lt;br /&gt;DML: A data manipulation language is a language that enables users to access or&lt;br /&gt;manipulate data as organized by the appropriate data model.&lt;br /&gt;30. Write short notes on relational model&lt;br /&gt;The relational model uses a collection of tables to represent both data and the&lt;br /&gt;relationships among those data. The relational model is an example of a record&lt;br /&gt;based model.&lt;br /&gt;31. Define tuple and attribute&lt;br /&gt;• Attributes: column headers&lt;br /&gt;• Tuple: Row&lt;br /&gt;32. Define the term relation.&lt;br /&gt;Relation is a subset of a Cartesian product of list domains.&lt;br /&gt;33. Define tuple variable&lt;br /&gt;Tuple variable is a variable whose domain is the set of all tuples.&lt;br /&gt;34. Define the term Domain.&lt;br /&gt;For each attribute there is a set of permitted values called the domain of that&lt;br /&gt;attribute.&lt;br /&gt;35. What is a candidate key?&lt;br /&gt;Minimal super keys are called candidate keys.&lt;br /&gt;36. What is a primary key?&lt;br /&gt;Primary key is chosen by the database designer as the principal means of&lt;br /&gt;identifying an entity in the entity set.&lt;br /&gt;37. What is a super key?&lt;br /&gt;A super key is a set of one or more attributes that collectively allows us to&lt;br /&gt;identify uniquely an entity in the entity set.&lt;br /&gt;38. Define- relational algebra.&lt;br /&gt;The relational algebra is a procedural query language. It consists of a set of&lt;br /&gt;operations that take one or two relation as input and produce a new relation as&lt;br /&gt;output.&lt;br /&gt;39. What is a SELECT operation?&lt;br /&gt;The select operation selects tuples that satisfy a given predicate. We use the&lt;br /&gt;lowercase letter s to denote selection.&lt;br /&gt;40. What is a PROJECT operation?&lt;br /&gt;The project operation is a unary operation that returns its argument relation with&lt;br /&gt;certain attributes left out. Projection is denoted by pie (p).&lt;br /&gt;41. Write short notes on tuple relational calculus.&lt;br /&gt;The tuple relational calculation is anon procedural query language. It describes&lt;br /&gt;the desired information with out giving a specific procedure for obtaining that&lt;br /&gt;information.&lt;br /&gt;A query or expression can be expressed in tuple relational calculus as&lt;br /&gt;{t | P (t)}&lt;br /&gt;which means the set of all tuples‘t’ such that predicate P is true for‘t’.&lt;br /&gt;Notations used:&lt;br /&gt;• t[A] ® the value of tuple ‘t’ on attribute, A&lt;br /&gt;• t Î r ® tuple ‘t’ is in relation ‘r’&lt;br /&gt;• $ ® there exists&lt;br /&gt;Definition for ‘there exists’ ($):&lt;br /&gt;$ t Î r(Q(t))&lt;br /&gt;which means there exists a tuple ‘t’ in relation ‘r’&lt;br /&gt;such that predicate Q(t) is true.&lt;br /&gt;• " ® for all&lt;br /&gt;Definition for ‘for all’ ("):&lt;br /&gt;"t Î r(Q(t))&lt;br /&gt;which means Q(t) is true for all tuples ‘t’ in relation&lt;br /&gt;‘r’.&lt;br /&gt;•  ® Implication&lt;br /&gt;Definition for Implication ():&lt;br /&gt;PQ means if P is true then Q must be true.&lt;br /&gt;42. Write short notes on domain relational calculus&lt;br /&gt;The domain relational calculus uses domain variables that take on values from an&lt;br /&gt;attribute domain rather than values for entire tuple.&lt;br /&gt;43. Define query language?&lt;br /&gt;A query is a statement requesting the retrieval of information. The portion of&lt;br /&gt;DML that involves information retrieval is called a query language.&lt;br /&gt;44. Write short notes on Schema diagram.&lt;br /&gt;A database schema along with primary key and foreign key dependencies can be&lt;br /&gt;depicted pictorially by schema diagram. Each relation appears as a box with&lt;br /&gt;attributes listed inside it and the relation name above it.&lt;br /&gt;45. What is foreign key?&lt;br /&gt;A relation schema r1 derived from an ER schema may include among its&lt;br /&gt;attributes the primary key of another relation schema r2.this attribute is called a foreign&lt;br /&gt;key from r1 referencing r2.&lt;br /&gt;UNIT: 2&lt;br /&gt;RELATIONAL MODEL&lt;br /&gt;1. What are the parts of SQL language?&lt;br /&gt;The SQL language has several parts:&lt;br /&gt; data - definitition language&lt;br /&gt; Data manipulation language&lt;br /&gt; View definition&lt;br /&gt; Transaction control&lt;br /&gt; Embedded SQL&lt;br /&gt; Integrity&lt;br /&gt; Authorization&lt;br /&gt;2. What are the categories of SQL command?&lt;br /&gt;SQL commands are divided in to the following categories:&lt;br /&gt;1. data - definitition language&lt;br /&gt;2. data manipulation language&lt;br /&gt;3. Data Query language&lt;br /&gt;4. data control language&lt;br /&gt;5. data administration statements&lt;br /&gt;6. transaction control statements&lt;br /&gt;3. What are the three classes of SQL expression?&lt;br /&gt;SQL expression consists of three clauses:&lt;br /&gt; Select&lt;br /&gt; From&lt;br /&gt; where&lt;br /&gt;4. Give the general form of SQL query?&lt;br /&gt;Select A1, A2…………., An&lt;br /&gt;From R1, R2……………, Rm&lt;br /&gt;Where P&lt;br /&gt;5. What is the use of rename operation?&lt;br /&gt;Rename operation is used to rename both relations and a attributes.&lt;br /&gt;It uses the as clause, taking the form:&lt;br /&gt;Old-name as new-name&lt;br /&gt;6. Define tuple variable?&lt;br /&gt;Tuple variables are used for comparing two tuples in the same relation. The tuple&lt;br /&gt;variables are defined in the from clause by way of the as clause.&lt;br /&gt;7. List the string operations supported by SQL?&lt;br /&gt;1) Pattern matching Operation&lt;br /&gt;2) Concatenation&lt;br /&gt;3) Extracting character strings&lt;br /&gt;4) Converting between uppercase and lower case letters.&lt;br /&gt;8. List the set operations of SQL?&lt;br /&gt;1) Union&lt;br /&gt;2) Intersect operation&lt;br /&gt;3) The except operation&lt;br /&gt;9. What is the use of Union and intersection operation?&lt;br /&gt;Union: The result of this operation includes all tuples that are either in r1 or in r2&lt;br /&gt;or in both r1 and r2.Duplicate tuples are automatically eliminated.&lt;br /&gt;Intersection: The result of this relation includes all tuples that are in both r1 and&lt;br /&gt;r2.&lt;br /&gt;10. What are aggregate functions? And list the aggregate functions supported by&lt;br /&gt;SQL?&lt;br /&gt;Aggregate functions are functions that take a collection of values as input and&lt;br /&gt;return a single value.&lt;br /&gt;Aggregate functions supported by SQL are&lt;br /&gt; Average: avg&lt;br /&gt; Minimum: min&lt;br /&gt; Maximum: max&lt;br /&gt; Total: sum&lt;br /&gt; Count: count&lt;br /&gt;11. What is the use of group by clause?&lt;br /&gt;Group by clause is used to apply aggregate functions to a set of tuples.The&lt;br /&gt;attributes given in the group by clause are used to form groups.Tuples with the&lt;br /&gt;same value on all attributes in the group by clause are placed in one group.&lt;br /&gt;12. What is the use of sub queries?&lt;br /&gt;A sub query is a select-from-where expression that is nested with in another&lt;br /&gt;query. A common use of sub queries is to perform tests for set membership, make&lt;br /&gt;setcomparisions, and determine set cardinality.&lt;br /&gt;13. What is view in SQL? How is it defined?&lt;br /&gt;Any relation that is not part of the logical model, but is made visible to a user as a&lt;br /&gt;virtual relation is called a view.&lt;br /&gt;We define view in SQL by using the create view command. The form of the&lt;br /&gt;create view command is&lt;br /&gt;Create view v as &lt;query expression&gt;&lt;br /&gt;14. What is the use of with clause in SQL?&lt;br /&gt;The with clause provides a way of defining a temporary view whose definition is&lt;br /&gt;available only to the query in which the with clause occurs.&lt;br /&gt;15. List the table modification commands in SQL?&lt;br /&gt; Deletion&lt;br /&gt; Insertion&lt;br /&gt; Updates&lt;br /&gt; Update of a view&lt;br /&gt;16. List out the statements associated with a database transaction?&lt;br /&gt; Commit work&lt;br /&gt; Rollback work&lt;br /&gt;17. What is transaction?&lt;br /&gt;Transaction is a unit of program execution that accesses and possibly updated&lt;br /&gt;various data items.&lt;br /&gt;18. List the SQL domain Types?&lt;br /&gt;SQL supports the following domain types.&lt;br /&gt;1) Char(n) 2) varchar(n) 3) int 4) numeric(p,d)&lt;br /&gt;5) float(n) 6) date.&lt;br /&gt;19. What is the use of integrity constraints?&lt;br /&gt;Integrity constraints ensure that changes made to the database by authorized users&lt;br /&gt;do not result in a loss of data consistency. Thus integrity constraints guard against&lt;br /&gt;accidental damage to the database.&lt;br /&gt;20. Mention the 2 forms of integrity constraints in ER model?&lt;br /&gt; Key declarations&lt;br /&gt; Form of a relationship&lt;br /&gt;21. What is trigger?&lt;br /&gt;Triggers are statements that are executed automatically by the system as the side&lt;br /&gt;effect of a modification to the database.&lt;br /&gt;22. What are domain constraints?&lt;br /&gt;A domain is a set of values that may be assigned to an attribute .all values that&lt;br /&gt;appear in a column of a relation must be taken from the same domain.&lt;br /&gt;23. What are referential integrity constraints?&lt;br /&gt;A value that appears in one relation for a given set of attributes also appears for a&lt;br /&gt;certain set of attributes in another relation.&lt;br /&gt;24. What is assertion? Mention the forms available.&lt;br /&gt;An assertion is a predicate expressing a condition that we wish the database&lt;br /&gt;always to satisfy.&lt;br /&gt; Domain integrity constraints.&lt;br /&gt; Referential integrity constraints&lt;br /&gt;25. Give the syntax of assertion?&lt;br /&gt;Create assertion &lt;assertion name&gt;check&lt;predicate&gt;&lt;br /&gt;26. What is the need for triggers?&lt;br /&gt;Triggers are useful mechanisms for alerting humans or for starting certain tasks&lt;br /&gt;automatically when certain conditions are met.&lt;br /&gt;27. List the requirements needed to design a trigger.&lt;br /&gt;The requirements are&lt;br /&gt; Specifying when a trigger is to be executed.&lt;br /&gt; Specify the actions to be taken when the trigger executes.&lt;br /&gt;28. Give the forms of triggers?&lt;br /&gt; The triggering event can be insert or delete.&lt;br /&gt; For updated the trigger can specify columns.&lt;br /&gt; The referencing old row as clause&lt;br /&gt; The referencing new row as clause&lt;br /&gt; The triggers can be initiated before the event or after the event.&lt;br /&gt;29. What does database security refer to?&lt;br /&gt;Database security refers to the protection from unauthorized access and malicious&lt;br /&gt;destruction or alteration.&lt;br /&gt;30. List some security violations (or) name any forms of malicious access.&lt;br /&gt; Unauthorized reading of data&lt;br /&gt; Unauthorized modification of data&lt;br /&gt; Unauthorized destruction of data.&lt;br /&gt;31. List the types of authorization.&lt;br /&gt; Read authorization&lt;br /&gt; Write authorization&lt;br /&gt; Update authorization&lt;br /&gt; Drop authorization&lt;br /&gt;32. What is authorization graph?&lt;br /&gt;Passing of authorization from one user to another can be represented by an&lt;br /&gt;authorization graph.&lt;br /&gt;33. List out various user authorization to modify the database schema.&lt;br /&gt; Index authorization&lt;br /&gt; Resource authorization&lt;br /&gt; Alteration authorization&lt;br /&gt; Drop authorization&lt;br /&gt;34. What are audit trails?&lt;br /&gt;An audit trail is a log of all changes to the database along with information such&lt;br /&gt;as which user performed the change and when the change was performed.&lt;br /&gt;35. Mention the various levels in security measures.&lt;br /&gt; Database system&lt;br /&gt; Operating system&lt;br /&gt; Network&lt;br /&gt; Physical&lt;br /&gt; human&lt;br /&gt;36. Name the various privileges in SQL?&lt;br /&gt; Delete&lt;br /&gt; Select&lt;br /&gt; Insert&lt;br /&gt; update&lt;br /&gt;37. Mention the various user privileges.&lt;br /&gt; All privileges directly granted to the user or role.&lt;br /&gt; All privileges granted to roles that have been granted to the user or role.&lt;br /&gt;38. Give the limitations of SQL authorization.&lt;br /&gt; The code for checking authorization becomes intermixed with the rest of the&lt;br /&gt;application code.&lt;br /&gt; Implementing authorization through application code rather than specifying it&lt;br /&gt;declaratively in SQL makes it hard to ensure the absence of loopholes.&lt;br /&gt;39. Give some encryption techniques?&lt;br /&gt; DES&lt;br /&gt; AES&lt;br /&gt; Public key encryption&lt;br /&gt;40. What does authentication refer?&lt;br /&gt;Authentication refers to the task of verifying the identity of a person.&lt;br /&gt;41. List some authentication techniques.&lt;br /&gt; Challenge response scheme&lt;br /&gt; Digital signatures&lt;br /&gt; Nonrepudiation&lt;br /&gt;42. Define Boyce codd normal form&lt;br /&gt;A relation schema R is in BCNF with respect to a set F of functional&lt;br /&gt;dependencies if, for all functional dependencies in F&lt;br /&gt;+&lt;br /&gt;of the form. -&gt;, where &lt;br /&gt;43. List the disadvantages of relational database system&lt;br /&gt; Repetition of data&lt;br /&gt; Inability to represent certain information.&lt;br /&gt;44. What is first normal form?&lt;br /&gt;The domain of attribute must include only atomic (simple, indivisible) values.&lt;br /&gt;45. What is meant by functional dependencies?&lt;br /&gt;Consider a relation schema R and  C R and  C R. The functional dependency &lt;br /&gt;  holds on relational schema R if in any legal relation r(R), for all pairs of&lt;br /&gt;tuples t1 and t2 in r such that t1 [] =t1 [], and also t1 [] =t2 [].&lt;br /&gt;46. What are the uses of functional dependencies?&lt;br /&gt; To test relations to see whether they are legal under a given set of functional&lt;br /&gt;dependencies.&lt;br /&gt; To specify constraints on the set of legal relations.&lt;br /&gt;47. Explain trivial dependency?&lt;br /&gt;Functional dependency of the form    is trivial if  C . Trivial functional&lt;br /&gt;dependencies are satisfied by all the relations.&lt;br /&gt;48. What are axioms?&lt;br /&gt;Axioms or rules of inference provide a simpler technique for reasoning about&lt;br /&gt;functional dependencies.&lt;br /&gt;49. What is meant by computing the closure of a set of functional dependency?&lt;br /&gt;The closure of F denoted by F+ is the set of functional dependencies logically&lt;br /&gt;implied by F.&lt;br /&gt;50. What is meant by normalization of data?&lt;br /&gt;It is a process of analyzing the given relation schemas based on their Functional&lt;br /&gt;Dependencies (FDs) and primary key to achieve the properties&lt;br /&gt; Minimizing redundancy&lt;br /&gt; Minimizing insertion, deletion and updating anomalies.&lt;br /&gt;51. Define canonical cover?&lt;br /&gt;A canonical cover Fc for F is a set of dependencies such that F logically implies&lt;br /&gt;all dependencies in FC and Fc logically implies all dependencies in F. Fc must&lt;br /&gt;have the following properties.&lt;br /&gt;52. List the properties of canonical cover.&lt;br /&gt;Fc must have the following properties.&lt;br /&gt; No functional dependency in Fc contains an extraneous attribute.&lt;br /&gt; Each left side of a functional dependency in Fc is unique.&lt;br /&gt;53. Explain the desirable properties of decomposition.&lt;br /&gt; Lossless-join decomposition&lt;br /&gt; Dependency preservation&lt;br /&gt; Repetition of information&lt;br /&gt;54. What is 2NF?&lt;br /&gt;A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A in R&lt;br /&gt;is fully functionally dependent on primary key.&lt;br /&gt;UNIT: 3&lt;br /&gt;DATA STORAGE AND QUERY PROCESSING&lt;br /&gt;1. What is an index?&lt;br /&gt;An index is a structure that helps to locate desired records of a relation quickly,&lt;br /&gt;without examining all records&lt;br /&gt;.&lt;br /&gt;2. Define query optimization.&lt;br /&gt;Query optimization refers to the process of finding the lowest –cost method of&lt;br /&gt;evaluating a given query.&lt;br /&gt;3. What are called jukebox systems?&lt;br /&gt;Jukebox systems contain a few drives and numerous disks that can be loaded into&lt;br /&gt;one of the drives automatically.&lt;br /&gt;4. What are the types of storage devices?&lt;br /&gt; Primary storage&lt;br /&gt; Secondary storage&lt;br /&gt; Tertiary storage&lt;br /&gt; Volatile storage&lt;br /&gt; Nonvolatile storage&lt;br /&gt;5. What is called remapping of bad sectors?&lt;br /&gt;If the controller detects that a sector is damaged when the disk is initially&lt;br /&gt;formatted, or when an attempt is made to write the sector, it can logically map the sector&lt;br /&gt;to a different physical location.&lt;br /&gt;6. Define access time.&lt;br /&gt;Access time is the time from when a read or write request is issued to when data&lt;br /&gt;transfer begins.&lt;br /&gt;7. Define seek time.&lt;br /&gt;The time for repositioning the arm is called the seek time and it increases with the&lt;br /&gt;distance that the arm is called the seek time.&lt;br /&gt;8. Define average seek time.&lt;br /&gt;The average seek time is the average of the seek times, measured over a sequence&lt;br /&gt;of random requests.&lt;br /&gt;9. Define rotational latency time.&lt;br /&gt;The time spent waiting for the sector to be accessed to appear under the head is&lt;br /&gt;called the rotational latency time.&lt;br /&gt;10. Define average latency time.&lt;br /&gt;The average latency time of the disk is one-half the time for a full rotation of the&lt;br /&gt;disk.&lt;br /&gt;11. What is meant by data-transfer rate?&lt;br /&gt;The data-transfer rate is the rate at which data can be retrieved from or stored to&lt;br /&gt;the disk.&lt;br /&gt;12. What is meant by mean time to failure?&lt;br /&gt;The mean time to failure is the amount of time that the system could run&lt;br /&gt;continuously without failure.&lt;br /&gt;13. What is a block and a block number?&lt;br /&gt;A block is a contiguous sequence of sectors from a single track of one platter.&lt;br /&gt;Each request specifies the address on the disk to be referenced. That address is in the&lt;br /&gt;form of a block number.&lt;br /&gt;14. What are called journaling file systems?&lt;br /&gt;File systems that support log disks are called journaling file systems.&lt;br /&gt;15. What is the use of RAID?&lt;br /&gt;A variety of disk-organization techniques, collectively called redundant arrays of&lt;br /&gt;independent disks are used to improve the performance and reliability.&lt;br /&gt;16. What is called mirroring?&lt;br /&gt;The simplest approach to introducing redundancy is to duplicate every disk. This&lt;br /&gt;technique is called mirroring or shadowing.&lt;br /&gt;17. What is called mean time to repair?&lt;br /&gt;The mean time to failure is the time it takes to replace a failed disk and to restore&lt;br /&gt;the data on it.&lt;br /&gt;18. What is called bit-level striping?&lt;br /&gt;Data striping consists of splitting the bits of each byte across multiple disks. This&lt;br /&gt;is called bit-level striping.&lt;br /&gt;19. What is called block-level striping?&lt;br /&gt;Block level striping stripes blocks across multiple disks. It treats the array of disks&lt;br /&gt;as a large disk, and gives blocks logical numbers.&lt;br /&gt;20. What are the two main goals of parallelism?&lt;br /&gt; Load –balance multiple small accesses, so that the throughput of such&lt;br /&gt;accesses increases.&lt;br /&gt; Parallelize large accesses so that the response time of large accesses is&lt;br /&gt;reduced&lt;br /&gt;.&lt;br /&gt;21. What are the factors to be taken into account when choosing a RAID level?&lt;br /&gt;o Monetary cost of extra disk storage requirements.&lt;br /&gt;o Performance requirements in terms of number of I/O operations&lt;br /&gt;o Performance when a disk has failed.&lt;br /&gt;o Performances during rebuild.&lt;br /&gt;22. What is meant by software and hardware RAID systems?&lt;br /&gt;RAID can be implemented with no change at the hardware level, using only&lt;br /&gt;software modification. Such RAID implementations are called software RAID systems&lt;br /&gt;and the systems with special hardware support are called hardware RAID systems.&lt;br /&gt;23. Define hot swapping?&lt;br /&gt;Hot swapping permits the removal of faulty disks and replaces it by new ones&lt;br /&gt;without turning power off. Hot swapping reduces the mean time to repair.&lt;br /&gt;24. What are the ways in which the variable-length records arise in database&lt;br /&gt;systems?&lt;br /&gt; Storage of multiple record types in a file.&lt;br /&gt; Record types that allow variable lengths for one or more fields.&lt;br /&gt; Record types that allow repeating fields.&lt;br /&gt;25. What is the use of a slotted-page structure and what is the information present&lt;br /&gt;in the header?&lt;br /&gt;The slotted-page structure is used for organizing records within a single block.&lt;br /&gt;The header contains the following information.&lt;br /&gt; The number of record entries in the header.&lt;br /&gt; The end of free space&lt;br /&gt; An array whose entries contain the location and size of each record.&lt;br /&gt;26. What are the two types of blocks in the fixed –length representation? Define&lt;br /&gt;them.&lt;br /&gt;• Anchor block: Contains the first record of a chain.&lt;br /&gt;• Overflow block: Contains the records other than those that are the first&lt;br /&gt;record of a chain.&lt;br /&gt;27. What is known as heap file organization?&lt;br /&gt;In the heap file organization, any record can be placed anywhere in the file where&lt;br /&gt;there is space for the record. There is no ordering of records. There is a single file for&lt;br /&gt;each relation.&lt;br /&gt;28. What is known as sequential file organization?&lt;br /&gt;In the sequential file organization, the records are stored in sequential order,&lt;br /&gt;according to the value of a “search key” of each record.&lt;br /&gt;29. What is hashing file organization?&lt;br /&gt;In the hashing file organization, a hash function is computed on some attribute of&lt;br /&gt;each record. The result of the hash function specifies in which block of the file the record&lt;br /&gt;should be placed.&lt;br /&gt;30. What is known as clustering file organization?&lt;br /&gt;In the clustering file organization, records of several different relations are stored&lt;br /&gt;in the same file.&lt;br /&gt;31. What are the types of indices?&lt;br /&gt; Ordered indices&lt;br /&gt; Hash indices&lt;br /&gt;32. What are the techniques to be evaluated for both ordered indexing and hashing?&lt;br /&gt; Access types&lt;br /&gt; Access time&lt;br /&gt; Insertion time&lt;br /&gt; Deletion time&lt;br /&gt; Space overhead&lt;br /&gt;33. What is known as a search key?&lt;br /&gt;An attribute or set of attributes used to look up records in a file is called a search&lt;br /&gt;key.&lt;br /&gt;34. What is a primary index?&lt;br /&gt;A primary index is an index whose search key also defines the sequential order of&lt;br /&gt;the file.&lt;br /&gt;35. What are called index-sequential files?&lt;br /&gt;The files that are ordered sequentially with a primary index on the search key, are&lt;br /&gt;called index-sequential files.&lt;br /&gt;36. What are the two types of indices?&lt;br /&gt; Dense index&lt;br /&gt; Sparse index&lt;br /&gt;37. What are called multilevel indices?&lt;br /&gt;Indices with two or more levels are called multilevel indices.&lt;br /&gt;38. What is B-Tree?&lt;br /&gt;A B-tree eliminates the redundant storage of search-key values .It allows search&lt;br /&gt;key values to appear only once.&lt;br /&gt;39. What is a B+-Tree index?&lt;br /&gt;A B+-Tree index takes the form of a balanced tree in which every path from the&lt;br /&gt;root of the root of the root of the tree to a leaf of the tree is of the same length.&lt;br /&gt;40. What is a hash index?&lt;br /&gt;A hash index organizes the search keys, with their associated pointers, into a hash&lt;br /&gt;file structure.&lt;br /&gt;41. What is called query processing?&lt;br /&gt;Query processing refers to the range of activities involved in extracting data from&lt;br /&gt;a database.&lt;br /&gt;42. What are the steps involved in query processing?&lt;br /&gt;The basic steps are:&lt;br /&gt; parsing and translation&lt;br /&gt; optimization&lt;br /&gt; evaluation&lt;br /&gt;43. What is called an evaluation primitive?&lt;br /&gt;A relational algebra operation annotated with instructions on how to evaluate is&lt;br /&gt;called an evaluation primitive.&lt;br /&gt;44. What is called a query evaluation plan?&lt;br /&gt;A sequence of primitive operations that can be used to evaluate ba query is a&lt;br /&gt;query evaluation plan or a query execution plan.&lt;br /&gt;45. What is called a query –execution engine?&lt;br /&gt;The query execution engine takes a query evaluation plan, executes that plan, and&lt;br /&gt;returns the answers to the query.&lt;br /&gt;46. What are called as index scans?&lt;br /&gt;Search algorithms that use an index are referred to as index scans.&lt;br /&gt;47. What is called as external sorting?&lt;br /&gt;Sorting of relations that do not fit into memory is called as external sorting.&lt;br /&gt;48. What is called as recursive partitioning?&lt;br /&gt;The system repeats the splitting of the input until each partition of the build input&lt;br /&gt;fits in the memory. Such partitioning is called recursive partitioning.&lt;br /&gt;49. What is called as an N-way merge?&lt;br /&gt;The merge operation is a generalization of the two-way merge used by the&lt;br /&gt;standard in-memory sort-merge algorithm. It merges N runs, so it is called an N-way&lt;br /&gt;merge.&lt;br /&gt;50. What is known as fudge factor?&lt;br /&gt;The number of partitions is increased by a small value called the fudge factor,&lt;br /&gt;which is usually 20 percent of the number of hash partitions computed.&lt;br /&gt;UNIT: 4&lt;br /&gt;TRANSACTION PROCESSING&lt;br /&gt;1. What is transaction?&lt;br /&gt;Collections of operations that form a single logical unit of work are called&lt;br /&gt;transactions.&lt;br /&gt;2. What are the two statements regarding transaction?&lt;br /&gt;The two statements regarding transaction of the form:&lt;br /&gt; Begin transaction&lt;br /&gt; End transaction&lt;br /&gt;3. What are the properties of transaction?&lt;br /&gt;The properties of transactions are:&lt;br /&gt; Atomicity&lt;br /&gt; Consistency&lt;br /&gt; Isolation&lt;br /&gt; Durability&lt;br /&gt;4. What is recovery management component?&lt;br /&gt;Ensuring durability is the responsibility of a software component of the base&lt;br /&gt;system called the recovery management component.&lt;br /&gt;5. When is a transaction rolled back?&lt;br /&gt;Any changes that the aborted transaction made to the database must be undone.&lt;br /&gt;Once the changes caused by an aborted transaction have been undone, then the&lt;br /&gt;transaction has been rolled back.&lt;br /&gt;6. What are the states of transaction?&lt;br /&gt;The states of transaction are&lt;br /&gt; Active&lt;br /&gt; Partially committed&lt;br /&gt; Failed&lt;br /&gt; Aborted&lt;br /&gt; Committed&lt;br /&gt; Terminated&lt;br /&gt;7. What is a shadow copy scheme?&lt;br /&gt;It is simple, but efficient, scheme called the shadow copy schemes. It is based on&lt;br /&gt;making copies of the database called shadow copies that one transaction is active at a&lt;br /&gt;time. The scheme also assumes that the database is simply a file on disk.&lt;br /&gt;8. Give the reasons for allowing concurrency?&lt;br /&gt;The reasons for allowing concurrency is if the transactions run serially, a short&lt;br /&gt;transaction may have to wait for a preceding long transaction to complete, which can lead&lt;br /&gt;to unpredictable delays in running a transaction.&lt;br /&gt;So concurrent execution reduces the unpredictable delays in running transactions.&lt;br /&gt;9. What is average response time?&lt;br /&gt;The average response time is that the average time for a transaction to be&lt;br /&gt;completed after it has been submitted.&lt;br /&gt;10. What are the two types of serializability?&lt;br /&gt;The two types of serializability is&lt;br /&gt; Conflict serializability&lt;br /&gt; View serializability&lt;br /&gt;11. Define lock?&lt;br /&gt;Lock is the most common used to implement the requirement is to allow a&lt;br /&gt;transaction to access a data item only if it is currently holding a lock on that item.&lt;br /&gt;12. What are the different modes of lock?&lt;br /&gt;The modes of lock are:&lt;br /&gt; Shared&lt;br /&gt; Exclusive&lt;br /&gt;13. Define deadlock?&lt;br /&gt;Neither of the transaction can ever proceed with its normal execution. This&lt;br /&gt;situation is called deadlock.&lt;br /&gt;14. Define the phases of two phase locking protocol&lt;br /&gt; Growing phase: a transaction may obtain locks but not release any lock.&lt;br /&gt; Shrinking phase: a transaction may release locks but may not obtain any new&lt;br /&gt;locks.&lt;br /&gt;15. Define upgrade and downgrade?&lt;br /&gt;It provides a mechanism for conversion from shared lock to exclusive lock is&lt;br /&gt;known as upgrade.&lt;br /&gt;It provides a mechanism for conversion from exclusive lock to shared lock is&lt;br /&gt;known as downgrade.&lt;br /&gt;16. What is a database graph?&lt;br /&gt;The partial ordering implies that the set D may now be viewed as a directed&lt;br /&gt;acyclic graph, called a database graph.&lt;br /&gt;17. What are the two methods for dealing deadlock problem?&lt;br /&gt;The two methods for dealing deadlock problem is deadlock detection and&lt;br /&gt;deadlock recovery.&lt;br /&gt;18. What is a recovery scheme?&lt;br /&gt;An integral part of a database system is a recovery scheme that can restore the&lt;br /&gt;database to the consistent state that existed before the failure.&lt;br /&gt;19. What are the two types of errors?&lt;br /&gt;The two types of errors are:&lt;br /&gt; Logical error&lt;br /&gt; System error&lt;br /&gt;20. What are the storage types?&lt;br /&gt;The storage types are:&lt;br /&gt; Volatile storage&lt;br /&gt; Nonvolatile storage&lt;br /&gt;21. Define blocks?&lt;br /&gt;The database system resides permanently on nonvolatile storage, and is&lt;br /&gt;partitioned into fixed-length storage units called blocks.&lt;br /&gt;22. What is meant by Physical blocks?&lt;br /&gt;The input and output operations are done in block units. The blocks residing on&lt;br /&gt;the disk are referred to as physical blocks.&lt;br /&gt;23. What is meant by buffer blocks?&lt;br /&gt;The blocks residing temporarily in main memory are referred to as buffer blocks.&lt;br /&gt;24. What is meant by disk buffer?&lt;br /&gt;The area of memory where blocks reside temporarily is called the disk buffer.&lt;br /&gt;25. What is meant by log-based recovery?&lt;br /&gt;The most widely used structures for recording database modifications is the log.&lt;br /&gt;The log is a sequence of log records, recording all the update activities in the database.&lt;br /&gt;There are several types of log records.&lt;br /&gt;26. What are uncommitted modifications?&lt;br /&gt;The immediate-modification technique allows database modifications to be output&lt;br /&gt;to the database while the transaction is still in the active state. Data modifications written&lt;br /&gt;by active transactions are called uncommitted modifications.&lt;br /&gt;27. Define shadow paging.&lt;br /&gt;An alternative to log-based crash recovery technique is shadow paging. This&lt;br /&gt;technique needs fewer disk accesses than do the log-based methods.&lt;br /&gt;28. Define page.&lt;br /&gt;The database is partitioned into some number of fixed-length blocks, which are&lt;br /&gt;referred to as pages.&lt;br /&gt;29. Explain current page table and shadow page table.&lt;br /&gt;The key idea behind the shadow paging technique is to maintain two page tables&lt;br /&gt;during the life of the transaction: the current page table and the shadow page table. Both&lt;br /&gt;the page tables are identical when the transaction starts. The current page table may be&lt;br /&gt;changed when a transaction performs a write operation.&lt;br /&gt;30. What are the drawbacks of shadow-paging technique?&lt;br /&gt;• Commit Overhead&lt;br /&gt;• Data fragmentation&lt;br /&gt;• Garbage collection&lt;br /&gt;30. Define garbage collection.&lt;br /&gt;Garbage may be created also as a side effect of crashes. Periodically, it is&lt;br /&gt;necessary to find all the garbage pages and to add them to the list of free pages. This&lt;br /&gt;process is called garbage collection.&lt;br /&gt;32. Differentiate strict two phase locking protocol and rigorous two phase locking&lt;br /&gt;protocol.&lt;br /&gt;In strict two phase locking protocol all exclusive mode locks taken by a&lt;br /&gt;transaction is held until that transaction commits.&lt;br /&gt;Rigorous two phase locking protocol requires that all locks be held until the&lt;br /&gt;transaction commits.&lt;br /&gt;33. How the time stamps are implemented&lt;br /&gt;• Use the value of the system clock as the time stamp. That is a transaction’s&lt;br /&gt;time stamp is equal to the value of the clock when the transaction enters the&lt;br /&gt;system.&lt;br /&gt;• Use a logical counter that is incremented after a new timestamp has been&lt;br /&gt;assigned; that is the time stamp is equal to the value of the counter.&lt;br /&gt;34. What are the time stamps associated with each data item?&lt;br /&gt;• W-timestamp (Q) denotes the largest time stamp if any transaction that&lt;br /&gt;executed WRITE (Q) successfully.&lt;br /&gt;• R-timestamp (Q) denotes the largest time stamp if any transaction that&lt;br /&gt;executed READ (Q) successfully.&lt;br /&gt;UNIT: 5&lt;br /&gt;CURRENT TRENDS&lt;br /&gt;1. What is meant by object-oriented data model?&lt;br /&gt;The object-oriented paradigm is based on encapsulation of data and code related&lt;br /&gt;to an object in to a single unit, whose contents are not visible to the outside world.&lt;br /&gt;2. What is the major advantage of object-oriented programming paradigm?&lt;br /&gt;The ability to modify the definition of an object without affecting the rest of the&lt;br /&gt;system is the major advantage of object-oriented programming paradigm.&lt;br /&gt;3. What are the methods used in object-oriented programming paradigm?&lt;br /&gt;*read-only&lt;br /&gt;*update&lt;br /&gt;4. What is the main difference between read-only and update methods?&lt;br /&gt;A read-only method does not affect the values of a variable in an object, whereas&lt;br /&gt;an update method may change the values of the variables.&lt;br /&gt;5. What is the use of keyword ISA?&lt;br /&gt;The use of keyword ISA is to indicate that a class is a specialization of another&lt;br /&gt;class.&lt;br /&gt;6. Differentiate sub-class and super-class?&lt;br /&gt;The specialization of a class is called subclasses.eg: employee is a subclass of&lt;br /&gt;person and teller is a subclass of employee.Conversely, employee is a super class&lt;br /&gt;of teller, and person is a super class of employee.&lt;br /&gt;7. What is substitutability?&lt;br /&gt;Any method of a class-say A can equally well be invoked with any object&lt;br /&gt;belonging to any subclasses B of A. This characteristic leads to code reuse, since&lt;br /&gt;the messages, methods, and functions do not have to be written again for objects&lt;br /&gt;of class B.&lt;br /&gt;8. What is multiple inheritance?&lt;br /&gt;Multiple inheritance permits a class to inherit variables and methods from&lt;br /&gt;multiple super classes.&lt;br /&gt;9. What is DAG?&lt;br /&gt;The class-subclass relationship is represented by a directed acyclic graph.eg:&lt;br /&gt;employees can be temporary or permanenet.we may create subclasses temporary&lt;br /&gt;and permanenet, of the class employee.&lt;br /&gt;10. What is disadvantage of multiple inheritance?&lt;br /&gt;There is potential ambiguity if the same variable or method can be inherited from&lt;br /&gt;more than one superclass.eg: student class may have a variable dept identifying a&lt;br /&gt;student's department, and the teacher class may correspondingly have a variable&lt;br /&gt;dept identifying a teacher's department.&lt;br /&gt;11. What is object identity?&lt;br /&gt;An object retains its identity even if some or all the values of variables or&lt;br /&gt;definitions of methods change overtime.&lt;br /&gt;12. What are the several forms of identity?&lt;br /&gt;*Value&lt;br /&gt;*Name&lt;br /&gt;*Built-in&lt;br /&gt;13. What is a value?&lt;br /&gt;A data value is used for identity. This form of identity is used in relational&lt;br /&gt;systems.eg: The primary key value of a tuple identifies the tuple.&lt;br /&gt;14. What is a Name?&lt;br /&gt;A user-supplied name is used for identity. This form of identity is used for files in&lt;br /&gt;file systems. The user gives each file a name that uniquely identifies it, regardless&lt;br /&gt;of its contents.&lt;br /&gt;15What is a Built-in&lt;br /&gt;A notation of identity is built-into the data model or programming language and&lt;br /&gt;no user-supplied identifier is required. This form of identity is used in objectoriented&lt;br /&gt;systems.&lt;br /&gt;16 What is meant by object identifiers?&lt;br /&gt;Object-oriented systems use an object identifier to identify objects. Object&lt;br /&gt;identifiers are unique: that is each object has a single identifier, and no two&lt;br /&gt;objects have the same identifier.&lt;br /&gt;17. What are composite objects?&lt;br /&gt;Objects that contain other objects are called complex objects or composite&lt;br /&gt;objects.&lt;br /&gt;18. What is object containment?&lt;br /&gt;References between objects can be used to model different real-world concepts.&lt;br /&gt;19. Why containment is important in oosystems?&lt;br /&gt;Containment is an important concept in oosystems because it allows different&lt;br /&gt;users to view data at different granularities.&lt;br /&gt;20. Define object-relational systems?&lt;br /&gt;Systems that provide object-oriented extensions to relational systems are called&lt;br /&gt;object-relational systems.&lt;br /&gt;21. How persistent programming languages differ from traditional programming&lt;br /&gt;languages?&lt;br /&gt;Database languages differ from traditional programming languages in that they directly&lt;br /&gt;manipulate data that are persistent-that is, data that continue to exist even after the&lt;br /&gt;program terminated. Relation in a database and tuples in a relation are examples of&lt;br /&gt;persistent data. In contrast, the only persistent data that traditional programming&lt;br /&gt;languages directly manipulate are files.&lt;br /&gt;22. Define atomic domains?&lt;br /&gt;A domain is atomic if elements of the domain are considered to be indivisible&lt;br /&gt;units.&lt;br /&gt;23. Define 1NF?&lt;br /&gt;First normal form is one which requires that all attributes have atomic domains.&lt;br /&gt;24. What is nested relational model?&lt;br /&gt;The nested relational model is an extension of relational model in which domains&lt;br /&gt;may be either atomic or relation valued.&lt;br /&gt;25. List some instances of collection types?&lt;br /&gt;*sets&lt;br /&gt;*arrays&lt;br /&gt;*multisets&lt;br /&gt;26. How to create values of structured type?&lt;br /&gt;Constructor functions are used to create values of structured types. A function&lt;br /&gt;with the same name as a structured type is a constructor function for the structured type.&lt;br /&gt;27. Write a query to define tables students and teachers as sub tables of people?&lt;br /&gt;Create table students of student under people&lt;br /&gt;Create table teachers of teacher under people&lt;br /&gt;28. What is a homogeneous distributed database?&lt;br /&gt;In homogeneous distributed databases, all sites have identical database&lt;br /&gt;management system software, are aware of one another, and agree to cooperate in&lt;br /&gt;processing user's requests.&lt;br /&gt;29. What is a heterogeneous distributed database?&lt;br /&gt;In a heterogeneous distributed database, different sites may use different schemas,&lt;br /&gt;and different dbms s/w.The sites may not be aware of one another, and they may&lt;br /&gt;provide only limited facilities for cooperation in transaction processing.&lt;br /&gt;30. What are the two approaches to store relations in distributed database?&lt;br /&gt;*Replication&lt;br /&gt;*Fragmentation&lt;br /&gt;31. What are the two different schemes for fragmenting a relation?&lt;br /&gt;*horizontal&lt;br /&gt;*vertical&lt;br /&gt;32. What is horizontal fragmentation?&lt;br /&gt;Horizontal fragmentation splits the relation by assuming each tuple of r to one or&lt;br /&gt;more fragments.&lt;br /&gt;33. What is vertical fragmentation?&lt;br /&gt;Vertical fragmentation splits the relation by decomposing the scheme R of&lt;br /&gt;relation r.&lt;br /&gt;34. What are the various forms of data transparency?&lt;br /&gt;*fragmentation transparency&lt;br /&gt;*replication transparency&lt;br /&gt;*location transparency&lt;br /&gt;35. Define decision tree classifiers?&lt;br /&gt;As the name suggests decision tree classifiers use a tree: each leaf node has an associated&lt;br /&gt;class, and each internal node has a predicate associated with it.&lt;br /&gt;16 MARK QUESTIONS&lt;br /&gt;UNIT: 1&lt;br /&gt;1. EXPLAIN ABOUT DATABASE SYSTEM STRUCTURE?&lt;br /&gt;Storage manager&lt;br /&gt;• Authorization and integrity manager&lt;br /&gt;• Transaction manager&lt;br /&gt;• File manager&lt;br /&gt;• Buffer manager&lt;br /&gt;Storage manager implements several data structure as a part of physical system&lt;br /&gt;implementation&lt;br /&gt;• Data function&lt;br /&gt;• Data dictionary&lt;br /&gt;• Indices&lt;br /&gt;The query processor&lt;br /&gt;• DDL interpreter&lt;br /&gt;• DML&lt;br /&gt;• Query evaluation engine&lt;br /&gt;2. DESCRIBE RELATIONAL MODEL?&lt;br /&gt;Structure of relational data base&lt;br /&gt; Basic structure&lt;br /&gt; Database schema&lt;br /&gt; Keys&lt;br /&gt; Schema diagram&lt;br /&gt; Query languages&lt;br /&gt;3. BRIEFLY EXPLAIN RELATIONAL ALGEBRA?&lt;br /&gt;Fundamental operations&lt;br /&gt;• Unary operations&lt;br /&gt;• Binary operations&lt;br /&gt;Select operations&lt;br /&gt;branchname=’perryridge’ (loan)&lt;br /&gt;The project operation&lt;br /&gt;loannumber,amount (loan)&lt;br /&gt;Composition of relational operations&lt;br /&gt;• Relational algebra expressions&lt;br /&gt;Union operations&lt;br /&gt;r  s&lt;br /&gt;r and s must be a same arity.&lt;br /&gt;They must have the same no of attributes.&lt;br /&gt;The set difference operations&lt;br /&gt;r-s produce a relation containing those tuples in r but not in s.&lt;br /&gt;The Cartesian product operations&lt;br /&gt;The rename operations&lt;br /&gt;4. WHAT IS DATA MODELS? EXPLAIN IT DETAIL?&lt;br /&gt;Entity relationship model&lt;br /&gt;• Rectangles&lt;br /&gt;• Ellipse&lt;br /&gt;• Diamonds&lt;br /&gt;• Lines&lt;br /&gt;Relational model&lt;br /&gt;Relational model use a collection of tables to represent both data and the&lt;br /&gt;relationships among those data. Each table has a multiple columns and each columns has&lt;br /&gt;unique name&lt;br /&gt;Other data models&lt;br /&gt;• Object oriented data model&lt;br /&gt;• Object relational data model&lt;br /&gt;• Network data model&lt;br /&gt;• Hierarchical data model&lt;br /&gt;5. BRIEFLY DESCRIBE RELATIONAL CALCULUS?WITH SOME&lt;br /&gt;EXAMPLES?&lt;br /&gt;The tuple relational calculus&lt;br /&gt;A query in a tuple relational calculus is expressed as&lt;br /&gt;{t| P(t)}&lt;br /&gt;• Example Queries&lt;br /&gt;• Formal definition&lt;br /&gt;• Safety of expressions&lt;br /&gt;• Expressive power of languages&lt;br /&gt;The domain relational calculus&lt;br /&gt;• Example Queries&lt;br /&gt;• Formal definition&lt;br /&gt;• Safety of expressions&lt;br /&gt;• Expressive power of languages&lt;br /&gt;UNIT-2&lt;br /&gt;1. DESCRIBE INTEGRITY AND SECURITY?&lt;br /&gt;• Domain constraint&lt;br /&gt;Referential integrity&lt;br /&gt;A value that appears in one relation for a given set of attributes also appear&lt;br /&gt;for a certain set of attributes in another relation. This condition is called referential&lt;br /&gt;integrity.&lt;br /&gt;• Referential integrity and E-R models&lt;br /&gt;• Database modification&lt;br /&gt;• Referential integrity in SQL&lt;br /&gt;2. WHAT IS AGGREGATE FUNCTION?BRIEFLY DESCRIBE IT?&lt;br /&gt;Aggregate functions are functions that take a collection of values as input and&lt;br /&gt;return a single value. SQL offers 5 built-in aggregate functions:&lt;br /&gt;• Average: avg&lt;br /&gt;• Minimum:min&lt;br /&gt;• Maximum: max&lt;br /&gt;• Total:sum&lt;br /&gt;• Count:count&lt;br /&gt;Average: avg&lt;br /&gt;Select avg (balance)&lt;br /&gt;From account&lt;br /&gt;Where branch-name=’perryridge’&lt;br /&gt;Count :count&lt;br /&gt;select branch-name,count(distinct customer-name)&lt;br /&gt;from depositior,account&lt;br /&gt;where depositor.account-number=account.account-number&lt;br /&gt;groupby branch-name&lt;br /&gt;3. WHAT IS DATA DEFINITION LANGUAGE?EXPLAIN IT IN DETAIL?&lt;br /&gt;The SQL DDL allows specification of not only a set of relations, but also&lt;br /&gt;information after each relation, including&lt;br /&gt;• The schema for each relation&lt;br /&gt;• The domain of values associated with each attribute&lt;br /&gt;• The integrity constraints&lt;br /&gt;• The set of indices to be maintained for each relation&lt;br /&gt;• The security and authorization information for each relation&lt;br /&gt;• The physical storage structure of each relation on disk&lt;br /&gt;Domain Types in SQL&lt;br /&gt;Char(n),&lt;br /&gt;varchar(n), int, small int, numeric(p,d), real, double, precision,&lt;br /&gt;float(n), date, time, timestamp.&lt;br /&gt;Schema Definition in SQL&lt;br /&gt;• Primary key&lt;br /&gt;• Check&lt;br /&gt;4. EXPLAIN MECHANISM OF NESTED QUERIES?&lt;br /&gt;SQL provides a mechanism for nesting subqueries.A subquery is a select from&lt;br /&gt;where expression that is nested within another query. A common use of sub queries is to&lt;br /&gt;perform tests for set membership, make set comparisons, and determine set cardinality.&lt;br /&gt;• Set membership&lt;br /&gt;(select customer-name&lt;br /&gt;from depositor)&lt;br /&gt;• Set comparison&lt;br /&gt;select distinct T.branch-name&lt;br /&gt;from branch as T,branch as S&lt;br /&gt;where T.assets &gt; S.assets and S.branch-city=’Brooklyn’&lt;br /&gt;• Test for Empty Relations&lt;br /&gt;Select customer-name&lt;br /&gt;from borrower&lt;br /&gt;where exits (select *&lt;br /&gt;from depositor&lt;br /&gt;where depositor.customername=&lt;br /&gt;borrower.customer-name)&lt;br /&gt;• Test for the Absence of Duplicate Tuples&lt;br /&gt;5. WRITE SHORT NOTES ON MODIFICTION OF THE DATA BASE?&lt;br /&gt;• Definition&lt;br /&gt;delete from r&lt;br /&gt;where P&lt;br /&gt;• Insertion&lt;br /&gt;insert into account&lt;br /&gt;values (‘A-9732’,’perryridge’,1200)&lt;br /&gt;• Updates&lt;br /&gt;update account&lt;br /&gt;set balance=balance*1.05&lt;br /&gt;• Update of a view&lt;br /&gt;• Transaction&lt;br /&gt;UNIT-3&lt;br /&gt;1. DESCRIBE FILE ORGANISATION?&lt;br /&gt;A file is organized logically as a sequence of records. These records are mapped&lt;br /&gt;onto disk blocks.&lt;br /&gt;• Fixed-Length Records&lt;br /&gt;type deposit=record&lt;br /&gt;Accountnumber:char(10);&lt;br /&gt;branch name:char(22);&lt;br /&gt;balance: real;&lt;br /&gt;end&lt;br /&gt;• Variable length records&lt;br /&gt;*storage of multiple record types in a file&lt;br /&gt;* Record types that allow variable lengths for one or more fields&lt;br /&gt;*Record types that allow repeating fields&lt;br /&gt; Byte string Representation&lt;br /&gt; Fixed length representation&lt;br /&gt;• Reserved space&lt;br /&gt;• List representation&lt;br /&gt;2. DEFINE RAID? BRIEFLY EXPLAIN IT?&lt;br /&gt;A variety of disk organization techniques, collectively called redundant arrays&lt;br /&gt;of independent disks (RAID)&lt;br /&gt;• Improvement of reliability via redundancy.&lt;br /&gt;• Improvement in performance via parallelism&lt;br /&gt;1. Bit level striping&lt;br /&gt;2. Block level striping&lt;br /&gt; RAID levels&lt;br /&gt;• RAID level 0&lt;br /&gt;• RAID level 1&lt;br /&gt;• RAID level 2(memory style error correcting code)&lt;br /&gt;• RAID level 3 (Bit interleaved parity organization)&lt;br /&gt;• RAID level 4 (Block interleaved parity organization)&lt;br /&gt;• RAID level 5 (Block interleaved distributed parity)&lt;br /&gt;• RAID level 6 (P+Q redundancy)&lt;br /&gt;3WRITE SHORT NOTES ON INDEX STRUCTURE OF FILES?&lt;br /&gt;There are two basic kinds of indices&lt;br /&gt;• Ordered indices&lt;br /&gt;• Hash indices&lt;br /&gt;Each technique must be evaluated on the basis of these factors:&lt;br /&gt;• Access types&lt;br /&gt;• Access time&lt;br /&gt;• Insertion time&lt;br /&gt;• Deletion time&lt;br /&gt;• Space overhead&lt;br /&gt; Ordered indices&lt;br /&gt; Primary index&lt;br /&gt; Dense and sparse indices&lt;br /&gt; Multilevel index&lt;br /&gt; Index update&lt;br /&gt; Secondary indices&lt;br /&gt;B+-Tree index files&lt;br /&gt;B+-Tree index structure is the most widely used of several index structures&lt;br /&gt;that maintain there efficiency despite insertion and deletion of data.&lt;br /&gt; Structure of B+-Tree&lt;br /&gt; Queries on B+-Tree&lt;br /&gt; Update on B+-Tree&lt;br /&gt; B+-Tree file organization&lt;br /&gt; B-Tree index files&lt;br /&gt;4. EXPLAIN HASH FILE ORGANIZATION?&lt;br /&gt;Hash functions&lt;br /&gt;• The distribution is uniform&lt;br /&gt;Hash functions assign each bucket the same number of search –key&lt;br /&gt;values from the set of all possible search-key values&lt;br /&gt;• The distributed in random&lt;br /&gt;In the average case each bucket will have nearly same no of&lt;br /&gt;values assigned to it, regardless of the actual distribution of search-key&lt;br /&gt;values&lt;br /&gt;Handling of bucket overflows&lt;br /&gt;• Insufficient buckets&lt;br /&gt;• Skew&lt;br /&gt;Open hashing&lt;br /&gt;Under an alternative approach called open hashing&lt;br /&gt;Close hashing&lt;br /&gt;The form of hash structure that we have just described is something&lt;br /&gt;referred to as close hashing.&lt;br /&gt;Hash indices&lt;br /&gt;5. WHAT IS MAGNETIC DISKS?EXPLAIN IT?&lt;br /&gt;Magnetic disk provides the bulk of secondary storage of modern computer&lt;br /&gt;system. The disk capacity is growing at over 50% per year. But the storage&lt;br /&gt;requirements of large applications has also been growing very fast and in some case&lt;br /&gt;every faster than the growth rate of disk capacities. A large data base may require 100&lt;br /&gt;of disks.&lt;br /&gt;• Physical characteristics of disk&lt;br /&gt;Physical disks are relatively simple. Each disc platter has a flat circular shape&lt;br /&gt;We can call magnetic disk as&lt;br /&gt;• hard disk&lt;br /&gt;• Floppy disk&lt;br /&gt;The read write head store information on a sector magnetically as reversals of&lt;br /&gt;the direction of magnetization of the magnetic material. There may be hundreds of&lt;br /&gt;concentric tracks on a disc surface, containing thousands of sectors.&lt;br /&gt;Unit 4&lt;br /&gt;1. DESCRIBE LOG BASED RECOVERY&lt;br /&gt;The most usably structure for recording data base modification is the LOG&lt;br /&gt;the log is a sequence of log records recording all the update activities in the data base.&lt;br /&gt;There are several types of log records. An update log records describes a single data base&lt;br /&gt;write it has these fields&lt;br /&gt;• Transaction identifier&lt;br /&gt;• Data item identifier&lt;br /&gt;• Old value&lt;br /&gt;• New value&lt;br /&gt;The various types log records as.&lt;br /&gt;• &lt; Ti start &gt;. Transaction Ti has started&lt;br /&gt;• &lt; Ti , Tx v1,v2 &gt; .Transaction Ti has performed a right on data item&lt;br /&gt;• &lt; Ti commit &gt; Transaction Ti has committed&lt;br /&gt;• &lt; Ti about &gt; Transaction Ti has aborted&lt;br /&gt; Deferred data base modification&lt;br /&gt; Immediate data base modification&lt;br /&gt; Check point&lt;br /&gt; Shadow paging&lt;br /&gt;2. WHAT IS SERIALIZABILITY?EXPLAIN ITS TYPES?&lt;br /&gt;The data base system must control concurrent&lt;br /&gt;execution of transactions, to ensure that the data base state&lt;br /&gt;remains consistent. There are different forms of schedule&lt;br /&gt;equivalence they lead to the notions of&lt;br /&gt;• Conflict serializability&lt;br /&gt;• View serializability&lt;br /&gt;Conflict serializability&lt;br /&gt;We say that ii and I j conflict if they are operations by different&lt;br /&gt;transaction on the same data item and at least one of these instruction is a write&lt;br /&gt;operations&lt;br /&gt;View serializability&lt;br /&gt;The concept of view equivalence leads to the concept of View&lt;br /&gt;serializability we say that a schedules S is view serializable if it is view equivalent to&lt;br /&gt;a serial scheduler&lt;br /&gt;3.WRITE SHORT NOTES ON TRANSACTION STATE?&lt;br /&gt;A transaction may not always complete its execution successfully such a&lt;br /&gt;transaction is termed aborted&lt;br /&gt;A transaction must be in one of the following states&lt;br /&gt;• Active&lt;br /&gt;• Partially committed&lt;br /&gt;• Failed&lt;br /&gt;• Aborted&lt;br /&gt;• Committed&lt;br /&gt;4. BRIEFLY DESCRIBE CONCURRENCYEXECUTION?&lt;br /&gt;• Lock – based protocols&lt;br /&gt;• Locks&lt;br /&gt;There are various modes in which a data item may be locked in&lt;br /&gt;this section we restrict our attention to two modes&lt;br /&gt;• Shared&lt;br /&gt;• Exclusive&lt;br /&gt;T1 : lock – x(B );&lt;br /&gt;read(B);&lt;br /&gt;B:=B-50;&lt;br /&gt;write(B);&lt;br /&gt;unlock(B);&lt;br /&gt;Lock-x(A);&lt;br /&gt;read(A);&lt;br /&gt;A:=A+50;&lt;br /&gt;write(A);&lt;br /&gt;unlock(A).&lt;br /&gt;5. EXPLAIN CONCURRENCY CONTROL?&lt;br /&gt;Concurrency control&lt;br /&gt;Oracles multiversion concurrency control differs from the&lt;br /&gt;concurrency mechanism used by some other data base vendors. Read only queries are&lt;br /&gt;given a read –consistent snapshot which is view if the data base as it existed at the&lt;br /&gt;specific point in time, containing all update that we were committed by that point in time&lt;br /&gt;and not containing any updates that were not committed at any point in time thus read&lt;br /&gt;clock are not used in read only queries don’t interfere with other data base activity in&lt;br /&gt;term of locking.&lt;br /&gt;Managed stand by data base&lt;br /&gt;To ensure high availability oracle provide a managed stand by data base&lt;br /&gt;future A stand by data base is a copy of the regular data base ie in solved on the separate&lt;br /&gt;system. If a catastrophic failure occur on the primary system, the stand by system is&lt;br /&gt;activate and take over there by minimizing effect on failure on a availability. Oracle&lt;br /&gt;keeps the stand by data base up to date by constantly applying archived redo logs that are&lt;br /&gt;shipped from the primary data base the back up data base can be brought online in readonly&lt;br /&gt;mode and used for reporting and decision support queries&lt;br /&gt;UNIT 5&lt;br /&gt;1. WRITE SHORT NOTES ON DATA WARE HOUSING?&lt;br /&gt;Data ware housing applications requires the transformation of data from many&lt;br /&gt;sources into a cohesive consistent step set of data configured appropriately for use in data&lt;br /&gt;ware house operation.&lt;br /&gt;• Distributed Transformation services&lt;br /&gt;Data ware housing is an approach to manage data in which&lt;br /&gt;heterogeneous data sources are migrated to a separate homogeneous&lt;br /&gt;data base&lt;br /&gt;• Online Analytical processing services&lt;br /&gt;OLAP services provide server and client capabilities to create&lt;br /&gt;and manage multidimensional OLAP data .&lt;br /&gt;2. EXPLAIN NESTED RELATIONS?&lt;br /&gt;Nested relations&lt;br /&gt;The assumption of INF is a natural one in the bank examples we&lt;br /&gt;have considered. However, not all applications are best modeled by INF relations.&lt;br /&gt;The nested relational model is an extension of the relational model in which&lt;br /&gt;domains may be either atomic or relation valued.&lt;br /&gt;We illustrate nested relations by an example from a library. Suppose we store for&lt;br /&gt;each book the following in formations&lt;br /&gt;• Book title&lt;br /&gt;• Set of authors&lt;br /&gt;• Publishers&lt;br /&gt;• Set of keywords&lt;br /&gt;We can see that if we define a relation for the preceding information, several&lt;br /&gt;domains will be monatomic&lt;br /&gt;• Authors&lt;br /&gt;• Keywords&lt;br /&gt;• Publishers&lt;br /&gt;Complex types&lt;br /&gt;Collection and large object types&lt;br /&gt;Create table books(&lt;br /&gt;…&lt;br /&gt;Keyword-set setoff(varchar(20))&lt;br /&gt;…&lt;br /&gt;)&lt;br /&gt;Structure types&lt;br /&gt;Creation of values of complex types&lt;br /&gt;3. WHAT IS INHERITANCE? DESCRIBE IT IN DETAIL?&lt;br /&gt;Inheritance&lt;br /&gt;Inheritance can be at the levels of types, or at the level of tables We first&lt;br /&gt;consider inheritance of types, then inheritance at the level of labels.&lt;br /&gt;Type inheritance&lt;br /&gt;Suppose that we have the following type definition for people&lt;br /&gt;create type person&lt;br /&gt;(name varchar(20)&lt;br /&gt;address varchar(20))&lt;br /&gt;Table inheritance&lt;br /&gt;Create table people of person&lt;br /&gt;The consistency requirements for sub tables are&lt;br /&gt;1. Each tuple of the sub table can correspond to at most one tuple in each of its&lt;br /&gt;immediate sub tables.&lt;br /&gt;2. SQL:1999 has an additional constraint that all the tuples corresponding to each&lt;br /&gt;other must be derived from one tuple .&lt;br /&gt;Overlapping sub tables&lt;br /&gt;4 WHAT ARE THE TYPES OF REFERENCE?EXPLAIN IT WITH SUITABLE&lt;br /&gt;EXAMPLES?&lt;br /&gt;Object oriented language provided the ability to refer the object attribute of&lt;br /&gt;the type can be referred to the specified type. We can define the type dept with a field&lt;br /&gt;name and a field head which is reference to the type person and a table dept of the type&lt;br /&gt;dept as followed&lt;br /&gt;Create type dept(&lt;br /&gt;Name varchar(20),&lt;br /&gt;Head ref(person)scope people&lt;br /&gt;)&lt;br /&gt;Create table dept of dept&lt;br /&gt;The table definition must specify that the reverence is derived and must still&lt;br /&gt;specify a self referential attribute name. When interesting a tuple for dept we can then use&lt;br /&gt;Insert into dept&lt;br /&gt;Values(‘CS’,’john’)&lt;br /&gt;5. DESCRIBE QUERIES WITH COMPLEX TYPES?&lt;br /&gt;The present extension of the SQL query language deal with the complex type&lt;br /&gt;Let us start with the simple example:&lt;br /&gt;Find the title and the name of the publisher of each book this query carries out the&lt;br /&gt;task:&lt;br /&gt;Select title, publisher.name&lt;br /&gt;From books&lt;br /&gt;• path expression&lt;br /&gt;The reference are dereference in 1999 by the –&gt; simple&lt;br /&gt;Select head-&gt; name, head-&gt;address&lt;br /&gt;From dept&lt;br /&gt;An expression such as” head-&gt;name” is called the path expression.&lt;br /&gt;• Collection valued attributes&lt;br /&gt;• Nesting and unnesting&lt;br /&gt;The transformation of the nested relation in to a form with fewer&lt;br /&gt;(or no) the relation –valued attribute value is called unnesting&lt;br /&gt;The reverse process of transformation a INF relation into a&lt;br /&gt;nested relation is called nesting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-8095041653220727827?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/8095041653220727827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/cs1301-database-management-systems.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/8095041653220727827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/8095041653220727827'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/cs1301-database-management-systems.html' title='CS1301-DATABASE MANAGEMENT SYSTEMS'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-2084709883003296781</id><published>2009-08-13T21:00:00.000-07:00</published><updated>2009-08-13T21:06:27.344-07:00</updated><title type='text'>Lab Manual</title><content type='html'>           KCG COLLEGE OF TECHNOLOGY&lt;br /&gt;          KARAPAKKAM, CHENNAI – 600 097&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     OPERATING SYSTEMS LABORATORY MANUAL&lt;br /&gt;     (FOR III B.TECH V SEM IT STUDENTS)&lt;br /&gt;&lt;br /&gt;      CS-1254 OPERATING SYSTEMS LAB&lt;br /&gt;&lt;br /&gt;        Developed by&lt;br /&gt;     R.N.Sharmila.Lect.,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DEPARTMENT OF INFORMATION TECHNOLOGY&lt;br /&gt;AS PER THE ANNA UNIVERSITY SYLLABUS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      LIST OF EXPERIMENTS&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;01   Study of Basic Linux commands&lt;br /&gt;   &lt;br /&gt;02   Shell programs  &lt;br /&gt;                                 &lt;br /&gt;a)  Greatest among Three numbers &lt;br /&gt;b)   Armstrong Number &lt;br /&gt;c)   Patterns&lt;br /&gt;            d)   Expansions&lt;br /&gt;e)   Substitution&lt;br /&gt;f)  Student’s Grade System&lt;br /&gt;&lt;br /&gt;03   CPU Scheduling &lt;br /&gt;                               &lt;br /&gt;a) First Come First Serve &lt;br /&gt;b) Shortest Job First &lt;br /&gt;d) Priority Scheduling&lt;br /&gt;e) Round Robin &lt;br /&gt;&lt;br /&gt;04   Program using System call  &lt;br /&gt;                              &lt;br /&gt;a)   fork () &lt;br /&gt;b)  getpid() &amp; getppid() &lt;br /&gt;c)   Wait ()&lt;br /&gt;			d)opendir(),readdir,closeddir()&lt;br /&gt; &lt;br /&gt;05   Program using I/O System call open (), read () &amp; write ()                              &lt;br /&gt;   &lt;br /&gt;06    Simulation of “ls and grep” commands&lt;br /&gt;&lt;br /&gt;07   Producer-Consumer Problem &lt;br /&gt;&lt;br /&gt;08  Deadlock Avoidance Memory Management Scheme&lt;br /&gt;&lt;br /&gt;a) First fit&lt;br /&gt;b) Best fit&lt;br /&gt;c) Worst fit&lt;br /&gt;09 Deadlock Avoidance&lt;br /&gt;&lt;br /&gt;Ex.No.1                  STUDY OF BASIC UNIX COMMANDS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;	&lt;br /&gt;To study the basic UNIX commands for the following operations.&lt;br /&gt;•	Viewing the all working user&lt;br /&gt;•	Viewing the current user of the system&lt;br /&gt;•	Viewing the Date and Time&lt;br /&gt;•	Viewing the Calendar&lt;br /&gt;•	Displaying the given message&lt;br /&gt;•	Listing Files&lt;br /&gt;•	Checking the Current working directory&lt;br /&gt;•	Creating a directory&lt;br /&gt;•	Changing the Working directory&lt;br /&gt;•	Removing a directory&lt;br /&gt;•	Displaying and creating files&lt;br /&gt;•	Copying a file&lt;br /&gt;•	Deleting files&lt;br /&gt;•	Renaming files&lt;br /&gt;•	Counting number of words in a file&lt;br /&gt;•	Clear the screen&lt;br /&gt;•	Performing mathematical calculation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;THEORY:&lt;br /&gt;UNDERSTANDING THE UNIX COMMANDS: &lt;br /&gt;	In Windows operating system, you have to click on an icon to get a job done that is primarily GUI (Graphical User Interface) based. The UNIX system is heavily command based that is you have to type in a few characters to frame a command and then press the &lt;Enter&gt; key for it to work. In UNIX system a minimum number of keystrokes achieve the maximum amount of work. That is why UNIX commands are seldom more than four characters long. All UNIX commands are single words like “ls, cat, who”.This commands are all in lowercase. &lt;br /&gt;Viewing the all working user:&lt;br /&gt;      	The UNIX system is multi-user system .In that network to see who are all currently in network, the “who” command is used to view the all working user, that is it else everyone who is currently logged in .Syntax of the “who” command is &lt;br /&gt;				$ who&lt;br /&gt;The UNIX respond of “who” command is &lt;br /&gt;[thrcse01@localhost thrcse01]$ who&lt;br /&gt;root     :0           Nov  4 02:11&lt;br /&gt;root     pts/1        Nov  4 02:20 (:0.0)&lt;br /&gt;thrcse01 pts/2        Nov  4 02:25 (129.0.0.240)&lt;br /&gt;&lt;br /&gt;There are three users of the system   with their login names shown in the first column. The second column shows the devices names of their respective terminals.thrcse01 has the name pts/2 associated with his terminal, while thrcse01 terminal has the name pts/1.The third column shows the date and time of the logging in. The terminal names that you see in the who output are actually special files representing the devices. These files are available in /dev.For example, the file pts/1 can be found in the /dev directory.&lt;br /&gt;Viewing the current user of the system:&lt;br /&gt;The “who” command tells everyone who is currently logged in. To see who you   are in network, so you should use it with two arguments “am” and “i” the “who am i” Command is used to view the current user of that particular system, that is it shows the user name and system’s name for the connection being used for that particular system, that is it shows the user name and system’s name for the connection being used for that system. Syntax of the “who am i” command is&lt;br /&gt;				$who am i&lt;br /&gt;The UNIX respond of “who am i” command is &lt;br /&gt;[thrcse01@localhost thrcse01]$ who am i&lt;br /&gt;thrcse01 pts/2        Nov  4 02:25 (129.0.0.240)&lt;br /&gt;	&lt;br /&gt;Here current working user’s login names shown in the first column. The second column shows terminal of the device names of their respective terminals. The third column shows the date and time of logging in.&lt;br /&gt;Viewing the Date and Time:&lt;br /&gt;		The UNIX system maintains an internal clock. This clock actually stores the number of seconds elapsed since january1, 1970 the “date” command shows the date and time to the nearest second. Syntax of the “date” command is&lt;br /&gt;					$ date&lt;br /&gt;The UNIX respond of “date” command is &lt;br /&gt;[thrcse01@localhost thrcse01]$ date&lt;br /&gt;Fri Nov  4 02:28:47 IST 2005&lt;br /&gt;Here day shown in the first column, month shown in the second column, date shown in the third column, time with nearest second shown in the fourth column.&lt;br /&gt;Viewing the Calendar:&lt;br /&gt;	The “cal” command is used to view the present year calendar . Syntax of the “cal” command is 					$ cal&lt;br /&gt;The UNIX respond of “cal” command is &lt;br /&gt;[thrcse01@localhost thrcse01]$ cal&lt;br /&gt;November 2005&lt;br /&gt;Su Mo Tu We Th Fr Sa&lt;br /&gt;              1   2   3   4    5&lt;br /&gt;            6   7      8   9  10  11 12&lt;br /&gt;           13  14  15  16 17 18  19&lt;br /&gt;           20  21  22  23  24 25  26&lt;br /&gt;           27  28  29  30&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Displaying the given message:&lt;br /&gt;			The “echo” command displays it arguments. We can use this command either quoted or unquoted. Syntax of the “echo” command is &lt;br /&gt;				$ echo&lt;message&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The UNIX respond of “echo” command is&lt;br /&gt;&lt;br /&gt;[thrcse01@localhost thrcse01]$ echo hello&lt;br /&gt;In the unquoted argument the multiple spaces reduce to single space. But in the quoted argument multiple spaces are displayed.&lt;br /&gt;Listing Files :&lt;br /&gt;		The “ls” command is used to list out the names of the files available in the current working directory. The syntax of the “ls” command is&lt;br /&gt;					$ ls&lt;br /&gt;The UNIX respond of “ls”command is&lt;br /&gt;&lt;br /&gt;[thrcse01@localhost thrcse01]$ ls&lt;br /&gt;alm  file  india&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here alm, file and India are the files of the current working directory.&lt;br /&gt;Checking the Current working directory:&lt;br /&gt; 		It is remarkable feature of the UNIX system that, like a file, user also occupies a certain slot in the files system. When you log in, you are placed in a specific directory of the file system. This directory is known as your current directory. You can move around from one directory to another, but at any point of the time, only one directory is current. The “ pwd” (present working directory)command is used to move our current working directory. The syntax of the “pwd” command is&lt;br /&gt;					$ pwd&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The UNIX respond of “pwd”command is&lt;br /&gt;[thrcse01@localhost thrcse01]$ pwd&lt;br /&gt;/home/thrcse01&lt;br /&gt;[thrcse01@localhost thrcse01]$&lt;br /&gt;          &lt;br /&gt;  Here /home /thrcse01 is a path name, which is simply a sequence of directory names separated by slashes. pwd here tells you that you are placed in the directory “thrcse01”, which has the parent directory “home” and first slash represent the root directory. &lt;br /&gt;Creating a directory:&lt;br /&gt;	Directories can be created with the  “mkdir” (Make Directory) command. The command is followed by the names of the directories to be created. The syntax of the “mkdir” command is&lt;br /&gt;				$ mkdir &lt;directory name&gt;&lt;br /&gt;A directory “sugan” is created under the current directory like this.&lt;br /&gt;&lt;br /&gt;[thrcse01@localhost thrcse01]$ mkdir sugan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Changing the Working directory:&lt;br /&gt;	You can move around in the file system by using the “cd” (change directory) command. It changes the current directory specified as the argument. The syntax of the “cd” command is&lt;br /&gt;				$ cd &lt;directory name&gt;&lt;br /&gt;The directory is changed from the current directory.&lt;br /&gt;&lt;br /&gt;[thrcse01@localhost thrcse01]$ pwd&lt;br /&gt;/home/thrcse01&lt;br /&gt;[thrcse01@localhost thrcse01]$ cd sugan&lt;br /&gt;[thrcse01@localhost sugan]$ pwd&lt;br /&gt;/home/thrcse01/sugan&lt;br /&gt;[thrcse01@localhost sugan]$&lt;br /&gt;&lt;br /&gt;Removing a directory:&lt;br /&gt;	The “rmdir”(Remove directory) command removes directories. The command is followed by the names of the directories to be created. The syntax of the “rmdir” command is&lt;br /&gt;				$ rmdir &lt;directory names&gt;&lt;br /&gt;The directory “sugan” is removed from the current working directory like this&lt;br /&gt;[thrcse01@localhost sugan]$ rmdir sugan&lt;br /&gt;&lt;br /&gt;Displaying and creating files:&lt;br /&gt;	“cat” command  is mainly used to display the contents of the file on the terminal.The syntax of the “cat” command is&lt;br /&gt;					$ cat &lt;file name&gt;&lt;br /&gt;The UNIX respond of “cat”command is&lt;br /&gt;[thrcse01@localhost sugan]$ cat alm&lt;br /&gt;God is Great&lt;br /&gt;&lt;br /&gt;The above output shows the alm file’s contents.&lt;br /&gt;To create a file using “cat”:&lt;br /&gt;	“cat” is also useful for creating a file.Enter the command “cat” , followed by &gt;(the right chevron) character and the file name for example&lt;br /&gt;[thrcse01@localhost thrcse01]$ cat &gt; file&lt;br /&gt;hai&lt;br /&gt;hello&lt;br /&gt;good morning&lt;br /&gt;&lt;br /&gt;When the command line is terminated after hitting the &lt;Enter&gt; key, the prompt vanishes. Now waits to take input from the user. Enter the Data into the file, each line followed by &lt;Enter&gt;.Finally, press &lt;ctrl-d&gt; to signify the end of input to the system. When this character is entered, the system understands that no further text input will be made. The file is written and the prompt returned.&lt;br /&gt;Copying a file:&lt;br /&gt;	The “cp” (copy) command copies a file or a group of files .The syntax requires at least two file names to be specified in the command line. The syntax is &lt;br /&gt;				$ cp &lt;filename 1 &gt; &lt;filename 2&gt;&lt;br /&gt;The first file is copied to the second. The UNIX respond of “cp”command is&lt;br /&gt;[thrcse01@localhost thrcse01]$ cp alm india&lt;br /&gt;[thrcse01@localhost thrcse01]$ cat india&lt;br /&gt;GOD IS GREAT&lt;br /&gt;[thrcse01@localhost thrcse01]$ cat alm&lt;br /&gt;GOD IS GREAT&lt;br /&gt;&lt;br /&gt;Here “alm” file’s contents are copied to the “file” file. &lt;br /&gt;Deleting files:&lt;br /&gt;	Files can be deleted with “rm”(remove).It can delete more than one file with single instruction. The syntax of “rm” command is &lt;br /&gt;					$ rm &lt;filename&gt;&lt;br /&gt;The UNIX respond of “rm”command is&lt;br /&gt;[thrcse01@localhost thrcse01]$ ls&lt;br /&gt;alm  file  india  sugan&lt;br /&gt;[thrcse01@localhost thrcse01]$ rm india&lt;br /&gt;[thrcse01@localhost thrcse01]$ ls&lt;br /&gt;alm  file  sugan&lt;br /&gt;&lt;br /&gt;Renaming files :&lt;br /&gt;             “mv”(move) command is used to renaming the file .It has to function renaming a file (ordirectory)and moving group of files to a different directory. Unlike “cp”command the “mv”command does not create a copy of the file, it merely renames it. The syntax requires at least two file names to be specified in the command line.&lt;br /&gt;The syntax is&lt;br /&gt;$ mv &lt;filename1&gt; &lt;filename 2&gt;&lt;br /&gt;thrcse01@localhost thrcse01]$ mv alm file[thrcse01@localhost thrcse01]$ cat file&lt;br /&gt;GOD IS GREAT&lt;br /&gt;[thrcse01@localhost thrcse01]$ cat alm&lt;br /&gt;cat: alm: No such file or directory&lt;br /&gt;&lt;br /&gt;Here entire command of “alm” file contents are moved to “alm1”file.Now “alm” file has no contents everything moved to the “alm1”.That is “alm”file is renamed to “alm1”.&lt;br /&gt;Counting number of words in a file:&lt;br /&gt;The “wc”(word count) command is used to count the number of  lines, words and character in a file, for example&lt;br /&gt;[thrcse01@localhost thrcse01]$ wc file&lt;br /&gt;2       3      14 file&lt;br /&gt;&lt;br /&gt;“wc” counts 2 lines, 3 words and 14 characters. The file name has also been shown in the fourth column. Here a line is any group of characters not containing a new line character. A word is a group of characters not containing a space, tab or  new line. A character is the smallest unit of information and includes all spaces , tabs and new line.&lt;br /&gt;Performing mathematical calculation:&lt;br /&gt;The “bc” command is used to perform basic mathematical calculation.&lt;br /&gt; The UNIX respond of “bc”command is&lt;br /&gt;[thrcse01@localhost thrcse01]$ bc&lt;br /&gt;bc 1.06&lt;br /&gt;Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.This is free software with ABSOLUTELY NO WARRANTY.&lt;br /&gt;For details type `warranty'.&lt;br /&gt;2*3&lt;br /&gt;6&lt;br /&gt;7+5-4*3&lt;br /&gt;0&lt;br /&gt;[thrcse01@localhost thrcse01]$&lt;br /&gt;&lt;br /&gt;When you invoke “bc” without arguments, the input has to be keyed in , each line terminated by pressing &lt;Enter&gt; . After you have finished your work , use&lt;ctrl-d&gt; for terminating the “bc” command.&lt;br /&gt;Clear the screen:&lt;br /&gt;The “clear” command is used to vanish the entire content in the command screen. That is whatever has been typed so far has vanished from our view and the cursor is positioned at the top-left corner of the screen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SHELL PROGRAMMING&lt;br /&gt;EX.NO: 2a)       GREATEST AMONG THREE NUMBERS&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;To write a shell program to find the greatest among three numbers using loops.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;1.  Start&lt;br /&gt;2.  Read the three value a,b,c.&lt;br /&gt;3.  the value of a&gt;b and a&gt;c then print “a” is greater.&lt;br /&gt;4.  Else if b&gt;c then print “b” is greater.&lt;br /&gt;5. Else print “c” is greater.&lt;br /&gt;6.Stop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM&lt;br /&gt;echo "Enter the 3 number”&lt;br /&gt;read a,b,c&lt;br /&gt;If  test $a –gt $b –a $a -gt $c&lt;br /&gt;Then&lt;br /&gt;echo "$a is greater"&lt;br /&gt;elif  test  $b  -gt  $c&lt;br /&gt;Then&lt;br /&gt;echo "$b is greater"&lt;br /&gt;else&lt;br /&gt;echo "$c is greater"&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[it3@localhost it3]$sh ggr.sh&lt;br /&gt;Enter the 3 number...&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;7 is greater.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EX.NO : 2b)                   ARMSTRONG NUMBER&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt; To write a shell program to check whether the given number is Armstrong or not.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step1: Enter the given number.&lt;br /&gt;Step 2: Separate the digit using the formula q=`expr $n % 10`and r=`expr $n %10`.&lt;br /&gt;Step 3: Calculate sum of cube of digits by the formula a=`expr $a + $r /* $r /* $r`.&lt;br /&gt;Step 4: Compute the result with the given number.&lt;br /&gt;Step 5: if found equal then display it as Armstrong number else display not Armstrong &lt;br /&gt;number.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;echo”enter the number”&lt;br /&gt;read n&lt;br /&gt;q=$n&lt;br /&gt;a=0&lt;br /&gt;while [ $q – gt 0 ]&lt;br /&gt;do&lt;br /&gt;r= `expr $q % 10 `&lt;br /&gt;q= `expr $q / 10 `&lt;br /&gt;a=`expr $a + $r /* $r /*$r `&lt;br /&gt;done&lt;br /&gt;if [ $a=$n ]&lt;br /&gt;then&lt;br /&gt;echo “the number $n is armstrong number”&lt;br /&gt;else&lt;br /&gt;echo“the number $n is not armstrong number”&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[it6@localhost pgm]$ sh arm.sh&lt;br /&gt;Enter the number:&lt;br /&gt;153&lt;br /&gt;The number 153 is Armstrong number.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EX.NO   : 2c)     		PATTERNS&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;To write a shell program to print the records of the employee for the given conditions using patterns.&lt;br /&gt;Pattern.sh&lt;br /&gt;First name		Last name		Rate		Hours&lt;br /&gt;Senthil			kumar			15		20&lt;br /&gt;Kousik 		kumar			12		0&lt;br /&gt;Kumar			ganesh 		13		21&lt;br /&gt;Mohan			Raj			0		10&lt;br /&gt;Shanmuga		Nathan			12		11&lt;br /&gt;Guna			sekhar			32		48&lt;br /&gt;QUESTIONS&lt;br /&gt;1.  Print the records of employee who didn’t work last week.&lt;br /&gt;2.  Print the records employee whose rate&gt;15.&lt;br /&gt;3.	Print the records of employee whose first name is Guna.&lt;br /&gt;4.	Print the hours of employee whose hours  is 20-40.&lt;br /&gt;5.	Print the hours of employee whose rate is greater than 18.&lt;br /&gt;&lt;br /&gt;ALGORITHM&lt;br /&gt;1.  Start&lt;br /&gt;2.  Read the records of the employee in the file.&lt;br /&gt;3. Print the records of the employee for the given conditions using echo commands&lt;br /&gt;4. Stop.&lt;br /&gt;PROGRAM:&lt;br /&gt;First name		Last name		Rate		Hours&lt;br /&gt;Senthil			kumar			15		20&lt;br /&gt;Kousik 		kumar			12		0&lt;br /&gt;Kumara		ganesh 		13		21&lt;br /&gt;Mohan			Raj			0		10&lt;br /&gt;Shanmuga		Nathan			12		11&lt;br /&gt;Guna			sekhar			32		48&lt;br /&gt;&lt;br /&gt;[it3@1local host  it3]$ cat ah0011&lt;br /&gt;Awk `$4==0{print $1 $2}’ah0011.sh&lt;br /&gt;Awk `$3 &gt; 15{print $1 $2 $4}’ah0011.sh&lt;br /&gt;Awk `$1==”guna”{print $1 $2}’ah0011.sh&lt;br /&gt;Awk `$3 &gt; 25{print $1 $4}’ah0011.sh&lt;br /&gt;Awk `$4 &gt; 40{print $1 $2 $3  $4  }’ah0011.sh&lt;br /&gt;OUTPUT&lt;br /&gt;[it3@1local host  it3]$ cat ah0011&lt;br /&gt;Kaushikkumar&lt;br /&gt;First name		Last name				Hours&lt;br /&gt;Guna			sekhar					48&lt;br /&gt;First name		Hours&lt;br /&gt;Guna			48&lt;br /&gt;Kumaraganesh&lt;br /&gt;First name		Last name		Rate		Hours&lt;br /&gt;Guna			sekhar			32		48&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EX.NO  : 2d)     			EXPANSIONS&lt;br /&gt;AIM:&lt;br /&gt;To write a shell program to implement variable expansion using command line argument to test the files in the directory.&lt;br /&gt;ALGORITHM:&lt;br /&gt;1. Start.&lt;br /&gt;2. Open a file in vi editor.&lt;br /&gt;3. Assign current directory to the variable.&lt;br /&gt;4. Change directory to the assigned variable.&lt;br /&gt;5. List all the files using ls command.&lt;br /&gt;6. Stop.&lt;br /&gt;PROGRAM:&lt;br /&gt;a=$*&lt;br /&gt;cd $a&lt;br /&gt;ls&lt;br /&gt;OUTPUT&lt;br /&gt;00	aa	it057			ree&lt;br /&gt;01	aart	it57pattern.sh		sri&lt;br /&gt;015	sshh	it19			thy&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EX.NO : 2e)     			SUBSTITUTION&lt;br /&gt;AIM:&lt;br /&gt;To write a shell program to count the number of words in a file using substitution.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;1.Start.&lt;br /&gt;2.Open a file in vi editor.&lt;br /&gt;3.Assign current directory to the variable.&lt;br /&gt;4.Count the number of words,line,characters using echo and wc command.&lt;br /&gt;5.Stop.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;&lt;br /&gt;Echo”enter the file name”&lt;br /&gt;Read a&lt;br /&gt;Echo”wc of aa is”&lt;br /&gt;Echo “$(wc $a)”&lt;br /&gt;&lt;br /&gt;OUTPUT&lt;br /&gt;[it3@localhost it3]$sh aa&lt;br /&gt;Enter the file name&lt;br /&gt;Coat&lt;br /&gt;Wc of coat is&lt;br /&gt;1  1  3  coat&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EX.NO   : 2f)     	                  STUDENT GRADE SYSTEM&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;To write a program to compute the grade of the student using substitution.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;1. Start.&lt;br /&gt;2. Open a file in vi editor.&lt;br /&gt;3. read the student name and the subject name.&lt;br /&gt;4. calculate the total and the average.&lt;br /&gt;5. If the average is greater than 75,print first class.&lt;br /&gt;6. If the average is greater than 35.print secound class.&lt;br /&gt;7. Else print fail.&lt;br /&gt;8. print student name along with the grade.&lt;br /&gt;9. Stop.&lt;br /&gt;&lt;br /&gt;PROGRAM:&lt;br /&gt;Echo”enter the name of the student “&lt;br /&gt;Read a&lt;br /&gt;Echo”enter the 3 marks”&lt;br /&gt;Read b&lt;br /&gt;Read c&lt;br /&gt;Read d&lt;br /&gt;F=`expr $b + $c + $d`&lt;br /&gt;G=`expr  $F / 3`&lt;br /&gt;If test $g –gt 75&lt;br /&gt;Then&lt;br /&gt;Echo”1st class”&lt;br /&gt;Elif test $g –gt 50&lt;br /&gt;Then&lt;br /&gt;Echo”2nd  class”&lt;br /&gt;Else&lt;br /&gt;Echo”fail”&lt;br /&gt;Fi&lt;br /&gt;&lt;br /&gt;OUTPUT&lt;br /&gt;[it3@localhost it3]sh aa&lt;br /&gt;Enter the name of the student&lt;br /&gt;Hema&lt;br /&gt;Enter the 3 marks&lt;br /&gt;98&lt;br /&gt;97&lt;br /&gt;76&lt;br /&gt;1st class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:3a)		CPU SCHEDULING: FIRST COME FIRST SERVE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement the CPU scheduling algorithm FIRST COME FIRST SERVE.&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;Cpu scheduler will decide which process should be given the CPU for its execution.For&lt;br /&gt;this it uses different algorithm to choose among the process. One among that algorithm is FCFS&lt;br /&gt;algorithm.In this algorithm the process which arrive first is given the cpu after finishing its&lt;br /&gt;request only it will allow cpu to execute other process.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step 1: Create the number of process.&lt;br /&gt;Step 2: Get the ID and Service time for each process.&lt;br /&gt;Step 3: Initially, Waiting time of first process is zero and Total time for the first process    is the starting time of that process.&lt;br /&gt;Step 4: Calculate the Total time and Processing time for the remaining processes.&lt;br /&gt;Step 5: Waiting time of one process is the Total time of the previous process.&lt;br /&gt;Step 6: Total time of process is calculated by adding Waiting time and Service time.&lt;br /&gt;Step 7: Total waiting time is calculated by adding the waiting time for lack process.&lt;br /&gt;Step 8: Total turn around time is calculated by adding all total time of each process.&lt;br /&gt;Step 9:Calculate Average waiting time by dividing the total waiting time by total number of  process.&lt;br /&gt;Step 10: Calculate Average turn around time by dividing the total time by the number of                         process.&lt;br /&gt;Step 11: Display the result.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int n,b[10],t=0,i,w=0,r=0,a=0;&lt;br /&gt;float avg,avg1;&lt;br /&gt;printf("\nEnter number of processes:");&lt;br /&gt;scanf("%d",&amp;n);&lt;br /&gt;printf("\nEnter the burst times : \n");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;scanf("%d",&amp;b[i]);&lt;br /&gt;printf("\n Gantt chart ");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;printf("P%d\t",i);&lt;br /&gt;printf("\n\nProcess  BurstTime  WaitingTime  TurnaroundTime\n");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;t=t+w;&lt;br /&gt;r=r+b[i];&lt;br /&gt;printf("P%d\t\t%d\t\t%d\t\t%d\t\t\n",i,b[i],w,r);&lt;br /&gt;w=w+b[i];&lt;br /&gt;a=a+r;&lt;br /&gt;}&lt;br /&gt;avg=(float)t/n;&lt;br /&gt;avg1=(float)a/n;&lt;br /&gt;printf("\n Average WaitingTime is %f",avg);&lt;br /&gt;printf("\n Average TurnaroundTime is %f\n",avg1);&lt;br /&gt;return(0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost Pgm]$ cc prog9a.c -o prog9a.out&lt;br /&gt;[cse6@localhost Pgm]$ ./prog9a.out&lt;br /&gt;Enter number of processes : 3&lt;br /&gt;Enter the burst times :&lt;br /&gt;24&lt;br /&gt;5&lt;br /&gt;3&lt;br /&gt;Gantt chart		 P1 		P2 	     P3&lt;br /&gt;Process                BurstTime    WaitingTime	     TurnaroundTime&lt;br /&gt;P1              		24               0       		24&lt;br /&gt; 	P2             		 5               24          		29&lt;br /&gt;P3              		 3               29              	32&lt;br /&gt;Average WaitingTime is 17.666666&lt;br /&gt;Average TurnaroundTime is 28.333334&lt;br /&gt;[cse6@localhost Pgm]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:3b)		 CPU SCHEDULING: SHORTEST JOB FIRST&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement the CPU scheduling algorithm for Shortest job first.&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;Cpu scheduler will decide which process should be given the CPU for its execution. For&lt;br /&gt;this it uses different algorithm to choose among the process. One among that algorithm is SJF algorithm.In this algorithm the process which has less service time given the cpu after finishing its request only it will allow cpu to execute next other process.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 1: Get the number of process.&lt;br /&gt;Step 2: Get the id and service time for  each  process.&lt;br /&gt;Step 3: Initially the waiting time of first short process as 0 and total time of first short   is&lt;br /&gt;process the service time of that process.&lt;br /&gt;Step 4: Calculate the total time and waiting time of remaining process.&lt;br /&gt;Step 5: Waiting time of one process is the total time of the previous process.&lt;br /&gt;Step 6: Total time of process is calculated by adding the waiting time and service time of&lt;br /&gt;each process.&lt;br /&gt;Step 7: Total waiting time calculated by adding the waiting time of each process.&lt;br /&gt;Step 8: Total turn around time calculated by adding all total time of each process.&lt;br /&gt;Step 9: Calculate average waiting time by dividing the total waiting time by total     &lt;br /&gt;number of process.&lt;br /&gt;Step 10: Calculate average turn around time by dividing the total waiting time by total&lt;br /&gt;   	  number of  process.&lt;br /&gt;Step 11: Display the result.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int n,w[100],tot[100],i,j,awt,atot;&lt;br /&gt;float avwt,avtot;&lt;br /&gt;struct&lt;br /&gt;{&lt;br /&gt;int p,bt;&lt;br /&gt;}&lt;br /&gt;sjf[10],temp;&lt;br /&gt;printf("Enter the number of Processes:");&lt;br /&gt;scanf("%d",&amp;n);&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;printf("Enter the Burst time for Process%d : ",i);&lt;br /&gt;scanf("%d",&amp;sjf[i].bt);&lt;br /&gt;sjf[i].p=i;&lt;br /&gt;}&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;for(j=1;j&lt;=n;j++)&lt;br /&gt;if(sjf[j].bt&gt;sjf[i].bt)&lt;br /&gt;{&lt;br /&gt;temp=sjf[i];&lt;br /&gt;sjf[i]=sjf[j];&lt;br /&gt;sjf[j]=temp;&lt;br /&gt;}&lt;br /&gt;w[1]=0;&lt;br /&gt;tot[1]=sjf[1].bt;&lt;br /&gt;for(i=2;i&lt;=n;i++)&lt;br /&gt;tot[i]=tot[i-1]+sjf[i].bt;&lt;br /&gt;awt=0;&lt;br /&gt;atot=0;&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;w[i]=tot[i]-sjf[i].bt;&lt;br /&gt;awt+=w[i];&lt;br /&gt;atot+=tot[i];&lt;br /&gt;}&lt;br /&gt;avwt=(float)awt/n;&lt;br /&gt;avtot=(float)atot/n;&lt;br /&gt;printf("\n\nProcessId\tWaiting time\t TurnaroundTime");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;printf("\n\t%d\t\t%d\t\t%d",sjf[i].p,w[i],tot[i]);&lt;br /&gt;printf("\n\nTotal Waiting Time :%d",awt);&lt;br /&gt;printf("\n\nTotal Turnaround Time :%d",atot);&lt;br /&gt;printf("\n\nAverage Waiting Time :%.2f",avwt);&lt;br /&gt;printf("\n\nAverage Turnaround Time :%.2f",avtot);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;&lt;br /&gt;[cse6@localhost Pgm]$ cc prog9b.c&lt;br /&gt;[cse6@localhost Pgm]$ ./a.out&lt;br /&gt;Enter the number of Processes:3&lt;br /&gt;Enter the Burst time for Process1 : 24&lt;br /&gt;Enter the Burst time for Process2 : 5&lt;br /&gt;Enter the Burst time for Process3 : 3&lt;br /&gt;ProcessId                                  Waiting time                                  TurnaroundTime&lt;br /&gt;3               			0               				3&lt;br /&gt;2               			3               				8&lt;br /&gt;1               			8               				32&lt;br /&gt;Total Waiting Time :11&lt;br /&gt;Total Turnaround Time :43&lt;br /&gt;Average Waiting Time :3.67&lt;br /&gt;Average Turnaround Time :14.33&lt;br /&gt;[cse6@localhost Pgm]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:3c)  		CPU SCHEDULING: PRIORITY SCHEDULING&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement the CPU scheduling algorithm for Priority.&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;Cpu scheduler will decide which process should be given the CPU for its execution. For this it uses different algorithm to choose among the process. One among that algorithm is Priority algorithm.In this algorithm the processes will be given the priorities. The process which is having the highest priority is allocated the cpu first.After finishing the request the cpu is allocated to the next highest priority and so on.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step 1: Get the number of process&lt;br /&gt;Step 2: Get the id and service time for  each  process.&lt;br /&gt;Step 3: Initially the waiting time of first short process as 0 and total time of first short   is&lt;br /&gt;process the service time of that process.&lt;br /&gt;Step 4: Calculate the total time and waiting time of remaining process.&lt;br /&gt;Step 5: Waiting time of one process is the total time of the previous process.&lt;br /&gt;Step 6: Total time of process is calculated by adding the waiting time and service time of&lt;br /&gt;each process.&lt;br /&gt;Step 7: Total waiting time calculated by adding the waiting time of each process.&lt;br /&gt;Step 8: Total turn around time calculated by adding all total time of each process.&lt;br /&gt;Step 9: Calculate average waiting time by dividing the total waiting time by total   &lt;br /&gt;number of process.&lt;br /&gt;Step 10: Calculate average turn around time by dividing the total waiting time by total&lt;br /&gt;number of  process.&lt;br /&gt;Step 11: Display the result.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int n,temp=0,w[20],b[20],&lt;br /&gt;p[20], t2[20],j,t1,d[20],i,&lt;br /&gt;te=0,b1[20],t3=0;&lt;br /&gt;float t,r;&lt;br /&gt;w[1]=0;&lt;br /&gt;printf("\nEnter no. of processes:");&lt;br /&gt;scanf("%d",&amp;n);&lt;br /&gt;printf("\nEnter the burst times : ");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;		rintf("P%d : ",i);&lt;br /&gt;scanf("%d",&amp;b[i]);&lt;br /&gt;d[i]=i;&lt;br /&gt;}&lt;br /&gt;printf("Enter the priorities:");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;printf("P%d : ",i);&lt;br /&gt;scanf("%d",&amp;p[i]);&lt;br /&gt;}&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;for(j=i+1;j&lt;=n;j++)&lt;br /&gt;if(p[i]&lt;p[j])&lt;br /&gt;{&lt;br /&gt;temp=p[i];&lt;br /&gt;t1=d[i];&lt;br /&gt;te=b[i];&lt;br /&gt;p[i]=p[j];&lt;br /&gt;d[i]=d[j];&lt;br /&gt;b[i]=b[j];&lt;br /&gt;p[j]=temp;&lt;br /&gt;d[j]=t1;&lt;br /&gt;b[j]=te;&lt;br /&gt;}&lt;br /&gt;printf("\nGantt Chart : ");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;printf("P%d\t",d[i]);&lt;br /&gt;printf("\nProcess \t Priority\tBurst Time\t Waiting Time\t Turnaround Time");&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;t=d[i];&lt;br /&gt;w[i+1]=w[i]+b[i];&lt;br /&gt;t2[i]=b[i]+w[i];&lt;br /&gt;t3+=t2[i];&lt;br /&gt;printf("\nP%d\t\t%d\t\t%d\t\t%d\t\t%d",d[i],p[i],b[i],w[i],t2[i]);&lt;br /&gt;}&lt;br /&gt;temp=0;&lt;br /&gt;for(i=1;i&lt;=n;i++)&lt;br /&gt;temp+=w[i];&lt;br /&gt;t=(float)temp/n;&lt;br /&gt;r=(float)t3/n;&lt;br /&gt;printf("\nAverage Waiting time : %.2f",t);&lt;br /&gt;printf("\nAverage Turnaround time : %.2f",r);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost Pgm]$ cc prog10a.c&lt;br /&gt;[cse6@localhost Pgm]$ ./a.out&lt;br /&gt;Enter the no. of processes : 3&lt;br /&gt;Enter the burst times&lt;br /&gt;P1 : 24&lt;br /&gt;P2 : 5&lt;br /&gt;P3 : 3&lt;br /&gt;Enter the priorities&lt;br /&gt;P1 : 2&lt;br /&gt;P2 : 1&lt;br /&gt;P3 : 3&lt;br /&gt;Gantt Chart : P2        P1      P3&lt;br /&gt;ProcessID   Priority   BurstTime    WaitingTime  TurnaroundTime&lt;br /&gt;P2               1              5                     0               	5&lt;br /&gt;P1               2             24                    5              	29&lt;br /&gt;P3                3              3                    29              	32&lt;br /&gt;&lt;br /&gt;Average Waiting Time    : 11.33&lt;br /&gt;Average Turnaround Time : 22.00&lt;br /&gt;[cse6@localhost Pgm]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EX.NO : 3d)       CPU SCHEDULING: ROUND ROBIN SCHEDULING&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;To simulate the round robin program.&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;CPU scheduler will decide which process should be given the CPU for its execution .For&lt;br /&gt;this it use different algorithm to choose among the process .one among that algorithm is    Round robin algorithm.In this algorithm we are assigning some time slice .The process is allocated according to the time slice ,if the process  service time is less than the time slice then process itself will release the CPU voluntarily .The scheduler will then proceed to the next process in the ready queue .If the CPU burst of the currently running process is longer than time quantum ,the timer will go off and will cause an interrupt to the operating system .A context switch will be executed and the process will be put at the tail of the ready queue.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step 1: Initialize all the structure elements&lt;br /&gt;Step 2: Receive inputs from the user to fill process id,burst time and arrival time.&lt;br /&gt;Step 3: Calculate the waiting time for all the process id.&lt;br /&gt;i)  The waiting time for first instance of a process is calculated as:&lt;br /&gt;a[i].waittime=count + a[i].arrivt&lt;br /&gt;ii) The waiting time for the rest of the instances of the process is calculated as:&lt;br /&gt;a) If the time quantum is greater than the remaining burst time then waiting time is calculated as: a[i].waittime=count + tq&lt;br /&gt;b) Else if the time quantum is greater than the remaining burst time then waiting time is calculated as: a[i].waittime=count - remaining burst time&lt;br /&gt;Step 4: Calculate the average waiting time and average turnaround time&lt;br /&gt;Step 5: Print the results of the step 4.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;int i,tbt=0,nop,ts=0,flag[20], rem[20];&lt;br /&gt;int from,wt[20],tt[20],b[20], twt=0,ttt=0;&lt;br /&gt;int dur;&lt;br /&gt;float awt,att;&lt;br /&gt;clrscr();&lt;br /&gt;printf("Enter no. of Processes: ");&lt;br /&gt;scanf("%d",&amp;nop);&lt;br /&gt;printf("Enter the time slice: ");&lt;br /&gt;scanf("%d",&amp;ts);&lt;br /&gt;printf("Enter the Burst times..\n");&lt;br /&gt;for(i=0;i&lt;nop;i++)&lt;br /&gt;{&lt;br /&gt;wt[i]=tt[i]=0;&lt;br /&gt;printf("P%d\t: ",i+1);&lt;br /&gt;scanf("%d",&amp;b[i]);&lt;br /&gt;rem[i]=b[i];&lt;br /&gt;tbt+=b[i];&lt;br /&gt;flag[i]=0;&lt;br /&gt;}&lt;br /&gt;from=0;&lt;br /&gt;i=0;&lt;br /&gt;printf("\n\t Gantt Chart");&lt;br /&gt;printf("\n  ProcessID\tFrom Time\tTo Time\n");&lt;br /&gt;while(from&lt;tbt)&lt;br /&gt;{&lt;br /&gt;if(!flag[i])&lt;br /&gt;{&lt;br /&gt;if(rem[i]&lt;=ts)&lt;br /&gt;{&lt;br /&gt;dur=rem[i];&lt;br /&gt;flag[i]=1;&lt;br /&gt;tt[i]=dur+from;&lt;br /&gt;wt[i]=tt[i]-b[i];&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;dur=ts;&lt;br /&gt;printf("%7d%15d%15d\n",i+1, from,from+dur);&lt;br /&gt;rem[i] -= dur;&lt;br /&gt;from += dur;&lt;br /&gt;}&lt;br /&gt;i=(i+1)%nop;&lt;br /&gt;}&lt;br /&gt;for(i=0;i&lt;nop;i++)&lt;br /&gt;{&lt;br /&gt;twt+=wt[i];&lt;br /&gt;ttt+=tt[i];&lt;br /&gt;}&lt;br /&gt;printf("\n\n Process ID \t Waiting Time \t Turn Around Time");&lt;br /&gt;for(i=0;i&lt;nop;i++)&lt;br /&gt;{&lt;br /&gt;printf("\n\t%d\t\t%d\t\t%d",i+1,wt[i],tt[i]);&lt;br /&gt;}&lt;br /&gt;awt=(float)twt/(float)nop;&lt;br /&gt;att=(float)ttt/(float)nop;&lt;br /&gt;printf("\nTotal Waiting Time:%d",twt);&lt;br /&gt;printf("\nTotal Turn Around Time:%d",ttt);&lt;br /&gt;printf("\nAverage Waiting Time:%.2f",awt);&lt;br /&gt;printf("\nAverage Turn Around Time:%.2f\n",att);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;Enter no. of Processes: 3&lt;br /&gt;Enter the time slice: 3&lt;br /&gt;Enter the Burst times..&lt;br /&gt;P1      : 24&lt;br /&gt;P2      : 5&lt;br /&gt;P3      : 3&lt;br /&gt;&lt;br /&gt;ProcessID     From Time       To Time&lt;br /&gt;1		0                     3&lt;br /&gt;2                  	3                     6&lt;br /&gt;3                  	6                     9&lt;br /&gt;1                  	9                    12&lt;br /&gt;2                  	12                  14&lt;br /&gt;1                   	14                  17&lt;br /&gt;1                  	17                  20&lt;br /&gt;1                  	20                  23&lt;br /&gt;1                 	23                  26&lt;br /&gt;1                 	26                  29&lt;br /&gt;1                 	29                  32&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Process ID                 Waiting Time                        Turn Around Time&lt;br /&gt;1              		8	          			32&lt;br /&gt;2               		9             			14&lt;br /&gt;3               		6             			 9&lt;br /&gt;&lt;br /&gt;Total Waiting Time:23&lt;br /&gt;Total Turn Around Time:55&lt;br /&gt;Average Waiting Time:7.67&lt;br /&gt;Average Turn Around Time:18.33&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:4a)             PROGRAM USING SYSTEM CALL FORK ()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To execute programs based on system calls of UNIX operating system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FORK():&lt;br /&gt;&lt;br /&gt;Fork creates a child process that differs from the parent process only in its PID and        PPID.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On success,the PID of the child process is returned in the parents tread of execution and&lt;br /&gt;&lt;br /&gt;ALGORITHM :&lt;br /&gt;&lt;br /&gt;Step 1 : Declare the variable pid.&lt;br /&gt;Step 2 : Get the pid value using system call fork().&lt;br /&gt;Step 3 : If pid value is less than zero then print as “Fork failed”.&lt;br /&gt;Step 4 : else if pid value is equal to zero include the new process in the system’s file     &lt;br /&gt;using execlp function.&lt;br /&gt;Step 5 : else if pid is greater than zero then it is the parent process then make it to wait &lt;br /&gt;till the child completes.&lt;br /&gt;Step 6 : Then print “Child complete”.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;main(int argc,char *arg[])&lt;br /&gt;{&lt;br /&gt;int pid;&lt;br /&gt;pid=fork();&lt;br /&gt;if(pid&lt;0)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;fprintf(strerr,"fork failed");&lt;br /&gt;exit(-1);&lt;br /&gt;}&lt;br /&gt;else if(pid==0)&lt;br /&gt;{&lt;br /&gt;execlp("bin\1s","7s",NULL);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;wait(NULL);&lt;br /&gt;printf("Child Complete");&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;&lt;br /&gt;[cse6@localhost Pgm]$ cc prog4a.c&lt;br /&gt;[cse6@localhost Pgm]$ ./a.out&lt;br /&gt;Child Complete&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No.4b)                   PROGRAM USING SYSTEM CALL &lt;br /&gt;                                        getpid() &amp; getppid()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;To write the program to implement the system call getpid() and getppid().&lt;br /&gt;&lt;br /&gt;ALGORITHM :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 1 : Declare the variables pid , parent pid , child id and grand child id.&lt;br /&gt;Step 2 : Get the chid id value using system call fork().&lt;br /&gt;Step 3 : If child id value is less than zero then print as “error at fork() child”.&lt;br /&gt;Step 4 : If child id !=0 then using getpid() system call get the process id.&lt;br /&gt;Step 5 : Print “I am parent” and print the process id.&lt;br /&gt;Step 6 : Get the grand child id value using system call fork().&lt;br /&gt;Step 7 : If grand child id value is less than zero then print as “error at fork() grand  &lt;br /&gt;child”.&lt;br /&gt;      	Step 8 : If grand child id !=0 then using getpid system call get the process id.&lt;br /&gt;         	Step 9 : Assign the value of pid to my pid.&lt;br /&gt;        	Step 10 : Print “I am child” and print the value of my pid.&lt;br /&gt;       	Step 11 : Get my parent pid value using system call getppid().&lt;br /&gt;Step 12 : Print “My parent’s process id” and its value.&lt;br /&gt;Step 13 : Else print “I am the grand child”.&lt;br /&gt;Step 14 : Get the grand child’s process id using getpid() and print it as “my process id”.&lt;br /&gt;Step 15 : Get the grand child’s parent process id using getppid() and print it as “my &lt;br /&gt;parent’s process id”.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;int my_pid;&lt;br /&gt;int my_parent_pid;&lt;br /&gt;main()&lt;br /&gt;{             &lt;br /&gt;int child_id;&lt;br /&gt;if((child_id=fork())==-1)&lt;br /&gt;{&lt;br /&gt;perror("error at fork() child");&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;if(child_id!=0)&lt;br /&gt;{&lt;br /&gt;my_pid=getpid();&lt;br /&gt;printf("i am a parent \n");&lt;br /&gt;printf("my process ID is:%d\n",my_pid);&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;int grand_child_id;&lt;br /&gt;if((grand_child_id=fork())==-1)&lt;br /&gt;{&lt;br /&gt;perror("Error at Fork() grandchild");&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;if(grand_child_id!=0)&lt;br /&gt;{&lt;br /&gt;my_pid=getpid();&lt;br /&gt;printf("i am child \n");&lt;br /&gt;printf("my process ID is %d\n",my_pid);&lt;br /&gt;my_parent_pid=getppid();&lt;br /&gt;printf("my parents process ID is %d\n",my_parent_pid);&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;printf("i am the grand child \n");&lt;br /&gt;my_pid=getpid();&lt;br /&gt;printf("my process ID is %d\n",my_pid);&lt;br /&gt;my_parent_pid=getppid();&lt;br /&gt;printf("my parents process ID is %d\n",my_parent_pid);&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost Pgm]$ cc prog4b.c -o prog4b.out&lt;br /&gt;[cse6@localhost Pgm]$ ./prog4b.out&lt;br /&gt;i am the grand child&lt;br /&gt;my process ID is 10297&lt;br /&gt;my parents process ID is 10296&lt;br /&gt;i am child&lt;br /&gt;my process ID is 10296&lt;br /&gt;my parents process ID is 10295&lt;br /&gt;i am a parent&lt;br /&gt;my process ID is:10295&lt;br /&gt;[cse6@localhost Pgm]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No.4c)            PROGRAM USING SYSTEM CALL WAIT()&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;To execute programs based on system call wait () of UNIX operating system.&lt;br /&gt;&lt;br /&gt;WAIT():&lt;br /&gt;&lt;br /&gt;Wait, waitpid is used to wait for process termination.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The wait function suspends execution of the current process until a child has exits or until a signal is delivered where action is to termin    ate the current process of to call a signal handling function.&lt;br /&gt;&lt;br /&gt;1-&gt;which means to wait for any child process,this is the same behaviour which wait exhibits.&lt;br /&gt;0-&gt;which means to wait for any child process groupid is equal to that of the calling   process.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM :&lt;br /&gt;#include&lt;sys/types.h&gt;&lt;br /&gt;#include&lt; sys/wait.h&gt;&lt;br /&gt;Main()&lt;br /&gt;{&lt;br /&gt;Int i=0,pid;&lt;br /&gt;Printf(“ready to fork()\n\n”);&lt;br /&gt;Pid=fork();&lt;br /&gt;If(!pid)&lt;br /&gt;{&lt;br /&gt;Printf(“child starts…\n”);&lt;br /&gt;For(i=0;i&lt;100;i++)&lt;br /&gt;Printf(“%d/t”,i);&lt;br /&gt;Printf(“parent ends”\n”);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;Ex.No.4d)                       PROGRAM USING SYSTEM CALL &lt;br /&gt;                                  opendir (), readdir() &amp; closeddir()&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;To execute programs based on system call opendir(),readdir(),closedir() of UNIX operating system.&lt;br /&gt;&lt;br /&gt;OPENDIR():&lt;br /&gt;&lt;br /&gt;The directory is opened using  the opendir() function and the pointer returned by this function and is assigned to dirname.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;READDIR()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The directory is read using  the readdir().&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CLOSEDDIR():&lt;br /&gt;&lt;br /&gt;This function is used to close the directory closedir().&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;sys/types.h&gt;&lt;br /&gt;#include&lt;dirent.h&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;Main(int argc,char *argv[])&lt;br /&gt;{&lt;br /&gt;DIR *dirname;&lt;br /&gt;Struct dirent *rdir;&lt;br /&gt;Dirname=opendir(argv[1]);&lt;br /&gt;While(rdir=readdir(dirname))&lt;br /&gt;{&lt;br /&gt;If(strcmp(rdir=readdir-&gt;d_name,argv[2]==0)&lt;br /&gt;{&lt;br /&gt;Closedir(dirname);&lt;br /&gt;Printf(“found entry %s\t\n”,argv[2]);&lt;br /&gt;Exit(0);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;Printf(“could not find entry %s written %s\n”,argv[2],argv[1]);&lt;br /&gt;Closedir(dirname);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT&lt;br /&gt;[cse6@localhost PGM]$ cc 011f7.c&lt;br /&gt;[cse6@localhost PGM]$ ./a.out 011fork fork&lt;br /&gt;Found entry fork&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No.5)                    PROGRAM USING  I/O SYSTEM CALL&lt;br /&gt;open (), read() &amp; write()&lt;br /&gt;&lt;br /&gt;AIM :&lt;br /&gt;&lt;br /&gt;To write the program to implement the system call open(),read() and write().&lt;br /&gt;&lt;br /&gt;ALGORITHM :&lt;br /&gt;&lt;br /&gt;Step 1 : Declare the structure elements.&lt;br /&gt;Step 2 : Create a temporary file named temp1.&lt;br /&gt;Step 3 : Open the file named  “test”  in a write mode.&lt;br /&gt;Step 4 : Enter the strings for the file.&lt;br /&gt;Step 5 : Write those strings in the file named “test”.&lt;br /&gt;Step 6 : Create a temporary file named temp2.&lt;br /&gt;Step 7 : Open the file named “test” in a read mode.&lt;br /&gt;Step 8 : Read those strings present in the file “test” and save it in temp2.&lt;br /&gt;Step 9 : Print the strings which are read.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;struct&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;char c[15];&lt;br /&gt;}temp1,temp2;&lt;br /&gt;char *pc;&lt;br /&gt;int temp_size;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;FILE *fp,*fopen();&lt;br /&gt;pc=(char *)&amp;temp1;&lt;br /&gt;temp_size=sizeof(temp1);&lt;br /&gt;fp=fopen("test","w");&lt;br /&gt;printf("\nEnter a string : ");&lt;br /&gt;scanf("%c%s",&amp;temp1.i,&amp;temp1.c);&lt;br /&gt;fwrite(pc,temp_size,1,fp);&lt;br /&gt;fclose(fp);&lt;br /&gt;pc=(char *)&amp;temp2;&lt;br /&gt;temp_size=sizeof(temp2);&lt;br /&gt;fp=fopen("test","r");&lt;br /&gt;fread(pc,temp_size,1,fp);&lt;br /&gt;printf("%c%s\n",temp2.i,temp2.c);&lt;br /&gt;fclose(fp);&lt;br /&gt;}&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost PGM]$ cc prog5.c -o prog5.out&lt;br /&gt;[cse6@localhost PGM]$ ./prog5.out&lt;br /&gt;Enter a string: Hello&lt;br /&gt;Hello&lt;br /&gt;[cse6@localhost PGM]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:6      SIMULATION OF UNIX COMMAND “LS &amp; GREP”&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to simulate the operation of “LS &amp; GREP” command in Unix.&lt;br /&gt;&lt;br /&gt;ALGORITHM :&lt;br /&gt;&lt;br /&gt;SIMULATION OF LS COMMANDS:&lt;br /&gt;&lt;br /&gt;Step 1 : Start.&lt;br /&gt;Step 2 : Get the name of the directory using command line argument.&lt;br /&gt;Step 3 : While directory is not empty, print the contents of the directory.&lt;br /&gt;Step 4 : Stop.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;string.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;FILE *fp;&lt;br /&gt;char w[20],w1[20],w2[20],str[20];&lt;br /&gt;int fag=0;&lt;br /&gt;fp=fopen(“it53abc.txt”,”r’);&lt;br /&gt;printf("\n Enter the pattern: ");&lt;br /&gt;scanf("%s",&amp;str);&lt;br /&gt;fscanf(fp,”%s%s%s”,w,w1,w2);&lt;br /&gt;while(!feof(fp))&lt;br /&gt;{&lt;br /&gt;If(strcmp(str,w)==0)&lt;br /&gt;{&lt;br /&gt;Printf(“%s \t %s \t %s \t %s”,w,w1,w2);&lt;br /&gt;Flag=1;&lt;br /&gt;Break; }&lt;br /&gt;If(strcmp(str,w)==0)&lt;br /&gt;{&lt;br /&gt;Printf(“%s \t %s \t %s \t %s”,w,w1,w2);&lt;br /&gt;Flag=1;&lt;br /&gt;Break; }&lt;br /&gt;fscanf(fp,“%s%s%s%s”,w,w1,w2);&lt;br /&gt;If(flag==0)&lt;br /&gt;{&lt;br /&gt;Printf(“Pattern not found”); } }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;&lt;br /&gt;[cse6@localhost Pgm]$ cc ls53.c&lt;br /&gt;[cse6@localhost Pgm]$ .a/.out sha&lt;br /&gt;San&lt;br /&gt;Sha&lt;br /&gt;[cse6@localhost Pgm]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SIMULATION OF GREP COMMANDS:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 1 : Start.&lt;br /&gt;Step 2 : Get the name of the file where pattern is to be searched.&lt;br /&gt;Step 3 : While end of file is not reached,search for the pattern.&lt;br /&gt;Step 4 :If the pattern is found,print the entire sentence.&lt;br /&gt;Step 5:Else print the pattern is not found.&lt;br /&gt;Step 6: Stop.&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;string.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;FILE *fp;&lt;br /&gt;char w[20],w1[20],w2[20],str[20];&lt;br /&gt;int fag=0;&lt;br /&gt;fp=fopen(“it53abc.txt”,”r’);&lt;br /&gt;printf("\nEnter the pattern: ");&lt;br /&gt;scanf("%s",&amp;str);&lt;br /&gt;fscanf(fp,”%s%s%s”,w,w1,w2);&lt;br /&gt;while(!feof(fp))&lt;br /&gt;{&lt;br /&gt;If(strcmp(str,w)==0)&lt;br /&gt;{&lt;br /&gt;Printf(“%s \t %s \t %s \t %s”,w,w1,w2);&lt;br /&gt;Flag=1;&lt;br /&gt;Break;&lt;br /&gt;}&lt;br /&gt;If(strcmp(str,w)==0)&lt;br /&gt;{&lt;br /&gt;Printf(“%s \t %s \t %s \t %s”,w,w1,w2);&lt;br /&gt;Flag=1;&lt;br /&gt;Break;&lt;br /&gt;}&lt;br /&gt;fscanf(fp, (“%s%s%s%s”,w,w1,w2);&lt;br /&gt;If(flag==0)&lt;br /&gt;{&lt;br /&gt;Printf(“Pattern not found”);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost Pgm]$ cc grep53.c&lt;br /&gt;[cse6@localhost Pgm]$ .a/.out&lt;br /&gt;Enter the pattern:how&lt;br /&gt;How are u?&lt;br /&gt;[cse6@localhost Pgm]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No.7	PRODUCER CONSUMER PROBLEM&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement the Producer &amp; consumer Problem (Semaphore)&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step 1: The Semaphore mutex, full &amp; empty are initialized.&lt;br /&gt;Step 2: In the case of producer process&lt;br /&gt;i)  Produce an item in to temporary variable.&lt;br /&gt;ii)  If there is empty space in the buffer check the mutex value for enter into the critical section.&lt;br /&gt;iii)  If the mutex value is 0, allow the producer to add value in the temporary variable to the buffer.&lt;br /&gt;Step 3: In the case of consumer process&lt;br /&gt;i)  It should wait if the buffer is empty&lt;br /&gt;ii)  If there is any item in the buffer check for mutex value, if the mutex==0, remove item from buffer&lt;br /&gt;iii)  Signal the mutex value and reduce the empty value by 1.&lt;br /&gt;iv)  Consume the item.&lt;br /&gt;Step 4:  Print the result&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;unistd.h&gt;&lt;br /&gt;#include&lt;sys/types.h&gt;&lt;br /&gt;#include&lt;sys/ipc.h&gt;&lt;br /&gt;#include&lt;sys/shm.h&gt;&lt;br /&gt;#include&lt;sys/sem.h&gt;&lt;br /&gt;#define NUM_ELEM 10&lt;br /&gt;#define SEM_EMPTY 0&lt;br /&gt;#define SEM_FULL 1&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int rc,pid,semid,i,j;&lt;br /&gt;int shmid,status;&lt;br /&gt;char elem;&lt;br /&gt;union semun&lt;br /&gt;{&lt;br /&gt;int val;&lt;br /&gt;}mysemun;&lt;br /&gt;struct sembuf waitempty={SEM_EMPTY,-1,SEM_UNDO};&lt;br /&gt;struct sembuf signalempty={SEM_EMPTY,1,IPC_NOWAIT};&lt;br /&gt;struct sembuf waitfull={SEM_FULL,-1,SEM_UNDO};&lt;br /&gt;struct sembuf signalfull={SEM_FULL,1,IPC_NOWAIT};&lt;br /&gt;struct shmid_ds myshmid_ds;&lt;br /&gt;void *shmptr;&lt;br /&gt;semid=semget(IPC_PRIVATE,2,0666|IPC_CREAT);&lt;br /&gt;mysemun.val=NUM_ELEM;&lt;br /&gt;semctl(semid,SEM_EMPTY,SETVAL,mysemun);&lt;br /&gt;mysemun.val=0;&lt;br /&gt;semctl(semid,SEM_FULL,SETVAL,mysemun);&lt;br /&gt;shmid=shmget(IPC_PRIVATE,NUM_ELEM,0666|IPC_CREAT);&lt;br /&gt;pid=fork();&lt;br /&gt;if(pid==0)&lt;br /&gt;{&lt;br /&gt;shmptr=shmat(shmid,0,SHM_R);&lt;br /&gt;for(i=0;i&lt;10;i++)&lt;br /&gt;{&lt;br /&gt;//semop(semid,&amp;signalempty,1);&lt;br /&gt;sleep(1);&lt;br /&gt;}&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;shmptr=shmat(shmid,0,SHM_W);&lt;br /&gt;for(i=0;i&lt;10;i++)&lt;br /&gt;{&lt;br /&gt;semop(semid,&amp;waitempty,1);&lt;br /&gt;elem='a'+i;&lt;br /&gt;printf("Produced element %c\n",elem);&lt;br /&gt;elem=*((char*)shmptr+(i%NUM_ELEM))=elem;&lt;br /&gt;semop(semid,&amp;signalfull,1);&lt;br /&gt;sleep(2);&lt;br /&gt;//semop(semd,&amp;waitfull,1);&lt;br /&gt;}&lt;br /&gt;wait(&amp;status);&lt;br /&gt;shmctl(shmid,IPC_RMID,&amp;myshmid_ds);&lt;br /&gt;semctl(semid,SEM_EMPTY,IPC_RMID,mysemun);&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost Pgm]$ cc ex11.c -o ex11.out&lt;br /&gt;[cse6@localhost Pgm]$ ./ex11.out&lt;br /&gt;Produced element a&lt;br /&gt;Consumed element a&lt;br /&gt;Produced element b&lt;br /&gt;Consumed element b&lt;br /&gt;Produced element c&lt;br /&gt;Consumed element c&lt;br /&gt;Produced element d&lt;br /&gt;Consumed element d&lt;br /&gt;Produced element e&lt;br /&gt;Consumed element e&lt;br /&gt;Produced element f&lt;br /&gt;Consumed element f&lt;br /&gt;Produced element g&lt;br /&gt;Consumed element g&lt;br /&gt;Produced element h&lt;br /&gt;Consumed element h&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No. 7a)  			 FIRST FIT ALGORITHM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement Memory Management concept using the technique&lt;br /&gt;FirstFit Algoithm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;Inorder to dynamically allocate the memory  we go for this technique First Fit Algorithm.In this first fit algorithm, the allocator keeps the list of free blocks and on receiving a request for memory ,scans along the list for the first block that is large enough to satisfy the request. If the chosen block is significantly larger than that requested ,then it is usually split,and the remainder added to the list as another free block. The first fit algorithm performs resonably well, as it ensures that allocations are quick. In recycling free blocks, there is a choice is to where to add the blocks to the free list, effectively in what order the free list is kept.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;The following are the steps to implement first fit algorithm.&lt;br /&gt;&lt;br /&gt;Step 1: Get the number of free space available.&lt;br /&gt;Step 2: Get the starting address of each freespace and how much space available.&lt;br /&gt;Step 3: While getting the address and space we have to check whether there is &lt;br /&gt;duplication,if there is a duplication  then give the error message for duplication &amp; get the address and space once again.&lt;br /&gt;Step 4: Get the space for the process.&lt;br /&gt;Step 5: Search the first memory location from the available list its size should be greater &lt;br /&gt;than or equal to the process size an or equal to available space in fifo order.&lt;br /&gt;Step 6: If there is no sufficient space output the error message.&lt;br /&gt;Step 7: Display the process and its corresponding allocated memory space&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int p[20],n,np,i,j,b[50];&lt;br /&gt;printf("\nEnter the number of unallocated segments: ");&lt;br /&gt;scanf("%d",&amp;n);&lt;br /&gt;printf("Enter the memory sizes: ");&lt;br /&gt;for(i=0;i&lt;n;i++)&lt;br /&gt;scanf("%d",&amp;b[i]);&lt;br /&gt;printf("Enter the number of processes : ");&lt;br /&gt;scanf("%d",&amp;np);&lt;br /&gt;printf("Enter the Memory requirements of Processes.\n");&lt;br /&gt;for(i=0;i&lt;np;i++)&lt;br /&gt;{&lt;br /&gt;printf("p%d: ",i+1);&lt;br /&gt;scanf("%d",&amp;p[i]);&lt;br /&gt;}&lt;br /&gt;printf("Process ID\t First Fit\n");&lt;br /&gt;for(i=0;i&lt;np;i++)&lt;br /&gt;{&lt;br /&gt;for(j=0;j&lt;n;j++)&lt;br /&gt;if(b[j]&gt;=p[i])&lt;br /&gt;{&lt;br /&gt;printf("%d\t\t %d\n",i+1,b[j]);&lt;br /&gt;b[j]=-1;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;if(j==n)&lt;br /&gt;printf("%d\t\tNot enough memory\n",i+1);&lt;br /&gt;}&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT&lt;br /&gt;[cse6@localhost CSE6]$cc prog12a.c&lt;br /&gt;[cse6@localhost CSE6]$ ./a.out&lt;br /&gt;Enter the number of unallocated segments: 3&lt;br /&gt;Enter the memory sizes:&lt;br /&gt;210&lt;br /&gt;120&lt;br /&gt;330&lt;br /&gt;Enter the number of processes: 3&lt;br /&gt;Enter the Memory requirements of Processes.&lt;br /&gt;p1: 120&lt;br /&gt;p2: 310&lt;br /&gt;p3: 450&lt;br /&gt;Process ID        First Fit&lt;br /&gt;1                          210&lt;br /&gt;2                          330&lt;br /&gt;3                   Not enough memory&lt;br /&gt;&lt;br /&gt;[cse6@localhost CSE6]$ cc prog12a.c&lt;br /&gt;[cse6@localhost CSE6]$ ./a.out&lt;br /&gt;Enter the number of unallocated segments: 3&lt;br /&gt;Enter the memory sizes:&lt;br /&gt;210&lt;br /&gt;120&lt;br /&gt;330&lt;br /&gt;Enter the number of processes : 3&lt;br /&gt;Enter the Memory requirements of Processes.&lt;br /&gt;p1: 120&lt;br /&gt;p2: 80&lt;br /&gt;p3: 230&lt;br /&gt;Process ID       First Fit&lt;br /&gt;1                         210&lt;br /&gt;2                         120&lt;br /&gt;3                         330&lt;br /&gt;&lt;br /&gt;[cse6@localhost CSE6]$ cc prog12a.c&lt;br /&gt;[cse6@localhost CSE6]$ ./a.out&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:7b)         		BEST FIT ALGORITHMS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement Memory Management concept using the technique BestFit Algoithm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;Inorder to dynamically allocate the memory  we go for this technique Best Fit Algorithm.In  this algorithm ,a search is performed very much like firstfit ,except that it does not stop when a suitable block has been found.Instead ,the search continues to try all the blocks in the list.The block choosen is a closest to the desired size.This avoids unnecessarily fragmenting very large allocation spaces.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step 1: Get the number of free space available.&lt;br /&gt;Step 2: Get the starting address of each free space and how much space available.&lt;br /&gt;Step 3: While getting the address and space we have to check whether there is &lt;br /&gt;duplication,if there is a duplication  then give the error message for duplication &lt;br /&gt;&amp; get the address and space once again.&lt;br /&gt;Step 4: Get the space for the process.&lt;br /&gt;Step 5: Sort the available list in ascending order based on the space.&lt;br /&gt;Step 6: Search the first memory location from the available list its size should be greater &lt;br /&gt;than or equal to the process size an or equal to available space in FIFO order.&lt;br /&gt;Step 7: If there is no sufficient space output the error message.&lt;br /&gt;Step 8: Display the process and its corresponding allocated memory space.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int a,b[50],i,j,temp,p[50],n,m;&lt;br /&gt;printf("\nEnter the no.of allocated space: ");&lt;br /&gt;scanf("%d",&amp;n);&lt;br /&gt;printf("\nEnter the allocated Memory space: ");&lt;br /&gt;for(i=0;i&lt;n;i++)&lt;br /&gt;scanf("%d",&amp;b[i]);&lt;br /&gt;for(i=0;i&lt;n;i++)&lt;br /&gt;for(j=i+1;j&lt;n;j++)&lt;br /&gt;if(b[i]&gt;b[j])&lt;br /&gt;{&lt;br /&gt;temp=b[i];&lt;br /&gt;b[i]=b[j];&lt;br /&gt;b[j]=temp;&lt;br /&gt;}&lt;br /&gt;printf("\nEnter the Number of processes: ");&lt;br /&gt;scanf("%d",&amp;m);&lt;br /&gt;for(i=0;i&lt;m;i++)&lt;br /&gt;{&lt;br /&gt;printf("Enter the memory space for the given process: ");&lt;br /&gt;scanf("%d",&amp;p[i]);&lt;br /&gt;}&lt;br /&gt;printf("Process ID\t Best fit\n");&lt;br /&gt;for(i=0;i&lt;m;i++)&lt;br /&gt;{&lt;br /&gt;printf("p%d\t\t ",i+1);&lt;br /&gt;for(j=0;j&lt;n;j++)&lt;br /&gt;{&lt;br /&gt;if(p[i]&lt;=b[j])&lt;br /&gt;{&lt;br /&gt;printf("%d\n",b[j]);&lt;br /&gt;b[j]=-1;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if(j==n)&lt;br /&gt;printf("Not Enough memory\n");&lt;br /&gt;}&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;&lt;br /&gt;[cse6@localhost Pgm]$ cc prog12b.c&lt;br /&gt;[cse6@localhost Pgm]$ ./a.out&lt;br /&gt;Enter the no.of allocated space: 3&lt;br /&gt;Enter the allocated Memory space: 200&lt;br /&gt;120&lt;br /&gt;150&lt;br /&gt;Enter the Number of processes: 3&lt;br /&gt;Enter the memory space for the given process: 130&lt;br /&gt;Enter the memory space for the given process: 210&lt;br /&gt;Enter the memory space for the given process: 140&lt;br /&gt;Process ID       Best fit&lt;br /&gt;p1                      150&lt;br /&gt;p2                      Not Enough memory&lt;br /&gt;p3                      200&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex. No. 7d)               WORST FIT ALGORITHM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To write a C program to implement Memory Management concept using the technique&lt;br /&gt;Best Fit Algorithm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROBLEM DESCRIPTION:&lt;br /&gt;&lt;br /&gt;Inorder to dynamically allocate the memory  we go for this technique Worst Fit Algorithm.In  this algorithm ,a search is performed very much like firstfit ,except that it does not stop when a biggest block has been found.Instead ,the search continues to try all the blocks in the list.The block choosen is  the largest one to the desired size.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;Step 1: Get the number of free space available.&lt;br /&gt;Step 2: Get the starting address of each free space and how much space available.&lt;br /&gt;Step 3: While getting the address and space we have to check whether there is      &lt;br /&gt;duplication,if there is a duplication  then give the error message for duplication &amp; get the address and space once again.&lt;br /&gt;Step 4: Get the space for the process.&lt;br /&gt;Step 5: Sort the available list in descending order based on the space.&lt;br /&gt;Step 6: Search the first memory location from the available list its size should be greater &lt;br /&gt;than or equal to the process size an or equal to available space in FIFO order.&lt;br /&gt;Step 7: If there is no sufficient space output the error message.&lt;br /&gt;Step 8: Display the process and its corresponding allocated memory space.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROGRAM CODING:&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int a,b[50],i,j,temp,p[50],n,m;&lt;br /&gt;printf("\nEnter the no.of allocated space: ");&lt;br /&gt;scanf("%d",&amp;n);&lt;br /&gt;printf("\nEnter the allocated Memory space: ");&lt;br /&gt;for(i=0;i&lt;n;i++)&lt;br /&gt;scanf("%d",&amp;b[i]);&lt;br /&gt;for(i=0;i&lt;n;i++)&lt;br /&gt;for(j=i+1;j&lt;n;j++)&lt;br /&gt;if(b[i]&lt;b[j])&lt;br /&gt;{&lt;br /&gt;temp=b[i];&lt;br /&gt;b[i]=b[j];&lt;br /&gt;b[j]=temp;&lt;br /&gt;}&lt;br /&gt;printf("\nEnter the Number of processes: ");&lt;br /&gt;scanf("%d",&amp;m);&lt;br /&gt;for(i=0;i&lt;m;i++)&lt;br /&gt;{&lt;br /&gt;printf("Enter the memory space for the given process: ");&lt;br /&gt;scanf("%d",&amp;p[i]);&lt;br /&gt;}&lt;br /&gt;printf("Process ID\t Worst fit\n");&lt;br /&gt;for(i=0;i&lt;m;i++)&lt;br /&gt;{&lt;br /&gt;printf("p%d\t\t ",i+1);&lt;br /&gt;for(j=0;j&lt;n;j++)&lt;br /&gt;{&lt;br /&gt;if(p[i]&lt;=b[j])&lt;br /&gt;{&lt;br /&gt;printf("%d\n",b[j]);&lt;br /&gt;b[j]=-1;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if(j==n)&lt;br /&gt;printf("Not Enough memory\n");&lt;br /&gt;}&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;[cse6@localhost Pgm]$ cc prog12c.c -o prog12c.out&lt;br /&gt;[cse6@localhost Pgm]$ ./prog12c.out&lt;br /&gt;Enter the no.of allocated space: 3&lt;br /&gt;Enter the allocated Memory space: 200&lt;br /&gt;150&lt;br /&gt;170&lt;br /&gt;Enter the Number of processes: 3&lt;br /&gt;Enter the memory space for the given process: 120&lt;br /&gt;Enter the memory space for the given process: 160&lt;br /&gt;Enter the memory space for the given process: 160&lt;br /&gt;Process ID       Worst fit&lt;br /&gt;p1                       200&lt;br /&gt;p2                       170&lt;br /&gt;p3                       Not Enough memory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex.No:9				DEADLOCK AVOIDANCE&lt;br /&gt;&lt;br /&gt;AIM:&lt;br /&gt;&lt;br /&gt;To implement the deadlock avoidance concept using banker’s algorithm.&lt;br /&gt;&lt;br /&gt;ALGORITHM:&lt;br /&gt;&lt;br /&gt;1.Start.&lt;br /&gt;2.let work and finish to the vectors of length m,n respectively.Intialize wait-&gt;available &lt;br /&gt;and finish[i]-&gt;false for i=1,2,…..n.&lt;br /&gt;3. Initialize work-&gt;available find “i” such that&lt;br /&gt;(i)finish[i]=false&lt;br /&gt;(ii)need[i]=work&lt;br /&gt;If no such “i” exists goto step5.&lt;br /&gt;4.If condition is true then&lt;br /&gt;Work=work allocation&lt;br /&gt;Finish[i]=true,then go to5 and check the remaining values.&lt;br /&gt;5.if finish[i]=true,for all “I”then system is said to be in safe state. therefore there is no &lt;br /&gt;  deadlock.&lt;br /&gt;6.Stop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;POGRAMCODE:&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;Int compare(int need[],int work[],int numres)&lt;br /&gt;{&lt;br /&gt;Int i;&lt;br /&gt;For(i=0;i&lt;numers;i++)&lt;br /&gt;{&lt;br /&gt;If(need[i]&gt;=work[i])&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;Return 0;&lt;br /&gt;}&lt;br /&gt;Return 1;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;Main()&lt;br /&gt;{&lt;br /&gt;Int numproc,numers,i,j,k;&lt;br /&gt;Int allocation[6][6],max[6][6],available[6][6],need[6][6],finish[6];&lt;br /&gt;Int work[6];&lt;br /&gt;Clrscr();&lt;br /&gt;Printf(:\n bankers algorithm \n”);&lt;br /&gt;Printf(“enter the number of process: ”);&lt;br /&gt;Scanf(“%d”,&amp;numproc);&lt;br /&gt;Printf (“enter the number of resource :”);&lt;br /&gt;Scanf(“%d”,&amp;numres);&lt;br /&gt;Printf(“\n\n enter the values:\n\n);&lt;br /&gt;For(i=0;i&lt;numproc;i++)&lt;br /&gt;{&lt;br /&gt;Printf(“\n   process %d  “i++);&lt;br /&gt;Printf(“\n enter the values for allocation:”);&lt;br /&gt;For(j=0;j&lt;numers;j++)&lt;br /&gt;Scanf(“%d”,&amp;allocation[i][j]);&lt;br /&gt;Printf(“\n enter the values for max:”);&lt;br /&gt;For(j=0;j&lt;numers;j++)&lt;br /&gt;Scanf(“%d”,&amp;max[i][j]);&lt;br /&gt;For(j=0;j&lt;numers;j++)&lt;br /&gt;Need[i][j]=max[i][j]-allocation[i][j];&lt;br /&gt;}&lt;br /&gt;Printf(“\n the need matrix is\n”);&lt;br /&gt;For(i=0;i&lt;numproc;i++)&lt;br /&gt;{&lt;br /&gt;Printf(“\n p%d\t”,i+1);&lt;br /&gt;For(j=0;j&lt;numers;j++)&lt;br /&gt;Printf(“%d\t”,need[i][j]);&lt;br /&gt;}&lt;br /&gt;Printf(“\n enter the values for available:”);&lt;br /&gt;For(i=0;i&lt;numers;i++)&lt;br /&gt;{&lt;br /&gt;Scanf(“%d”,&amp;available[0][i]);&lt;br /&gt;Work[i]=available[0][i];&lt;br /&gt;}&lt;br /&gt;Printf (“\n order of finishing\n”);&lt;br /&gt;For (i=0; i&lt;numproc; i++)&lt;br /&gt;{&lt;br /&gt;For (j=0; j&lt;numproc;j++)&lt;br /&gt;{&lt;br /&gt;If((finish[j]==0)&amp;&amp;(compare(need[j],work,numers)==1))&lt;br /&gt;{&lt;br /&gt;For(k=0;k&lt;numers;k++)&lt;br /&gt;Work[k]=work[k]+allocation[j][k];&lt;br /&gt;For(k=0;k&lt;numers;k++)&lt;br /&gt;Available[j][k]=work[k];&lt;br /&gt;Printf(“\n p%d\t”,j+1);&lt;br /&gt;Finish[j]=1;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Printf(“\n the available matrix is\n”);&lt;br /&gt;For(i=0;i&lt;numproc;i++)&lt;br /&gt;{&lt;br /&gt;Printf(“\n p%d\t”,i+1);&lt;br /&gt;For(j=0;j&lt;numers;j++)&lt;br /&gt;{&lt;br /&gt;printff(“%d\t”,available[i][j]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;i-0;&lt;br /&gt;For(k=0;k&lt;numers;k++)&lt;br /&gt;{&lt;br /&gt;If(finish[k]==1&lt;br /&gt;{&lt;br /&gt;Printf(“\n\n process %d has finished \n”,k+1);&lt;br /&gt;}&lt;br /&gt;Else&lt;br /&gt;{&lt;br /&gt;Printf(“\n\n deadlock at process %d!!\n”,k+1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;Printf(“the system is in safe state:no deadlock:”);&lt;br /&gt;Getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;Bankers algorithm&lt;br /&gt;Enter the number of process:5&lt;br /&gt;Enter the number of resource :3&lt;br /&gt;Enter the values:	&lt;br /&gt;Process 1&lt;br /&gt;Enter the values for allocation:0&lt;br /&gt;1&lt;br /&gt;0&lt;br /&gt;Enter the values for max:7&lt;br /&gt;5&lt;br /&gt;3&lt;br /&gt;Process 2&lt;br /&gt;Enter the allocation:2&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;Enter the values for max:3&lt;br /&gt;2&lt;br /&gt;2&lt;br /&gt;Process 3&lt;br /&gt;Enter the values for allocation:3&lt;br /&gt;0&lt;br /&gt;2&lt;br /&gt;Enter the values for max:9&lt;br /&gt;0&lt;br /&gt;2&lt;br /&gt;Process 4&lt;br /&gt;Enter the allocation:2&lt;br /&gt;1&lt;br /&gt;1&lt;br /&gt;Enter the values for max:2&lt;br /&gt;2&lt;br /&gt;2&lt;br /&gt;Process 5&lt;br /&gt;Enter the allocation:0&lt;br /&gt;0&lt;br /&gt;2&lt;br /&gt;Enter the values for max:4&lt;br /&gt;3&lt;br /&gt;3&lt;br /&gt;The need matrix is&lt;br /&gt;P1	7	4	3&lt;br /&gt;P2	1	2	2&lt;br /&gt;P3	6	0	0&lt;br /&gt;P4	0	1	1&lt;br /&gt;P5	4	3	1&lt;br /&gt;Enter the values for allocation:3&lt;br /&gt;3&lt;br /&gt;2&lt;br /&gt;Ordering of finishing:&lt;br /&gt;P2&lt;br /&gt;P4&lt;br /&gt;P5&lt;br /&gt;P3&lt;br /&gt;P1&lt;br /&gt;The available matrix is:&lt;br /&gt;P1	10	5	7&lt;br /&gt;P2	5	3	2&lt;br /&gt;P3	10	4	7&lt;br /&gt;P4	7	4	3&lt;br /&gt;P5	7	4	5&lt;br /&gt;	&lt;br /&gt;Process 1 has finished&lt;br /&gt;Process 2 has finished&lt;br /&gt;Process 3 has finished&lt;br /&gt;Process 4 has finished&lt;br /&gt;Process 5 has finished&lt;br /&gt;The system is in safe state. No deadlock.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-2084709883003296781?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/2084709883003296781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/lab-manual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2084709883003296781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/2084709883003296781'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/lab-manual.html' title='Lab Manual'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-9080088059785771495</id><published>2009-08-06T03:39:00.000-07:00</published><updated>2009-08-06T03:45:27.824-07:00</updated><title type='text'>CA1004-DATA WAREHOUSING AND MINING</title><content type='html'>  &lt;span style="font-weight:bold;"&gt;DEPARTMENT OF INFORMATION TECHNOLOGY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      &lt;span style="font-style:italic;"&gt;TWO MARKS QUESTIONS &lt;/span&gt;&lt;br /&gt;Unit I&lt;br /&gt;&lt;br /&gt;1.Define Data mining.&lt;br /&gt;It refers to extracting or “mining” knowledge from large amount of data. Data&lt;br /&gt;mining is a process of discovering interesting knowledge from large amounts of data&lt;br /&gt;stored either, in database, data warehouse, or other information repositories&lt;br /&gt;&lt;br /&gt;2.Give some alternative terms for data mining.&lt;br /&gt;Knowledge mining&lt;br /&gt;Knowledge extraction&lt;br /&gt;            Data/pattern analysis.&lt;br /&gt;            Data Archaeology&lt;br /&gt;            Data dredging&lt;br /&gt;&lt;br /&gt;3.What are the steps involved in KDD process.&lt;br /&gt;Data cleaning&lt;br /&gt;Data Mining&lt;br /&gt;Pattern Evaluation&lt;br /&gt;Knowledge Presentation&lt;br /&gt;Data Integration&lt;br /&gt;Data Selection&lt;br /&gt;Data Transformation&lt;br /&gt;&lt;br /&gt;4.What is the use of the knowledge base?&lt;br /&gt;Knowledge base is domain knowledge that is used to guide search or evaluate the&lt;br /&gt;interestingness of resulting pattern. Such knowledge can include concept hierarchies used&lt;br /&gt;to organize attribute /attribute values in to different levels of abstraction.&lt;br /&gt;Data Mining&lt;br /&gt;&lt;br /&gt;7.Mention some of the data mining techniques.&lt;br /&gt;Statistics&lt;br /&gt;	Machine learning&lt;br /&gt;	Decision Tree&lt;br /&gt;	Hidden markov models&lt;br /&gt;	Artificial Intelligence&lt;br /&gt;Genetic Algorithm&lt;br /&gt;Meta learning&lt;br /&gt;&lt;br /&gt;8.Give few statistical techniques.&lt;br /&gt;Point Estimation&lt;br /&gt;	Data Summarization&lt;br /&gt;Bayesian Techniques&lt;br /&gt;	Testing Hypothesis&lt;br /&gt;	Correlation&lt;br /&gt;	Regression&lt;br /&gt;9.What is meta learning.&lt;br /&gt;&lt;br /&gt;Concept of combining the predictions made from multiple models of data&lt;br /&gt;mining and analyzing those predictions to formulate a new and previously unknown&lt;br /&gt;prediction.&lt;br /&gt;Graphical User Interface&lt;br /&gt;Pattern Evaluation&lt;br /&gt;Database or Data warehouse&lt;br /&gt;server&lt;br /&gt;DB DW&lt;br /&gt;&lt;br /&gt;10.Define Genetic algorithm.&lt;br /&gt;&lt;br /&gt;Search algorithm.&lt;br /&gt;	Enables us to locate optimal binary string by processing an initial&lt;br /&gt;random population of binary strings by performing operations such as&lt;br /&gt;artificial mutation , crossover and selection.&lt;br /&gt;&lt;br /&gt;11.What is the purpose of Data mining Technique?&lt;br /&gt;It provides a way to use various data mining tasks.&lt;br /&gt;&lt;br /&gt;12.Define Predictive model.&lt;br /&gt;It is used to predict the values of data by making use of known results from a different set of sample data.&lt;br /&gt;13.Data mining tasks that are belongs to predictive model&lt;br /&gt;  	Classification&lt;br /&gt;	Regression&lt;br /&gt;	Time series analysis&lt;br /&gt;&lt;br /&gt;14.Define descriptive model&lt;br /&gt;	It is used to determine the patterns and relationships in a sample data. Data mining tasks that belongs to descriptive model:&lt;br /&gt;	Clustering&lt;br /&gt;	Summarization&lt;br /&gt;	Association rules&lt;br /&gt;Sequence discovery&lt;br /&gt;&lt;br /&gt;15. Define the term summarization&lt;br /&gt;&lt;br /&gt;The summarization of a large chunk of data contained in a web page or a&lt;br /&gt;document.&lt;br /&gt;Summarization = caharcterization=generalization&lt;br /&gt;&lt;br /&gt;16. List out the advanced database systems.&lt;br /&gt;	Extended-relational databases&lt;br /&gt;	Object-oriented databases&lt;br /&gt;	Deductive databases&lt;br /&gt;	Spatial databases&lt;br /&gt;	Temporal databases&lt;br /&gt;	Multimedia databases&lt;br /&gt;	Active databases&lt;br /&gt;	Scientific databases&lt;br /&gt;	Knowledge databases&lt;br /&gt;&lt;br /&gt;17. Define cluster analysis&lt;br /&gt;Cluster analyses data objects without consulting a known class label. The class&lt;br /&gt;labels are not present in the training data simply because they are not known to begin&lt;br /&gt;with.&lt;br /&gt;&lt;br /&gt;18.Classifications of Data mining systems.&lt;br /&gt;Based on the kinds of databases mined:&lt;br /&gt;According to model&lt;br /&gt; Relational mining system&lt;br /&gt;Transactional mining system&lt;br /&gt;Object-oriented mining system&lt;br /&gt;Object-Relational mining system&lt;br /&gt; Data warehouse mining system&lt;br /&gt;Types of Data&lt;br /&gt;Spatial data mining system&lt;br /&gt;Time series data mining system&lt;br /&gt;		Text data mining system&lt;br /&gt;Multimedia data mining system&lt;br /&gt;Based on kinds of Knowledge mined&lt;br /&gt;According to functionalities&lt;br /&gt;Characterization&lt;br /&gt; 	Discrimination&lt;br /&gt; 	Association&lt;br /&gt; 	Classification&lt;br /&gt; 	Clustering&lt;br /&gt; 	Outlier analysis&lt;br /&gt;Evolution analysis&lt;br /&gt;According to levels of abstraction of the knowledge mined&lt;br /&gt;Generalized knowledge (High level of abstraction)&lt;br /&gt;Primitive-level knowledge (Raw data level)&lt;br /&gt;According to mine data regularities versus mine data irregularities&lt;br /&gt;Based on kinds of techniques utilized&lt;br /&gt;According to user interaction&lt;br /&gt;Autonomous systems&lt;br /&gt; Interactive exploratory system&lt;br /&gt; 	Query-driven systems&lt;br /&gt;According to methods of data analysis&lt;br /&gt;Database-oriented&lt;br /&gt; 	Data warehouse-oriented&lt;br /&gt; 	Machine learning&lt;br /&gt; 	Statistics&lt;br /&gt;Visualization&lt;br /&gt; Pattern recognition&lt;br /&gt; 	Neural networks&lt;br /&gt;Based on applications adopted&lt;br /&gt;Finance&lt;br /&gt;Telecommunication&lt;br /&gt;DNA&lt;br /&gt;Stock markets&lt;br /&gt;E-mail and so on&lt;br /&gt;&lt;br /&gt;19.Describe challenges to data mining regarding data mining methodology and user&lt;br /&gt;interaction issues.&lt;br /&gt;Mining different kinds of knowledge in databases&lt;br /&gt;Interactive mining of knowledge at multiple levels of abstraction&lt;br /&gt;Incorporation of background knowledge&lt;br /&gt;Data mining query languages and ad hoc data mining&lt;br /&gt;Presentation and visualization of data mining results&lt;br /&gt;Handling noisy or incomplete data&lt;br /&gt;Pattern evaluation&lt;br /&gt;&lt;br /&gt;20.Describe challenges to data mining regarding performance issues.&lt;br /&gt;&lt;br /&gt;Efficiency and scalability of data mining algorithms&lt;br /&gt;Parallel, distributed, and incremental mining algorithms&lt;br /&gt;&lt;br /&gt;21.Describe issues relating to the diversity of database types.&lt;br /&gt;&lt;br /&gt;Handling of relational and complex types of data&lt;br /&gt;Mining information from heterogeneous databases and global information&lt;br /&gt;systems&lt;br /&gt;22.What is meant by pattern?&lt;br /&gt;&lt;br /&gt;Pattern represents knowledge if it is easily understood by humans; valid on test&lt;br /&gt;data with some degree of certainty; and potentially useful, novel,or validates a hunch&lt;br /&gt;about which the used was curious. Measures of pattern interestingness, either objective or&lt;br /&gt;subjective, can be used to guide the discovery process.&lt;br /&gt;&lt;br /&gt;23.How is a data warehouse different from a database?&lt;br /&gt;&lt;br /&gt;Data warehouse is a repository of multiple heterogeneous data sources, organized&lt;br /&gt;under a unified schema at a single site in order to facilitate management decision-making.&lt;br /&gt;Database consists of a collection of interrelated data.&lt;br /&gt;&lt;br /&gt;UNIT II&lt;br /&gt;&lt;br /&gt;1. Define Association Rule Mining.&lt;br /&gt;Association rule mining searches for interesting relationships among items in&lt;br /&gt;a given data set&lt;br /&gt;&lt;br /&gt;2. When we can say the association rules are interesting?&lt;br /&gt;Association rules are considered interesting if they satisfy both a minimum&lt;br /&gt;support threshold and a minimum confidence threshold. Users or domain experts&lt;br /&gt;can set such thresholds.&lt;br /&gt;&lt;br /&gt;3. Explain Association rule in mathematical notations.&lt;br /&gt;Let I-{i1,i2,…..,im} be a set of items&lt;br /&gt;Let D, the task relevant data be a set of database transaction T is a set of&lt;br /&gt;items&lt;br /&gt;An association rule is an implication of the form A=&gt;B where A C I, B C I,&lt;br /&gt;and An B=. The rule A=&gt;B contains in the transaction set D with support s,&lt;br /&gt;where s is the percentage of transactions in D that contain AUB. The Rule A=&gt; B&lt;br /&gt;has confidence c in the transaction set D if c is the percentage of transactions in D&lt;br /&gt;containing A that also contain B.&lt;br /&gt;&lt;br /&gt;4. Define support and confidence in Association rule mining.&lt;br /&gt;Support S is the percentage of transactions in D that contain AUB.&lt;br /&gt;Confidence c is the percentage of transactions in D containing A that also contain&lt;br /&gt;B.&lt;br /&gt;Support ( A=&gt;B)= P(AUB)&lt;br /&gt;Confidence (A=&gt;B)=P(B/A)&lt;br /&gt;&lt;br /&gt;5. How are association rules mined from large databases?&lt;br /&gt;I step: Find all frequent item sets:&lt;br /&gt;II step: Generate strong association rules from frequent item sets&lt;br /&gt;6. Describe the different classifications of Association rule mining.&lt;br /&gt;Based on types of values handled in the Rule&lt;br /&gt;i. Boolean association rule&lt;br /&gt;ii. Quantitative association rule&lt;br /&gt;Based on the dimensions of data involved&lt;br /&gt;i. Single dimensional association rule&lt;br /&gt;ii. Multidimensional association rule&lt;br /&gt;Based on the levels of abstraction involved&lt;br /&gt;i. Multilevel association rule&lt;br /&gt;ii. Single level association rule&lt;br /&gt;Based on various extensions&lt;br /&gt;i. Correlation analysis&lt;br /&gt;ii. Mining max patterns&lt;br /&gt;&lt;br /&gt;7. What is the purpose of Apriori Algorithm?&lt;br /&gt;Apriori algorithm is an influential algorithm for mining frequent item sets for&lt;br /&gt;Boolean association rules. The name of the algorithm is based on the fact that the&lt;br /&gt;algorithm uses prior knowledge of frequent item set properties.&lt;br /&gt;&lt;br /&gt;8. Define anti-monotone property.&lt;br /&gt;If a set cannot pass a test, all of its supersets will fail the same test as well.&lt;br /&gt;&lt;br /&gt;9. How to generate association rules from frequent item sets?&lt;br /&gt;Association rules can be generated as follows&lt;br /&gt;For each frequent item set1, generate all non empty subsets of 1.&lt;br /&gt;For every non empty subsets s of 1, output the rule “S=&gt;(1-s)”if&lt;br /&gt;Support count(1)&lt;br /&gt;=min_conf,&lt;br /&gt;Support_count(s)&lt;br /&gt;Where min_conf is the minimum confidence threshold.&lt;br /&gt;&lt;br /&gt;10. Give few techniques to improve the efficiency of Apriori algorithm.&lt;br /&gt;Hash based technique&lt;br /&gt;Transaction Reduction&lt;br /&gt;Portioning&lt;br /&gt;Sampling&lt;br /&gt;Dynamic item counting&lt;br /&gt;&lt;br /&gt;11. What are the things suffering the performance of Apriori candidate&lt;br /&gt;generation technique.&lt;br /&gt;&lt;br /&gt;Need to generate a huge number of candidate sets&lt;br /&gt;Need to repeatedly scan the scan the database and check a large set of&lt;br /&gt;candidates by pattern matching&lt;br /&gt;&lt;br /&gt;12. Describe the method of generating frequent item sets without candidate&lt;br /&gt;generation.&lt;br /&gt;Frequent-pattern growth(or FP Growth) adopts divide-and-conquer&lt;br /&gt;strategy.&lt;br /&gt;Steps:&lt;br /&gt;Compress the database representing frequent items into a frequent pattern tree&lt;br /&gt;or FP tree&lt;br /&gt;Divide the compressed database into a set of conditional database&lt;br /&gt;Mine each conditional database separately&lt;br /&gt;&lt;br /&gt;13. Define Iceberg query.&lt;br /&gt;It computes an aggregate function over an attribute or set of attributes in&lt;br /&gt;order to find aggregate values above some specified threshold.&lt;br /&gt;Given relation R with attributes a1,a2,…..,an and b, and an aggregate function,&lt;br /&gt;agg_f, an iceberg query is the form&lt;br /&gt;Select R.a1,R.a2,…..R.an,agg_f(R,b)&lt;br /&gt;From relation R&lt;br /&gt;Group by R.a1,R.a2,….,R.an&lt;br /&gt;Having agg_f(R.b)&gt;=threshold&lt;br /&gt;&lt;br /&gt;14. Mention few approaches to mining Multilevel Association Rules&lt;br /&gt;Uniform minimum support for all levels(or uniform support)&lt;br /&gt;Using reduced minimum support at lower levels(or reduced support)&lt;br /&gt;Level-by-level independent&lt;br /&gt;Level-cross filtering by single item&lt;br /&gt;Level-cross filtering by k-item set&lt;br /&gt;&lt;br /&gt;15. What are multidimensional association rules?&lt;br /&gt;Association rules that involve two or more dimensions or predicates&lt;br /&gt;Interdimension association rule: Multidimensional association rule with no&lt;br /&gt;repeated predicate or dimension&lt;br /&gt;Hybrid-dimension association rule: Multidimensional association rule with&lt;br /&gt;multiple occurrences of some predicates or dimensions.&lt;br /&gt;&lt;br /&gt;16. Define constraint-Based Association Mining.&lt;br /&gt;Mining is performed under the guidance of various kinds of constraints&lt;br /&gt;provided by the user.&lt;br /&gt;The constraints include the following&lt;br /&gt;Knowledge type constraints&lt;br /&gt;Data constraints&lt;br /&gt;Dimension/level constraints&lt;br /&gt;Interestingness constraints&lt;br /&gt;Rule constraints.&lt;br /&gt;17. Define the concept of classification.&lt;br /&gt;Two step process&lt;br /&gt;A model is built describing a predefined set of data classes or concepts.&lt;br /&gt;The model is constructed by analyzing database tuples described by&lt;br /&gt;attributes.&lt;br /&gt;The model is used for classification.&lt;br /&gt;&lt;br /&gt;18. What is Decision tree?&lt;br /&gt;A decision tree is a flow chart like tree structures, where each internal&lt;br /&gt;node denotes a test on an attribute, each branch represents an outcome of the test,&lt;br /&gt;and leaf nodes represent classes or class distributions. The top most in a tree is the&lt;br /&gt;root node.&lt;br /&gt;&lt;br /&gt;19. What is Attribute Selection Measure?&lt;br /&gt;The information Gain measure is used to select the test attribute at each node&lt;br /&gt;in the decision tree. Such a measure is referred to as an attribute selection measure&lt;br /&gt;or a measure of the goodness of split.&lt;br /&gt;&lt;br /&gt;20. Describe Tree pruning methods.&lt;br /&gt;When a decision tree is built, many of the branches will reflect anomalies in&lt;br /&gt;the training data due to noise or outlier. Tree pruning methods address this&lt;br /&gt;problem of over fitting the data.&lt;br /&gt;Approaches:&lt;br /&gt;Pre pruning&lt;br /&gt;Post pruning&lt;br /&gt;&lt;br /&gt;21. Define Pre Pruning&lt;br /&gt;A tree is pruned by halting its construction early. Upon halting, the node&lt;br /&gt;becomes a leaf. The leaf may hold the most frequent class among the subset&lt;br /&gt;samples.&lt;br /&gt;&lt;br /&gt;22. Define Post Pruning.&lt;br /&gt;Post pruning removes branches from a “Fully grown” tree. A tree node is&lt;br /&gt;pruned by removing its branches.&lt;br /&gt;Eg: Cost Complexity Algorithm&lt;br /&gt;&lt;br /&gt;23. What is meant by Pattern?&lt;br /&gt;Pattern represents the knowledge.&lt;br /&gt;&lt;br /&gt;24. Define the concept of prediction.&lt;br /&gt;Prediction can be viewed as the construction and use of a model to assess the&lt;br /&gt;class of an unlabeled sample or to assess the value or value ranges of an attribute&lt;br /&gt;that a given sample is likely to have.&lt;br /&gt;&lt;br /&gt;Unit III&lt;br /&gt;&lt;br /&gt;1.Define Clustering?&lt;br /&gt;Clustering is a process of grouping the physical or conceptual data object into&lt;br /&gt;clusters.&lt;br /&gt;&lt;br /&gt;2. What do you mean by Cluster Analysis?&lt;br /&gt;A cluster analysis is the process of analyzing the various clusters to organize the&lt;br /&gt;different objects into meaningful and descriptive objects.&lt;br /&gt;&lt;br /&gt;3. What are the fields in which clustering techniques are used?&lt;br /&gt;Clustering is used in biology to develop new plants and animal&lt;br /&gt;taxonomies.&lt;br /&gt;Clustering is used in business to enable marketers to develop new&lt;br /&gt;distinct groups of their customers and characterize the customer group on basis&lt;br /&gt;of purchasing.&lt;br /&gt;Clustering is used in the identification of groups of automobiles&lt;br /&gt;Insurance policy customer.&lt;br /&gt;Clustering is used in the identification of groups of house in a city on&lt;br /&gt;the basis of house type, their cost and geographical location.&lt;br /&gt;Clustering is used to classify the document on the web for information&lt;br /&gt;discovery.&lt;br /&gt;&lt;br /&gt;4.What are the requirements of cluster analysis?&lt;br /&gt;The basic requirements of cluster analysis are&lt;br /&gt;Dealing with different types of attributes.&lt;br /&gt;Dealing with noisy data.&lt;br /&gt;Constraints on clustering.&lt;br /&gt;Dealing with arbitrary shapes.&lt;br /&gt;High dimensionality&lt;br /&gt;Ordering of input data&lt;br /&gt;Interpretability and usability&lt;br /&gt;Determining input parameter and&lt;br /&gt;Scalability&lt;br /&gt;&lt;br /&gt;5.What are the different types of data used for cluster analysis?&lt;br /&gt;The different types of data used for cluster analysis are interval scaled, binary,&lt;br /&gt;nominal, ordinal and ratio scaled data.&lt;br /&gt;&lt;br /&gt;6. What are interval scaled variables?&lt;br /&gt;Interval scaled variables are continuous measurements of linear scale.&lt;br /&gt;For example, height and weight, weather temperature or coordinates for any cluster.&lt;br /&gt;These measurements can be calculated using Euclidean distance or Minkowski distance.&lt;br /&gt;&lt;br /&gt;7. Define Binary variables? And what are the two types of binary variables?&lt;br /&gt;Binary variables are understood by two states 0 and 1, when state is 0, variable is&lt;br /&gt;absent and when state is 1, variable is present. There are two types of binary variables,&lt;br /&gt;symmetric and asymmetric binary variables. Symmetric variables are those variables that&lt;br /&gt;have same state values and weights. Asymmetric variables are those variables that have&lt;br /&gt;not same state values and weights.&lt;br /&gt;&lt;br /&gt;8. Define nominal, ordinal and ratio scaled variables?&lt;br /&gt;A nominal variable is a generalization of the binary variable. Nominal variable&lt;br /&gt;has more than two states, For example, a nominal variable, color consists of four states,&lt;br /&gt;red, green, yellow, or black. In Nominal variables the total number of states is N and it is&lt;br /&gt;denoted by letters, symbols or integers.&lt;br /&gt;An ordinal variable also has more than two states but all these states are ordered&lt;br /&gt;in a meaningful sequence.&lt;br /&gt;A ratio scaled variable makes positive measurements on a non-linear scale, such&lt;br /&gt;as exponential scale, using the formula&lt;br /&gt;AeBt or Ae-Bt&lt;br /&gt;Where A and B are constants.&lt;br /&gt;&lt;br /&gt;9. What do u mean by partitioning method?&lt;br /&gt;In partitioning method a partitioning algorithm arranges all the objects into&lt;br /&gt;various partitions, where the total number of partitions is less than the total number of&lt;br /&gt;objects. Here each partition represents a cluster. The two types of partitioning method are&lt;br /&gt;k-means and k-medoids.&lt;br /&gt;&lt;br /&gt;10. Define CLARA and CLARANS?&lt;br /&gt;Clustering in LARge Applications is called as CLARA. The efficiency of&lt;br /&gt;CLARA depends upon the size of the representative data set. CLARA does not work&lt;br /&gt;properly if any representative data set from the selected representative data sets does not&lt;br /&gt;find best k-medoids.&lt;br /&gt;To recover this drawback a new algorithm, Clustering Large Applications based&lt;br /&gt;upon RANdomized search (CLARANS) is introduced. The CLARANS works like&lt;br /&gt;CLARA, the only difference between CLARA and CLARANS is the clustering process&lt;br /&gt;that is done after selecting the representative data sets.&lt;br /&gt;&lt;br /&gt;11. What is Hierarchical method?&lt;br /&gt;Hierarchical method groups all the objects into a tree of clusters that are arranged&lt;br /&gt;in a hierarchical order. This method works on bottom-up or top-down approaches.&lt;br /&gt;&lt;br /&gt;12. Differentiate Agglomerative and Divisive Hierarchical Clustering?&lt;br /&gt;Agglomerative Hierarchical clustering method works on the bottom-up approach.&lt;br /&gt;In Agglomerative hierarchical method, each object creates its own clusters. The single&lt;br /&gt;Clusters are merged to make larger clusters and the process of merging continues until all&lt;br /&gt;the singular clusters are merged into one big cluster that consists of all the objects.&lt;br /&gt;Divisive Hierarchical clustering method works on the top-down approach. In this&lt;br /&gt;method all the objects are arranged within a big singular cluster and the large cluster is&lt;br /&gt;continuously divided into smaller clusters until each cluster has a single object.&lt;br /&gt;&lt;br /&gt;13. What is CURE?&lt;br /&gt;Clustering Using Representatives is called as CURE. The clustering algorithms&lt;br /&gt;generally work on spherical and similar size clusters. CURE overcomes the problem of&lt;br /&gt;spherical and similar size cluster and is more robust with respect to outliers.&lt;br /&gt;&lt;br /&gt;14. Define Chameleon method?&lt;br /&gt;Chameleon is another hierarchical clustering method that uses dynamic modeling.&lt;br /&gt;Chameleon is introduced to recover the drawbacks of CURE method. In this method two&lt;br /&gt;clusters are merged, if the interconnectivity between two clusters is greater than the&lt;br /&gt;interconnectivity between the objects within a cluster.&lt;br /&gt;&lt;br /&gt;15. Define Density based method?&lt;br /&gt;Density based method deals with arbitrary shaped clusters. In density-based&lt;br /&gt;method, clusters are formed on the basis of the region where the density of the objects is&lt;br /&gt;high.&lt;br /&gt;&lt;br /&gt;16. What is a DBSCAN?&lt;br /&gt;Density Based Spatial Clustering of Application Noise is called as DBSCAN.&lt;br /&gt;DBSCAN is a density based clustering method that converts the high-density objects&lt;br /&gt;regions into clusters with arbitrary shapes and sizes. DBSCAN defines the cluster as a&lt;br /&gt;maximal set of density connected points.&lt;br /&gt;&lt;br /&gt;17. What do you mean by Grid Based Method?&lt;br /&gt;In this method objects are represented by the multi resolution grid data structure.&lt;br /&gt;All the objects are quantized into a finite number of cells and the collection of cells build&lt;br /&gt;the grid structure of objects. The clustering operations are performed on that grid&lt;br /&gt;structure. This method is widely used because its processing time is very fast and that is&lt;br /&gt;independent of number of objects.&lt;br /&gt;&lt;br /&gt;18. What is a STING?&lt;br /&gt;Statistical Information Grid is called as STING; it is a grid based multi resolution&lt;br /&gt;clustering method. In STING method, all the objects are contained into rectangular cells,&lt;br /&gt;these cells are kept into various levels of resolutions and these levels are arranged in a&lt;br /&gt;hierarchical structure.&lt;br /&gt;&lt;br /&gt;19. Define Wave Cluster?&lt;br /&gt;It is a grid based multi resolution clustering method. In this method all the objects&lt;br /&gt;are represented by a multidimensional grid structure and a wavelet transformation is&lt;br /&gt;applied for finding the dense region. Each grid cell contains the information of the group&lt;br /&gt;of objects that map into a cell. A wavelet transformation is a process of signaling that&lt;br /&gt;produces the signal of various frequency sub bands.&lt;br /&gt;&lt;br /&gt;20. What is Model based method?&lt;br /&gt;For optimizing a fit between a given data set and a mathematical model based&lt;br /&gt;methods are used. This method uses an assumption that the data are distributed by&lt;br /&gt;probability distributions. There are two basic approaches in this method that are&lt;br /&gt;1. Statistical Approach&lt;br /&gt;2. Neural Network Approach.&lt;br /&gt;&lt;br /&gt;21. What is the use of Regression?&lt;br /&gt;Regression can be used to solve the classification problems but it can also be used&lt;br /&gt;for applications such as forecasting. Regression can be performed using many different&lt;br /&gt;types of techniques; in actually regression takes a set of data and fits the data to a&lt;br /&gt;formula.&lt;br /&gt;&lt;br /&gt;22. What are the reasons for not using the linear regression model to estimate the output data?&lt;br /&gt;There are many reasons for that, One is that the data do not fit a linear model, It is&lt;br /&gt;possible however that the data generally do actually represent a linear model, but the&lt;br /&gt;linear model generated is poor because noise or outliers exist in the data.&lt;br /&gt;Noise is erroneous data and outliers are data values that are exceptions to the usual and&lt;br /&gt;expected data.&lt;br /&gt;&lt;br /&gt;23. What are the two approaches used by regression to perform classification?&lt;br /&gt;Regression can be used to perform classification using the following approaches&lt;br /&gt;1. Division: The data are divided into regions based on class.&lt;br /&gt;2. Prediction: Formulas are generated to predict the output class value.&lt;br /&gt;&lt;br /&gt;24. What do u mean by logistic regression?&lt;br /&gt;Instead of fitting a data into a straight line logistic regression uses a logistic curve.&lt;br /&gt;The formula for the univariate logistic curve is&lt;br /&gt;P= e (C0+C1X1)&lt;br /&gt;1+e (C0+C1X1)&lt;br /&gt;The logistic curve gives a value between 0 and 1 so it can be interpreted as the&lt;br /&gt;probability of class membership.&lt;br /&gt;&lt;br /&gt;25. What is Time Series Analysis?&lt;br /&gt;A time series is a set of attribute values over a period of time. Time Series&lt;br /&gt;Analysis may be viewed as finding patterns in the data and predicting future values.&lt;br /&gt;&lt;br /&gt;26. What are the various detected patterns?&lt;br /&gt;Detected patterns may include:&lt;br /&gt;•Trends : It may be viewed as systematic non-repetitive changes to the values over&lt;br /&gt;time.&lt;br /&gt;•Cycles : The observed behavior is cyclic.&lt;br /&gt;•Seasonal : The detected patterns may be based on time of year or month or day.&lt;br /&gt;•Outliers : To assist in pattern detection , techniques may be needed to remove or&lt;br /&gt;reduce the impact of outliers.&lt;br /&gt;27. What is Smoothing?&lt;br /&gt;Smoothing is an approach that is used to remove the nonsystematic behaviors&lt;br /&gt;found in time series. It usually takes the form of finding moving averages of attribute&lt;br /&gt;values. It is used to filter out noise and outliers.&lt;br /&gt;&lt;br /&gt;28. Give the formula for Pearson’s r&lt;br /&gt;One standard formula to measure correlation is the correlation coefficient r,&lt;br /&gt;sometimes called Pearson’s r. Given two time series, X and Y with means X’ and Y’,&lt;br /&gt;each with n elements, the formula for r is&lt;br /&gt;(xi – X’) (yi – Y’)&lt;br /&gt;((xi – X’)2 (yi – Y’)2)1/2&lt;br /&gt;&lt;br /&gt;29. What is Auto regression?&lt;br /&gt;Auto regression is a method of predicting a future time series value by looking at&lt;br /&gt;previous values. Given a time series X = (x1,x2,….xn) a future value, x n+1, can be found&lt;br /&gt;using&lt;br /&gt;x n+1 = + nx n + n-1x n-1 +……+ n+1&lt;br /&gt;Here n+1 represents a random error, at time n+1.In addition, each element in the time&lt;br /&gt;series can be viewed as a combination of a random error and a linear combination of&lt;br /&gt;previous values.&lt;br /&gt;&lt;br /&gt;UNIT-IV&lt;br /&gt;&lt;br /&gt;1.Define data warehouse?&lt;br /&gt;A data warehouse is a repository of multiple heterogeneous data sources&lt;br /&gt;organized under a unified schema at a single site to facilitate management decision&lt;br /&gt;making .&lt;br /&gt;(or)&lt;br /&gt;A data warehouse is a subject-oriented, time-variant and nonvolatile&lt;br /&gt;collection of data in support of management’s decision-making process.&lt;br /&gt;&lt;br /&gt;2.What are operational databases?&lt;br /&gt;Organizations maintain large database that are updated by daily transactions are&lt;br /&gt;called operational databases.&lt;br /&gt;&lt;br /&gt;3.Define OLTP?&lt;br /&gt;If an on-line operational database systems is used for efficient retrieval, efficient&lt;br /&gt;storage and management of large amounts of data, then the system is said to be on-line&lt;br /&gt;transaction processing.&lt;br /&gt;&lt;br /&gt;4.Define OLAP?&lt;br /&gt;Data warehouse systems serves users (or) knowledge workers in the role of data&lt;br /&gt;analysis and decision-making. Such systems can organize and present data in various&lt;br /&gt;formats. These systems are known as on-line analytical processing systems.&lt;br /&gt;&lt;br /&gt;5.How a database design is represented in OLTP systems?&lt;br /&gt;Entity-relation model&lt;br /&gt;&lt;br /&gt;6. How a database design is represented in OLAP systems?&lt;br /&gt;Star schema&lt;br /&gt;Snowflake schema&lt;br /&gt;Fact constellation schema&lt;br /&gt;&lt;br /&gt;7.Write short notes on multidimensional data model?&lt;br /&gt;Data warehouses and OLTP tools are based on a multidimensional data model.&lt;br /&gt;This model is used for the design of corporate data warehouses and department data&lt;br /&gt;marts. This model contains a Star schema, Snowflake schema and Fact constellation&lt;br /&gt;schemas. The core of the multidimensional model is the data cube.&lt;br /&gt;&lt;br /&gt;8.Define data cube?&lt;br /&gt;It consists of a large set of facts (or) measures and a number of dimensions.&lt;br /&gt;&lt;br /&gt;9.What are facts?&lt;br /&gt;Facts are numerical measures. Facts can also be considered as quantities by which&lt;br /&gt;we can analyze the relationship between dimensions.&lt;br /&gt;&lt;br /&gt;10.What are dimensions?&lt;br /&gt;Dimensions are the entities (or) perspectives with respect to an organization for&lt;br /&gt;keeping records and are hierarchical in nature.&lt;br /&gt;&lt;br /&gt;11.Define dimension table?&lt;br /&gt;A dimension table is used for describing the dimension.&lt;br /&gt;(e.g.) A dimension table for item may contain the attributes item_ name, brand and type.&lt;br /&gt;&lt;br /&gt;12.Define fact table?&lt;br /&gt;Fact table contains the name of facts (or) measures as well as keys to each of the related dimensional tables.&lt;br /&gt;&lt;br /&gt;13.What are lattice of cuboids?&lt;br /&gt;In data warehousing research literature, a cube can also be called as cuboids. For&lt;br /&gt;different (or) set of dimensions, we can construct a lattice of cuboids, each showing the&lt;br /&gt;data at different level. The lattice of cuboids is also referred to as data cube.&lt;br /&gt;&lt;br /&gt;14.What is apex cuboid?&lt;br /&gt;The 0-D cuboid which holds the highest level of summarization is called the apex&lt;br /&gt;cuboid. The apex cuboid is typically denoted by all.&lt;br /&gt;&lt;br /&gt;15.List out the components of star schema?&lt;br /&gt;_ A large central table (fact table) containing the bulk of data with no&lt;br /&gt;redundancy.&lt;br /&gt;_ A set of smaller attendant tables (dimension tables), one for each&lt;br /&gt;dimension.&lt;br /&gt;&lt;br /&gt;16.What is snowflake schema?&lt;br /&gt;The snowflake schema is a variant of the star schema model, where some&lt;br /&gt;dimension tables are normalized thereby further splitting the tables in to additional tables.&lt;br /&gt;&lt;br /&gt;17.List out the components of fact constellation schema?&lt;br /&gt;This requires multiple fact tables to share dimension tables. This kind of schema&lt;br /&gt;can be viewed as a collection of stars and hence it is known as galaxy schema (or) fact&lt;br /&gt;constellation schema.&lt;br /&gt;&lt;br /&gt;18.Point out the major difference between the star schema and the snowflake&lt;br /&gt;schema?&lt;br /&gt;The dimension table of the snowflake schema model may be kept in normalized&lt;br /&gt;form to reduce redundancies. Such a table is easy to maintain and saves storage space.&lt;br /&gt;&lt;br /&gt;19.Which is popular in the data warehouse design, star schema model (or)&lt;br /&gt;snowflake schema model?&lt;br /&gt;Star schema model, because the snowflake structure can reduce the effectiveness&lt;br /&gt;and more joins will be needed to execute a query.&lt;br /&gt;&lt;br /&gt;20.Define concept hierarchy?&lt;br /&gt;A concept hierarchy defines a sequence of mappings from a set of low-level&lt;br /&gt;concepts to higher-level concepts.&lt;br /&gt;&lt;br /&gt;21.Define total order?&lt;br /&gt;If the attributes of a dimension which forms a concept hierarchy such as&lt;br /&gt;“street&lt;city&lt; province_or_state &lt;country”, then it is said to be total order.&lt;br /&gt;Country&lt;br /&gt;Province or state&lt;br /&gt;City&lt;br /&gt;Street&lt;br /&gt;Fig: Partial order for location&lt;br /&gt;&lt;br /&gt;22.Define partial order?&lt;br /&gt;If the attributes of a dimension which forms a lattice such as&lt;br /&gt;“day&lt;{month&lt;quarter; week}&lt;year, then it is said to be partial order.&lt;br /&gt;&lt;br /&gt;23.Define schema hierarchy?&lt;br /&gt;A concept hierarchy that is a total (or) partial order among attributes in a database&lt;br /&gt;schema is called a schema hierarchy.&lt;br /&gt;&lt;br /&gt;24.List out the OLAP operations in multidimensional data model?&lt;br /&gt;_ Roll-up&lt;br /&gt;_ Drill-down&lt;br /&gt;_ Slice and dice&lt;br /&gt;_ Pivot (or) rotate&lt;br /&gt;&lt;br /&gt;25.What is roll-up operation?&lt;br /&gt;The roll-up operation is also called drill-up operation which performs aggregation&lt;br /&gt;on a data cube either by climbing up a concept hierarchy for a dimension (or) by&lt;br /&gt;dimension reduction.&lt;br /&gt;&lt;br /&gt;26.What is drill-down operation?&lt;br /&gt;Drill-down is the reverse of roll-up operation. It navigates from less detailed data&lt;br /&gt;to more detailed data. Drill-down operation can be taken place by stepping down a&lt;br /&gt;concept hierarchy for a dimension.&lt;br /&gt;&lt;br /&gt;27.What is slice operation?&lt;br /&gt;The slice operation performs a selection on one dimension of the cube resulting in a sub cube.&lt;br /&gt;&lt;br /&gt;28.What is dice operation?&lt;br /&gt;The dice operation defines a sub cube by performing a selection on two (or) more dimensions.&lt;br /&gt;&lt;br /&gt;29.What is pivot operation?&lt;br /&gt;This is a visualization operation that rotates the data axes in an alternative&lt;br /&gt;presentation of the data.&lt;br /&gt;&lt;br /&gt;30.List out the views in the design of a data warehouse?&lt;br /&gt;_ Top-down view&lt;br /&gt;_ Data source view&lt;br /&gt;_ Data warehouse view&lt;br /&gt;_ Business query view&lt;br /&gt;&lt;br /&gt;31.What are the methods for developing large software systems?&lt;br /&gt;_ Waterfall method&lt;br /&gt;_ Spiral method&lt;br /&gt;&lt;br /&gt;32.How the operation is performed in waterfall method?&lt;br /&gt;The waterfall method performs a structured and systematic analysis at each step&lt;br /&gt;before proceeding to the next, which is like a waterfall falling from one step to the next.&lt;br /&gt;&lt;br /&gt;33.How the operation is performed in spiral method?&lt;br /&gt;The spiral method involves the rapid generation of increasingly functional&lt;br /&gt;systems, with short intervals between successive releases. This is considered as a good&lt;br /&gt;choice for the data warehouse development especially for data marts, because the turn&lt;br /&gt;around time is short, modifications can be done quickly and new designs and&lt;br /&gt;technologies can be adapted in a timely manner.&lt;br /&gt;&lt;br /&gt;34.List out the steps of the data warehouse design process?&lt;br /&gt;_ Choose a business process to model.&lt;br /&gt;_ Choose the grain of the business process&lt;br /&gt;_ Choose the dimensions that will apply to each fact table record.&lt;br /&gt;_ Choose the measures that will populate each fact table record.&lt;br /&gt;&lt;br /&gt;35.Define ROLAP?&lt;br /&gt;The ROLAP model is an extended relational DBMS that maps operations on&lt;br /&gt;multidimensional data to standard relational operations.&lt;br /&gt;&lt;br /&gt;36.Define MOLAP?&lt;br /&gt;The MOLAP model is a special purpose server that directly implements&lt;br /&gt;multidimensional data and operations.&lt;br /&gt;&lt;br /&gt;37.Define HOLAP?&lt;br /&gt;The hybrid OLAP approach combines ROLAP and MOLAP technology,&lt;br /&gt;benefiting from the greater scalability of ROLAP and the faster computation of&lt;br /&gt;MOLAP,(i.e.) a HOLAP server may allow large volumes of detail data to be stored in a&lt;br /&gt;relational database, while aggregations are kept in a separate MOLAP store.&lt;br /&gt;&lt;br /&gt;38.What is enterprise warehouse?&lt;br /&gt;An enterprise warehouse collects all the information’s about subjects spanning the&lt;br /&gt;entire organization. It provides corporate-wide data integration, usually from one (or)&lt;br /&gt;more operational systems (or) external information providers. It contains detailed data as&lt;br /&gt;well as summarized data and can range in size from a few giga bytes to hundreds of giga&lt;br /&gt;bytes, tera bytes (or) beyond. An enterprise data warehouse may be implemented on&lt;br /&gt;traditional mainframes, UNIX super servers (or) parallel architecture platforms. It&lt;br /&gt;requires business modeling and may take years to design and build.&lt;br /&gt;&lt;br /&gt;39.What is data mart?&lt;br /&gt;Data mart is a database that contains a subset of data present in a data warehouse.&lt;br /&gt;Data marts are created to structure the data in a data warehouse according to issues such&lt;br /&gt;as hardware platforms and access control strategies. We can divide a data warehouse into&lt;br /&gt;data marts after the data warehouse has been created. Data marts are usually implemented&lt;br /&gt;on low-cost departmental servers that are UNIX (or) windows/NT based. The&lt;br /&gt;implementation cycle of the data mart is likely to be measured in weeks rather than&lt;br /&gt;months (or) years.&lt;br /&gt;&lt;br /&gt;40.What are dependent and independent data marts?&lt;br /&gt;Dependent data marts are sourced directly from enterprise data warehouses.&lt;br /&gt;Independent data marts are data captured from one (or) more operational systems (or)&lt;br /&gt;external information providers (or) data generated locally with in particular department&lt;br /&gt;(or) geographic area.&lt;br /&gt;&lt;br /&gt;41.What is virtual warehouse?&lt;br /&gt;A virtual warehouse is a set of views over operational databases. For efficient&lt;br /&gt;query processing, only some of the possible summary views may be materialized. A&lt;br /&gt;virtual warehouse is easy to build but requires excess capability on operational database&lt;br /&gt;servers.&lt;br /&gt;&lt;br /&gt;42.Define indexing?&lt;br /&gt;Indexing is a technique, which is used for efficient data retrieval (or) accessing&lt;br /&gt;data in a faster manner. When a table grows in volume, the indexes also increase in size&lt;br /&gt;requiring more storage.&lt;br /&gt;43.What are the types of indexing?&lt;br /&gt;_ B-Tree indexing&lt;br /&gt;_ Bit map indexing&lt;br /&gt;_ Join indexing&lt;br /&gt;&lt;br /&gt;44.Define metadata?&lt;br /&gt;Metadata is used in data warehouse is used for describing data about data.&lt;br /&gt;(i.e.) meta data are the data that define warehouse objects. Metadata are created for the&lt;br /&gt;data names and definitions of the given warehouse.&lt;br /&gt;&lt;br /&gt;45.Define VLDB?&lt;br /&gt;Very Large Data Base. If a database whose size is greater than 100GB, then&lt;br /&gt;the database is said to be very large database.&lt;br /&gt;&lt;br /&gt;UNIT – V&lt;br /&gt;&lt;br /&gt;1.What are the classifications of tools for data mining?&lt;br /&gt;Commercial Tools&lt;br /&gt;Public domain Tools&lt;br /&gt;Research prototypes &lt;br /&gt;&lt;br /&gt;2.What are commercial tools?&lt;br /&gt;Commercial tools can be defined as the following products and usually are&lt;br /&gt;associated with the consulting activity by the same company:&lt;br /&gt;1. ‘Intelligent Miner’ from IBM&lt;br /&gt;2. ‘SAS’ System from SAS Institute&lt;br /&gt;3. ‘Thought’ from Right Information Systems. Etc&lt;br /&gt;&lt;br /&gt;3. What are Public domain Tools?&lt;br /&gt;Public domain Tools are largely freeware with just registration fees:&lt;br /&gt;’Brute’ from University of Washington. ‘MC++’ from Stanford university, Stanford,&lt;br /&gt;California.&lt;br /&gt;&lt;br /&gt;4. What are Research prototypes?&lt;br /&gt;Some of the research products may find their way into commercial&lt;br /&gt;market: ‘DB Miner’ from Simon Fraser University, British Columbia, ‘Mining Kernel&lt;br /&gt;System’ from University of Ulster, North Ireland.&lt;br /&gt;&lt;br /&gt;5.What is the difference between generic single-task tools and generic multi-task&lt;br /&gt;tools?&lt;br /&gt;Generic single-task tools generally use neural networks or decision trees.&lt;br /&gt;They cover only the data mining part and require extensive pre-processing and postprocessing&lt;br /&gt;steps.&lt;br /&gt;Generic multi-task tools offer modules for pre-processing and postprocessing&lt;br /&gt;steps and also offer a broad selection of several popular data mining&lt;br /&gt;algorithms as clustering.&lt;br /&gt;&lt;br /&gt;6. What are the areas in which data warehouses are used in present and in future?&lt;br /&gt;The potential subject areas in which data ware houses may be developed at&lt;br /&gt;present and also in future are&lt;br /&gt;1.Census data:&lt;br /&gt;The registrar general and census commissioner of India decennially&lt;br /&gt;compiles information of all individuals, villages, population groups, etc. This information&lt;br /&gt;is wide ranging such as the individual slip. A compilation of information of individual&lt;br /&gt;households, of which a database of 5%sample is maintained for analysis. A data&lt;br /&gt;warehouse can be built from this database upon which OLAP techniques can be applied,&lt;br /&gt;Data mining also can be performed for analysis and knowledge discovery&lt;br /&gt;&lt;br /&gt;2.Prices of Essential Commodities&lt;br /&gt;The ministry of food and civil supplies, Government of India complies&lt;br /&gt;daily data for about 300 observation centers in the entire country on the prices of&lt;br /&gt;essential commodities such as rice, edible oil etc, A data warehouse can be built&lt;br /&gt;for this data and OLAP techniques can be applied for its analysis&lt;br /&gt;&lt;br /&gt;7. What are the other areas for Data warehousing and data mining?&lt;br /&gt;Agriculture&lt;br /&gt;Rural development&lt;br /&gt;Health&lt;br /&gt;Planning&lt;br /&gt;Education&lt;br /&gt;Commerce and Trade&lt;br /&gt;&lt;br /&gt;8. Specify some of the sectors in which data warehousing and data mining are used?&lt;br /&gt;Tourism&lt;br /&gt;Program Implementation&lt;br /&gt;Revenue&lt;br /&gt;Economic Affairs&lt;br /&gt;Audit and Accounts&lt;br /&gt;&lt;br /&gt;9. Describe the use of DBMiner.&lt;br /&gt;Used to perform data mining functions, including characterization,&lt;br /&gt;association, classification, prediction and clustering.&lt;br /&gt;&lt;br /&gt;10. Applications of DBMiner.&lt;br /&gt;The DBMiner system can be used as a general-purpose online analytical&lt;br /&gt;mining system for both OLAP and data mining in relational database and&lt;br /&gt;datawarehouses.&lt;br /&gt;Used in medium to large relational databases with fast response time.&lt;br /&gt;&lt;br /&gt;11. Give some data mining tools.&lt;br /&gt;DBMiner&lt;br /&gt;GeoMiner&lt;br /&gt;Multimedia miner&lt;br /&gt;WeblogMiner&lt;br /&gt;&lt;br /&gt;12. Mention some of the application areas of data mining&lt;br /&gt;DNA analysis&lt;br /&gt;Financial data analysis&lt;br /&gt;Retail Industry&lt;br /&gt;Telecommunication industry&lt;br /&gt;Market analysis&lt;br /&gt;Banking industry&lt;br /&gt;Health care analysis.&lt;br /&gt;&lt;br /&gt;13. Differentiate data query and knowledge query&lt;br /&gt;A data query finds concrete data stored in a database and corresponds to a&lt;br /&gt;basic retrieval statement in a database system.&lt;br /&gt;A knowledge query finds rules, patterns and other kinds of knowledge in a&lt;br /&gt;database and corresponds to querying database knowledge including&lt;br /&gt;deduction rules, integrity constraints, generalized rules, frequent patterns and&lt;br /&gt;other regularities.&lt;br /&gt;&lt;br /&gt;14.Differentiate direct query answering and intelligent query answering.&lt;br /&gt;Direct query answering means that a query answers by returning exactly what&lt;br /&gt;is being asked.&lt;br /&gt;Intelligent query answering consists of analyzing the intent of query and&lt;br /&gt;providing generalized, neighborhood, or associated information relevant to the&lt;br /&gt;query.&lt;br /&gt;&lt;br /&gt;15. Define visual data mining&lt;br /&gt;Discovers implicit and useful knowledge from large data sets using data and/&lt;br /&gt;or knowledge visualization techniques.&lt;br /&gt;Integration of data visualization and data mining.&lt;br /&gt;&lt;br /&gt;16. What does audio data mining mean?&lt;br /&gt;Uses audio signals to indicate patterns of data or the features of data mining&lt;br /&gt;results.&lt;br /&gt;Patterns are transformed into sound and music.&lt;br /&gt;To identify interesting or unusual patterns by listening pitches, rhythms, tune&lt;br /&gt;and melody.&lt;br /&gt;Steps involved in DNA analysis&lt;br /&gt;Semantic integration of heterogeneous, distributed genome databases&lt;br /&gt;Similarity search and comparison among DNA sequences&lt;br /&gt;Association analysis: Identification of co-occuring gene sequences&lt;br /&gt;Path analysis: Linking genes to different stages of disease development&lt;br /&gt;Visualization tools and genetic data analysis&lt;br /&gt;&lt;br /&gt;17.What are the factors involved while choosing data mining system?&lt;br /&gt;Data types&lt;br /&gt;System issues&lt;br /&gt;Data sources&lt;br /&gt;Data Mining functions and methodologies&lt;br /&gt;Coupling data mining with database and/or data warehouse systems&lt;br /&gt;Scalability&lt;br /&gt;Visualization tools&lt;br /&gt;Data mining query language and graphical user interface.&lt;br /&gt;&lt;br /&gt;18. Define DMQL&lt;br /&gt;Data Mining Query Language&lt;br /&gt;It specifies clauses and syntaxes for performing different types of data mining&lt;br /&gt;tasks for example data classification, data clustering and mining association&lt;br /&gt;rules. Also it uses SQl-like syntaxes to mine databases.&lt;br /&gt;&lt;br /&gt;19. Define text mining&lt;br /&gt;Extraction of meaningful information from large amounts free format textual&lt;br /&gt;data.&lt;br /&gt;Useful in Artificial intelligence and pattern matching&lt;br /&gt;Also known as text mining, knowledge discovery from text, or content&lt;br /&gt;analysis.&lt;br /&gt;&lt;br /&gt;20. What does web mining mean&lt;br /&gt;Technique to process information available on web and search for useful data.&lt;br /&gt;To discover web pages, text documents , multimedia files, images, and other&lt;br /&gt;types of resources from web.&lt;br /&gt;Used in several fields such as E-commerce, information filtering, fraud&lt;br /&gt;detection and education and research.&lt;br /&gt;&lt;br /&gt;21.Define spatial data mining.&lt;br /&gt;Extracting undiscovered and implied spatial information.&lt;br /&gt;Spatial data: Data that is associated with a location&lt;br /&gt;Used in several fields such as geography, geology, medical imaging etc.&lt;br /&gt;&lt;br /&gt;22. Explain multimedia data mining.&lt;br /&gt;Mines large data bases.&lt;br /&gt;Does not retrieve any specific information from multimedia databases&lt;br /&gt;Derive new relationships , trends, and patterns from stored multimedia data&lt;br /&gt;mining.&lt;br /&gt;Used in medical diagnosis, stock markets ,Animation industry, Airline&lt;br /&gt;industry, Traffic management systems, Surveillance systems etc.&lt;br /&gt;&lt;br /&gt;16 MARKS QUESTIONS &lt;br /&gt;&lt;br /&gt;UNIT-I&lt;br /&gt;&lt;br /&gt;1. Explain the evolution of Database technology?&lt;br /&gt;_ Data collection and Database creation&lt;br /&gt;_ Database management systems&lt;br /&gt;_ Advanced database systems&lt;br /&gt;_ Data warehousing and Data Mining&lt;br /&gt;_ Web-based Database systems&lt;br /&gt;_ New generation of Integrated information systems&lt;br /&gt;&lt;br /&gt;2.Explain the steps of knowledge discovery in databases?&lt;br /&gt;_ Data cleaning&lt;br /&gt;_ Data integration&lt;br /&gt;_ Data selection&lt;br /&gt;_ Data transformation&lt;br /&gt;_ Data mining&lt;br /&gt;_ Pattern evaluation&lt;br /&gt;_ Knowledge presentation&lt;br /&gt;&lt;br /&gt;3. Explain the architecture of data mining system?&lt;br /&gt;_ Database, datawarehouse, or other information repository&lt;br /&gt;_ Database or data warehouse server&lt;br /&gt;_ Knowledge base&lt;br /&gt;_ Data mining engine&lt;br /&gt;_ Pattern evaluation module&lt;br /&gt;_ Graphical user interface&lt;br /&gt;&lt;br /&gt;4.Explain various tasks in data mining?&lt;br /&gt;(Or)&lt;br /&gt;Explain the taxonomy of data mining tasks?&lt;br /&gt;_ Predictive modeling&lt;br /&gt;Classification&lt;br /&gt;Regression&lt;br /&gt;Time series analysis&lt;br /&gt;_ Descriptive modeling&lt;br /&gt;Clustering&lt;br /&gt;Summarization&lt;br /&gt;Association rules&lt;br /&gt;Sequence discovery&lt;br /&gt;&lt;br /&gt;5.Explain various techniques in data mining?&lt;br /&gt;_ Statistics (or) Statistical perspectives&lt;br /&gt;_ Point estimation&lt;br /&gt;Data summarization&lt;br /&gt;Bayesian techniques&lt;br /&gt;Hypothesis testing&lt;br /&gt;Correlation&lt;br /&gt;_ Regression&lt;br /&gt;_ Machine learning&lt;br /&gt;_ Decision trees&lt;br /&gt;_ Hidden markov models&lt;br /&gt;_ Artificial neural networks&lt;br /&gt;_ Genetic algorithms&lt;br /&gt;_ Meta learning&lt;br /&gt;&lt;br /&gt;UNIT-II&lt;br /&gt;&lt;br /&gt;6.Explain the issues regarding classification and prediction?&lt;br /&gt;_ Preparing the data for classification and prediction&lt;br /&gt;o Data cleaning&lt;br /&gt;o Relevance analysis&lt;br /&gt;o Data transformation&lt;br /&gt;_ Comparing classification methods&lt;br /&gt;o Predictive accuracy&lt;br /&gt;o Speed&lt;br /&gt;o Robustness&lt;br /&gt;o Scalability&lt;br /&gt;o Interpretability&lt;br /&gt;&lt;br /&gt;7.Explain classification by Decision tree induction?&lt;br /&gt;_ Decision tree induction&lt;br /&gt;_ Attribute selection measure.&lt;br /&gt;_ Tree pruning&lt;br /&gt;_ Extracting classification rules from decision trees&lt;br /&gt;&lt;br /&gt;8.Write short notes on patterns?&lt;br /&gt;_ Pattern definition&lt;br /&gt;_ Objective measures&lt;br /&gt;_ Subjective measures&lt;br /&gt;_ Can a data mining system generate all of the interesting&lt;br /&gt;patterns?&lt;br /&gt;_ Can a data mining system generate only interesting&lt;br /&gt;patterns?&lt;br /&gt;9.Explain mining single –dimensional Boolean associated rules from transactional&lt;br /&gt;databases?&lt;br /&gt;_ The apriori algorithm: Finding frequent itemsets using&lt;br /&gt;candidate generation&lt;br /&gt;_ Mining frequent item sets without candidate generation&lt;br /&gt;&lt;br /&gt;10.Explain apriori algorithm?&lt;br /&gt;_ Apriori property&lt;br /&gt;_ Join steps&lt;br /&gt;_ Prune step&lt;br /&gt;_ Example&lt;br /&gt;_ Algorithm&lt;br /&gt;&lt;br /&gt;11.Explain how the efficiency of apriori is improved?&lt;br /&gt;_ Hash-based technique (hashing item set counts)&lt;br /&gt;_ Transaction reduction (reducing the number of transactions&lt;br /&gt;scanned in future iteration)&lt;br /&gt;_ Partitioning (Partitioning the data to find candidate item sets)&lt;br /&gt;_ Sampling (mining on a subset of the given data)&lt;br /&gt;_ Dynamic item set counting (adding candidate item sets at&lt;br /&gt;different points during a scan)&lt;br /&gt;&lt;br /&gt;12.Explain frequent item set without candidate without candidate generation?&lt;br /&gt;_ Frequent patterns growth (or) FP-growth&lt;br /&gt;_ Frequent pattern tree (or) FP-tree&lt;br /&gt;_ Algorithm&lt;br /&gt;&lt;br /&gt;13. Explain mining Multi-dimensional Boolean association rules from transaction&lt;br /&gt;databases?&lt;br /&gt;_ Multi-dimensional (or) Multilevel association rules&lt;br /&gt;_ Approaches to mining Multilevel association rules&lt;br /&gt;Using uniform minimum support for all levels&lt;br /&gt;Using reduced minimum support at lower levels&lt;br /&gt;o Level-by-level independent&lt;br /&gt;o Level-cross filtering by single&lt;br /&gt;o Level- cross filtering by k-item set&lt;br /&gt;_ Checking for redundant Multilevel association rules&lt;br /&gt;&lt;br /&gt;14.Explain constraint-based association mining?&lt;br /&gt;_ Knowledge type constraints&lt;br /&gt;_ Data constraints&lt;br /&gt;_ Dimension/level constraints&lt;br /&gt;_ Interestingness constraints&lt;br /&gt;_ Rule constraints&lt;br /&gt;_ Metarule-Guided mining of association of&lt;br /&gt;association rules&lt;br /&gt;_ Mining guided by additional rule constraints&lt;br /&gt;&lt;br /&gt;Unit –III&lt;br /&gt;&lt;br /&gt;15.Explain regression in predictive modeling?&lt;br /&gt;_ Regression definition&lt;br /&gt;_ Linear regression&lt;br /&gt;_ Multiple regression&lt;br /&gt;_ Non-linear regression&lt;br /&gt;_ Other regression models&lt;br /&gt;16.Explain statistical perspective in data mining?&lt;br /&gt;_ Point estimation&lt;br /&gt;_ Data summarization&lt;br /&gt;_ Bayesian techniques&lt;br /&gt;_ Hypothesis testing&lt;br /&gt;_ Regression&lt;br /&gt;_ Correlation&lt;br /&gt;17. Explain Bayesian classification.&lt;br /&gt;_ Bayesian theorem&lt;br /&gt;_ Naïve Bayesian classification&lt;br /&gt;_ Bayesian belief networks&lt;br /&gt;_ Bayesian learning&lt;br /&gt;18. Discuss the requirements of clustering in data mining.&lt;br /&gt;_ Scalability&lt;br /&gt;_ Ability to deal with different types of attributes&lt;br /&gt;_ Discovery of clusters with arbitrary shape&lt;br /&gt;_ Minimal requirements for domain knowledge to determine&lt;br /&gt;input parameters&lt;br /&gt;_ Ability to deal with noisy data&lt;br /&gt;_ Insensitivity to the order of input records&lt;br /&gt;_ High dimensionality&lt;br /&gt;_ Interpretability and usability&lt;br /&gt;_ Interval scaled variables&lt;br /&gt;_ Binary variables&lt;br /&gt;o Symmetric binary variables&lt;br /&gt;o Asymmetric binary variables&lt;br /&gt;_ Nominal variables&lt;br /&gt;_ Ordinal variables&lt;br /&gt;_ Ratio-scaled variables&lt;br /&gt;20. Explain the partitioning method of clustering.&lt;br /&gt;K-means clustering&lt;br /&gt;K-medoids clustering&lt;br /&gt;21. Explain Visualization in data mining.&lt;br /&gt;Various forms of visualizing the discovered patterns&lt;br /&gt;_ Rules&lt;br /&gt;_ Table&lt;br /&gt;_ Crosstab&lt;br /&gt;_ Pie chart&lt;br /&gt;_ Bar chart&lt;br /&gt;_ Decision tree&lt;br /&gt;_ Data cube&lt;br /&gt;_ Histogram&lt;br /&gt;_ Quantile plots&lt;br /&gt;_ q-q plots&lt;br /&gt;_ Scatter plots&lt;br /&gt;_ Loess curves&lt;br /&gt;&lt;br /&gt;UNIT IV&lt;br /&gt;&lt;br /&gt;22. Discuss the components of data warehouse.&lt;br /&gt;_ Subject-oriented&lt;br /&gt;_ Integrated&lt;br /&gt;_ Time-Variant&lt;br /&gt;_ Non-volatile&lt;br /&gt;23. List out the differences between OLTP and OLAP.&lt;br /&gt;_ Users and system orientation&lt;br /&gt;_ Data contents&lt;br /&gt;_ Database design&lt;br /&gt;_ View&lt;br /&gt;_ Access patterns&lt;br /&gt;24.Discuss the various schematic representations in multidimensional model.&lt;br /&gt;_ Star schema&lt;br /&gt;_ Snow flake schema&lt;br /&gt;_ Fact constellation schema&lt;br /&gt;25. Explain the OLAP operations I multidimensional model.&lt;br /&gt;_ Roll-up&lt;br /&gt;_ Drill-down&lt;br /&gt;_ Slice and dice&lt;br /&gt;_ Pivot or rotate&lt;br /&gt;26. Explain the design and construction of a data warehouse.&lt;br /&gt;_ Design of a data warehouse&lt;br /&gt;Top-down view&lt;br /&gt;Data source view&lt;br /&gt;Data warehouse view&lt;br /&gt;Business query view&lt;br /&gt;_ Process of data warehouse design&lt;br /&gt;27.Expalin the three-tier data warehouse architecture.&lt;br /&gt;_ Warehouse database server(Bottom tier)&lt;br /&gt;_ OLAP server(middle tier)&lt;br /&gt;_ Client(top tier)&lt;br /&gt;28. Explain indexing.&lt;br /&gt;_ Definition&lt;br /&gt;_ B-Tree indexing&lt;br /&gt;_ Bit-map indexing&lt;br /&gt;_ Join indexing&lt;br /&gt;29.Write notes on metadata repository.&lt;br /&gt;_ Definition&lt;br /&gt;_ Structure of the data warehouse&lt;br /&gt;_ Operational metadata&lt;br /&gt;_ Algorithms used for summarization&lt;br /&gt;_ Mapping from operational environment to data warehouse&lt;br /&gt;_ Data related to system performance&lt;br /&gt;_ Business metadata&lt;br /&gt;30. Write short notes on VLDB.&lt;br /&gt;_ Definition&lt;br /&gt;_ Challenge related to database technologies&lt;br /&gt;_ Issues in VLDB&lt;br /&gt;&lt;br /&gt;UNIT V&lt;br /&gt;&lt;br /&gt;31.Explain data mining applications for Biomedical and DNA data analysis.&lt;br /&gt;_ Semantic integration of heterogeneous, distributed genome databases&lt;br /&gt;_ Similarity search and comparison among DNA sequences&lt;br /&gt;_ Association analysis.&lt;br /&gt;_ Path analysis&lt;br /&gt;_ Visualization tools and genetic data analysis.&lt;br /&gt;32. Explain data mining applications fro financial data analysis.&lt;br /&gt;_ Loan payment prediction and customer credit policy analysis.&lt;br /&gt;_ Classification and clustering of customers fro targeted marketing.&lt;br /&gt;_ Detection of money laundering and other financial crimes.&lt;br /&gt;33. Explain data mining applications for retail industry.&lt;br /&gt;_ Multidimensional analysis of sales, customers, products, time and region.&lt;br /&gt;_ Analysis of the effectiveness of sales campaigns.&lt;br /&gt;_ Customer retention-analysis of customer loyalty.&lt;br /&gt;_ Purchase recommendation and cross-reference of items.&lt;br /&gt;34. Explain data mining applications for Telecommunication industry.&lt;br /&gt;_ Multidimensional analysis of telecommunication data.&lt;br /&gt;_ Fraudulent pattern analysis and the identification of unusual patterns.&lt;br /&gt;_ Multidimensional association and sequential pattern analysis&lt;br /&gt;_ Use of visualization tools in telecommunication data analysis.&lt;br /&gt;35. Explain DBMiner tool in data mining.&lt;br /&gt;_ System architecture&lt;br /&gt;_ Input and Output&lt;br /&gt;_ Data mining tasks supported by the system&lt;br /&gt;_ Support of task and method selection&lt;br /&gt;_ Support of the KDD process&lt;br /&gt;_ Main applications&lt;br /&gt;_ Current status&lt;br /&gt;36. Explain how data mining is used in health care analysis.&lt;br /&gt;_ Health care data mining and its aims&lt;br /&gt;_ Health care data mining technique&lt;br /&gt;_ Segmenting patients into groups&lt;br /&gt;_ Identifying patients into groups&lt;br /&gt;_ Identifying patients with recurring health problems&lt;br /&gt;_ Relation between disease and symptoms&lt;br /&gt;_ Curbing the treatment costs&lt;br /&gt;_ Predicting medical diagnosis&lt;br /&gt;_ Medical research&lt;br /&gt;_ Hospital administration&lt;br /&gt;_ Applications of data mining in health care&lt;br /&gt;_ Conclusion&lt;br /&gt;37. Explain how data mining is used in banking industry.&lt;br /&gt;_ Data collected by data mining in banking&lt;br /&gt;_ Banking data mining tools&lt;br /&gt;_ Mining customer data of bank&lt;br /&gt;_ Mining for prediction and forecasting&lt;br /&gt;_ Mining for fraud detection&lt;br /&gt;_ Mining for cross selling bank services&lt;br /&gt;_ Mining for identifying customer preferences&lt;br /&gt;_ Applications of data mining in banking&lt;br /&gt;_ Conclusion&lt;br /&gt;38. Explain the types of data mining.&lt;br /&gt;_ Audio data mining&lt;br /&gt;_ Video data mining&lt;br /&gt;_ Image data mining&lt;br /&gt;_ Scientific and statistical data mining&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-9080088059785771495?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/9080088059785771495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/ca1004-data-warehousing-and-mining.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/9080088059785771495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/9080088059785771495'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/08/ca1004-data-warehousing-and-mining.html' title='CA1004-DATA WAREHOUSING AND MINING'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-1521134239985288058</id><published>2009-04-09T02:35:00.000-07:00</published><updated>2009-04-15T00:42:08.083-07:00</updated><title type='text'>Model exam questions:</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CUSER1%7E1.KCT%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;    &lt;p class="MsoNormal"&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;&lt;o:p&gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;&lt;span style=""&gt; &lt;/span&gt;Visual Programming&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;&lt;o:p&gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;Part A Questions&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;u&gt;&lt;span style="" lang="FR"&gt;&lt;o:p&gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;1. Explain in brief the windows MSG structure&lt;br /&gt;&lt;br /&gt;2. List the styles for a push button child window control.&lt;br /&gt;&lt;br /&gt;3. state the use of windows message and event handler.&lt;br /&gt;&lt;br /&gt;4. Give the resource script file for a modal dialog box.&lt;br /&gt;&lt;br /&gt;5. State some message and selection flags meant for a menu resource.&lt;br /&gt;&lt;br /&gt;6. explain in brief the MFC serialization mechanism.&lt;br /&gt;&lt;br /&gt;7. what is an Activex control&lt;br /&gt;&lt;br /&gt;8. define OLE&lt;br /&gt;&lt;br /&gt;9. state the MFC classes used for ODBC Database Programming&lt;br /&gt;&lt;br /&gt;10. state the techniques used for playing audio files&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;u&gt;Part B Questions&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;u&gt;&lt;o:p&gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;1.Explain in detail the GDI objects (1) Device Context (2) Brush (3) Pen&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;2. Write a Win32 program to draw different shapes using different colors and fill styles.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;3. Explain the windows message map architecture in detail with a sample program&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;4. Describe in detail the microsoft foundation classes relating to user interfaces.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;5. Explain the CListBox class and its member function in detail with an example program&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;6. State the use and explain the common dialog control in detail&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;7. Explain how modal and modeless dialog boxes.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;8. Write notes on the rich edit control in detail&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;9. Explain how reading and writing is done in a SDI Document&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style=""&gt;                                                     &lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;span style="font-size:85%;"&gt;10. What is DLL? Explain its types and advantages in detail. Write a program to create a user defined DLL&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;11. Develop an application to create a simple Active X control using MFC.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;12. explain the Ole drag and drop mechanism in detail.&lt;br /&gt;&lt;br /&gt;13. explain the multithreading concept in VC++.&lt;br /&gt;&lt;br /&gt;14. Explain the use of WinInet API&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;15. develop a database application for maintaining student details&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-1521134239985288058?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/1521134239985288058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/04/model-exam-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/1521134239985288058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/1521134239985288058'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/04/model-exam-questions.html' title='Model exam questions:'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-4207320221438697927</id><published>2009-04-06T21:54:00.000-07:00</published><updated>2009-04-06T21:58:28.008-07:00</updated><title type='text'>ERP MODEL QUESTION PAPER</title><content type='html'>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} span.klink 	{mso-style-name:klink;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"&gt;                                B.E./B.Tech.DEGREE EXAMINATION,APRIL/MAY 2008.&lt;br /&gt;&lt;br /&gt;                                                            Eighth Semester&lt;br /&gt;&lt;br /&gt;                                                    &lt;a href="http://www.indiastudychannel.com/exams/ExamPaper36013.aspx" target="undefined"&gt;&lt;span class="klink"&gt;&lt;span style="font-size: 9pt; font-family: Arial; color: brown;"&gt;Information Technology&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;                                IT 1006 - ENTERPRISE RESOURCE PLANNING&lt;br /&gt;&lt;br /&gt;                                                    (Regulation 2004)&lt;br /&gt;&lt;br /&gt;                                  Time : Three hours Maximum : 100 marks&lt;br /&gt;&lt;br /&gt;                                                Answer ALL questions.&lt;br /&gt;&lt;br /&gt;                                         PART A-(10x2=20 marks)&lt;br /&gt;&lt;br /&gt;1. what are the benefits of OLAP?&lt;br /&gt;&lt;br /&gt;2. What are the different phases of BPR?&lt;br /&gt;&lt;br /&gt;3. List the functions of CRM.&lt;br /&gt;&lt;br /&gt;4. What are the obstacles for implementing ERP systems?&lt;br /&gt;&lt;br /&gt;5. What are the different modules of the ERP systems?&lt;br /&gt;&lt;br /&gt;6. Explain Quality Control Modules and its function.&lt;br /&gt;&lt;br /&gt;7. Explain the role and responsibilities of ERP vendors.&lt;br /&gt;&lt;br /&gt;8. What are the major subsystems of plant maintenance module?&lt;br /&gt;&lt;br /&gt;9. Define EAI.What are the uses of EAI?&lt;br /&gt;&lt;br /&gt;10.What are the growth factors of E-Commerce?&lt;br /&gt;&lt;br /&gt;                                     PART B-(5x16=80 marks)&lt;br /&gt;&lt;br /&gt;11. (a) Discuss why data warehouses are important and how they can be&lt;br /&gt;&lt;br /&gt;integrated with ERP system?                                             [16 marks]&lt;br /&gt;&lt;br /&gt;                                               Or&lt;br /&gt;&lt;br /&gt;(b) Briefly explain the linkage between BRP,IT and ERP in detail. [16 marks]&lt;br /&gt;&lt;br /&gt;12. (a) What are the golden rules for successful Project Management?&lt;br /&gt;&lt;br /&gt;Explain in detail.                                                                      [16 marks]&lt;br /&gt;&lt;br /&gt;                                               or&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt; (b) (i) Explain the details of the contract with the package vendor. [8 marks]&lt;br /&gt;&lt;br /&gt;(ii) Explain the details of the contract with the package consultants. [8 marks]&lt;br /&gt;&lt;br /&gt;13. (a) Discuss each ERP implementation phases and briefly explain the&lt;br /&gt;&lt;br /&gt;activities to be performed in each phase.                                    [16 marks]&lt;br /&gt;&lt;br /&gt;                                                        or&lt;br /&gt;&lt;br /&gt;(b) Draw a diagram to describe ERP marketing process and including ERP&lt;br /&gt;&lt;br /&gt;scales cycle.                                                                            [16 marks]&lt;br /&gt;&lt;br /&gt;14. (a) Draw the layered architecture of Sap R/3. Explain the different types of&lt;br /&gt;&lt;br /&gt;Client &lt;a href="http://www.indiastudychannel.com/exams/ExamPaper36013.aspx" target="undefined"&gt;&lt;span class="klink"&gt;&lt;span style="font-size: 9pt; font-family: Arial; color: brown;"&gt;server&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; models which can be implemented in SAP?. [16 marks]&lt;br /&gt;&lt;br /&gt;                                               or&lt;br /&gt;&lt;br /&gt;(b) Compare and contrast the ERP package Baan and IFS Avalon with&lt;br /&gt;&lt;br /&gt;respect to functionality and preformance.                              [16 marks]&lt;br /&gt;&lt;br /&gt;15. (a) How to improve the power of ERP using business intelligence?&lt;br /&gt;&lt;br /&gt;Explain in detail                                                               [16 marks]&lt;br /&gt;&lt;br /&gt;                                                or&lt;br /&gt;&lt;br /&gt;(b) Explain the importance of the integration of ERP with &lt;a href="http://www.indiastudychannel.com/exams/ExamPaper36013.aspx" target="undefined"&gt;&lt;span class="klink"&gt;&lt;span style="font-size: 9pt; font-family: Arial; color: brown;"&gt;Internet&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and WWW.                                                             [16 marks] &lt;br style=""&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br style=""&gt; &lt;!--[endif]--&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-4207320221438697927?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/4207320221438697927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/04/erp-model-question-paper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/4207320221438697927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/4207320221438697927'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/04/erp-model-question-paper.html' title='ERP MODEL QUESTION PAPER'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-5108950020141128647</id><published>2009-03-30T03:20:00.001-07:00</published><updated>2009-04-13T00:17:36.826-07:00</updated><title type='text'>QUESTION BANK(FINAL YEAR)</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"&gt;&lt;/object&gt; &lt;style&gt; st1\:*{behavior:url(#ieooui) } &lt;/style&gt; &lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:11.0in 8.5in; 	mso-page-orientation:landscape; 	margin:27.0pt 1.0in 27.0pt 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} &lt;/style&gt;&lt;div style="text-align: center;"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:16;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;o:p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;IT1006- &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Enterprise&lt;/st1:city&gt;&lt;/st1:place&gt; Resource Planning&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;Two marks questions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;              &lt;p class="MsoNormal" style="margin-left: 3in; text-indent: 0.5in;"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;&lt;o:p&gt;&lt;span style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;span style=""&gt;   &lt;/span&gt;1. Define ERP?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;span style=""&gt;   &lt;/span&gt;2. What is the advantages of ERP?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt;                       &lt;/span&gt;&lt;span style=""&gt;   &lt;/span&gt;3. What are the benefits of OLAP?&lt;/p&gt;&lt;p class="MsoNormal"&gt;4. What are the different phases of BPR?&lt;/p&gt;&lt;p class="MsoNormal"&gt;5. What is business module?&lt;/p&gt;&lt;p class="MsoNormal"&gt;6. What is EFT &amp;amp; EDI?&lt;/p&gt;&lt;p class="MsoNormal"&gt;7. What is data warehousing &amp;amp; Data mining?&lt;/p&gt;&lt;p class="MsoNormal"&gt;8. List the phases of ERP?&lt;/p&gt;&lt;p class="MsoNormal"&gt;9. What are the components of Data ware housing?&lt;/p&gt;&lt;p class="MsoNormal"&gt;10. What are the advantages of data ware housing?&lt;/p&gt;&lt;p class="MsoNormal"&gt;11. What is &lt;st1:place st="on"&gt;Meta&lt;/st1:place&gt; data management?&lt;/p&gt;&lt;p class="MsoNormal"&gt;12. List out the functions of CRM?&lt;/p&gt;&lt;p class="MsoNormal"&gt;13. What are the obstacles of implementing ERP system?&lt;/p&gt;&lt;p class="MsoNormal"&gt;14. What is gap analysis?&lt;/p&gt;&lt;p class="MsoNormal"&gt;15. What are the four phases of ERP implementation?&lt;/p&gt;&lt;p class="MsoNormal"&gt;16. Difference between vendors, consultants and users?&lt;/p&gt;&lt;p class="MsoNormal"&gt;17. What are the major sub systems of manufacturing model?&lt;/p&gt;&lt;p class="MsoNormal"&gt;18. What is quality management?&lt;/p&gt;&lt;p class="MsoNormal"&gt;19. What is component tracking?&lt;/p&gt;&lt;p class="MsoNormal"&gt;20. What is calibration tracking in plant maintenance?&lt;/p&gt;&lt;p class="MsoNormal"&gt;21. Explain quality control module and its function?&lt;/p&gt;&lt;p class="MsoNormal"&gt;22. Explain the role and responsibilities of ERP vendors?&lt;/p&gt;&lt;p class="MsoNormal"&gt;23. Define EAI and uses of EAI?&lt;/p&gt;&lt;p class="MsoNormal"&gt;24. Write some functions of R/3 system?&lt;/p&gt;&lt;p class="MsoNormal"&gt;25. What is dynamic implementation management?&lt;/p&gt;&lt;p class="MsoNormal"&gt;26. What are the modules of R/3 system/&lt;/p&gt;&lt;p class="MsoNormal"&gt;27. What are the benefits of SAP?&lt;/p&gt;&lt;p class="MsoNormal"&gt;28. What are the solution of people soft’s business management?&lt;/p&gt;&lt;p class="MsoNormal"&gt;29. What is supply chain?&lt;/p&gt;&lt;p class="MsoNormal"&gt;30. Write some difference business units in industry solution/&lt;/p&gt;&lt;p class="MsoNormal"&gt;31. What is baan consulting?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;                          32. What is QAP?&lt;br /&gt;33. What is MFG/PRO/&lt;br /&gt;34. What are the growth factors of E-Commerce?&lt;br /&gt;35. What are the limitations of ERP system?&lt;br /&gt;36. What are the two flavors of EIA?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;Unit I:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;1. Discuss why data ware house are important and how they can be integrated with ERP system?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;2. Briefly explain the linkage BPR,IT &amp;amp; ERP in detail?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;3. Explain difference phases of BPR?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;4. Explain overview of ERP and BPR?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt;                                                                                   &lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;Unit II:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;1. Golden rules for successful project management?&lt;/p&gt;&lt;p class="MsoNormal"&gt;2. Details of contract with the package vendors?&lt;/p&gt;&lt;p class="MsoNormal"&gt;4. Explain in detail about the contract with package consultants?&lt;/p&gt;&lt;p class="MsoNormal"&gt;5. Write short notes on vendors, consultants and users?&lt;/p&gt;        &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;Unit III:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;1. ERP implementation phases and activities performed in each phase?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;2. Diagram to describe ERP marketing process and including ERP sales cycle?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;3. Explain the business modules in ERP package?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;4. Explain in detail about HR?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;5. Explain in detail about sales and distribution?&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;Unit IV:&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;1. Explain the layered architecture of SAP R/3.different types of client server models which can be implemented in &lt;span style=""&gt;   &lt;/span&gt;SAP?&lt;br /&gt;2. Explain in detail about Oracle Corporation?&lt;br /&gt;3. Compare &amp;amp; contrast ERP package BAAN and IFS Avalon with respect to functionality and performance?&lt;br /&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;Unit V:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. How to improve the power of ERP using business intelligence?&lt;br /&gt;2. Implementation of integration of ERP with internet and WWW?\&lt;br /&gt;3. Explain in detail about EIA?&lt;br /&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 3.5in;"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size:14;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6202301539178143894-5108950020141128647?l=sharmilaparadise.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharmilaparadise.blogspot.com/feeds/5108950020141128647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/03/question-bankfinal-year.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/5108950020141128647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6202301539178143894/posts/default/5108950020141128647'/><link rel='alternate' type='text/html' href='http://sharmilaparadise.blogspot.com/2009/03/question-bankfinal-year.html' title='QUESTION BANK(FINAL YEAR)'/><author><name>sharmila.com</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_uQWlP9IVbYw/S1aX_z1fopI/AAAAAAAAAFA/9U3mr-nNm2s/S220/image.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6202301539178143894.post-64848038002847291</id><published>2009-03-26T02:12:00.000-07:00</published><updated>2009-03-26T02:23:53.311-07:00</updated><title type='text'>visual programming question bank</title><content type='html'>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CUSER1%7E1.KCT%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"&gt;&lt;/o:smarttagtype&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;object  classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui&gt;&lt;/object&gt; &lt;style&gt; st1\:*{behavior:url(#ieooui) } &lt;/style&gt; &lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Helvetica-Oblique; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:Times-Bold; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:Times-Roman; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:Wingdings0100; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:0; 	mso-generic-font-family:auto; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:3 0 0 0 1 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;i&gt;&lt;span style="font-size: 20pt; font-family: Helvetica-Oblique;"&gt;&lt;span style=""&gt;              &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size: 20pt; font-family: Helvetica-Oblique;"&gt;CS1253-VISUAL PROGRAMMING&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;i&gt;&lt;span style="font-size: 20pt; font-family: Helvetica-Oblique;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times-Bold;"&gt;UNIT I&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;1. What do you mean by SDK?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;It is an acronym for &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;Software Development Kit&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Times-Roman;"&gt;. It is a set of tools designed to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;help C programmers create Windows applications. The Windows SDK consists of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;following elements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;A large set of books describing functions messages, structures, macros&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;and resources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Various tools including a dialog editor and an image editor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;On-line help files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;A set of Windows libraries and header files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Sample Windows programs in C.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;2. Give some common Simple Win32 data types defined in the Windows header files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Data types are BOOL, BYTE, CHAR, DWORD, HANDLE, LONG,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;LPCSTR, LPSTR, SHORT, UINT, WORD.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;3. Define static data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Static data is any portion of the program that is not executed as machine&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;instructions and which does not change as the programs executes. The Windows term for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;static data is &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;Restore data &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Times-Roman;"&gt;or &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;Resources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;4. What do you mean by calling convention?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Calling conventions indicate the order in which the arguments are passed to a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;function when a function call is made. VC++ supports different conventions like&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;_cdecl ,_stdcall , _fastcall, thiscall.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;5. What is Hungarian Notation?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;It is a variable-naming convention so called in the honour of the legendary&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Microsoft programmer Charles Simonyi. According to this convention the variable name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;begins with a lower case letter that denotes the data type of the variable. E.g.) sz of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;szCmdLine stands for string terminated by zero.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;6. What is a handle?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A handle is simply a number (usually 32 bits in size) that refers to an entity. The&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;entity could be a window, an icon, a brush, a cursor, a file or any such entity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;7. What is Windows Programming?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows Programming uses GUI concept. It is an event-driven Programming. An&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Application Window will respond to the events by generating a message by the Operating&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;System. It uses graphics for organizing user workspace. Programs that run within&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows also use GUI. E.g.: Word, Excel. These application programs use some built-in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;functions present in API.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;8. List the main header files in Windows Programming?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WINDOWS.H, WINDEF.H, WINNT.H, WINBASE.H, WINUSER.H,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WINGDI.H&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;9. What is an API?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;API is an acronym for Application Programming Interface. It is simply a set of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;functions that are part of Windows OS. Calling the functions present in the API can&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;create programs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;10. What are the steps required to create a window?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The steps required to create a window are,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;a. Registering Window Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;b. Create a Window using create function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;c. Message &lt;st1:place w:st="on"&gt;Loop&lt;/st1:place&gt; to process events&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;d. Window Procedure with specific tasks for messages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;11. What are the steps to display the window?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;After the window is created to display the window on the screen two functions are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Show window –puts the window on the display&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;ShowWindow(hwnd, iCmdShow);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. Update window-causes the client area to be painted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Causes the client area to be painted by sending the window procedure a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_PAINT message.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;UpdateWindow(hwnd);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;12. Define message loop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows maintains a “message queue” for each Windows program currently&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;running under Windows. When an input occurs, Windows translates the event into a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;“message” then it places in the program’s message queue. A program retrieves these&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;messages from the message queue by executing a block of code known as the “message&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;loop”:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;while(GetMessage(&amp;amp;msg, NULL, 0, 0))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;TranslateMessage(&amp;amp;msg);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DispatchMessage(&amp;amp;msg);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;13. Define Default Window Procedure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;When a window procedure processes a message, it should return 0 from the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;window procedure. All the messages that a window procedure chooses not to process&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;must be passed for default processing. This default processing is done by a Window's&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;function named DefWindowProc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DefWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;lParam);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;14. Define Device Context.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The device context (“DC”) is a data structure maintained internally by GDI. A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;device context is associated with a particular display device, such as a video display or a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;printer. For a video display, a device context is usually associated with a particular&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;window on the display. Some of the values in the device context are graphics “ attributes” .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;These attributes define some particulars of how GDI drawing functions work.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;15. What are the two methods for getting a device context handle?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Method 1: This method is used when WM_PAINT messages is processed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Two functions are involved: Begin Paint and End Paint.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;case WM_PAINT:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;hdc = BeginPaint (hwnd, &amp;amp;ps);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;[use GDI functions]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;EndPaint(hwnd,&amp;amp;ps);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Method 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;To get a handle to the device context of the client area of the window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;GetDC is called. ReleaseDC is used to release the DC handle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;hdc=GetDC(hwnd);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;[use GDI functions]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;ReleaseDC(hwnd,hdc);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;16. What is the use of GetMessage?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The GetMessage function retrieves a message from the queue and copies it to a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;structure of Type MSG.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;17. What is the use of TranslateMessage?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A message &lt;st1:place w:st="on"&gt;Loop&lt;/st1:place&gt; include TranslateMessage., if the message loop receive character&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;input from the keyboard, the system generates virtual key messages CW_KEYDOWN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;and WM_KEYUP to each key the user process.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;18. What is the use of Dispatch Message?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The Dispatch Message function sends a message to the window procedure associated&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;with the window handle specified in the MSG structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;19. What is WM_PAINT message?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The message is generated when a part or all of the windows client area is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;“ invalid” and must be “ updated” which means that it must be redrawn or “ painted” .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;20. Give some Common Structured Win32 data types defined in the Windows&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;header files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Data types are BITMAP, LOGBRUSH, LOGFONT, LOGPEN, MSG, POINT,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;RECT, WNDCLASS.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;21. Give some Resources&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Icons&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Cursors&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Character strings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Custom resources&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Menus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Keyboard accelerators&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Dialog boxes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;• Bitmaps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;22. Define event driven?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Event driven means the flow of program execution is controlled by that event that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;occurs as the program is running.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;23. What is WM_DESTROY message?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_DESTROY message indicates that a window is in the process of destroying a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;window based on a command from the user. The message is a result of the user clicking&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;on the close button or selecting close from the program’s System message.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;24. How a Window program is terminated?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;When the postQuit message function is invoked it inserts a WM_QUIT message in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the Program’s message queue. GetMessage returns zero for WM_QUIT message. This&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;causes WinMain to come out of the Message Loop. The program then returns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;msgWParam and is terminated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;25. What is GDI?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The Graphics Device Interface (GDI) provides functions and related structures that an&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;application can use to generate graphical output for displays, printers and other devices.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;26. Classify GDI functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The several functions that comprise GDI can be classified into:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Functions that get DC and release DC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. Functions that get information about DC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii Functions that draw something on the client area.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv. Functions that set and get attributes of DC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;v. Functions that work with GDI primitives.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;27. What are GDI primitives or objects?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;GDI primitives or objects refer to the types of graphics that can be displayed on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the client area. They are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Lines and curves&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. Filled areas&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii. Bitmaps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv. Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;28.What is a window and Windows?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows is an Operating System (s/w that controls h/w) and window is a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;rectangular area which receives input and displays output in the form of text and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;graphics.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;29. Define Child windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A window can have a parent window. A window that has a parent is called a child&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;window. The parent window provides the coordinate system used for positioning the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;child window. A window that has no parent or whose parent is desktop window is called&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;a top-level window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;30. Give some child window controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Some of the child window controls are Edit box, Group box, Push Button, Check&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;box, Radio button, static box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;31. What are the fields in MSG structure?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;HWND: The handle to the window which the message is directed to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MESSAGE: The message identifier. This is a number that identifies an event&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WPARAM: A 32-bit message parameter .The meaning and value of which depend on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the particular message.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;LPARAM: Another 32-bit message parameter dependent on the message.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;TIME: The time the message was place in message queue.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;PT: The mouse coordinates at the time the message was placed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;32. What are queued and non-queued messages?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The queued messages are those that are placed in a programs message queue by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows. The non-queued messages are not posted to a message queue. The non-queued&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;messages are the results of calls by Windows directly to window procedure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;33.Give some messages used in windows?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_CREATE: This message is sent when a window is being created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_LBUTTONDOWN: This message is sent when the user press the left.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_CHAR: This message is sent when the user types a character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_CLOSE: This message is sent when the user closes a window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WM_COMMAND: This message is sent to appropriate window in response to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;user menu choices, dialog button clicks and so on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;34. Write the prototype of WinMain function?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;WinMain Function Prototype:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;int WINAPI WinMain (HINSTANCE hinstance, HINSTANCE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;hprevinstance, PSTR szcmdline, int icmdshow)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;35.Name the important DLL files which are used for windows programming?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;KERNEL32.DLL, USER32.DLL, GD132.DLL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;UNIT II&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;36. What is an Application framework?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Application framework is “ an integrated collection of object-oriented software&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;components that offers all that’ s needed for a generic application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;37. What are the features of Application framework?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i.Application framework applications use a standard structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii.Application framework applications are small and fast.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii.The VC++ tools reduce coding drudgery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv.The MFC library application framework is feature rich.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;38. What are the VC++ components?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The VC++ components are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;1.Project 2. Resource Editor 3.C/C++ Compiler&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;4.Source Code editor 5.Resource compiler 6. Linker&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;7. Debugger 8. Application Wizard 9. Class Wizard&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;10. Source browser 11. Gallery 12. Windows Diagnostic tools&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;13. Online help 14. Source code control 15. MFC library&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;16. Active Template Library (ATL).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;39. What is an Application Wizard?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Application Wizard is a code generator that creates a working skeleton of a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows application with features , class names and source code file names that are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;specified by the user. AppWizard gets started when a new application either Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Document Interface or Multiple Document Interface or Dialog based application is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;40.What is a Class Wizard?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Class Wizard is a tool using which member variables; messages and ActiveX&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;events are incorporated into a project. Class Wizard is a program implemented as a DLL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;that’ s accessible from VC++ view menu. Class Wizard write the prototypes, function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;bodies and if necessary the code to link windows message to the function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;41. What are the important classes of an VC++ program?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i.Application class CMyApp:public CWinApp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;This class creates all components required for an application, receives all&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;user inputs and events and pass the message to View and Frame classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii.Frame class CMainFrame:public CFrameWnd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;This class is the Window frame. It holds menu bar, status bar, and other&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;resource attached to the frame.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii.View class CMyView:public CView&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;This class provides the visual representation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv.Document class CMyDoc:public CDocument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;This class stores all the information about the changes done in output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;42.Define Message map.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Message map is used to add member functions for the events. It contains the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;project lists, all the classes contained in the project which includes both built-in and user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;defined classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;43. Define Mapping modes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Mapping mode is a device context attribute that defines how Windows maps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;logical coordinates that are specified in GDI functions to device coordinates of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;particular device.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;44. Give two Mapping mode functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;SetMapMode(hdc, iMapMode): Set the mapping mode, where iMapMode is one&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;of the eight mapping mode identifiers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iMapMode=GetMapMode(hdc): Obtain the current mapping mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;45. What are the Mapping Mode identifiers?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_TEXT , MM_LOMETRIC , MM_HIMETRIC , MM_LOENGLISH ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_HIENGLISH , MM_TWIPS , MM_ISOTROPIC , MM_ANISOTROPIC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;46. What are the types of mapping modes? &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_HIMETRIC &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_ANISOTROPIC &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_ISOTROPIC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;47. What is a Fixed-scale mapping mode?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;All Fixed scale-mapping modes have a actual scale factor. In these mapping&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;modes, x value increases while moving the cursor right and y value decrease as the cursor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;is moved down. The Fixed scale mapping modes are MM_LOENGLISH,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_HIENGLISH, MM_LOMETRIC, MM_HIMETRIC, and MM_TWIPS.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;48. What is a Variable-scale mapping mode?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;With these mapping modes, drawing can change the size as the user changes the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;size of the window. The two Variable-scale mapping modes are MM_ISOTROPIC,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MM_ANISOTROPIC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;49.What are GDI objects?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A window GDI object type is represented by an MFC library class. CGdiObject is the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;abstract base for the GDI object classes. A c++ object of a class derived from&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CGdiObject represents a windows GDI object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;50.Mention some of the GDI derived classes? &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CBitmap &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CBrush &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CFont &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CPalette &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CPen &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CRgn&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;51. What is system font?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The system font is the font that windows use by default for text string like strings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;in title bars, menus and dialog boxes. The system font is a razor font, which means that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the characters are defined as block of pixels. The size of the character in the system font&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;is based on the size of title video display.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;52.What is the use of get system metrics function?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The function retrieves information about the size of various graphical item in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;windows such as icon, occurs, title bars and scroll bars. This function is an important&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;function for achieving device independent graphical outline in the program. This needs a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;single argument called an index. This function returns an integer usually the size of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;item specified in the argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;53. Explain the display context classes CClientDC and CWindowDC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Window’ s client area excludes the border, the caption bar, and the menu bar. If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;we construct an object of class CClientDc, the point (0,0) is at the upper-left corner of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;client area. If we construct an object of class CWindowDC the point (0,0) is the upperleft&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;corner of the non-client area.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;54. What is the state of the device context?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The current state of the device context includes the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Attached GDI drawing objects such as pens, brushes, and fonts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;The mapping mode that determines the scale of items when they&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;are drawn.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Various details such as text alignment parameters and polygon&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;filling mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;55. Define font.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A font is complete collection of characters of a particular typeface and a particular&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;face. Fonts are generally stored on disk as resources (GDI fonts), and some are device&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;specific (Device fonts).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;56.What are the types of GDI fonts?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;There are three different types of GDI fonts:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Raster fonts ii. Stroke fonts iii. True type fonts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;57. What is a dialog box?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A dialog or dialog box is a window that receives messages, that can be moved and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;closed , and that can even accept drawing instructions in its client area. Dialog boxes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;belong to a predefined , exclusive window class. Applications do not have direct access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;to the predefined window class, but they can use the dialog box procedure to modify the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;style and behavior of a dialog box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;58.What is a modal dialog box?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A modal dialog box does not allow the user to switch away from it after it is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;invoked. It should be dismissed first before switching to any other window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;E.g.)Open dialog box of a file menu in MS-WORD.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;59.What is a modeless dialog box?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A modeless dialog box allows the user to switch to other windows without&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;dismissing it first. Because of this, the variable used to implement the modeless dialog&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;box should not go out of scope in the dialog box’ s lifetime.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;E.g.) Find and Replace dialog of MS-WORD.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;60.List Windows common Dialog classes?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Wingdings0100;"&gt;9_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CColorDialog &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;9_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CFileDialog &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;9_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CFindReplaceDialog &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;9_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CPageSetupDialog &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;9_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CFontDialog &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;9_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;CPirntDialog&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;61.List out the Windows common controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The Windows common controls are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;1.Track bar control or Slider control 2. Progress indicator 3. Spin button control 4. Image&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;List control 4. Edit controls 5. Animation control 6. Combo BoxEx control 7.IP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;address control 8.Month calendar control 9.Date and Time control 10. Tree control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;62.What are dialog controls?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A dialog contains a number of elements called controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Dialog controls include:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Edit controls, Buttons. List boxes, Combo boxes, Static text, Tree views, progress&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;indicators, Sliders.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;63. What is a Bitmap?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A bitmap is an array of bits in which one or more bits correspond to each display&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;pixel. Bitmap is a GDI object and it allow computers to store complex images in the form&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;of 0’ s and 1’ s.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;64.What is a message box?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A message box is a special dialog box that can use to display messages and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;prompt for simple input. A message box typically contains a text message and one or&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;more buttons. Message box is a modal dialog box and the system creates it by using the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;same internal functions that Dialog Box uses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;65.What are the types of bitmaps?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;There are two kinds of bitmaps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. GDI bitmap or Device Dependent Bitmaps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. DIBs or Device Independent Bitmaps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;66. List the types of video cards used to display the colors &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Wingdings0100;"&gt;_ ¾_ &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;256 color video card(8 bit) &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_ &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;16 bit color video card &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_ &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;24 bit color video card&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;UNIT III&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;67. What do you meant by Document view Architecture?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The MFC library contains applications and frame classes plus two other classes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;that represent the “ document” and “ view” . This document-view architecture is the core of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the application framework and is loosely based on the Model/view/ Controller classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Document-view architecture separates data from the user’ s view of the data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;68. What is a Menu?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A menu is a familiar application element that consists of a top-level horizontal list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;of items with associated pop-up menus that appear when the user selects a top-level&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;menu.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;69.What is an Accelerator?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Accelerators are short cut keys that help to choose multiple level options of menu&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;with a single key. A keyboard accelerator entry does not have to be associated with menu&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;item.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;70. What are the functions used to load a menu?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MFC provides a class for menus, CMenu. This supports creating menu items. The&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;functions used are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i.Load Menu ii. Set Menu iii.Detach&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CMenu m;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;m.LoadMenu();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;m.SetMenu();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;m.Detatch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;71. What is a floating pop-up menu?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A Floating Pop-up menu is the menu that is displayed while right clicking the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;mouse any where in the window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;72.Classify menu?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A menu is a GUI, which contains a list of menu items.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The various types of menu are,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. System Menus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. Popup Menu&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii. Dropdown Menu&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;73. What is MFC Text Edition?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MFC supports text edition using two options.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Edit Control ii.Rich Edit Control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;These are supported by the classes CEditView, CRichEditView.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;74.What is a Rich Edit Control?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Rich Edit Control is a MFC text editing feature. It supports mixed font and large&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;quantities of text than ordinary edit control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;75. Define Command processing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The application frame work provides a sophisticated routing system for command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;messages. These messages originate from menu selections, keyboard accelerators, and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;toolbars and dialog button clicks. Command messages can also be sent by calls to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;functions SendMessage and PostMessage which belong to CWnd class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;76.What is a toolbar?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Toolbars are menu item equivalents. They are represented as icons. Each toolbar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;is associated with a menu item. A toolbar consists of horizontally (or vertically) arranged&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;graphical buttons that must be clustered in groups. Toolbar is an object of CToolBar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;77.Define Tooltip.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;When the user positions the mouse on a toolbar button for a certain interval , text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;is displayed in a little box next to button which is called as a Tooltip.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;78. Define Status bar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The status bar window neither accepts user inputs nor generates command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;messages. Its job is simply to display text in panes under program control. The status bar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;supports two types of text panes - message line panes and status indicator panes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;79.Give the Static Indicators array of status bar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The static indicators array that App Wizard generates in the MainFrm.cpp file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;defines the panes for the application’ s status bar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Static UINT indicators[]=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ID_SEPARATOR,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ID_INDICATOR_CAPS,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ID_INDICATOR_NUM,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ID_INDICATOR_SCRL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The constant ID_SEPARATOR identifies a message-line pane; the other constants are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;string resource IDs that identify indicator panes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;80.Give the functions to set the Status Indicators.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The function CStatusBar::SetIndicators configures the status bar by the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;information in the Indicator array. The function CStatusBar::SetPaneText is used to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;display the text in the pane.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CMainFrame *pFrame=(CMainFrame *)AfxGetApp()-&gt;m_pMainWnd;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CStatusBar *pStatus=&amp;amp;pFrame-&gt;m_wndStatusBar;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;pStatus-&gt;SetPaneText(0,message in the pane);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;81.What are the steps to be followed to build floating popup menus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Use the menu editor to insert a new, empty menu in your project’ s resource&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) Type some characters in the left top-level item, and then add your menu item&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;in the resulting pop-up menu.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) Use class wizard to add a WM_CONTEXTMENU message handler in your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;view class that receives mouse-click messages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;82. What is a reusable frame window?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A frame class that would remember its window size and position is known as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;“Reusable Frame Window” .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;83.What is Windows Registry?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows Registry is a set of system files in which Windows and the individual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;applications can store and access permanent information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;84.Define Serialization.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Objects can be persistent, which means they can be saved on disk when a program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;exits and then can be restored when the program is restarted. This process of saving and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;restoring objects is called “ Serialization.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;85.Define Splitter Window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A splitter window appears as a special type of frame window that holds several&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;views in panes. Window can be divided horizontally, vertically , or both horizontally and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;vertically using movable splitter bars.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;86.What are the types of Splitter Window?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;There are two types of Splitter Window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Static Splitter Window: The number of rows and columns in a static splitter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;window are set when the splitter is created and cannot be changed by the user. A static&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;splitter window can have a maximum of 16 rows and 16 columns.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. Dynamic Splitter Window: A dynamic splitter window is limited to a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;maximum of 2 rows and 2 columns , but it can be split and unsplit interactively. The&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;number of rows and columns in a dynamic splitter window can be changed by the user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;87.What is Diagnostic Dumping?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Diagnostic dumping is the process by which the memory allocated to objects are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;analyzed and freed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;88.How to make a class serializable?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A serialization class must be derived directly or indirectly from CObject. In&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;addition, the class declaration must contain the Declare-serial macro call, and the class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;implementation file must contain the implement-serial macro call.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;89. What are the characteristic of SDI frame window?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;SDI (single document interface) frame window has the following characteristic.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Window Size&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Window Position&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Window status&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows Status&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Toolbar and status bar enabling and positioning.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;90. What do you mean by a DLL?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DLL stands for Dynamic Link Libraries. A DLL is a binary file that provides a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;library of functions, objects and resources. All the API functions are contained in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Dynamic Link Libraries. The function present in DLL can be linked during execution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;91. What are the types of DLLS?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The types of DLLs are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Regular DLLs: It can export only C-style functions. It can’ t export C++&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;classes, member functions, or over loaded functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii.Extension DLLS: It supports C++ interface. An extension DLL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;dynamically links to the code in the DLL version of the MFC library.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;92. What is a Custom Control DLL?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DLLs are used for Custom controls are called Custom Controls. It acts like an&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ordinary control, such as edit control, in that it sends WM_COMMAND messages to its&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;parent window and receive user-defined messages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;93.What is Dynamic Linking?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Dynamic linking is a process of connecting the symbolic names with address of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;corresponding functions. There are two types of linking:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Implicit linking and ii. Explicit linking.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;94.What is Implicit linking?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;When a DLL is build, the linker produces a companion import LIB file, which&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;contains every DLL’ s exported symbols and ordinals, but no code. When the client is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;loaded, Windows finds and loads the DLL and then dynamically links it by symbol or by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ordinal.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;95.What is Explicit linking?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;When explicit linking is used, LoadLibrary function is called, specifying the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DLL’ s path name as a parameter. LoadLibrary returns an HINSTANCE parameter that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;can be used to call GetProcAddress function , which converts a symbol or ordinal to an&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;address inside the DLL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;96.What are the benefits of Run-time Dynamic linking?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The benefits of Run-time Dynamic linking are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i.When the DLL is not available , an application using load-time dynamic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;linking simply terminates, while the dynamic linking is able to respond to the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;error.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii.If the DLL changes, an application that uses load-time dynamic linking&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;may terminate, while an application linked at run-time is only affected if the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;desired functions are not present in the new DLL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;97. What is a view?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;From a user’ s stand point, a view is an ordinary window that the user can size,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;move, and close in the same way as any other Windows-based application window. From&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the programmer’ s perspective, a view is a c++ object of a class derived from the MFC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;library.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;98.Difference between single and multi document interface.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Single document interface : An SDI application has, from the user’ s point of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;view, only one window. If the application depends on disk-file “ document” , only one&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;document can be loaded at a time. The original windows notepad is an example of SDI&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Multi document interface : An MDI application has multiple child windows, each&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;of which corresponds to an individual document. Microsoft word is a good example of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MDI application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;99.What are the disadvantage of using DLL? &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;The programmer must have access to the source code and must be using&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the same programming language with same compiler setup. &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;¾_&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Memory and disk space will be wasted if several programs which use the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;same library of code are running simultaneously.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;100.What is Load Library() function?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Load Library () call is used to map the DLL module into the memory of our&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;process. The function takes a single parameter, the name of the module to load.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;HMODULE hMyDll;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;hMyDll=load Library (“my Lib” );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;if (hMyDll=null) // could not load DLL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;101.What is GetProcAddress () function?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The address for the individual functions before using them once the DLL has been&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;loaded properly. This is done by calling ::GetProcAddress() with the handle returned by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;LoadLibrary() and the name of the function. If the function is found this will return a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;generic pointer to a function. If the function is not found, GetProcAddress() returns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;NULL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;UNIT IV&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;102. Define ActiveX controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ActiveX controls are known as programmer built control which can be used in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Window application. ActiveX is a Microsoft term refer to group of components that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;include controls, DLL and ActiveX documents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;103. Define COM (component object model)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;COM is a protocol that connects one software module with another and then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;drops out of the picture. After the Connection is made the two modules can communicate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;through a mechanism called an interface. COM is an industry standard s/w architecture&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;supported by Microsoft and many other companies.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;104. What are the features supported by COM?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;COM provides a unified expandable object oriented communications protocol for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;windows&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) A standard language-independent way for a win32 client EXE to load&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;and call a win32 DLL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) A general-purpose way for one EXE to control another EXE on the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;same computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A replacement for the VBX control is an ActiveX control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;105.What is the use of IUnknown interface?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;I Unknown is a special interface to obtain the interface pointer declarled by com.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;106.What is class factory?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A class object is sometimes called as a class factory because it often implements a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;special com interface named IClassFactory.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;107.What is the use of CLSIDFromProgID?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Com supports other types of registration database entry that manufactures a humanreadable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;program ID into the corresponding Class ID. The com function USIForm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;program ID reads the database and perform the manipulation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;108.What is the purpose of the DECLARE-INTERFACE-MAP macro?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The DECLARE-INTERFACE-MAP macro generalizes the declarations for a table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;that holds the IDs of the class’ s entire interface.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;109.List out the four states that an embedded object can assume?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The four states are given below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Passive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) Loaded&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) Running&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv) Active&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;110.What are the special features of container? &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;It handle multiple documents &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Maintains a temporary storage &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Allows embedded objects to be copied and cut to the clipboard and parted &lt;/span&gt;&lt;span style="font-family: Wingdings0100;"&gt;._&lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Allows an embedded object to be deleted&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;111.How a COM client calls out-of process components?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;In case of an out- of process components COM uses its remoting architecture&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;which usually involves RPCS (remote procedure calls). In an RPC, the client makes calls&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;to a special dll called a proxy. Proxy sends a stream of data to a stub which is inside a dll.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;In the components process when the client calls a components function, the proxy alerts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the stub. The mechanism of converting parameters to and from data streams is called&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;marshaling.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;112. Define Object Model.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The Component Object Model specifies architecture, a binary standard and a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;supporting infrastructure for building, using and evolving component-based applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;It extends the benefits of object oriented programming such as encapsulation,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;polymorphism software reuse to dynamic computing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;113.What is DCOM?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DCOM stands for Distributed Component Object Model is the distributed extension&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;of COM. It specifies the additional infrastructure that is required to further extend the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;benefits to networked environments.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;114.What are main features of COM?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The features of COM include the separation of interfaces and implementations,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;support for objects with multiple interfaces, language neutrality, runtime binary software&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;reuse, location transparency, architecture for extensibility, support for indirection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;approach to versioning and different styles of sever lifetime management.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;115.Write short notes on Versioning.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;COM’ s approach to versioning is based on the following three requirements:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Any interface must be immutable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) A new implementation of same CLSID must support existing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;interfaces.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) Any client must start interacting with a server by querying an interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;with an ID.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;116.Define OLE.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;OLE stands for Object linking and Embedding. OLE is at the core of window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;applications. It is also a very complex technology that could be difficult to master without&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the help of MFC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;117.What are the applications of OLE?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Compound documents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) OLE controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) OLE automation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv) OLE drag and drop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;v) Specialized-MAPI.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;118.What is marshaling?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;In a remote procedure call the client makes calls to proxy. The proxy sends a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;stream to a stub. When the client calls the component function the proxy alerts the stub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;by sending the message to the component program. The mechanism of converting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;parameters to and from data stream is called Marshaling.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;119.Write the difference between Ordinary control and ActiveX control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows controls send notifications to their owners by sending messages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ActiveX controls send notifications to their containers by firing events.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;UNIT V&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;120. &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 11pt; font-family: Times-Bold;"&gt;What are the advantages of using a real DBMS?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Use of standard file formats&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) Indexed file access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) Data integrity safeguards&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv) Multi-user access control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;121.Expand the following; Blob, SDK, API, ODBC, DAO?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Blob - binary large object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;SDK - software development kit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;API - application programming interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ODBC - open database connectivity&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DAO - data access object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;122. What is process and thread?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;A process is a running program that owns its own memory, file handles and other&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;system resources. The separate execution paths that an individual process can contain are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;called as threads.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;123. What are the two kinds of thread?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Windows offers two kinds of threads namely&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Works threads&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) User interface thread&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;124.Define ODBC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The Microsoft open database connectivity(ODBC) standard defines the rules of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;SQL grammar and also the c-language programming interface to any SQL database. Any&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;DBMS that has an ODBC driver can be occurred by a single compiled c or c++ program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;odbc thus separate the user interface from the actual database management process.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;125.What are the methods of Binary Interface method?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The first three methods are:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Query Interface() for navigating between interfaces of the same object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;instance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) AddRef() for incrementing reference counts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) Release() for decrementing reference counts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;126.Write short notes on Threading Model.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;If an application allows multiple clients to concurrently invoke methods of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;same COM object, some synchronization mechanisms needs to be provided to protect the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;data. A partment is logical grouping of object that share the same concurrency&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;constraints, every COM process can have at most one multithread apartment but it can&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;contain multiple Single Thread Apartments(STAs).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;127.What is MTS?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;MTS stands for Microsoft Transaction Server provides another style of server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;programming. MTS provides server objects, must be implemented in the form of DLLs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;that are to be hosted by MTS surrogate processes. MTS provides context objects for these&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;server objects so that they can participate in transaction.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;128.What is RFX and where is it used?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;RFX is the acronym for Record Field Exchange. The MFC framework can move data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;back and forth between the database and the member variables of your CRecordSet by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;using record field exchange which works very much like the Dialog Data Exchange&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;mechanism used by the dialogs and controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;129.What is the use of CRecordSet :: dynamic?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;This type uses a dynamic cursor which allows scrolling in both directions. This type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;of record set allow only forward scrolling will not reflect any changes made to the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;130.What are the steps to create sample database?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The steps are:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) Start MS Access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) Create a new table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) Populate the table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;131. Write the general syntax to create a table. Give one example.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Syntax:-CREATETABLE: table-name({column name data type},……….)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Example:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CREATE TABLE Employee&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;EmpID INTEGER,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;EmpName VARCHAR(50)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Salary NUMERIC(6,2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Exp NUMERIC(5)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;132. How to use Single Row Functions?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;For functions such as CRecordSet:: GetField Value () which work on a single row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;then you set the current row within row set. This is done with the set row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;SetCursorPosition () member in CRecordSet.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;133.What is Data transfer and what are its two structures?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Transferring data between application are accomplished through the one data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;object interface which provides a mechanism for transferring data and also for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;notifications of change in the data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The two structures are:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) FORMATETC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) STGMEDIUM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;134. List the MFCWinIent classes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) CInternetSession&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) CHttpConnectin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) CFtpConnection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv) CGopherConnection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;v) CInternetFile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;vi) ChttpFile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;vii) CFtpFileFind&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;viii) CGopherFileFind&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ix) CinternetException&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;135. List the advantages of WinInet over Winsock&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;1. Caching&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;2. Security&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;3. Web proxy access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;4. Buffered I/O&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;5. Easy API&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;6. User Friendly&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;136.Define ISAPI Server Extensions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;An ISAPI Server Extension is program that runs in response to a GET or POST&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;request from a client program. The Browser can pass parameters to the programs, which&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;are often values that the browser user types into edit, controls, selects from list boxes and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;so forth. It typically sends back HTML code based on those parameter values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;137.List MFC ISAPI Server Extension classes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i) CHttpServer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) CHttpServerContext&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii) CHtmlStream&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;138. Define WINSOCK.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Winsock is the lowest level Windows API for TCP/IP programming. Part of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;code is located in wsock32.dll and part is inside the Windows kernel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;139.List the components of OLEDB Architecture.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;i. Enumerators&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii. Data source objects&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iii. Commands&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;iv. Row sets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;v. Errors&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;vi. Transaction objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;140.What is WinInet?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;The WinInet (Windows Internet) is a higher-level API than winsock and is a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;collection of high-level functions that assist a programmer in using three popular Internet&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;protocols: the Hypertext Transfer Protocol (HTTP) used for the World Wide Web, the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;File Transfer Protocol (FTP), and another file transfer protocol known as Gopher in both&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;asynchronous and synchronous modes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;141. Define IIS.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Microsoft IIS (Internet Information Server) is a high-performance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Internet/Intranet server that takes advantage of Windows NT features such as I/O&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;completion ports, the win32 function TransmitFile, file-handle caching, and CPU scaling&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;for threads. IIS is a special kind of Win32 program called a service actually three&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;services-WWW, HTTP, and gopher - in one program called inetinfo.exe.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;142.Define ISAPI.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;An ISAPI (internet Service API) server extension is a program that runs in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;response to a GET or POST request from a client program(browser).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;143.What is Multi threading?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;It is the ability for a program to multitask within itself. The program can split&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;itself in to separate "threads" of execution that also seem to run concurrently.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;144.Write the MFC WinInet Classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CInternetSession, CHttpConnection, CFtpConnection, CGopherConnection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;145.Write the MFC ODBC Classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CDatabase, CRecordSet, CRecordView.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;146.Write the MFC DAO Classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CDaoDatabase, CDaoRecordSet, CDaoTableDef, CDaoQueryDef,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;CDaoWorkspce, CDaoException, CDaoFieldExchange.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;147. Differentiate NTFS from FAT.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;NTFS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Network File System&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;More Secured&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;User Permission for individual files and folders&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Used with WinNT and above&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;FAT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;File Allocation Table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Less Secured&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;No individual user permissions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Symbol;"&gt;· &lt;/span&gt;&lt;span style="font-family: Times-Roman;"&gt;Used with Win 95,98&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;148. What is Snapshot and Dynaset?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Snapshot is a RecordSet type. Snapshot downloads the entire query in one shot.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;But occupy more memory to hold data. It has data as a static copy. When any changes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;made to the database will not reflect to the current application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Dynaset is a RecordSet type. In Dynaset only the records you actually need to fill&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;the screen will get downloaded. Constantly resynchronizes the recordset, so that any&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;changes will reflect immediately. Take less time to reflect.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;16 marks&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;Unit I&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;1. Write a VC++ program to create a window. Explain all the functions and message&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;loop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;2. Explain in detail about the architectural overview of windows programming?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;3. Explain GDI function and GDI primitives.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;4. Explain the two methods used for getting Device Context Handle?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Ans:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Method 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;By processing WM_PAINT message&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Two function used: Beginpaint()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Endpaint()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;Method2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;By calling the function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;GETDC()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ReleaseDC()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;5. Explain child window controls?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;Unit II&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;1. Explain various visual C++ components?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;2. I) Explain in detail bitmaps loading into your application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;II) Write a VC++ program to display the sum of two numbers using modal and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;modeless dialogs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;3. I) Write a VC++ program to draw a rectangle &amp;amp; ellipse.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;ii) Explain mapping models?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;4. Explain MFC library in detail.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;5. Explain windows common controls?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-family: Times-Bold;"&gt;Unit III&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-family: Times-Roman;"&gt;1. What is DLL? Create a DLL to add &amp;amp; multiply two numbers and how it can be&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span st
