Test Your PHP Knowledge! 🔍 | 10 Must-Know MCQs on OOP & File Uploading

MCQ Paper

1. Which keyword is used to define a class in PHP?





2. What is the correct way to create an object from a class named Car?





3. What is a constructor in PHP?





4. What is the correct syntax for a constructor method in PHP?





5. How do you inherit a class in PHP?





6. Which PHP superglobal is used to handle file uploads?





7. What HTML form attribute is required to upload files?





8. What does the move_uploaded_file() function do in PHP?





9. How can you check the file type in PHP securely?





10. What is a common way to prevent uploading of dangerous file types (like .php) in PHP?





Wait for 20 seconds...

Post a Comment

Previous Post Next Post