1. Can you differentiate between a WordPress plugin and a theme?
A theme controls how the site looks and what its design is, while a plugin adds extra features to the design, like contact forms, SEO, or sliders.
2. What function is used to make custom posts?
We can create a custom post using the register_post_type() function in our theme’s functions.php file
3. What are the features of WordPress?
In WordPress, the Hooks let us change WordPress features. Actions help us to run your code at certain points, and Filters let us change data before it is shown.
4. How do you secure a WordPress site from threats?
To protect our WordPress site from threats online, we should use strong passwords, install security plugins, keep our systems updated, and limit login attempts so that only authorised
personnel can do it.
5. What is a child theme?
A copy of pre pre-existing theme is called a child theme. We can use it to make changes without changing the original theme.
6. What is middleware in Laravel?
Middleware checks requests before they reach the final code.
7. How do you use environment variables in Laravel?
The .env file stores app settings. The data is stored in a database. We can use environment variables in configuration files to read them.
8. Differentiate hasOne and hasMany?
hasOne is informed about one related item, like a user only has one profile. hasMany means many items, like a user has multiple posts.
9. Do you know how to run background tasks in Laravel?
Yes, to run background tasks, we use Laravel queues. We start by creating a job, then use the dispatch() function to run it in the background.
10. What are migrations in Laravel?
Migrations use PHP code in Laravel. It helps to create and change database tables. They make it easy to share database changes with your team.