[ PHP Programming MCQS ]

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

[ PHP Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
351. CQRS में Read Model का उद्देश्य क्या है?
[A] Optimized Queries
[B] Write Operations
[C] Authentication
[D] Caching Only
351. What is the purpose of a Read Model in CQRS?
[A] Optimized Queries
[B] Write Operations
[C] Authentication
[D] Caching Only
सही उत्तर: Optimized Queries
व्याख्या: Data retrieval के लिए optimized model।
Correct Answer: Optimized Queries
Explanation: Optimized for data retrieval.
352. CQRS में Write Model किसलिए प्रयोग होता है?
[A] Business Commands
[B] Search Queries
[C] Caching
[D] Logging
352. What is the Write Model used for in CQRS?
[A] Business Commands
[B] Search Queries
[C] Caching
[D] Logging
सही उत्तर: Business Commands
व्याख्या: State changes और commands handle करता है।
Correct Answer: Business Commands
Explanation: Handles state changes and commands.
353. Event Sourcing में Event Replay का उद्देश्य क्या है?
[A] Rebuild State
[B] Delete Data
[C] Encrypt Data
[D] Clear Cache
353. What is the purpose of Event Replay in Event Sourcing?
[A] Rebuild State
[B] Delete Data
[C] Encrypt Data
[D] Clear Cache
सही उत्तर: Rebuild State
व्याख्या: Stored events से state पुनः बनाना।
Correct Answer: Rebuild State
Explanation: Reconstructs state from stored events.
354. Snapshotting का मुख्य लाभ क्या है?
[A] Faster State Reconstruction
[B] More Storage Usage
[C] More Complexity
[D] No History
354. What is the main benefit of Snapshotting?
[A] Faster State Reconstruction
[B] More Storage Usage
[C] More Complexity
[D] No History
सही उत्तर: Faster State Reconstruction
व्याख्या: सभी events replay करने की आवश्यकता कम होती है।
Correct Answer: Faster State Reconstruction
Explanation: Reduces the need to replay all events.
355. TDD का पूरा नाम क्या है?
[A] Test Driven Development
[B] Tool Driven Design
[C] Template Driven Development
[D] Task Driven Design
355. What is the full form of TDD?
[A] Test Driven Development
[B] Tool Driven Design
[C] Template Driven Development
[D] Task Driven Design
सही उत्तर: Test Driven Development
व्याख्या: Tests पहले लिखे जाते हैं।
Correct Answer: Test Driven Development
Explanation: Tests are written before code.
356. TDD Cycle क्या कहलाता है?
[A] Red Green Refactor
[B] Build Test Deploy
[C] Write Run Save
[D] Plan Code Ship
356. What is the TDD cycle called?
[A] Red Green Refactor
[B] Build Test Deploy
[C] Write Run Save
[D] Plan Code Ship
सही उत्तर: Red Green Refactor
व्याख्या: Testing और refactoring का standard cycle।
Correct Answer: Red Green Refactor
Explanation: Standard testing and refactoring cycle.
357. BDD का पूरा नाम क्या है?
[A] Behavior Driven Development
[B] Business Data Design
[C] Binary Driven Development
[D] Behavior Data Definition
357. What is the full form of BDD?
[A] Behavior Driven Development
[B] Business Data Design
[C] Binary Driven Development
[D] Behavior Data Definition
सही उत्तर: Behavior Driven Development
व्याख्या: Behavior-focused software development approach।
Correct Answer: Behavior Driven Development
Explanation: Behavior-focused development approach.
358. BDD में सामान्यतः कौन-सा syntax प्रयोग होता है?
[A] Given When Then
[B] Create Read Update
[C] Input Process Output
[D] Run Build Deploy
358. Which syntax is commonly used in BDD?
[A] Given When Then
[B] Create Read Update
[C] Input Process Output
[D] Run Build Deploy
सही उत्तर: Given When Then
व्याख्या: Behavior scenarios define करने के लिए।
Correct Answer: Given When Then
Explanation: Used to define behavior scenarios.
359. Repository Pattern का मुख्य लाभ क्या है?
[A] Persistence Abstraction
[B] More Queries
[C] Direct SQL Everywhere
[D] UI Separation
359. What is the main benefit of Repository Pattern?
[A] Persistence Abstraction
[B] More Queries
[C] Direct SQL Everywhere
[D] UI Separation
सही उत्तर: Persistence Abstraction
व्याख्या: Data access layer को abstract करता है।
Correct Answer: Persistence Abstraction
Explanation: Abstracts the data access layer.
360. Specification Pattern का उपयोग किसलिए होता है?
[A] Business Rules Encapsulation
[B] CSS Styling
[C] Session Storage
[D] File Upload
360. What is Specification Pattern used for?
[A] Business Rules Encapsulation
[B] CSS Styling
[C] Session Storage
[D] File Upload
सही उत्तर: Business Rules Encapsulation
व्याख्या: Complex business conditions को encapsulate करता है।
Correct Answer: Business Rules Encapsulation
Explanation: Encapsulates complex business rules.