[ DOT NET Core MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ DOT NET Core MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
561. Content() Method क्या Return करती है?
[A] Plain Text Content
[B] JSON Object
[C] Database Record
[D] File Stream
561. What does Content() return?
[A] Plain Text Content
[B] JSON Object
[C] Database Record
[D] File Stream
सही उत्तर: Plain Text Content
व्याख्या: Text आधारित Response Return करती है।
Correct Answer: Plain Text Content
Explanation: Returns a text-based response.
562. File() Method का उपयोग किसलिए किया जाता है?
[A] File Download या Display करने के लिए
[B] Database Backup के लिए
[C] View Render करने के लिए
[D] Routing के लिए
562. What is File() used for?
[A] Download or Display Files
[B] Database Backup
[C] Render View
[D] Routing
सही उत्तर: File Download या Display करने के लिए
व्याख्या: FileResult Return करती है।
Correct Answer: Download or Display Files
Explanation: Returns a FileResult.
563. PhysicalFile() Method क्या करती है?
[A] Physical Path से File Return करती है
[B] Database से File Return करती है
[C] View Render करती है
[D] JSON Return करती है
563. What does PhysicalFile() do?
[A] Returns File from Physical Path
[B] Returns File from Database
[C] Renders View
[D] Returns JSON
सही उत्तर: Physical Path से File Return करती है
व्याख्या: Server Path से File भेजती है।
Correct Answer: Returns File from Physical Path
Explanation: Sends a file from server path.
564. VirtualFile() Method का उपयोग किसलिए होता है?
[A] Virtual Path से File Return करने के लिए
[B] Database Query के लिए
[C] Authentication के लिए
[D] Caching के लिए
564. What is VirtualFile() used for?
[A] Return File from Virtual Path
[B] Database Query
[C] Authentication
[D] Caching
सही उत्तर: Virtual Path से File Return करने के लिए
व्याख्या: Virtual Path आधारित File Response देती है।
Correct Answer: Return File from Virtual Path
Explanation: Returns file based on virtual path.
565. Ok() Method क्या Return करती है?
[A] HTTP 200 Response
[B] HTTP 404 Response
[C] HTTP 401 Response
[D] HTTP 500 Response
565. What does Ok() return?
[A] HTTP 200 Response
[B] HTTP 404 Response
[C] HTTP 401 Response
[D] HTTP 500 Response
सही उत्तर: HTTP 200 Response
व्याख्या: Successful Request को दर्शाती है।
Correct Answer: HTTP 200 Response
Explanation: Indicates a successful request.
566. Created() Method का उपयोग किसलिए होता है?
[A] HTTP 201 Created Response
[B] HTTP 404 Response
[C] HTTP 401 Response
[D] HTTP 500 Response
566. What is Created() used for?
[A] HTTP 201 Created Response
[B] HTTP 404 Response
[C] HTTP 401 Response
[D] HTTP 500 Response
सही उत्तर: HTTP 201 Created Response
व्याख्या: नया Resource Create होने पर उपयोग होती है।
Correct Answer: HTTP 201 Created Response
Explanation: Used when a new resource is created.
567. BadRequest() Method क्या Return करती है?
[A] HTTP 400 Response
[B] HTTP 200 Response
[C] HTTP 404 Response
[D] HTTP 500 Response
567. What does BadRequest() return?
[A] HTTP 400 Response
[B] HTTP 200 Response
[C] HTTP 404 Response
[D] HTTP 500 Response
सही उत्तर: HTTP 400 Response
व्याख्या: Invalid Request को दर्शाती है।
Correct Answer: HTTP 400 Response
Explanation: Indicates an invalid request.
568. NotFound() Method का उपयोग किसलिए किया जाता है?
[A] HTTP 404 Response
[B] HTTP 200 Response
[C] HTTP 201 Response
[D] HTTP 500 Response
568. What is NotFound() used for?
[A] HTTP 404 Response
[B] HTTP 200 Response
[C] HTTP 201 Response
[D] HTTP 500 Response
सही उत्तर: HTTP 404 Response
व्याख्या: Resource उपलब्ध न होने पर उपयोग होती है।
Correct Answer: HTTP 404 Response
Explanation: Used when resource is not found.
569. Unauthorized() Method क्या Return करती है?
[A] HTTP 401 Response
[B] HTTP 403 Response
[C] HTTP 404 Response
[D] HTTP 500 Response
569. What does Unauthorized() return?
[A] HTTP 401 Response
[B] HTTP 403 Response
[C] HTTP 404 Response
[D] HTTP 500 Response
सही उत्तर: HTTP 401 Response
व्याख्या: Authentication Required होने पर उपयोग होती है।
Correct Answer: HTTP 401 Response
Explanation: Used when authentication is required.
570. Forbid() Method का उपयोग किसलिए होता है?
[A] HTTP 403 Forbidden Response
[B] HTTP 401 Response
[C] HTTP 404 Response
[D] HTTP 500 Response
570. What is Forbid() used for?
[A] HTTP 403 Forbidden Response
[B] HTTP 401 Response
[C] HTTP 404 Response
[D] HTTP 500 Response
सही उत्तर: HTTP 403 Forbidden Response
व्याख्या: User Authenticated है लेकिन Access Allowed नहीं है।
Correct Answer: HTTP 403 Forbidden Response
Explanation: User is authenticated but access is denied.