[ PHP Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ PHP Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
521. OWASP Top 10 का मुख्य उद्देश्य क्या है?
[A] Web Security Risks बताना
[B] Database Design करना
[C] UI Design करना
[D] Server Setup करना
521. What is the main purpose of OWASP Top 10?
[A] Identify Web Security Risks
[B] Design Database
[C] Design UI
[D] Setup Server
सही उत्तर: Web Security Risks बताना
व्याख्या: OWASP Top 10 सबसे common web vulnerabilities list करता है।
Correct Answer: Identify Web Security Risks
Explanation: Lists most common web vulnerabilities.
522. SQL Injection attack क्या होता है?
[A] Malicious SQL Query Inject करना
[B] Image Upload करना
[C] Session Create करना
[D] Cache Clear करना
522. What is SQL Injection attack?
[A] Inject malicious SQL query
[B] Upload image
[C] Create session
[D] Clear cache
सही उत्तर: Malicious SQL Query Inject करना
व्याख्या: Attacker input के जरिए database query manipulate करता है।
Correct Answer: Inject malicious SQL query
Explanation: Attacker manipulates database queries via input.
523. CSRF attack का मुख्य उद्देश्य क्या है?
[A] User से unauthorized actions करवाना
[B] Database delete करना
[C] Server crash करना
[D] Cache clear करना
523. What is the main purpose of CSRF attack?
[A] Force unauthorized actions from user
[B] Delete database
[C] Crash server
[D] Clear cache
सही उत्तर: User से unauthorized actions करवाना
व्याख्या: Logged-in user से unwanted requests execute कराना।
Correct Answer: Force unauthorized actions from user
Explanation: Tricks logged-in users into unwanted actions.
524. JWT के कितने parts होते हैं?
[A] 2
[B] 3
[C] 4
[D] 5
524. How many parts does a JWT have?
[A] 2
[B] 3
[C] 4
[D] 5
सही उत्तर: 3
व्याख्या: Header, Payload, Signature
Correct Answer: 3
Explanation: Header, Payload, and Signature.
525. OAuth2 का मुख्य उपयोग क्या है?
[A] Authorization
[B] Authentication only
[C] Database Backup
[D] File Upload
525. What is the main use of OAuth2?
[A] Authorization
[B] Authentication only
[C] Database Backup
[D] File Upload
सही उत्तर: Authorization
व्याख्या: Third-party apps को limited access देना।
Correct Answer: Authorization
Explanation: Provides limited access to third-party apps.
526. Bearer Token क्या होता है?
[A] Access Token
[B] Password Hash
[C] Session ID
[D] Cookie
526. What is a Bearer Token?
[A] Access Token
[B] Password Hash
[C] Session ID
[D] Cookie
सही उत्तर: Access Token
व्याख्या: API access के लिए token-based authentication।
Correct Answer: Access Token
Explanation: Token used for API authentication.
527. HTTPS का मुख्य लाभ क्या है?
[A] Encrypted Communication
[B] Faster CPU
[C] More Storage
[D] Less Memory
527. What is the main benefit of HTTPS?
[A] Encrypted Communication
[B] Faster CPU
[C] More Storage
[D] Less Memory
सही उत्तर: Encrypted Communication
व्याख्या: SSL/TLS encryption प्रदान करता है।
Correct Answer: Encrypted Communication
Explanation: Provides SSL/TLS encryption.
528. Hashing का उद्देश्य क्या है?
[A] Data Protection
[B] Data Deletion
[C] Data Transfer
[D] Data Backup
528. What is the purpose of hashing?
[A] Protect data
[B] Delete data
[C] Transfer data
[D] Backup data
सही उत्तर: Data Protection
व्याख्या: Passwords secure करने के लिए उपयोग होता है।
Correct Answer: Protect data
Explanation: Used for securing passwords.
529. Password Hashing के लिए PHP में कौन-सा function उपयोग होता है?
[A] password_hash()
[B] hash_encrypt()
[C] secure_password()
[D] crypt_pass()
529. Which PHP function is used for password hashing?
[A] password_hash()
[B] hash_encrypt()
[C] secure_password()
[D] crypt_pass()
सही उत्तर: password_hash()
व्याख्या: Secure password hashing function
Correct Answer: password_hash()
Explanation: Secure password hashing function.
530. password_verify() का उपयोग क्या है?
[A] Password Check करना
[B] Password Create करना
[C] Password Delete करना
[D] Password Encrypt करना
530. What is password_verify() used for?
[A] Verify password
[B] Create password
[C] Delete password
[D] Encrypt password
सही उत्तर: Password Check करना
व्याख्या: Stored hash से password match करता है।
Correct Answer: Verify password
Explanation: Compares password with hash.