[ PHP Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ PHP Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
171. PHP में realpath cache का उद्देश्य क्या है?
[A] Store Sessions
[B] Cache File Paths
[C] Cache SQL Queries
[D] Store Cookies
171. What is the purpose of realpath cache?
[A] Store Sessions
[B] Cache File Paths
[C] Cache SQL Queries
[D] Store Cookies
सही उत्तर: Cache File Paths
व्याख्या: Filesystem lookups कम करता है।
Correct Answer: Cache File Paths
Explanation: Reduces filesystem lookups.
172. Production environment में display_errors सामान्यतः क्या होना चाहिए?
[A] On
[B] Off
[C] Debug
[D] Auto
172. What should display_errors typically be in production?
[A] On
[B] Off
[C] Debug
[D] Auto
सही उत्तर: Off
व्याख्या: Security reasons के लिए errors hide की जाती हैं।
Correct Answer: Off
Explanation: Errors should be hidden for security.
173. PHP performance improve करने का एक प्रभावी तरीका क्या है?
[A] Disable Cache
[B] Enable OPcache
[C] Increase HTML
[D] Disable Sessions
173. Which is an effective way to improve PHP performance?
[A] Disable Cache
[B] Enable OPcache
[C] Increase HTML
[D] Disable Sessions
सही उत्तर: Enable OPcache
व्याख्या: Script execution तेज करता है।
Correct Answer: Enable OPcache
Explanation: Speeds up script execution.
174. High-traffic PHP applications में session storage के लिए कौन-सा विकल्प लोकप्रिय है?
[A] Text File Only
[B] Redis
[C] HTML
[D] CSS
174. Which option is popular for session storage in high-traffic PHP applications?
[A] Text File Only
[B] Redis
[C] HTML
[D] CSS
सही उत्तर: Redis
व्याख्या: Fast centralized session storage प्रदान करता है।
Correct Answer: Redis
Explanation: Provides fast centralized session storage.
175. Encryption और Hashing में मुख्य अंतर क्या है?
[A] कोई अंतर नहीं
[B] Encryption reversible होती है
[C] Hashing reversible होती है
[D] दोनों reversible हैं
175. What is the main difference between Encryption and Hashing?
[A] No difference
[B] Encryption is reversible
[C] Hashing is reversible
[D] Both are reversible
सही उत्तर: Encryption reversible होती है
व्याख्या: Encryption को decrypt किया जा सकता है जबकि hashing one-way होती है।
Correct Answer: Encryption is reversible
Explanation: Encryption can be decrypted while hashing is one-way.
176. PHP में password verify करने के लिए कौन-सा function प्रयोग होता है?
[A] verify_password()
[B] password_verify()
[C] check_password()
[D] validate_password()
176. Which function is used to verify passwords in PHP?
[A] verify_password()
[B] password_verify()
[C] check_password()
[D] validate_password()
सही उत्तर: password_verify()
व्याख्या: Hashed password को verify करता है।
Correct Answer: password_verify()
Explanation: Verifies hashed passwords.
177. SSL का पूरा नाम क्या है?
[A] Secure Socket Layer
[B] System Security Layer
[C] Secure System Login
[D] Server Socket Link
177. What is the full form of SSL?
[A] Secure Socket Layer
[B] System Security Layer
[C] Secure System Login
[D] Server Socket Link
सही उत्तर: Secure Socket Layer
व्याख्या: Secure communication protocol।
Correct Answer: Secure Socket Layer
Explanation: Protocol for secure communication.
178. TLS का पूरा नाम क्या है?
[A] Transport Layer Security
[B] Transfer Layer Security
[C] Trusted Login Security
[D] Transmission Link Service
178. What is the full form of TLS?
[A] Transport Layer Security
[B] Transfer Layer Security
[C] Trusted Login Security
[D] Transmission Link Service
सही उत्तर: Transport Layer Security
व्याख्या: SSL का आधुनिक उत्तराधिकारी।
Correct Answer: Transport Layer Security
Explanation: Modern successor to SSL.
179. HTTPS में data encryption के लिए मुख्यतः क्या प्रयोग होता है?
[A] SSL/TLS
[B] FTP
[C] SMTP
[D] JSON
179. What is mainly used for data encryption in HTTPS?
[A] SSL/TLS
[B] FTP
[C] SMTP
[D] JSON
सही उत्तर: SSL/TLS
व्याख्या: Encrypted communication प्रदान करता है।
Correct Answer: SSL/TLS
Explanation: Provides encrypted communication.
180. Public Key Cryptography में कितनी keys होती हैं?
[A] 1
[B] 2
[C] 3
[D] 4
180. How many keys are used in Public Key Cryptography?
[A] 1
[B] 2
[C] 3
[D] 4
सही उत्तर: 2
व्याख्या: Public Key और Private Key।
Correct Answer: 2
Explanation: Uses a public key and a private key.