FliQi Education App Download
प्रश्न-बैंक · Dot Net

Introduction to DOT NET Framework — प्रश्न और उत्तर

Dot Net · 101 जाँचे हुए (verified) प्रश्न · इनमें 1 पिछले वर्षों के पेपरों से

  • 101 जाँचे हुए प्रश्न
  • 1 पिछले पेपरों से
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
.NET में CLR का पूरा नाम (full form) क्या है?
What is the full form of CLR in .NET?
  1. AComputer Language Runtime
  2. BCommon Language Runtime
  3. CCommon Learn Run
  4. Dइनमें से कोई नहींNone of these

सही उत्तर / Answer: (B)

हल / Solution
CLR का पूरा नाम Common Language Runtime है। यह .NET का execution engine है। यह MSIL code को JIT compiler से machine code में बदलता है। साथ ही memory management, garbage collection, type safety, security और exception handling भी संभालता है। इसे common इसलिए कहते हैं कि C#, VB.NET, F# जैसी सभी .NET भाषाएँ इसी एक runtime पर चलती हैं। बाक़ी दोनों नाम गढ़े हुए हैं, और सही विकल्प मौजूद है, इसलिए 'कोई नहीं' ग़लत है।
CLR stands for Common Language Runtime. It is the execution engine of .NET. It converts MSIL code into machine code using the JIT compiler. It also handles memory management, garbage collection, type safety, security and exception handling. It is called common because all .NET languages, such as C#, VB.NET and F#, run on this one runtime. The other two expansions are made up, and since a correct option exists, 'None of these' is wrong.
प्रश्न 2उत्तर + हल
.NET का पहला version किस वर्ष आया?
In which year did the first version of .NET come out?
  1. A2002
  2. B2001
  3. C2000
  4. D2003

सही उत्तर / Answer: (A)

हल / Solution
Microsoft ने .NET की घोषणा सन् 2000 में की थी और 2001 में इसके beta versions आए। पर पहला पूरा version, .NET Framework 1.0, फ़रवरी 2002 में Visual Studio .NET के साथ जारी हुआ। इसलिए सही उत्तर 2002 है। 2000 घोषणा का साल है और 2001 beta का, इन्हें release समझना भूल है। 2003 में .NET Framework 1.1 आया था, जो इसका दूसरा version था।
Microsoft announced .NET in 2000, and beta versions followed in 2001. But the first full version, .NET Framework 1.0, was released in February 2002 along with Visual Studio .NET. So the answer is 2002. The year 2000 is only the announcement and 2001 is the beta period, so neither is the release. In 2003, .NET Framework 1.1 came out, which was the second version.
प्रश्न 3उत्तर + हल
C# किसका collection (संग्रह) होती है?
C# is a collection of what?
  1. Aobject
  2. Bclasses
  3. CData
  4. Dये सभीAll of these

सही उत्तर / Answer: (B)

हल / Solution
C# पूरी तरह object-oriented भाषा है। इसमें हर method और हर data member किसी class या struct के अंदर ही लिखा जाता है; class के बाहर कोई function नहीं होता। Main() method भी एक class में रहता है। इसलिए C# program को classes का collection कहा जाता है। Objects classes से runtime पर बनते हैं, वे program की बनावट की इकाई नहीं हैं। Data भी classes के अंदर ही रहता है, इसलिए 'ये सभी' ठीक नहीं।
C# is a fully object-oriented language. Every method and every data member must be written inside a class or struct; there are no free functions outside a class. Even the Main() method lives inside a class. That is why a C# program is called a collection of classes. Objects are created from classes at runtime, so they are not the building unit of the program. Data also sits inside classes, so 'All of these' is not right.
प्रश्न 4उत्तर + हल
.NET में जो code runtime (CLR) को target करता है, उसे क्या कहते हैं?
In .NET, what is the code that targets the runtime (CLR) called?
  1. AMutable code
  2. BImmutable code
  3. CManaged code
  4. DSource code

सही उत्तर / Answer: (C)

हल / Solution
जो code CLR यानी Common Language Runtime को target करता है और उसी की देखरेख में चलता है, उसे managed code कहते हैं। CLR इसके लिए memory management, garbage collection, type safety और exception handling संभालता है। C# और VB.NET का code इसी तरह का होता है। Mutable और immutable शब्द बताते हैं कि data बदल सकता है या नहीं, इनका runtime से संबंध नहीं। Source code प्रोग्रामर का लिखा मूल code है, जो अभी compile नहीं हुआ।
Code that targets the CLR (Common Language Runtime) and runs under its control is called managed code. The CLR handles memory management, garbage collection, type safety and exception handling for it. Code written in C# or VB.NET is managed code. The words mutable and immutable describe whether data can change, not how code runs. Source code is simply the original code a programmer writes before it is compiled.
प्रश्न 5उत्तर + हल
Visual Studio का उपयोग करने के लिए system में क्या install होना ज़रूरी है?
What is required to be installed in the system to use Visual Studio?
  1. AMS-Office
  2. B.NET Framework
  3. CMySQL
  4. DPython

सही उत्तर / Answer: (B)

हल / Solution
Visual Studio, Microsoft का IDE है और यह ख़ुद .NET Framework पर चलता है। .NET applications बनाने, compile करने और चलाने के लिए CLR और class library चाहिए, जो .NET Framework देता है। इसीलिए Visual Studio का setup .NET Framework भी साथ में install कर देता है। MS-Office दफ़्तर के काम का software है। MySQL एक database है और Python एक अलग भाषा है; इनमें से कोई भी Visual Studio चलाने के लिए ज़रूरी नहीं।
Visual Studio is Microsoft's IDE, and it runs on the .NET Framework itself. To build, compile and run .NET applications you need the CLR and the class library, which the .NET Framework provides. That is why the Visual Studio setup installs the .NET Framework along with it. MS-Office is office software. MySQL is a database and Python is a separate language; none of these is required to run Visual Studio.
प्रश्न 6उत्तर + हल
.NET software किसके द्वारा design किया गया?
Who designed the .NET software?
  1. AIBM
  2. BGoogle
  3. CMicrosoft
  4. DHCL

सही उत्तर / Answer: (C)

हल / Solution
.NET एक software framework है जिसे Microsoft ने बनाया। इसका पहला version, .NET Framework 1.0, सन् 2002 में आया। इसमें CLR, बड़ी class library और C#, VB.NET जैसी भाषाएँ शामिल हैं। आज इसका open-source रूप .NET (पहले .NET Core) भी Microsoft ही चलाता है। IBM, Google और HCL दूसरी कंपनियाँ हैं; .NET बनाने में इनकी कोई भूमिका नहीं थी। Google, उदाहरण के लिए, Android और Go के लिए जाना जाता है।
.NET is a software framework created by Microsoft. Its first version, .NET Framework 1.0, came out in 2002. It includes the CLR, a large class library and languages such as C# and VB.NET. Today its open-source form, .NET (earlier .NET Core), is also led by Microsoft. IBM, Google and HCL are other companies and had no role in designing .NET. Google, for example, is known for Android and Go.
प्रश्न 7उत्तर + हल
ASP.NET में session को ख़त्म (dump) करने के लिए किसका उपयोग किया जाता है?
In ASP.NET, a session can be dumped (ended) by using
  1. ASession.Dump
  2. BSession.Abandon
  3. CSession.Exit
  4. Dइनमें से कोई नहींNone of the above

सही उत्तर / Answer: (B)

हल / Solution
Session.Abandon() method चालू session को ख़त्म कर देता है। इसके बाद उस session में रखे सारे objects हट जाते हैं और InProc mode में Session_End event चलता है। अक्सर logout बटन पर इसी का उपयोग होता है। अगर सिर्फ़ data मिटाना हो और session चालू रखना हो, तो Session.Clear() लगाया जाता है। Session.Dump और Session.Exit नाम के methods ASP.NET में हैं ही नहीं। सही विकल्प मौजूद है, इसलिए 'कोई नहीं' ग़लत है।
The Session.Abandon() method ends the current session. All objects stored in that session are removed, and the Session_End event fires in InProc mode. It is commonly called on a logout button. If you only want to clear the data but keep the session alive, you use Session.Clear(). ASP.NET has no methods named Session.Dump or Session.Exit. Since a correct option exists, 'None of the above' is wrong.
प्रश्न 8उत्तर + हल
Generate किए गए DataSet में data भरने के लिए DataAdapter पर कौन-सा method बुलाया जाता है?
Which method do you invoke on the DataAdapter to load your generated DataSet with data?
  1. ALoad()
  2. BFill()
  3. CDataList
  4. DDataBind

सही उत्तर / Answer: (B)

हल / Solution
DataAdapter, database और DataSet के बीच पुल का काम करता है। इसका Fill() method SelectCommand चलाता है और लौटी हुई rows को DataSet की DataTable में भर देता है। बदलाव वापस database में भेजने के लिए Update() method है। DataAdapter पर Load() नाम का method नहीं है; Load() DataTable पर होता है। DataList एक ASP.NET control है। DataBind() controls को data से जोड़ता है, पर DataSet नहीं भरता।
A DataAdapter acts as a bridge between the database and a DataSet. Its Fill() method runs the SelectCommand and loads the returned rows into a DataTable inside the DataSet. To send changes back, it has the Update() method. DataAdapter has no Load() method; Load() belongs to DataTable. DataList is an ASP.NET control. DataBind() binds controls to data, but it does not fill a DataSet.
प्रश्न 9उत्तर + हल
ASP.NET में Windows Authentication के बारे में निम्नलिखित में से कौन-सा कथन सत्य है?
Which of the following is TRUE about Windows Authentication in ASP.NET?
  1. ARole membership अपने आप तय करता हैAutomatically determines role membership
  2. BRole membership सिर्फ़ user की programming से तय होती हैRole membership determined only by user programming
  3. CASP.NET, Windows Authentication को support नहीं करताASP.NET does not support Windows Authentication
  4. Dइनमें से कोई नहींNone of the Above

सही उत्तर / Answer: (A)

हल / Solution
Windows Authentication में IIS user को उसके Windows account से पहचानता है। फिर ASP.NET एक WindowsPrincipal object बनाता है। उसकी role membership user के Windows groups से अपने आप तय हो जाती है, इसलिए User.IsInRole से सीधे जाँच हो सकती है। इसके लिए अलग code नहीं लिखना पड़ता, इसलिए विकल्प 2 ग़लत है। ASP.NET Windows, Forms और Passport authentication सब support करता है, इसलिए विकल्प 3 भी ग़लत है।
In Windows Authentication, IIS identifies the user through a Windows account. ASP.NET then creates a WindowsPrincipal object. Its role membership comes automatically from the user's Windows groups, so User.IsInRole can check it directly. No extra code is needed for this, so option 2 is wrong. ASP.NET supports Windows, Forms and Passport authentication, so option 3 is wrong too, and 'None of the Above' fails as well.
प्रश्न 10उत्तर + हल
किसी assembly के types (प्रकारों) की जानकारी पाने के लिए निम्नलिखित में से किस method का उपयोग किया जाता है?
Which of the following methods is used to obtain details about the types in an assembly?
  1. AGetTypes
  2. BGetType
  3. CA और B दोनोंBoth A and B
  4. Dइनमें से कोई नहींNone of the above

सही उत्तर / Answer: (C)

हल / Solution
Reflection में Assembly class के दो methods types की जानकारी देते हैं। GetTypes() assembly में मौजूद सभी types की array लौटाता है। GetType(नाम) दिए गए नाम वाला एक type लौटाता है। दोनों से मिले Type object से methods, properties और fields की जानकारी निकाली जा सकती है। इसलिए दोनों methods इस काम के हैं और 'A और B दोनों' सही है। सिर्फ़ एक को चुनना अधूरा उत्तर है, और 'कोई नहीं' ग़लत है।
In Reflection, the Assembly class has two methods that give type details. GetTypes() returns an array of all types in the assembly. GetType(name) returns the single type with the given name. From the Type object you can then read its methods, properties and fields. So both methods serve the purpose, and 'Both A and B' is correct. Choosing only one of them is incomplete, and 'None of the above' is wrong.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
Microsoft .NET framework का कौन-सा namespace transaction processing लागू करने की सुविधा देता है?
Which namespace within the Microsoft .NET framework provides the functionality to implement transaction processing?
  1. ASystem.EnterpriseServices
  2. BSystem.Security
  3. CSystem.Diagnostics
  4. DSystem.Data
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 12उत्तर app में
Repeater control में एक-छोड़-एक (alternating) रंग योजना जोड़ने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?
Which of the following can be used to add an alternating color scheme in a Repeater control?
  1. AAlternatingItemTemplate
  2. BDataSource
  3. CColorValidator
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 13उत्तर app में
कोई .NET प्रोग्रामर किसी object को bytes की stream में बदलना चाहता है। इस प्रक्रिया को क्या कहते हैं?
A .NET programmer wants to convert an object into a stream of bytes. What is this process called?
  1. ASerialization
  2. BThreading
  3. CRCW
  4. DAppDomain
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
SOAP extension में SOAP संदेश को बदलना हो, तो यह कैसे किया जाता है? सही विकल्प चुनिए।
If one wants to modify a SOAP message inside a SOAP extension, how can it be done? Choose the correct option.
  1. AReceiveMessage method को override करना होगाOne must override the method ReceiveMessage
  2. BInitializeMethod method को override करना होगाOne must override the method InitializeMethod
  3. CA और B दोनोंBoth A and B
  4. DProcessMessage method को override करना होगाOne must override the method ProcessMessage
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 17उत्तर app में
निम्नलिखित में से कौन-सी property हर validation control में होती है?
Which of the following properties is present in every validation control?
  1. AControlToValidate property
  2. BText property
  3. CA और B दोनोंBoth A and B
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 18उत्तर app में
निम्न में से कौन स्वरूपित (formatted) आउटपुट लिखने की सुविधा देता है?
Which of the following allows writing formatted output?
  1. AResponse.Write()
  2. BResponse.Output.Write()
  3. CA और B दोनोंBoth A and B
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में
Global.asax फ़ाइल का उपयोग किस लिए किया जाता है?
Why is the Global.asax file used?
  1. AGlobal variables घोषित करने के लिएDeclare Global variables
  2. BApplication और session स्तर के events लागू करने के लिएImplement application and session level events
  3. Cइसका कोई उपयोग नहींNo use
  4. Dइनमें से कोई नहींNone of these
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 29उत्तर app में
custom control में निम्नलिखित में से किस method को override करना ज़रूरी है?
Which of the following methods must be overridden in a custom control?
  1. APaint() methodThe Paint() method
  2. BControl_Build() methodThe Control_Build() method
  3. Cdefault constructorThe default constructor
  4. DRender() methodThe Render() method
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 30उत्तर app में
Response.Write() और Response.Output.Write() में क्या अंतर है?
What is the difference between Response.Write() and Response.Output.Write()?
  1. AResponse.Output.Write() से output को buffer किया जा सकता हैResponse.Output.Write() allows you to buffer output
  2. BResponse.Output.Write() से formatted output लिखा जा सकता हैResponse.Output.Write() allows you to write formatted output
  3. CResponse.Output.Write() से output को flush किया जा सकता हैResponse.Output.Write() allows you to flush output
  4. DResponse.Output.Write() से output को stream किया जा सकता हैResponse.Output.Write() allows you to stream output
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Introduction to DOT NET Framework के सभी 101 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

Dot Net के दूसरे topics

सभी topics