WordPress Technology & Digital Applications 5 β Questions and Answers
Question 1: Which WordPress setting must be configured correctly to enable media file uploads in the admin dashboard?
- The wp-content folder must be set to read-only
- The uploads directory inside wp-content must be writable by the web server (Correct answer)
- The database must have a media table created manually
- The WordPress address must match the site address exactly
Correct answer: The uploads directory inside wp-content must be writable by the web server
WordPress needs write permission on wp-content/uploads to store uploaded images and files; incorrect permissions produce upload errors.
Question 2: What is the purpose of transients in WordPress?
- To store permanent user preferences in the database
- To temporarily cache data in the database with an optional expiration time (Correct answer)
- To track session tokens for logged-in users
- To queue background email notifications
Correct answer: To temporarily cache data in the database with an optional expiration time
Transients API stores temporary cached data in the database (or object cache) with a TTL, reducing expensive repeated API calls or queries.
Question 3: In WordPress multisite, what is a 'Super Admin'?
- An admin with access to only one site in the network
- A role that can only manage plugins across all sites
- An administrator with full control over all sites in the network (Correct answer)
- A user created automatically during WordPress installation
Correct answer: An administrator with full control over all sites in the network
Super Admins in WordPress Multisite have network-wide privileges, including managing all sites, themes, plugins, and users across the entire network.
Question 4: Which WordPress function should be used instead of PHP's mail() to send email?
- wp_send_email()
- wp_mail() (Correct answer)
- wordpress_mail()
- send_email()
Correct answer: wp_mail()
wp_mail() is WordPress's built-in email function that hooks into phpmailer, allowing plugins like WP Mail SMTP to override the delivery method.
Question 5: What is the WordPress Loop and what does it do?
- A JavaScript animation loop used in the Gutenberg editor
- A PHP code structure that iterates through posts and displays their content (Correct answer)
- A cron system that runs scheduled tasks automatically
- A cache invalidation cycle that refreshes pages periodically
Correct answer: A PHP code structure that iterates through posts and displays their content
The Loop is WordPress's core PHP mechanism that queries and iterates over posts, executing template tags to output each post's content.
Question 6: Which WordPress feature allows you to schedule posts to be published automatically at a future date and time?
- Deferred Publishing
- Post Scheduling via the Publish panel (Correct answer)
- Cron-based Auto-Post plugin only
- WordPress Autopilot
Correct answer: Post Scheduling via the Publish panel
WordPress's built-in publish panel lets you set a future date, changing the post status to 'Scheduled' and publishing it via wp-cron at that time.
Question 7: What does the WordPress constant WP_DEBUG do when set to true in wp-config.php?
- Enables a firewall that blocks suspicious requests
- Displays PHP errors, warnings, and notices to help developers troubleshoot (Correct answer)
- Activates safe mode to prevent plugin conflicts
- Forces WordPress to use the default Twenty theme
Correct answer: Displays PHP errors, warnings, and notices to help developers troubleshoot
WP_DEBUG enables PHP error reporting in WordPress, surfacing notices and warnings that are hidden in production to aid in development and debugging.
Which WordPress setting must be configured correctly to enable media file uploads in the admin dashboard?