[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
141. Entity Framework Core में DbContext का मुख्य कार्य क्या है?
[A] UI बनाना
[B] Database Session एवं Entity Management
[C] File Management
[D] Networking
141. What is the primary role of DbContext in Entity Framework Core?
[A] Build UI
[B] Database session and entity management
[C] File management
[D] Networking
सही उत्तर: Database Session एवं Entity Management
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Database session and entity management
Explanation: Important question.
142. Entity Framework Core में DbSet क्या दर्शाता है?
[A] Database Connection
[B] Database Table/Entity Collection
[C] Stored Procedure
[D] Transaction
142. What does DbSet represent in Entity Framework Core?
[A] Database connection
[B] Database table/entity collection
[C] Stored procedure
[D] Transaction
सही उत्तर: Database Table/Entity Collection
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Database table/entity collection
Explanation: Important question.
143. EF Core में Migration का उद्देश्य क्या है?
[A] File Copy करना
[B] Database Schema Changes को Manage करना
[C] Loop Execute करना
[D] Memory Allocate करना
143. What is the purpose of Migrations in EF Core?
[A] Copy files
[B] Manage database schema changes
[C] Execute loops
[D] Allocate memory
सही उत्तर: Database Schema Changes को Manage करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Manage database schema changes
Explanation: Important question.
144. EF Core में Add-Migration Command का उपयोग किसलिए किया जाता है?
[A] Database Delete करने के लिए
[B] नई Migration Create करने के लिए
[C] Data Insert करने के लिए
[D] Table Drop करने के लिए
144. Why is the Add-Migration command used in EF Core?
[A] To delete database
[B] To create a new migration
[C] To insert data
[D] To drop tables
सही उत्तर: नई Migration Create करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To create a new migration
Explanation: Important question.
145. EF Core में Update-Database Command का उपयोग किसलिए किया जाता है?
[A] Application Run करने के लिए
[B] Migration को Database पर Apply करने के लिए
[C] Data Export करने के लिए
[D] Database Backup के लिए
145. Why is the Update-Database command used in EF Core?
[A] To run the application
[B] To apply migrations to the database
[C] To export data
[D] To back up the database
सही उत्तर: Migration को Database पर Apply करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To apply migrations to the database
Explanation: Important question.
146. Entity Framework Core में Change Tracking का क्या कार्य है?
[A] Memory बढ़ाना
[B] Entities में हुए Changes को Track करना
[C] Database Delete करना
[D] Network Connection बनाना
146. What is the purpose of Change Tracking in EF Core?
[A] Increase memory
[B] Track changes made to entities
[C] Delete database
[D] Create network connections
सही उत्तर: Entities में हुए Changes को Track करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Track changes made to entities
Explanation: Important question.
147. Lazy Loading का अर्थ क्या है?
[A] सारा Data पहले Load करना
[B] आवश्यक होने पर Related Data Load करना
[C] Database Delete करना
[D] Memory Free करना
147. What is Lazy Loading in EF Core?
[A] Load all data initially
[B] Load related data only when needed
[C] Delete database
[D] Free memory
सही उत्तर: आवश्यक होने पर Related Data Load करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Load related data only when needed
Explanation: Important question.
148. Eager Loading के लिए EF Core में कौन-सी Method प्रयोग की जाती है?
[A] Find()
[B] Include()
[C] Select()
[D] Add()
148. Which method is used for Eager Loading in EF Core?
[A] Find()
[B] Include()
[C] Select()
[D] Add()
सही उत्तर: Include()
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Include()
Explanation: Important question.
149. Explicit Loading में Related Entity कैसे Load की जाती है?
[A] Automatically
[B] Manually
[C] Compile Time
[D] Never
149. How are related entities loaded in Explicit Loading?
[A] Automatically
[B] Manually
[C] At compile time
[D] Never
सही उत्तर: Manually
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Manually
Explanation: Important question.
150. Database Transaction का मुख्य उद्देश्य क्या है?
[A] Program Speed बढ़ाना
[B] Operations की Atomicity सुनिश्चित करना
[C] Memory कम करना
[D] UI Design करना
150. What is the main purpose of a database transaction?
[A] Increase program speed
[B] Ensure atomicity of operations
[C] Reduce memory
[D] Design UI
सही उत्तर: Operations की Atomicity सुनिश्चित करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Ensure atomicity of operations
Explanation: Important question.