[ DOT NET Core MCQS ]

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

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
801. Email Validation के लिए कौन सा Attribute उपयोग होता है?
[A] EmailAddress
[B] Required
[C] Range
[D] Phone
801. Which attribute is used for email validation?
[A] EmailAddress
[B] Required
[C] Range
[D] Phone
सही उत्तर: EmailAddress
व्याख्या: Valid Email Format Check करता है।
Correct Answer: EmailAddress
Explanation: Validates email format.
802. Numeric Range Validation के लिए कौन सा Attribute उपयोग होता है?
[A] Range
[B] Required
[C] Key
[D] MaxLength
802. Which attribute is used for numeric range validation?
[A] Range
[B] Required
[C] Key
[D] MaxLength
सही उत्तर: Range
व्याख्या: Minimum और Maximum Value Validate करता है।
Correct Answer: Range
Explanation: Validates minimum and maximum values.
803. ViewModel का मुख्य उद्देश्य क्या है?
[A] View के लिए Data Transfer
[B] Database Table Create करना
[C] Connection String Store करना
[D] Middleware Create करना
803. What is the main purpose of a ViewModel?
[A] Data Transfer for View
[B] Create Database Table
[C] Store Connection String
[D] Create Middleware
सही उत्तर: View के लिए Data Transfer
व्याख्या: View Specific Data रखने के लिए।
Correct Answer: Data Transfer for View
Explanation: Stores view-specific data.
804. DTO का पूरा नाम क्या है?
[A] Data Transfer Object
[B] Database Transfer Object
[C] Data Table Object
[D] Database Table Object
804. What does DTO stand for?
[A] Data Transfer Object
[B] Database Transfer Object
[C] Data Table Object
[D] Database Table Object
सही उत्तर: Data Transfer Object
व्याख्या: Layers के बीच Data Transfer करने के लिए।
Correct Answer: Data Transfer Object
Explanation: Used to transfer data between layers.
805. Navigation Property का उपयोग किसलिए होता है?
[A] Entity Relationships Define करने के लिए
[B] Routing के लिए
[C] Validation के लिए
[D] Logging के लिए
805. What is a Navigation Property used for?
[A] Define Entity Relationships
[B] Routing
[C] Validation
[D] Logging
सही उत्तर: Entity Relationships Define करने के लिए
व्याख्या: Related Entities तक पहुँच प्रदान करती है।
Correct Answer: Define Entity Relationships
Explanation: Provides access to related entities.
806. One-to-Many Relationship में Navigation Property सामान्यतः क्या होती है?
[A] Collection
[B] Integer
[C] String
[D] Boolean
806. In a One-to-Many relationship, navigation property is usually?
[A] Collection
[B] Integer
[C] String
[D] Boolean
सही उत्तर: Collection
व्याख्या: Related Records की Collection Store करती है।
Correct Answer: Collection
Explanation: Stores a collection of related records.
807. Foreign Key Property का उपयोग किसलिए होता है?
[A] Relationship Link करने के लिए
[B] Validation के लिए
[C] Routing के लिए
[D] Logging के लिए
807. What is a Foreign Key property used for?
[A] Link Relationships
[B] Validation
[C] Routing
[D] Logging
सही उत्तर: Relationship Link करने के लिए
व्याख्या: Related Table के Primary Key को Reference करती है।
Correct Answer: Link Relationships
Explanation: References the primary key of a related table.
808. [NotMapped] Attribute क्या करती है?
[A] Property को Database में Map नहीं करती
[B] Property को Required बनाती है
[C] Property को Key बनाती है
[D] Property Delete करती है
808. What does [NotMapped] attribute do?
[A] Does Not Map Property to Database
[B] Makes Property Required
[C] Makes Property Key
[D] Deletes Property
सही उत्तर: Property को Database में Map नहीं करती
व्याख्या: EF Core उस Property के लिए Column नहीं बनाता।
Correct Answer: Does Not Map Property to Database
Explanation: EF Core does not create a column for it.
809. [Table] Attribute का उपयोग किसलिए होता है?
[A] Custom Table Name Define करने के लिए
[B] Column Name Define करने के लिए
[C] Primary Key Define करने के लिए
[D] Foreign Key Define करने के लिए
809. What is [Table] attribute used for?
[A] Define Custom Table Name
[B] Define Column Name
[C] Define Primary Key
[D] Define Foreign Key
सही उत्तर: Custom Table Name Define करने के लिए
व्याख्या: Entity को Specific Table से Map करती है।
Correct Answer: Define Custom Table Name
Explanation: Maps entity to a specific table.
810. [Column] Attribute का उपयोग किसलिए होता है?
[A] Custom Column Name Define करने के लिए
[B] Primary Key Define करने के लिए
[C] Validation के लिए
[D] Routing के लिए
810. What is [Column] attribute used for?
[A] Define Custom Column Name
[B] Define Primary Key
[C] Validation
[D] Routing
सही उत्तर: Custom Column Name Define करने के लिए
व्याख्या: Database Column Mapping Customize करती है।
Correct Answer: Define Custom Column Name
Explanation: Customizes database column mapping.