[ PHP Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ PHP Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
551. Code Smell क्या होता है?
[A] Poor Design Indicator
[B] Compilation Error
[C] Runtime Error
[D] Database Error
551. What is a Code Smell?
[A] Indicator of poor design
[B] Compilation Error
[C] Runtime Error
[D] Database Error
सही उत्तर: Poor Design Indicator
व्याख्या: Code quality issues का संकेत।
Correct Answer: Indicator of poor design
Explanation: Suggests code quality problems.
552. DRY Principle का पूरा नाम क्या है?
[A] Don’t Repeat Yourself
[B] Do Repeat Yourself
[C] Data Resource Yield
[D] Dynamic Runtime Yield
552. What is the full form of DRY?
[A] Don’t Repeat Yourself
[B] Do Repeat Yourself
[C] Data Resource Yield
[D] Dynamic Runtime Yield
सही उत्तर: Don’t Repeat Yourself
व्याख्या: Code duplication से बचने का सिद्धांत।
Correct Answer: Don’t Repeat Yourself
Explanation: Avoid code duplication.
553. KISS Principle का अर्थ क्या है?
[A] Keep It Simple, Stupid
[B] Keep Integrated Security Safe
[C] Key Information Storage System
[D] Knowledge Integration Secure System
553. What does KISS stand for?
[A] Keep It Simple, Stupid
[B] Keep Integrated Security Safe
[C] Key Information Storage System
[D] Knowledge Integration Secure System
सही उत्तर: Keep It Simple, Stupid
व्याख्या: Simple solutions को प्राथमिकता देना।
Correct Answer: Keep It Simple, Stupid
Explanation: Prefer simple solutions.
554. YAGNI Principle का पूरा नाम क्या है?
[A] You Aren’t Gonna Need It
[B] Your Application Gets New Integration
[C] Yield And Generate New Interfaces
[D] Yet Another Global Network Integration
554. What is the full form of YAGNI?
[A] You Aren’t Gonna Need It
[B] Your Application Gets New Integration
[C] Yield And Generate New Interfaces
[D] Yet Another Global Network Integration
सही उत्तर: You Aren’t Gonna Need It
व्याख्या: अनावश्यक features न जोड़ें।
Correct Answer: You Aren’t Gonna Need It
Explanation: Avoid adding unnecessary features.
555. Stub Object का मुख्य उद्देश्य क्या है?
[A] Predefined Responses देना
[B] Database Connect करना
[C] Cache Clear करना
[D] Encrypt Data
555. What is the main purpose of a Stub Object?
[A] Provide predefined responses
[B] Connect database
[C] Clear cache
[D] Encrypt data
सही उत्तर: Predefined Responses देना
व्याख्या: Testing के दौरान fixed responses return करता है।
Correct Answer: Provide predefined responses
Explanation: Returns fixed responses during testing.
556. Integration Testing क्या verify करता है?
[A] Components Together Work कर रहे हैं
[B] Single Function Only
[C] Database Backup
[D] UI Color Scheme
556. What does Integration Testing verify?
[A] Components work together
[B] Single function only
[C] Database backup
[D] UI color scheme
सही उत्तर: Components Together Work कर रहे हैं
व्याख्या: Modules के interaction को test करता है।
Correct Answer: Components work together
Explanation: Tests interaction between modules.
557. Regression Testing का उद्देश्य क्या है?
[A] Existing Features Break न हों
[B] Create New Features
[C] Delete Old Code
[D] Optimize Database
557. What is the purpose of Regression Testing?
[A] Ensure existing features still work
[B] Create new features
[C] Delete old code
[D] Optimize database
सही उत्तर: Existing Features Break न हों
व्याख्या: Changes के बाद पुराने functionality verify करना।
Correct Answer: Ensure existing features still work
Explanation: Verifies functionality after changes.
558. Static Code Analysis Tool का उदाहरण कौन-सा है?
[A] PHPStan
[B] Apache
[C] MySQL
[D] Nginx
558. Which is an example of a Static Code Analysis Tool?
[A] PHPStan
[B] Apache
[C] MySQL
[D] Nginx
सही उत्तर: PHPStan
व्याख्या: PHP code quality और errors detect करता है।
Correct Answer: PHPStan
Explanation: Detects code quality issues and errors.
559. Psalm क्या है?
[A] Static Analysis Tool
[B] Template Engine
[C] Queue System
[D] Database Driver
559. What is Psalm?
[A] Static Analysis Tool
[B] Template Engine
[C] Queue System
[D] Database Driver
सही उत्तर: Static Analysis Tool
व्याख्या: PHP code analysis और type checking के लिए।
Correct Answer: Static Analysis Tool
Explanation: Used for PHP code analysis and type checking.
560. Cyclomatic Complexity किसे measure करता है?
[A] Code Complexity
[B] Database Size
[C] Server Load
[D] Cache Usage
560. What does Cyclomatic Complexity measure?
[A] Code Complexity
[B] Database Size
[C] Server Load
[D] Cache Usage
सही उत्तर: Code Complexity
व्याख्या: Code paths की संख्या दर्शाता है।
Correct Answer: Code Complexity
Explanation: Represents number of code paths.