[ DOT NET Core MCQS ]

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

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
831. ASP.NET Core MVC View की Extension क्या होती है?
[A] .cshtml
[B] .html
[C] .razor
[D] .aspx
831. What is the extension of an ASP.NET Core MVC View?
[A] .cshtml
[B] .html
[C] .razor
[D] .aspx
सही उत्तर: .cshtml
व्याख्या: Razor View Engine .cshtml Files का उपयोग करता है।
Correct Answer: .cshtml
Explanation: Razor View Engine uses .cshtml files.
832. Razor View Engine क्या है?
[A] Server-side View Engine
[B] Database Engine
[C] Routing Engine
[D] Authentication Engine
832. What is Razor View Engine?
[A] Server-side View Engine
[B] Database Engine
[C] Routing Engine
[D] Authentication Engine
सही उत्तर: Server-side View Engine
व्याख्या: HTML और C# Code को Combine करने की सुविधा देता है।
Correct Answer: Server-side View Engine
Explanation: Allows combining HTML and C# code.
833. Razor Syntax में C# Code शुरू करने के लिए कौन सा Symbol उपयोग होता है?
[A] @
[B] #
[C] $
[D] %
833. Which symbol is used to start C# code in Razor syntax?
[A] @
[B] #
[C] $
[D] %
सही उत्तर: @
व्याख्या: Razor में @ Symbol C# Expressions के लिए उपयोग होता है।
Correct Answer: @
Explanation: The @ symbol is used for C# expressions in Razor.
834. Model को View में Declare करने के लिए कौन सा Keyword उपयोग होता है?
[A] @model
[B] @Model
[C] @using
[D] @inject
834. Which keyword is used to declare a model in a View?
[A] @model
[B] @Model
[C] @using
[D] @inject
सही उत्तर: @model
व्याख्या: Strongly Typed View बनाने के लिए।
Correct Answer: @model
Explanation: Used to create strongly typed views.
835. Layout Page का मुख्य उद्देश्य क्या है?
[A] Common UI Reuse करना
[B] Database Connect करना
[C] Authentication करना
[D] Routing करना
835. What is the main purpose of a Layout Page?
[A] Reuse Common UI
[B] Connect Database
[C] Perform Authentication
[D] Perform Routing
सही उत्तर: Common UI Reuse करना
व्याख्या: Header, Footer, Menu आदि को Reuse करने के लिए।
Correct Answer: Reuse Common UI
Explanation: Used to reuse headers, footers, menus, etc.
836. ASP.NET Core MVC में Default Layout File कौन सी होती है?
[A] _Layout.cshtml
[B] Layout.cshtml
[C] Main.cshtml
[D] Default.cshtml
836. What is the default layout file in ASP.NET Core MVC?
[A] _Layout.cshtml
[B] Layout.cshtml
[C] Main.cshtml
[D] Default.cshtml
सही उत्तर: _Layout.cshtml
व्याख्या: सामान्यतः Shared Folder में होती है।
Correct Answer: _Layout.cshtml
Explanation: Usually located in the Shared folder.
837. Layout File सामान्यतः किस Folder में रखी जाती है?
[A] Views/Shared
[B] Views/Home
[C] Controllers
[D] wwwroot
837. Where is the Layout file usually stored?
[A] Views/Shared
[B] Views/Home
[C] Controllers
[D] wwwroot
सही उत्तर: Views/Shared
व्याख्या: Shared UI Components के लिए।
Correct Answer: Views/Shared
Explanation: Used for shared UI components.
838. Partial View क्या होती है?
[A] Reusable View Component
[B] Database Table
[C] Controller
[D] Middleware
838. What is a Partial View?
[A] Reusable View Component
[B] Database Table
[C] Controller
[D] Middleware
सही उत्तर: Reusable View Component
व्याख्या: View के छोटे Reusable भाग को Partial View कहते हैं।
Correct Answer: Reusable View Component
Explanation: A reusable part of a view.
839. Partial View की Extension क्या होती है?
[A] .cshtml
[B] .html
[C] .xml
[D] .json
839. What is the extension of a Partial View?
[A] .cshtml
[B] .html
[C] .xml
[D] .json
सही उत्तर: .cshtml
व्याख्या: Partial Views भी Razor Views होती हैं।
Correct Answer: .cshtml
Explanation: Partial views are also Razor views.
840. _ViewImports.cshtml File का उपयोग किसलिए होता है?
[A] Common Imports Define करने के लिए
[B] Database Configuration
[C] Routing
[D] Logging
840. What is _ViewImports.cshtml used for?
[A] Define Common Imports
[B] Database Configuration
[C] Routing
[D] Logging
सही उत्तर: Common Imports Define करने के लिए
व्याख्या: Namespaces और Tag Helpers Import करती है।
Correct Answer: Define Common Imports
Explanation: Imports namespaces and tag helpers.