पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
.NET में CLR का पूरा नाम (full form) क्या है?
What is the full form of CLR in .NET?
AComputer Language Runtime
BCommon Language Runtime
CCommon Learn Run
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?
A2002
B2001
C2000
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?
Aobject
Bclasses
CData
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?
AMutable code
BImmutable code
CManaged code
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?
AMS-Office
B.NET Framework
CMySQL
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?
AIBM
BGoogle
CMicrosoft
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
ASession.Dump
BSession.Abandon
CSession.Exit
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?
ALoad()
BFill()
CDataList
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?
ARole membership अपने आप तय करता हैAutomatically determines role membership
BRole membership सिर्फ़ user की programming से तय होती हैRole membership determined only by user programming
CASP.NET, Windows Authentication को support नहीं करताASP.NET does not support Windows Authentication
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?
AGetTypes
BGetType
CA और B दोनोंBoth A and B
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 — अभ्यास, हल और आपकी प्रगति