[ DOT NET Core MCQS ]

झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
591. BackgroundService Class का उद्देश्य क्या है?
[A] Long Running Background Tasks
[B] MVC Views
[C] Database Tables
[D] Routing
591. What is the purpose of BackgroundService?
[A] Long Running Background Tasks
[B] MVC Views
[C] Database Tables
[D] Routing
सही उत्तर: Long Running Background Tasks
व्याख्या: Background Processing के लिए Base Class है।
Correct Answer: Long Running Background Tasks
Explanation: Base class for background processing.
592. ExecuteAsync() Method कहाँ Override की जाती है?
[A] BackgroundService में
[B] Controller में
[C] DbContext में
[D] Model में
592. Where is ExecuteAsync() overridden?
[A] In BackgroundService
[B] In Controller
[C] In DbContext
[D] In Model
सही उत्तर: BackgroundService में
व्याख्या: Background Task Logic यहीं लिखी जाती है।
Correct Answer: In BackgroundService
Explanation: Background task logic is written here.
593. Clients.All.SendAsync() Method क्या करती है?
[A] सभी Connected Clients को Message भेजती है
[B] एक Client को Message भेजती है
[C] Database Update करती है
[D] Session Create करती है
593. What does Clients.All.SendAsync() do?
[A] Sends Message to All Connected Clients
[B] Sends Message to One Client
[C] Updates Database
[D] Creates Session
सही उत्तर: सभी Connected Clients को Message भेजती है
व्याख्या: SignalR Broadcast Communication के लिए उपयोग होती है।
Correct Answer: Sends Message to All Connected Clients
Explanation: Used for SignalR broadcasting.
594. JWT Token के मुख्य भाग कितने होते हैं?
[A] 3
[B] 2
[C] 4
[D] 5
594. How many parts does a JWT token have?
[A] 3
[B] 2
[C] 4
[D] 5
सही उत्तर: 3
व्याख्या: Header, Payload और Signature होते हैं।
Correct Answer: 3
Explanation: It consists of Header, Payload and Signature.
595. JWT का पहला भाग क्या होता है?
[A] Header
[B] Payload
[C] Signature
[D] Claim
595. What is the first part of JWT?
[A] Header
[B] Payload
[C] Signature
[D] Claim
सही उत्तर: Header
व्याख्या: Header में Algorithm और Token Type की जानकारी होती है।
Correct Answer: Header
Explanation: Header contains algorithm and token type information.
596. ClaimTypes.Email किसलिए उपयोग होता है?
[A] User Email Store करने के लिए
[B] Password Store करने के लिए
[C] Role Store करने के लिए
[D] Session Store करने के लिए
596. What is ClaimTypes.Email used for?
[A] Store User Email
[B] Store Password
[C] Store Role
[D] Store Session
सही उत्तर: User Email Store करने के लिए
व्याख्या: Email Claim को दर्शाता है।
Correct Answer: Store User Email
Explanation: Represents email claim.
597. Role-Based Authorization का उपयोग किसलिए किया जाता है?
[A] Roles के आधार पर Access Control
[B] Database Backup
[C] Caching
[D] Logging
597. What is Role-Based Authorization used for?
[A] Access Control Based on Roles
[B] Database Backup
[C] Caching
[D] Logging
सही उत्तर: Roles के आधार पर Access Control
व्याख्या: User Roles के अनुसार Permissions प्रदान की जाती हैं।
Correct Answer: Access Control Based on Roles
Explanation: Permissions are granted based on user roles.
598. [Authorize] Attribute का उपयोग किसलिए होता है?
[A] Protected Resources Secure करने के लिए
[B] Database Query के लिए
[C] Session Store करने के लिए
[D] Caching के लिए
598. What is [Authorize] used for?
[A] Secure Protected Resources
[B] Database Query
[C] Session Storage
[D] Caching
सही उत्तर: Protected Resources Secure करने के लिए
व्याख्या: Authenticated Users को ही Access देता है।
Correct Answer: Secure Protected Resources
Explanation: Allows access only to authenticated users.
599. [AllowAnonymous] Attribute क्या करती है?
[A] Anonymous Access Allow करती है
[B] Authentication Force करती है
[C] Authorization Disable करती है
[D] Database Access देती है
599. What does [AllowAnonymous] do?
[A] Allows Anonymous Access
[B] Forces Authentication
[C] Disables Authorization
[D] Provides Database Access
सही उत्तर: Anonymous Access Allow करती है
व्याख्या: बिना Login के Access प्रदान करती है।
Correct Answer: Allows Anonymous Access
Explanation: Allows access without login.
600. Policy-Based Authorization का मुख्य लाभ क्या है?
[A] Flexible Authorization Rules
[B] Database Performance
[C] Session Handling
[D] Routing
600. What is the main benefit of Policy-Based Authorization?
[A] Flexible Authorization Rules
[B] Database Performance
[C] Session Handling
[D] Routing
सही उत्तर: Flexible Authorization Rules
व्याख्या: Custom Authorization Policies Define कर सकते हैं।
Correct Answer: Flexible Authorization Rules
Explanation: Allows custom authorization policies.