PHP Advanced Quiz 1

q L quizLearn
Select your answers and check your results. Use Reset to start again. Practice Pronunciation (Merriam-Webster)
Navigation
Quiz 1
1. Which pattern involves passing dependencies to a class via its constructor or methods?
2. Which design pattern ensures a class only has one instance?
3. Which PSR (PHP Standard Recommendation) defines the standard for autoloading classes?
4. How do you enable strict type checking in a PHP file?
5. What does 'string|int $value' represent in PHP 8.0+?
6. Which PHP feature is used to reverse-engineer or inspect a class at runtime?
7. What is the difference between 'self::' and 'static::' in inheritance?
8. What replaced DocBlock annotations for metadata in PHP 8.0?
9. Can an Abstract class be instantiated directly?
10. What is a key advantage of 'match' over 'switch' in PHP 8.0?
Previous Next
Other
Timer
00:00

Vocabulary Quiz
Score: 0

Spin the Wheel
Promo's

Explore More