Saturday, April 27, 2013

Yeh Jawaani Hai Deewani - 2013

Yeh Jawaani Hai Deewani


Yeh Jawaani Hai Deewani is a romantic Bollywood film.

Directed By :- Ayan Mukerji for Dharma Productions 

Star Cast :- Ranbir Kapoor, Deepika Padukone

Choreography :- Farah Khan

Release Date :- 31 May, 2013

Tailer :- click here

Balam Pichakri :- click here

Dilli wali girlfriend :- click here

Badtameez Dil :- click here

Kabira :- click here

Bombay Talkies 2013



Release Date :- 3 May, 2013

Directed By :  Anurag Kashyap, Dibakar Banerjee, Zoya Akhtar and Karan Johar

Star Cast :- Amitabh Bachchan, Shah Rukh, Aamir, Saif, Akshay Kumar, Ranveer Singh, Ranbir Kapoor, Kareena Kapoor, Vidya Balan, Rani Mukherji, Priyanka Chopra, Sonam Kapoor, Sridevi, Karisma Kapoor, Juhi Chawla, Deepika Padukone, Madhuri Dixit, and more

Genre. :- Anthology

Official Trailer click here

Apna Bombay Talkies click here

Akkad Bakkad click here

Bachchan click here

Thursday, April 25, 2013

Current Rajasthan GK ( Rajasthan Current General Knowledge Hindi) Part - III

राजस्थान परिद्रश्य 

101. 26 नवम्बर 2012 को मुख्यमंत्री अशोक गहलोत ने किन लंदन ओलंपिक विजेता को नकद पुरस्कार से सम्मानित किया ----->  सुशील कुमार, विनय कुमार & गगन नारंग

102. राज्य सरकार ने 21 नवम्बर 2012 को किस अभियान की शुरुआत की ----->  प्रशासन शहरों के संग

103. 16 नवम्बर 2012 को किस राज्य के लोक सेवा आयोग को भारत का प्रतिष्ठित ई-इंडिया अवार्ड दिया गया है ----->  राजस्थान

104. 1 जनवरी 2013 से राजस्थान के किन जिलों में " कैश सब्सिडी" शुरू हुई ----->  अलवर, अजमेर & उदयपुर

105. राज्य सरकार ने गुर्जरों सहित विशेष पिछड़ा वर्ग (एसबीसी) को 5 प्रतिशत आरक्षण अलग से दिया जाने के साथ प्रदेश में कुल आरक्षण कितने प्रतिशत को जायेंगे ----->  54 प्रतिशत

106. राष्ट्रपति प्रणब मुखर्जी ने भाग्यलक्ष्मी को इंदिरा गाँधी राष्ट्रीय पुरस्कार से सम्मानित किया--भाग्यलक्ष्मी का सम्बन्ध किस जिले से है ----->  जोधपुर

107. 11 नवम्बर 2012 से राज्य में शिक्षा के क्षेत्र में कौनसा अभियान चलाया जा रहा है ----->  शिक्षा का हक अभियान

108. अजमेर जिले की किस ग्राम पंचायत मुख्यालय से वीडियो कांफ्रेंसिंग के द्वारा राष्ट्रपति प्रणब मुखर्जी, कपिल सिब्बल और सैम पित्रोदा ग्रामीणों से रूबरू हुए ----->  कानपुरा ग्राम पंचायत

109. 1 अप्रैल 2013 से राज्य के किन दो शहरों में टीवी देखने के लिए सैट टॉप बॉक्स जरुरी होंगे ----->  जयपुर & जोधपुर

110. राज्य में नए जिलों के गठन की चल रही प्रक्रिया में सम्बन्ध में गठित समिति के अध्यक्ष कौन है ----->  जी एस संधू

111. 7 नवम्बर 2012 को मुख्यमंत्री अशोक गहलोत ने किस फसल के लिए ब्याज मुक्त ऋण वितरण अभियान की शुरुआत की है ----->  रवि की फसल

112. 17 नवम्बर 2012 को बाँसवाड़ा के किस स्थान पर मुख्यमंत्री अशोक गहलोत ने शताब्दी श्रध्दांजलि समारोह को सम्बोधित किया ----->  मानगढ

113. प्रदेश में छोटे निवेश को आकर्षित करने के लिए सरकार ने एग्रो प्रोसेसिंग इकाईयों की निर्धारित सीमा 25 करोड़ रुपये से घटाकर शहरी क्षेत्र के लिए कितनी कर दी ----->  10 करोड़ रुपये

114. राजस्थान के किस वैज्ञानिक को न्यूक्लियर पॉवर कोर्पोराशन इण्डिया लिमिटेड (एनपीसीआईएल) के 26वें स्थापना दिवस के अवसर पर युवा वैज्ञानिक पुरस्कार दिया गया ----->  अनंत गौतम

115. जोधपुर एयर फोर्स स्टेशन पर 12 अक्टूबर 2012 को कौनसा वायु सेना दिवस मनाया गया ----->  80वाँ

116. 20 अक्टूबर 2012 को प्रधानमंत्री मनमोहन सिंह ने राज्य के किस स्थान से 21 करोड़ वाँ आधार कार्ड जरी किया ----->  दूदू

117.हाउसिंग एंड अर्बन डवलपमेंट लि. (हडको) ने वर्ष 2012 के लिए राजस्थान में विभिन्न आवासीय और औध्योगिक परियोजनाओं के लिए कितनी राशि स्वीकृत की है ----->  2300 करोड़ रुपये

118. 28 अक्टूबर 2012 को प्रधानमंत्री मनमोहन सिंह द्वारा किये गए मंत्रिमंडल विस्तार के साथ केन्द्रीय मंत्रिमंडल में राजस्थान से मंत्री की संख्या कितनी हो गई ----->  7

119. 20 अक्टूबर 2012 को अर्चना भट्ट को शिक्षा एवं समाज के क्षेत्र में उल्लेखनीय योगदान के लिए "अन्तरर्राष्ट्रीय समरसता एकता" अवार्ड प्रदान किया गया। इनका सम्बन्ध राज्य के किस जिले से है ----->  डूंगरपुर

120. किस वरिष्ठ पत्रकार को हरिदेव जोशी पत्रकारिता और जनसंचार विश्वविध्यालय जयपुर को पहला कुलपति नियुक्त किया गया ----->  सनी सेबेस्टियन

121.राज्य लोक सेवा आयोग की सदस्य जिन्होंने 30 अक्टूबर 2012 को अपने पद से इस्तीफा दे दिया ----->  दिव्या सिंह

122. राजस्थान हिंदी ग्रंथ अकादमी की ओर से किसे प्रज्ञा पुरस्कार से सम्मानित किया गया ----->  विनायक साखलकर

123. 10-12 अक्टूबर 2012 को एक्स टुडे सेव टुमारो थीम पर आधारित जलवायु परिवर्तन पर सम्मलेन कहाँ आयोजित किया गया ----->  जयपुर

124. 30 अक्टूबर 2012 को राजस्थान सरकार ने राज्य में पर्यटन को बढावा देने के लिए किस महल में स्थित लगभग 100 वर्ष पुरानी सुरंग को पर्यटकों के लिए खोल दिया है -----> आमेर महल

125. राज्य के किस जिले में निमोनिया की रोकथाम और नियंत्रण के लिए पहली बार राष्ट्रीय स्तर पर शोध कार्य शुरू किया ----->  जोधपुर

126. केन्द्र सरकार ने राजस्थान में कितने करोड़ रुपए की लागत से दो राष्ट्रीय राजमार्ग के निर्माण को स्वीकृति प्रदान की है ----->  1500 करोड़ रुपए

127. राजस्थान में जननी एक्सप्रेस की शुरुआत कब से की गई ----->  2 अक्टूबर 2012

128. 15 अक्टूबर 2012 को विश्व पर्यावरण पर लिखित पुस्तक "हीलिंग द ब्लू प्लेनेट" का विमोचन नई दिल्ली में किया गया। यह पुस्तक किस राजस्थानी लेखक ने लिखी है -----> बनेसिंह

129. किस रहस्थानी खिलाडी ने लोगों को मतदाता सूची में नाम जुडवाने के लिए प्रेरित करने के लिए उनके संदेश वाली वीडियो फिल्म और पोस्टर जारी किया ----->  कृष्णा पूनिया

130. अमेरिका में आतंकवाद से निबटने की ट्रेनिंग लेने वाली दुनिया की पहली महिला ऑफिसर बनी है ----->  के. बी वंदना

131. 11-14 अक्टूबर 2012 को इस्ताम्बूल (तुर्की) में आयोजित अन्तर्राष्ट्रीय व्यापार मेले में भाग लेने वाले पहले शिल्पी है ----->  गोपाल सैनी

132. 8 अक्टूबर 2012 को कांग्रेस के वरिष्ठ नेता व गुजरात के पूर्व राज्यपाल जिनका निधन हो गया ----->  प. नवलकिशोर शर्मा

133. 4 अक्टूबर 2012 को सयुंक्त राष्ट्र महिला संगठन की ओर से ज्ञान केन्द्र की स्थापना की गई है ----->  जयपुर

134. अणुव्रत का 63वाँ राष्ट्रीय अधिवेशन 13-15 अक्टूबर 2012 को कहाँ संपन्न हुआ ----->  जसोल (बालोतरा)

135. राज्य निर्वाचन आयोग ने चुनाव सुधारों के लिए राज्य में कितनी नई ग्राम पंचायतें बनाने का सुझाब दिया है -----> 3500 ग्राम पंचायतें

136. प्रदेश की आदिवासी बाहुल्य वाली कितनी पंचायत समितियों में पेशा कानून लागू क्र ग्राम सभाओं को विशेषाधिकार दिए गए है ----->  28

137. प्रदेश में बीपीएल परिवारों के लिए आवास सुविधा के बाद निःशुल्क बर्तन व बिस्तर देने की योजना का शुभारम्भ कहाँ से हुआ है ----->  डूंगरपुर

138. 17 अक्टूबर 2012 को देश का दूसरा एम्स मेडिकल कॉलेज राजस्थान के किस जिले में शुरू हो गया है ----->  जोधपुर

139. 8 अक्टूबर 2012 को अंतर्राष्ट्रीय साक्षरता दिवस के अवसर पर किस जिले को राष्ट्रीय स्तर पर साक्षरता पुरस्कार दिया गया ----->  अजमेर

140. देश की पहली ऑब्जर्वेट्री लैब कहाँ स्थापित की जाएगी ----->  उदयपुर

141. शिक्षा के क्षेत्र में राष्ट्रीय ख्याति प्राप्त पदम भूषण से सम्मानित व्यक्ति जिनका 16 सितम्बर 2012 को निधन हो गया ----->  अनिल बोर्दिया

142. राजस्थान के "फादर ऑफ़ मोर्डन आर्ट" नाम से प्रसिध्द चित्रकार जिनका 1 सितम्बर 2012 को निधन हो गया ----->  पी के चोयल

143. 25 सितम्बर 2012 को राज्य सरकार ने वर्ष 2013 में राज्य के किन शहरों में 4-G मोबाइल सेवा शुरू करने की अनुमति दी है ----->  जयपुर, जोधपुर, अजमेर, कोटा, उदयपुर, बीकानेर, & भरतपुर

144. 15-16 सितम्बर 2012 को राज्य के किस शहर में "इंटरनेशनल फिल्म फेस्टिवल 2012" का आयोजन हुआ ----->  उदयपुर

145. 15-19 सितम्बर 2012 को जुनियर स्क्वैश चैम्पियनशिप कहाँ आयोजित हुई ----->  जयपुर

146. राजस्थान लोकसेवा आयोग के किस सदस्य को आयोग का अध्यक्ष नियुक्त किया गया है ----->  हबीब खान गौरान

147. राजस्थान हाईकोर्ट ने नाथद्वारा से किस भाजपा विधायक के निर्वाचन को निरस्त कर  दिया है ----->  कल्याण सिंह

148. 7 सितम्बर 2012 को श्रीलंका में हो रहे 58वें राष्ट्रमंडलीय संसदीय संघ सम्मलेन में भारत का प्रतिनिधित्व किसने किया ----->  दीपेन्द्र सिंह शेखावत

149. 27 अगस्त 2012 को यूनेस्को द्व्रारा राजस्थान के हरराज जी महल प्रोजेक्ट को यूनेस्को अवार्ड के लिए चयनित किया है यह महल कहाँ स्थित है ----->  सोनार किला (जैसलमेर)

150. राज्य में 15 सितम्बर 2013 से शुरू होने वाली पशुओं की कौनसी गणना है ----->  19वीं

<< Previous Page                                                                                                            Next Page >>

Wednesday, April 24, 2013

Current Rajasthan GK(General Knowledge) Part - II

राजस्थान परिद्रश्य

51. प्रदेश के तीन गामीण बैंकों के विलय के प्रस्ताव को केन्द्रीय वित्त मंत्रालय ने मंजूरी दे दी के पश्चात् बैंक का नाम होगा? ----->  बडौदा राजस्थान ग्रामीण बैंक 

52. राजस्थान के युवा डिजाइनर जिन्हें उत्तरप्रदेश पर्यटन निगम के लिए लोगो तैयार करने के लिए चुना गया ----->  अभिषेक त्रिवेदी 

53. राज्य के किस शहर में मौलाना अब्बदुल कलाम आजाद विश्व विध्यालय की स्थापना की गयी है ----->  जोधपुर 

54. 18-20 जनवरी 2013 को कांग्रेस का चिंतन शिविर जयपुर में आयोजित हुआ। यह कांग्रेस पार्टी का कौनसा चिंतन शिविर था ----->  तीसरा 

55. आत्म निर्भरता की द्रष्टि भारतीय रेल बोर्ड राज्य के किस स्थान पर पवन ऊर्जा प्लांट स्थापित करेगा ----->  जैसलमेर 

56. राजस्थान राज्य बालिका नीति लागू करने वाला देश का कौनसा राज्य बन गया है ----->  पहला 

57. 14-18 जनवरी 2013 तक देश की पश्चिमी सीमा पर सीमा सुरक्षा बल का कौनसा सैन्य अभ्यास सम्पन्न हुआ ----->  ऑपरेशन सर्द हवा 

58. केन्द्रीय सड़क परिवहन और राष्ट्रीय राजमार्ग मंत्रालय ने कैसलैस ट्रीटमेंट स्कीम के तहत किस राजमार्ग को पायलट प्रोजेक्ट के रूप में चुना है ----->  NH-8

59. 21 जनवरी 2013 को जोधपुर के वायु स्टेशन से किस विमान ने 81 वर्ष बाद फिर से उड़ान भरी ----->  टाइगर मॉथ 

60. वर्ष 2014 की सीनियर नेशनल बॉस्केट बॉल चैम्पयनशिप की मेजबानी किसे मिली है ----->  राजस्थान 

61. 7 जनवरी 2013 को भारतीय वायु सेना ने फलौदी एयर बेस (जोधपुर) पर किस युद्धक हेलिकॉप्टर की तैनाती की है ----->  एमआई 17-वी 5

62. 16 जनवरी 2013 की रिपोर्ट के आधार पर देश में आधार कार्ड बनाने के द्रष्टिकोण से राजस्थान का स्थान कौनसा है ----->  सातवाँ 

63. प्रदेश की पहली "राजीव गाँधी ट्राइबल यूनिवर्सिटी" कान्हा खोली जाएगी ----->  नेला गाँव (उदयपुर)

64. 11 वीं पंचवर्षीय योजना (2007-12) के बीच राजस्थान की औसत वार्षिक विकास दर कितनी रही ----->  7.23 प्रतिशत 

65. दिसम्बर 2012 के आँकड़ों के हिसाब से राजस्थान में प्रति व्यक्ति आय कितनी रही (वर्तमान कीमतों पर) ----->  47,506 रुपए 

66. राजस्थान के राज्यवर्धन सिंह राठौड़ ने एशियन चैम्पियनशिप के डबल ट्रैप में कौनसा पदक जीता ----->  कांस्य 

67. केन्द्रीय गृहमंत्री सुशीलकुमार शिंदे की अध्यक्षता वाली अंतरराज्यीय परिषद की स्थायी समिति में किस राज्य के मुख्यमंत्री को शामिल किया गया है ----->  राजस्थान 

68. 14 दिसम्बर 2012 की राजस्थान के किस जिले में नगर पालिकाध्यक्ष को बनाये रखने का फैसला राइट टू रिकॉल के तहत हुआ ----->  बारां 

69. राजस्थान के किस कवि को वर्ष 2012 के साहित्य अकादमी पुरस्कार के लिए चुन गया है ----->  आईदान सिंह भाटी 

70. पर्यावरण मंत्रालय ने किस जिले में न्यूक्लियर फ्यूल कॉम्प्लेक्स को मंजूरी दी है ----->  कोटा 

71. 26 दिसम्बर 2012 को मेहरानगढ़ म्युजियम ट्रस्ट का सर्वोच्च राव सीहा सम्मान किसे प्रदान किया गया ----->  जस्टिस दलवीर भण्डारी

72. 13 दिसम्बर 2012 को राजस्थान सरकार ने 4 वर्ष पूर्ण होने के उपलक्ष्य में राज्य सरकार ने स्वास्थ्य क्षेत्र में किस नवीन योजना की घोषणा की ----->  अस्पतालों में मुफ्त जाँच सुविधा

73. राज्य का कौनसा स्थान देश के पेट्रोलियम पदार्थों का भण्डार केंद्र बनेगा? ----->  बीकानेर

74. रक्षा मंत्रालय ने राज्य के किस जिले में नया सैनिक स्कूल खोलने की सहमति दे दी है ----->  झुन्झुनूं

75. 14-16 दिसम्बर 2012 को इंडियन काउंसिल फॉर रिचर्स ऑन इंटरनेशनल इकॉनोमिक रिलेशन्स तथा नेशनल ब्यूरो ऑफ़ इकॉनोमिक रे=रिसर्च की तीन दिवसीय कॉन्फ्रेंस कहाँ आयोजित की गई ----->  नीमराना(अलवर)

76. राजस्थान के युवा निशानेबाज जिन्होंने नेशनल शूटिंग चैम्पियनशिप में 10 मीटर एयर रायफल में स्वर्ण पदक जीता ----->  अपूर्वी चंदेला

77. जापानी कंपनी हिताची ने राज्य के किस स्थान पर ऑटो कंपोनेंट प्लांट लगाने की योजना बनाई है ----->  नीमराना(अलवर)

78. 17-19 दिसम्बर 2012 को पंचायती राज के सशक्तीकरण की तीन दिवसीय अंतराष्ट्रीय कार्यशाला का आयोजन कहाँ हुआ? ----->  अलवर

79. ऑस्ट्रलियन एयर चीफ जैफ ब्राउन 6-7 दिसम्बर 2012 को राज्य के किस शहर की यात्रा पर आया? ----->  जोधपुर

80. केंद्र सरकार ने राज्य के किस स्थान पर 700 मेगावाट क्षमता के दाबित भारी पानी रिएक्टरों की चार यूनिटों की स्थापना को सैध्दान्तिक मंजूरी दी है ----->  बांसवाडा

81. भीलवाड़ा की बेटी जिसका चयन ट्विटर कंपनी में माइक्रोसॉफ्ट इंजिनियर के पद पर हुआ है ----->  सोनिया गोयल

82. जनवरी 2013 में देश की सबसे बड़ी सौर दूरबीन की शुरुआत हुई है ----->  उदयपुर

83. राजस्थान सरकार ने राज्य का पहला जैव विविधता उधान कहाँ स्थापित करने की घोषणा की है ----->  कोटा

84. राजस्थान के किस जिले में अंतर्राष्ट्रीय स्तर का पूर्णकालिक एवं स्वतंत्र जल विज्ञान एवं जल प्रबन्ध संस्थान की स्थापना की जा रही है ----->  बीकानेर

85. वर्ष 2006-11 लो अवधि के राष्ट्रीय विकास परिषद् ने जरी किए आँकड़ों में विकास दर में प्रदेश का स्थान रहा है ----->  11 वां

86. प्रदेश में लोक सेवकों द्वारा भ्रष्ट तरीके से कमाई गई संपत्ति को जब्त करने का कानून लागू हो गया यह कानून कब पारित किया गया ----->  12 दिसम्बर 2012

87. 18 दिसम्बर 2012 को कोटा ओपन यूनिवर्सिटी के नए कुलपति किसे नियुक्त किया गया ----->  प्रो. विनय कुमार पाठक

88. 25 दिसम्बर 2012 को किस निशानेबाज ने 56वीं राष्ट्रीय शूटिंग चैम्पियनशिप की डबल ट्रैप स्पर्धा का स्वर्ण पदक जीता ----->  राज्यवर्ध्दन सिंह राठौड़

89. 24 दिसम्बर 2012 को 25वां मूर्ति देवी पुरस्कार किसे प्रदान किया गया ----->  गुलाब कोठारी

90. राजस्थान क्रिकेट (आरसीए) राज्यों के किन जिलों में विश्व स्तरीय नये स्टेडियम बनाने की घोषणा की ----->  जयपुर & उदयपुर

91. 23 दिसम्बर 2012 को इंडियन सोसायटी ऑफ़ ट्रान्सफ्यूजन मेडिसिन का पहला तीन दिवसीय राष्ट्रीय सम्मलेन ट्रान्समेडकॉन - 2012 कहाँ हुआ ----->  जयपुर

92. राजस्थानी भाषा साहित्य एवं संस्कृति अकादमी का सूर्यमल्ल मिश्रण पुरस्कार से किसे सम्मानित किया गया ----->  आईदान सिंह भाटी

93. देश का पहला ट्रांसपोर्ट हब राजस्थान के किस जिले में बनाया जा रहा है ----->  राजसमंद

94. 9 नवम्बर 2012 को राष्ट्रपति प्रणव मुखर्जी ने कितने राजस्थानियों को "हस्तशिल्पी" पुरस्कार से सम्मानित किया है ----->  21

95. 14-27 नवम्बर 2012 को दिल्ली के प्रगति मैदान में सम्पन्न 32वां भारतीय अंतर्राष्ट्रीय व्यापार मेले में राजस्थान को मंडप श्रेणी में कौनसा पदक मिला ----->  कांस्य

96. 27 नवम्बर 2012 को मुख्यमंत्री अशोक गहलोत ने पंचायती सशक्तिकरण व प्रोत्साहन योजना और निर्मल ग्राम योजना के तहत राज्य की कितनी ग्राम पंचायतों, पंचायत समिति व जिला परिषदों को सम्मानित किया है ----->  47, 5, 3

97. केन्द्रीय साहित्य अकादमी के राजस्थानी बाल साहित्यकार से दीनदयाल शर्मा को उनकी किस कृति के लिए पुरस्कृत किया गया ----->  बालपणैरी बातां

98. नवम्बर 2012 को " राजस्थान स्टेट इंडस्ट्रियल डेवलपमेंट एंड इनवेस्टमेंट कारपोरेशन " (रिको) व फिक्की के सहयोग से अंतर्राष्ट्रीय मेला कहाँ सम्पन्न हुआ ----->  जयपुर

99. राजस्थान मूल के किस अप्रवासी भारतीय को विदेशों में रहने वाले अप्रवासी भारतीयों की सुरक्षा एवं सामाजिक सेवाओँ के लिए हाउस ऑफ़ लॉर्ड्स, लंदन पार्लियामेंट में महात्मा गाँधी प्रवासी गोल्ड मैडल से सम्मानित किया गया ----->  नीरज जैन

100. राज्य सरकार ने "उम्मेदगंज पक्षी विहार कंजर्वेशन रिज़र्व" की अधिसूचना जारी की। यह विहार किस संभाग का पहला संरक्षित संभाग होगा ----->  कोटा संभाग

<< Previous Page                                                                                                               Next Page >>

B.Sc. IT BT0082 (Semester 4, Visual Basic) Assignment


Spring 2013
Bachelor of Science in Information Technology (BSc IT) – Semester 4
BT0082 – Visual Basic – 4 Credits
(Book ID: B1093)
Assignment Set (60 Marks)

1.      Explain the method of creating a new project in VB.Net.
Ans.-   Start Microsoft Visual Studio.Net and from the menu select FileàNewàProject. A “New Project “ dialog will now be displayed. Select “Visual Basic Project” from “Project Type” and select “Console Application” from “Templates”. Type “MyHelloWorldApplicatio( project name)” in the “Name” text box below, then click OK.


This will show you the initial default code for your Hello World Application.


Change the name of module from Module1 to “MyHelloWorldApplication” and type Console.WriteLine(“Hello World”) inside the Sub Main() function’ body like whats show below:
Module MyHelloWorldApplication
   Sub Main()
      Console.WriteLine(“Hello World”)
   End Sub
End Module

To compile and execute your application, select “Start” from the “Debug” menu or to run the application without Debug press Ctrl+F5. A new console window containing the words “Hello World” will now be displayed. Press any key to terminate the program and close the console window.

2.      Explain Code Editor Window and Solution Explorer.
Ans.-   The Code Editor Window:- The Code Editor Window, shown in below figure. After you have designed the user interface for your project by placing controls on the form, you will turn to the Code Editor to develop the Visual Basic statements that make the controls functional. The easiest way to call up the Code Editor is to double-click a control. Then, you can begin typing the Visual Basic statements that will be executed when the user performs the most common action on that control. If you double-click on a button, for example, you can enter the statements that will be executed when the user clicks on that button.
The Code Editor works much like other text editors you’ve worked with. However, the Code Editor has a number of special features that simplify the task of editing Visual Basic code. For example, color is used to distinguish Visual Basic keywords from variables, comments, and other language elements. And many types of coding errors are automatically highlighted as you type so you can correct them. You’ll learn more about working with the Code Editor in the next chapter.
Note that the Code Editor and the Form Designer provide two different ways to work with the same Visual Basic source file. The Code Editor lets you work directly with the Visual Basic statements that make up your application. The Form Designer presents a visual representation of the forms and controls that are implemented by that code.

           

The Code Editor window is where you create and edit the Visual Basic code that your application requires. The Code Editor works much like any other text editor you have used, so you shouldn’t have much trouble learning how to use it. You can display the Code Editor by double-clicking the form or one of the controls in the Form Designer window. Or, you can click the View Code button in the Solution Explorer. Once you’ve opened the Code Editor, you can return to the Form Designer by clicking the (Design) tab at the top of the Code Editor or the View Designer button in the Solution Explorer (to the right of the View Code button). You can also move among these windows by pressing Ctrl+Tab or Shift+Ctrl+Tab.
It’s important to realize that the Form Designer and the Code Editor do not represent two different files. Instead, they provide you with two views of the same Visual Basic source file. The Form Designer gives you a visual representation of the form that is implemented by your Visual Basic code. The Code Editor lets you edit the code for the form.

The Solution Explorer:- Below figure shows the Solution Explorer, which you use to manage the projects that make up a solution and the files that make up each project. As you can see, the files in the Solution Explorer are displayed in a tree view with the files that make up a project subordinate to the project container and the project container subordinate to the solution container. If a container has a plus sign next to it, you can click on the plus sign to display its contents. Conversely, you can hide the contents of a container by clicking on the minus sign next to it.
You can also use the buttons at the top of the Solution Explorer to work with the files in a project. To display the code for a form, for example, you can highlight the form file and then click on the View Code button. And to display the user interface for a form, you can highlight the form file and then click on the View Designer button. For a code file, only the View Code button is available since a code file doesn’t contain a user interface.
To identify the files that make up a project, you can look at the icon that’s displayed to the left of the file name. The icon for a form file, for example, is a form, and the icon for a code file is a document and the letters VB. As you can see, this project consists of three form files and two code files.
Note, however, that all of the files have the file extension vb regardless of their contents. Because of that, I recommend that you give your files names that identify their contents. For example, we add the prefix frm to the names of our form files. That way, its easy to identify the form files when you work with them outside of the Solution Explorer.
The last four files shown in this figure are custom files that we developed for this project. In contrast, the first file (AssmblyInfo) was added automatically when this project was created. This file receives information whenever the project is compiled into an assembly.



You use the Solution Explorer to manage and display the files and projects in a solution. The Solution Explorer lists all of the projects for the current solution, as well as all of the files that make up each project. Plus (+) and minus (-) signs in the Solution Explorer indicate groups of files. You can click on these signs to expand and collapse the groups. You can perform most of the functions you need using the buttons at the top of the Solution Explorer window. The buttons you’ll use most are the View Code and View Designer buttons, which open the Code Editor and Form Designer windows, and the View Properties button, which opens the Properties window.

3.      Write a VB program to short and display an array of integers in ascending and descending order using the array concept in VB.Net.
Ans.-   Short an array in Ascending Order

Private Sub Form_Load()
 Dim LngArr(1 To 100) As Long
 Dim Var As Variant
 Dim i As Long
 For i = 1 To 100
  LngArr(i) = 100 - i
 Next
 BubbleSort LngArr
 For i = LBound(LngArr) To UBound(LngArr)
  Debug.Print i, LngArr(i)
 Next

 Var = Array(2, 43, 12, 56, 1, 33, 91)
 BubbleSort Var
 For i = LBound(Var) To UBound(Var)
  Debug.Print i, Var(i)
 Next
End Sub
Private Sub BubbleSort(VArr As Variant)
 Dim LB As Long, UB As Long
 Dim i As Long, j As Long
 Dim Tmp As Variant
 On Error GoTo ErrSort 'array not dimmed
 LB = LBound(VArr)     'lower bound
 UB = UBound(VArr)     'upper bound
 For i = LB To UB - 1
  For j = i + 1 To UB
   If VArr(i) > VArr(j) Then
    Tmp = VArr(i)       'swap elements
    VArr(i) = VArr(j)
    VArr(j) = Tmp
   End If
  Next
 Next
 Exit Sub
ErrSort:
 MsgBox Err.Description
End Sub


Result:-  1, 2, 12, 33, 43, 56, 91

Short an array in Descending Order

Private Sub Form_Load()
 Dim LngArr(100 To 1) As Long
 Dim Var As Variant
 Dim i As Long
 For i = 100 To 1
  LngArr(i) = I - 100
 Next
 BubbleSort LngArr
 For i = LBound(LngArr) To UBound(LngArr)
  Debug.Print i, LngArr(i)
 Next

 Var = Array(2, 43, 12, 56, 1, 33, 91)
 BubbleSort Var
 For i = LBound(Var) To UBound(Var)
  Debug.Print i, Var(i)
 Next
End Sub
Private Sub BubbleSort(VArr As Variant)
 Dim LB As Long, UB As Long
 Dim i As Long, j As Long
 Dim Tmp As Variant
 On Error GoTo ErrSort 'array not dimmed
 LB = LBound(VArr)     'lower bound
 UB = UBound(VArr)     'upper bound
 For i = LB To UB - 1
  For j = i - 1 To UB
   If VArr(i) < VArr(j) Then
    Tmp = VArr(i)       'swap elements
    VArr(i) = VArr(j)
    VArr(j) = Tmp
   End If
  Next
 Next
 Exit Sub
ErrSort:
 MsgBox Err.Description
End Sub


Result:-  91, 56, 43, 33, 12, 2, 1


4.      Explain arithmetic and relational operators in VB.Net.
Ans.-   Arithmetic Operators:- Several common arithmetic operators are allowed in VB.Net given in the following table
           
Arithmetic Operator
Meaning
+
Add
-
Subtract
*
Multiply
/
Divide
Mod
Remainder of modulo

The program below uses three operators
Imports System
Module ArithmeticOperators
   ‘The program shows the use of arithmetic operators
   ‘+-*/Mod
   Sub Main()
      ‘result of addition, subtraction, multiplication and modulus operator
      Dim sum, difference, product, modulo As Interger
      Sum = 0
      difference = 0
      product = 0
      modulo = 0
      Dim quotient As Double = 0 ‘result of division
      Dim num1 As Interger = 10 ‘operand variables
      Dim num2 As Interger = 2
      sum = num1+num2
      difference = num1-num2
      product = num1*num2
      quotient = num1/num2
      modulo 3 Mod num2       ‘remainder of 3/2
      Console.WriteLine(“num1 = {0}, sum2 = {1}”, num1, num2)
      Console.WriteLine()
      Console.WriteLine(“Sum of {0} and {1} is {2}”, num1, num2, sum)
      Console.WriteLine(“Difference of {0} and {1} is {2}”, num1, num2, difference)
      Console.WriteLine(“Product of {0} and {1} is {2}”, num1, num2, product)
      Console.WriteLine(“Quotient of {0} and {1} is {2}”, num1, num2, quotient)
      Console.WriteLine()
      Console.WriteLine(“Remainder when 3 is divided by {0} is {1}”, num2, modulo)
      End Sub
End Module

            Relational Operators:- Relational operators are used to comparison purposes in conditional statements. The common relational operators in VB.Net are:
Relational Operator
Meaning
=
Equality check
<> 
Un-equality check
> 
Greater than
< 
Less than
<=
Less than or equal to
>=
Greater than or equal to

            Relational operators always result in Boolean statement, either True or False. For example if we have two variables
                        Dim num1 = 5, num2 = 6 As Interger
then,
                        num1 = num2              will result in false
                        num1<>num2              will result in true
                        num1>num2                will result in false
                        num1<num2                will result in true
                        num1<=num2              will result in true
                        num1>=num2              will result in false

Only compatible data types can be compared. It is invalid to compare a Boolean with and Integer, if
                        Dim I = 1 As Integer
                        Dim b = True As Boolean
thin it is a syntax error to compare i and b for equality (i=b)

5.      Explain If……Then……Else statement in VB.Nett with an example.
Ans.-   Condition checking has always been the most basic and important construct in any language. VB.Net provides conditional statements in the form of “If…..Then…...Else” statement. The structure of this statement is---
If Boolean expression Then
          Statement or block of statement
Else
          Statement of block of statement
End If

Example:-
           
If i=100 Then
            Console.WriteLine(“You reached hundred”)
Else
            Console.WriteLine(“Still you are not reached hundred”)
End If

            Only the first message will be printed in the case of i being 100. In any other case (when i is not 100), the second message will be printed. You can also use a block of statements (more than one statement) under any If and Else.

6.      Describe the following methods of the Object class in VB.Net:
a.      Equals and ReferenceEquals:- The Object class supplies two versions of Equals, one shared and one not.
The shared version has this syntax-----
Overloads Public Shared Function Equals(Object, Object) As Boolean
and is used in this form
     Equals(a,b)
The non-shared version has the syntax-----
     Overloads Overridable Public function Equals(Object) As Boolean
and is used in this form
     a.equals(b)
The two versions of the Equals method are designed to determine whether two items have the same value, but you should be prepared to overload equals if it makes sense in your class. Keep in mind that because shared members of classes cannot be overridden, you can only override the non-shared version of Equals. For example if you have two ways of representing objects in a value type, you should make sure that Equals can handle this (This designers did this for the String class as well, although strictly speaking, this is not a value type.)
     The Object class also provides a shared (not overridable) version of a method called ReferenceEquals. The ReferenceEquals method determines whether two items refer to the same object; that is, whether the specified Object instances are the same instance. For example, two strings, a and b, can have a.equals(b) true and ReferenceEquals(a,b) false, as this code shows-----
Sub Main()
Dim a As String = “hello”
Dim b As String = “Hello”
Mid(b, 1, 1) = “h”
Console.WriteLine(“is a.Equals(b)true?” & a.Equals(b))
Console.WriteLine(“is ReferenceEquals(a,b)true?” & ReferenceEquals(a,b))
Console.WriteLine()
End Sub

Is a.Equals(b)true? True
Is ReferenceEqualss(a,b) true? False

b.      MemberWiseClone:-
The MemberwiseClone method creates a shallow copy by creating a new object, and then copying the nonstatic fields of the current object to the new object. If a field is a value type, a bit-by-bit copy of the field is performed. If a field is a reference type, the reference is copied but the referred object is not; therefore, the original object and its clone refer to the same object.
For example, consider an object called X that references objects A and B. Object B, in turn, references object C. A shallow copy of X creates new object X2 that also references objects A and B. In contrast, a deep copy of X creates a new object X2 that references the new objects A2 and B2, which are copies of A and B. B2, in turn, references the new object C2, which is a copy of C. The example illustrates the difference between a shallow and a deep copy operation.
There are numerous ways to implement a deep copy operation if the shallow copy operation performed by the MemberwiseClone method does not meet your needs. These include the following:
·         Call a class constructor of the object to be copied to create a second object with property values taken from the first object. This assumes that the values of an object are entirely defined by its class constructor.
·         Call the MemberwiseClone method to create a shallow copy of an object, and then assign new objects whose values are the same as the original object to any properties or fields whose values are reference types. The DeepCopy method in the example illustrates this approach.
·         Serialize the object to be deep copied, and then restore the serialized data to a different object variable.
·         Use reflection with recursion to perform the deep copy operation.


For BT0081 click here                  For More Assignments Click Here                 For BT0083 click here