[ PHP Programming MCQS ]

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

[ PHP Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
161. Nginx PHP scripts को execute करने के लिए सामान्यतः किसका उपयोग करता है?
[A] mod_php
[B] PHP-FPM
[C] MySQL
[D] Composer
161. What does Nginx typically use to execute PHP scripts?
[A] mod_php
[B] PHP-FPM
[C] MySQL
[D] Composer
सही उत्तर: PHP-FPM
व्याख्या: Nginx और PHP-FPM का संयोजन लोकप्रिय है।
Correct Answer: PHP-FPM
Explanation: Nginx commonly works with PHP-FPM.
162. Load Balancer का मुख्य कार्य क्या है?
[A] Store Files
[B] Distribute Traffic
[C] Compile Code
[D] Encrypt Passwords
162. What is the main role of a Load Balancer?
[A] Store Files
[B] Distribute Traffic
[C] Compile Code
[D] Encrypt Passwords
सही उत्तर: Distribute Traffic
व्याख्या: Multiple servers में load distribute करता है।
Correct Answer: Distribute Traffic
Explanation: Distributes traffic among servers.
163. Horizontal Scaling का अर्थ क्या है?
[A] Increase RAM of One Server
[B] Add More Servers
[C] Increase CPU Only
[D] Upgrade Database Version
163. What does Horizontal Scaling mean?
[A] Increase RAM of One Server
[B] Add More Servers
[C] Increase CPU Only
[D] Upgrade Database Version
सही उत्तर: Add More Servers
व्याख्या: System capacity बढ़ाने के लिए नए servers जोड़ना।
Correct Answer: Add More Servers
Explanation: Adding more servers to increase capacity.
164. Vertical Scaling का अर्थ क्या है?
[A] Add New Servers
[B] Upgrade Existing Server Resources
[C] Delete Servers
[D] Use Multiple Databases
164. What does Vertical Scaling mean?
[A] Add New Servers
[B] Upgrade Existing Server Resources
[C] Delete Servers
[D] Use Multiple Databases
सही उत्तर: Upgrade Existing Server Resources
व्याख्या: RAM, CPU आदि बढ़ाना।
Correct Answer: Upgrade Existing Server Resources
Explanation: Increasing resources of an existing server.
165. Database Query Optimization का एक सामान्य तरीका क्या है?
[A] Add More CSS
[B] Use Indexes
[C] Use More Images
[D] Increase HTML Size
165. Which is a common database query optimization technique?
[A] Add More CSS
[B] Use Indexes
[C] Use More Images
[D] Increase HTML Size
सही उत्तर: Use Indexes
व्याख्या: Indexes query performance सुधारते हैं।
Correct Answer: Use Indexes
Explanation: Indexes improve query performance.
166. PHP application profiling के लिए कौन-सा tool लोकप्रिय है?
[A] Xdebug
[B] Photoshop
[C] Bootstrap
[D] Postman
166. Which tool is commonly used for PHP profiling?
[A] Xdebug
[B] Photoshop
[C] Bootstrap
[D] Postman
सही उत्तर: Xdebug
व्याख्या: Performance analysis और debugging के लिए।
Correct Answer: Xdebug
Explanation: Used for debugging and performance profiling.
167. Xdebug मुख्य रूप से किसलिए उपयोग होता है?
[A] Email Sending
[B] Debugging
[C] Caching
[D] Database Backup
167. What is Xdebug primarily used for?
[A] Email Sending
[B] Debugging
[C] Caching
[D] Database Backup
सही उत्तर: Debugging
व्याख्या: Step debugging और profiling।
Correct Answer: Debugging
Explanation: Provides step debugging and profiling.
168. Memory Leak का क्या अर्थ है?
[A] Unused Memory Not Released
[B] Database Failure
[C] Network Error
[D] Session Timeout
168. What is a Memory Leak?
[A] Unused Memory Not Released
[B] Database Failure
[C] Network Error
[D] Session Timeout
सही उत्तर: Unused Memory Not Released
व्याख्या: Application धीरे-धीरे अधिक memory consume करती है।
Correct Answer: Unused Memory Not Released
Explanation: Occurs when unused memory is not released.
169. PHP में memory limit किस configuration directive द्वारा निर्धारित होती है?
[A] memory_limit
[B] max_memory
[C] php_memory
[D] limit_memory
169. Which directive controls memory limit in PHP?
[A] memory_limit
[B] max_memory
[C] php_memory
[D] limit_memory
सही उत्तर: memory_limit
व्याख्या: php.ini में define किया जाता है।
Correct Answer: memory_limit
Explanation: Configured in php.ini.
170. Execution timeout नियंत्रित करने के लिए कौन-सी setting प्रयोग होती है?
[A] max_execution_time
[B] script_timeout
[C] time_limit
[D] execute_limit
170. Which setting controls script execution timeout?
[A] max_execution_time
[B] script_timeout
[C] time_limit
[D] execute_limit
सही उत्तर: max_execution_time
व्याख्या: Long-running scripts को नियंत्रित करती है।
Correct Answer: max_execution_time
Explanation: Controls maximum script execution time.