FliQi Education App Download
Senior Computer Instructor — Paper II · प्रश्न-बैंक

Senior Computer Instructor — Paper II — Dot Net के प्रश्न

161 जाँचे हुए प्रश्न · 3 topics · परीक्षा में 1 प्रश्न

Topics

प्रश्न

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

भाषा
प्रश्न 1उत्तर + हल Introduction to DOT NET Framework
ASP में cookie बनाने के लिए किस command का उपयोग किया जाता है?
In ASP, which command is used to create a cookie?
  1. ARequest.GetCookies
  2. BRequest.Cookies
  3. CResponse.Cookies
  4. DResponse.GetCookies

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

हल / Solution
Cookie server बनाता है और response के साथ browser को भेजता है। इसलिए ASP में cookie Response object से बनती है, जैसे Response.Cookies("user") = "Ram"। इसके साथ Expires देकर उसकी अवधि भी तय की जा सकती है। Request.Cookies सिर्फ़ browser से लौटी cookie पढ़ता है, नई cookie नहीं बनाता। GetCookies नाम की कोई command ASP में नहीं होती। इसलिए सही उत्तर Response.Cookies है।
A cookie is created by the server and sent to the browser with the response. So in ASP a cookie is made with the Response object, for example Response.Cookies("user") = "Ram". Its lifetime can be set with the Expires property. Request.Cookies only reads a cookie that came back from the browser; it cannot create a new one. ASP has no command called GetCookies.
प्रश्न 2उत्तर + हल Polymorphism
C# भाषा में ऐसे method जो बिना body और definition के, सिर्फ़ abstract keyword के साथ declare किए जाते हैं, क्या कहलाते हैं?
In C# language, what are the methods called that are declared only with the abstract keyword, without a body or definition?
  1. AAbstract class
  2. BAbstract method
  3. CA और B दोनोंBoth A & B
  4. Dइनमें से कोई नहींNone of these

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

हल / Solution
जिस method के आगे abstract लिखा हो और body न हो, उसे abstract method कहते हैं। जैसे public abstract void Draw(); इसमें curly braces नहीं होते, सीधे semicolon आता है। इसकी body derived class override करके देती है। Abstract class एक class है, method नहीं। वह इन methods को अपने अंदर रखती है, इसलिए विकल्प 1 ग़लत है। 'A और B दोनों' भी इसी कारण ग़लत है।
A method marked abstract and having no body is called an abstract method. For example, public abstract void Draw(); has no curly braces, only a semicolon. The derived class gives its body by overriding it. An abstract class is a class, not a method. It only holds such methods, so option 1 is wrong. For the same reason, Both A and B is also wrong.
प्रश्न 3उत्तर + हल Introduction to DOT NET Framework
ASP में cookie का मान पढ़ने के लिए किस command का उपयोग किया जाता है?
In ASP, which command is used to retrieve a cookie value?
  1. ARequest.GetCookies
  2. BRequest.Cookies
  3. CResponse.Cookies
  4. DResponse.GetCookies

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

हल / Solution
Cookie browser में रहती है और हर request के साथ server पर लौटती है। इसलिए उसे पढ़ने के लिए Request object लगता है, जैसे Request.Cookies("user")। Response.Cookies उलटा काम करता है; यह cookie बनाकर या बदलकर browser को भेजता है। Request.GetCookies और Response.GetCookies नाम की कोई command ASP में नहीं होती। इसलिए cookie का मान पढ़ने के लिए Request.Cookies सही है।
A cookie is stored in the browser and comes back to the server with every request. So it is read through the Request object, for example Request.Cookies("user"). Response.Cookies does the opposite job; it creates or changes a cookie and sends it to the browser. ASP has no command called Request.GetCookies or Response.GetCookies. So Request.Cookies is used to retrieve a cookie value.
प्रश्न 4उत्तर + हल Polymorphism
C# भाषा में abstraction को किस keyword द्वारा declare किया जाता है?
By which keyword is abstraction declared in C# language?
  1. AAbs
  2. BAbstr
  3. CAbstract
  4. DAbstrac

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

हल / Solution
C# में abstract class और abstract method दोनों abstract keyword से बनते हैं। कोड में यह छोटे अक्षरों में लिखा जाता है, जैसे abstract class Shape या public abstract void Draw();। ऐसी class का object सीधे नहीं बनता और abstract method की body derived class देती है। Abs, Abstr और Abstrac अधूरे शब्द हैं। C# में इनमें से कोई keyword नहीं है, इसलिए लिखने पर compiler error देगा।
In C#, both abstract classes and abstract methods are declared with the abstract keyword. In code it is written in lowercase, for example abstract class Shape or public abstract void Draw();. You cannot create an object of such a class directly, and the derived class gives the body of an abstract method. Abs, Abstr and Abstrac are incomplete words. None of them is a C# keyword, so the compiler would report an error.
प्रश्न 5उत्तर + हल Introduction to DOT NET Framework
form से user की जानकारी पढ़ने के लिए प्रायः किस ASP object का उपयोग किया जाता है?
Which ASP object is often used to retrieve user information from forms?
  1. AApplication objectThe Application object
  2. BRequest objectThe Request object
  3. CSession objectThe Session object
  4. DResponse objectThe Response object

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

हल / Solution
जब user form भरकर submit करता है, तो उसका data browser से server पर आता है। ASP में यह data Request object से पढ़ा जाता है। POST method वाले form के लिए Request.Form("name") और GET के लिए Request.QueryString("name") लगता है। Response object उलटी दिशा में output भेजता है। Application और Session objects data सँभालकर रखते हैं, form का data नहीं पढ़ते। इसलिए उत्तर Request object है।
When a user fills in a form and submits it, the data travels from the browser to the server. In ASP this data is read with the Request object: Request.Form("name") for a POST form and Request.QueryString("name") for GET. The Response object works in the other direction and sends output. The Application and Session objects store data; they do not read form input.
प्रश्न 6उत्तर + हल Polymorphism
C# भाषा में interface के द्वारा क्या प्राप्त (achieve) किया जाता है?
What is achieved through an interface in C# language?
  1. AConstructor
  2. BDestructor
  3. CAbstraction
  4. Dइनमें से सभीAll of these

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

हल / Solution
interface में methods के सिर्फ़ prototype लिखे जाते हैं, यानी नाम, parameter और return type। उनकी body वह class देती है जो interface को implement करती है। इस तरह user को पता रहता है कि क्या काम होगा, पर यह नहीं कि कैसे होगा। यही abstraction है। interface में constructor या destructor बनाया ही नहीं जा सकता, इसलिए विकल्प 1, 2 और 'इनमें से सभी' ग़लत हैं।
An interface contains only method prototypes, that is the name, parameters and return type. The class that implements the interface supplies the body. So the user knows what work will be done, but not how it is done. This is abstraction. An interface cannot have a constructor or a destructor at all, so options 1 and 2 are wrong, and All of these is wrong too.
प्रश्न 7उत्तर + हल Introduction to DOT NET Framework
server से user को output भेजने के लिए प्रायः किस ASP object का उपयोग किया जाता है?
Which ASP object is often used to send output to the user from the server?
  1. AApplication objectThe Application object
  2. BRequest objectThe Request object
  3. CSession objectThe Session object
  4. DResponse objectThe Response object

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

हल / Solution
ASP में Response object server से browser की ओर जाने वाला सब कुछ सँभालता है। Response.Write() से text भेजा जाता है, Response.Redirect() से user को दूसरे page पर भेजा जाता है, और Response.Cookies से cookie बनाई जाती है। Request object उलटी दिशा का काम करता है, यानी browser से आया data पढ़ता है। Application और Session objects data सँभालकर रखते हैं, output नहीं भेजते।
In ASP, the Response object handles everything that goes from the server to the browser. Response.Write() sends text, Response.Redirect() sends the user to another page, and Response.Cookies creates cookies. The Request object works in the other direction and reads data coming from the browser. The Application and Session objects store data; they do not send output. So the answer is the Response object.
प्रश्न 8उत्तर + हल Polymorphism
C# में abstraction किसके द्वारा प्राप्त (achieve) किया जाता है?
How is abstraction achieved in C#?
  1. Aabstract class के द्वाराBy using abstract class
  2. Binterface के द्वाराBy using interface
  3. Cconstructor के द्वाराBy using constructor
  4. DA और B दोनोंBoth A & B

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

हल / Solution
C# में abstraction के दो साधन हैं: abstract class और interface। abstract class में abstract methods बिना body के होते हैं और derived class उन्हें override करती है। interface में methods के prototype होते हैं और class उन्हें implement करती है। दोनों में user को सिर्फ़ काम दिखता है, अंदर का तरीक़ा नहीं। इसलिए A और B दोनों सही हैं। Constructor का काम object बनाते समय data को शुरू करना है, abstraction नहीं।
C# has two tools for abstraction: the abstract class and the interface. In an abstract class, abstract methods have no body and the derived class overrides them. An interface holds method prototypes and a class implements them. In both cases the user sees only what is done, not how it is done. So both A and B are correct. A constructor only sets up data when an object is created; it does not give abstraction.
प्रश्न 9उत्तर + हल Introduction to DOT NET Framework
"time.inc" फ़ाइल को शामिल (include) करने का सही तरीका क्या है?
What is the correct way to include the file "time.inc"?
  1. A<!--#include file="time.inc"-->
  2. B<include file="time.inc">
  3. C<% #include file="time.inc" %>
  4. D<% include file="time.inc" %>

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

हल / Solution
ASP में किसी दूसरी फ़ाइल को page में जोड़ने के लिए Server Side Include (SSI) directive लगता है। इसका रूप HTML comment जैसा होता है: <!--#include file="time.inc"-->। server page चलाने से पहले इस पंक्ति की जगह उस फ़ाइल की सामग्री रख देता है। यह directive <% %> के अंदर नहीं लिखा जाता। <include> नाम का कोई tag भी नहीं होता। इसलिए विकल्प 1 सही है।
In ASP, another file is added to a page with a Server Side Include (SSI) directive. It looks like an HTML comment: <!--#include file="time.inc"-->. Before running the page, the server puts the file's content in place of this line. The directive is not written inside <% %> script blocks, and there is no tag called <include>. So option 1 is correct.
प्रश्न 10उत्तर + हल Polymorphism
C# Programming में abstraction को कितने तरीक़ों से प्राप्त (achieve) किया जा सकता है?
In how many ways can abstraction be achieved in C# programming?
  1. A1
  2. B2
  3. C3
  4. D4

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

हल / Solution
C# में abstraction पाने के दो रास्ते हैं। पहला है abstract class, जिसमें कुछ methods बिना body के और कुछ पूरी body के साथ हो सकते हैं। दूसरा है interface, जिसमें आमतौर पर सिर्फ़ method के prototype होते हैं और उनकी body implement करने वाली class देती है। इसलिए उत्तर 2 है। 1 मानने पर interface छूट जाता है, और 3 या 4 गिनने के लिए कोई तीसरा तरीक़ा है ही नहीं।
C# gives two ways to achieve abstraction. The first is an abstract class, which can have some methods without a body and some with a full body. The second is an interface, which usually holds only method prototypes, and the class that implements it gives the body. So the answer is 2. Choosing 1 leaves out interfaces, and there is no third or fourth way to count.
आगे के 10 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में Introduction to DOT NET Framework
.NET Framework में threads के लिए संभावित priority level निम्नलिखित में से कौन-से हैं?
In the .NET Framework, which of the following denote possible priority levels for threads?
  1. ANormal
  2. BAboveNormal
  3. CHighest
  4. Dउपरोक्त सभीAll the Above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में Introduction to DOT NET Framework
ASP.NET page से email संदेश भेजने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?
Which of the following is used to send an email message from an ASP.NET page?
  1. ASystem.Web.Mail.MailMessage
  2. BSystem.Web.Mail.SmtpMail
  3. CA और B दोनोंBoth A and B
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 16उत्तर app में Introduction to DOT NET Framework
निम्नलिखित में से कौन ASP.NET एप्लिकेशन में state सँभालने (manage करने) के तरीके हैं?
Which of the following denote ways to manage state in an ASP.NET application?
  1. ASession objects
  2. BApplication objects
  3. CViewState
  4. Dउपरोक्त सभीAll the Above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में Introduction to DOT NET Framework
जब user किसी web page की माँग करता है, तो ASP.NET page का पहला event निम्नलिखित में से कौन-सा है?
Which of the following is the first event of an ASP.NET page when the user requests a web page?
  1. ALoad
  2. BInit
  3. CPreLoad
  4. DPreInit
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Senior Computer Instructor — Paper II Dot Net — topic-वार पूरा अभ्यासFliQi Question Bank app में