[ PHP Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ PHP Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
121. Attributes (Annotations Alternative) किस version में आए?
[A] PHP 5
[B] PHP 7
[C] PHP 8
[D] PHP 4
121. Attributes were introduced in which PHP version?
[A] PHP 5
[B] PHP 7
[C] PHP 8
[D] PHP 4
सही उत्तर: PHP 8
व्याख्या: Metadata define करने का modern तरीका।
Correct Answer: PHP 8
Explanation: Modern way to define metadata.
122. Composer lock file का नाम क्या है?
[A] composer.lock
[B] composer.json.lock
[C] lock.json
[D] vendor.lock
122. What is the name of Composer lock file?
[A] composer.lock
[B] composer.json.lock
[C] lock.json
[D] vendor.lock
सही उत्तर: composer.lock
व्याख्या: Installed package versions store करता है।
Correct Answer: composer.lock
Explanation: Stores exact package versions.
123. Semantic Versioning में MAJOR version change कब होता है?
[A] Bug Fix
[B] Patch Update
[C] Breaking Change
[D] Documentation Update
123. When does a MAJOR version change occur in Semantic Versioning?
[A] Bug Fix
[B] Patch Update
[C] Breaking Change
[D] Documentation Update
सही उत्तर: Breaking Change
व्याख्या: Backward incompatible changes पर।
Correct Answer: Breaking Change
Explanation: Occurs when backward compatibility breaks.
124. Queue System का मुख्य लाभ क्या है?
[A] Slow Processing
[B] Background Processing
[C] Database Creation
[D] File Upload
124. What is the main benefit of a Queue System?
[A] Slow Processing
[B] Background Processing
[C] Database Creation
[D] File Upload
सही उत्तर: Background Processing
व्याख्या: Heavy tasks को asynchronously execute करता है।
Correct Answer: Background Processing
Explanation: Executes heavy tasks asynchronously.
125. Microservices Architecture का मुख्य लाभ क्या है?
[A] Single Large Application
[B] Independent Deployment
[C] No Database
[D] No API
125. What is the primary benefit of Microservices Architecture?
[A] Single Large Application
[B] Independent Deployment
[C] No Database
[D] No API
सही उत्तर: Independent Deployment
व्याख्या: प्रत्येक service को स्वतंत्र रूप से deploy किया जा सकता है।
Correct Answer: Independent Deployment
Explanation: Each service can be deployed independently.
126. Microservices के बीच communication सामान्यतः किसके माध्यम से होती है?
[A] REST API
[B] SOAP
[C] Message Queue
[D] All of These
126. How do microservices commonly communicate?
[A] REST API
[B] SOAP
[C] Message Queue
[D] All of These
सही उत्तर: All of These
व्याख्या: Services विभिन्न protocols द्वारा communicate कर सकती हैं।
Correct Answer: All of These
Explanation: Services may communicate using multiple protocols.
127. RabbitMQ क्या है?
[A] Database
[B] Message Broker
[C] Web Server
[D] Framework
127. What is RabbitMQ?
[A] Database
[B] Message Broker
[C] Web Server
[D] Framework
सही उत्तर: Message Broker
व्याख्या: Applications के बीच messages exchange करता है।
Correct Answer: Message Broker
Explanation: Used for message exchange between applications.
128. RabbitMQ में messages कहाँ store होते हैं?
[A] Table
[B] Queue
[C] Session
[D] Cookie
128. Where are messages stored in RabbitMQ?
[A] Table
[B] Queue
[C] Session
[D] Cookie
सही उत्तर: Queue
व्याख्या: Messages queue में रखे जाते हैं।
Correct Answer: Queue
Explanation: Messages are stored in queues.
129. WebSocket का मुख्य लाभ क्या है?
[A] One-way Communication
[B] Real-time Bidirectional Communication
[C] Database Storage
[D] Caching
129. What is the main advantage of WebSockets?
[A] One-way Communication
[B] Real-time Bidirectional Communication
[C] Database Storage
[D] Caching
सही उत्तर: Real-time Bidirectional Communication
व्याख्या: Client और Server दोनों data भेज सकते हैं।
Correct Answer: Real-time Bidirectional Communication
Explanation: Allows two-way communication in real time.
130. Chat Application में कौन-सी technology सबसे उपयुक्त है?
[A] FTP
[B] WebSocket
[C] SMTP
[D] CSV
130. Which technology is best suited for chat applications?
[A] FTP
[B] WebSocket
[C] SMTP
[D] CSV
सही उत्तर: WebSocket
व्याख्या: Real-time messaging के लिए।
Correct Answer: WebSocket
Explanation: Ideal for real-time messaging.