Certified Wordpress Developer Practice Exam, Exams of Technology

Aimed at WordPress developers, this exam covers building themes, plugins, and working with WordPress core. It also includes content management, security, performance optimization, and implementing custom solutions using PHP and JavaScript.

Typology: Exams

2025/2026

Available from 12/25/2025

shilpi-jain-1
shilpi-jain-1 🇮🇳

4.2

(5)

29K documents

1 / 82

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Certified Wordpress Developer Practice Exam
Question 1. What is the main purpose of the wp-config.php file in a WordPress installation?
A) It stores theme files
B) It manages plugin updates
C) It holds configuration settings for database connection and site options
D) It contains user data
Answer: C
Explanation: The wp-config.php file is crucial for setting up the database connection, security salts, and
other advanced configuration options necessary for WordPress to operate.
Question 2. Which protocol is commonly used for manually uploading WordPress files to a web server?
A) SMTP
B) FTP
C) HTTP
D) SSH
Answer: B
Explanation: FTP (File Transfer Protocol) is typically used to upload WordPress files manually to the
server during installation.
Question 3. What is the difference between single-site and multisite WordPress installations?
A) Multisite is faster
B) Multisite allows multiple sites to be managed from one WordPress dashboard
C) Single-site is more secure
D) Single-site supports plugins, multisite does not
Answer: B
Explanation: A multisite setup allows you to manage several websites from a single WordPress
installation and admin area.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52

Partial preview of the text

Download Certified Wordpress Developer Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. What is the main purpose of the wp-config.php file in a WordPress installation? A) It stores theme files B) It manages plugin updates C) It holds configuration settings for database connection and site options D) It contains user data Answer: C Explanation: The wp-config.php file is crucial for setting up the database connection, security salts, and other advanced configuration options necessary for WordPress to operate. Question 2. Which protocol is commonly used for manually uploading WordPress files to a web server? A) SMTP B) FTP C) HTTP D) SSH Answer: B Explanation: FTP (File Transfer Protocol) is typically used to upload WordPress files manually to the server during installation. Question 3. What is the difference between single-site and multisite WordPress installations? A) Multisite is faster B) Multisite allows multiple sites to be managed from one WordPress dashboard C) Single-site is more secure D) Single-site supports plugins, multisite does not Answer: B Explanation: A multisite setup allows you to manage several websites from a single WordPress installation and admin area.

Question 4. Which file in a WordPress theme must have a header with theme information to be recognized by WordPress? A) functions.php B) style.css C) index.php D) header.php Answer: B Explanation: The style.css file includes a special comment block at the top with metadata that identifies the theme to WordPress. Question 5. What is the primary function of the index.php file in the WordPress core? A) It handles user authentication B) It loads the plugin directory C) It acts as a fallback template for displaying content D) It stores site settings Answer: C Explanation: index.php serves as the default fallback template for all content if a more specific template is not found. Question 6. Which database table stores WordPress user information? A) wp_posts B) wp_options C) wp_users D) wp_terms Answer: C

Answer: B Explanation: query_posts() modifies the main query, which can break pagination and other functionalities; WP_Query is preferred for custom queries. Question 10. What does the function get_posts() return in WordPress? A) A single post object B) An array of post objects C) A SQL query string D) A plugin list Answer: B Explanation: get_posts() retrieves an array of WP_Post objects based on arguments passed. Question 11. Which template file is used to display a single post of a custom post type 'product'? A) single.php B) single-product.php C) product.php D) archive-product.php Answer: B Explanation: single-product.php is used for displaying individual posts of the ‘product’ custom post type due to the template hierarchy. Question 12. What does the is_archive() conditional tag check for? A) If the page is an archive page B) If the user is logged in C) If the page is a single post D) If the theme is active

Answer: A Explanation: is_archive() returns true if the current page is an archive (e.g., category, tag, author, or date archives). Question 13. Which function is used to register a custom navigation menu in a theme? A) add_theme_support() B) register_nav_menu() C) wp_nav_menu() D) add_menu_page() Answer: B Explanation: register_nav_menu() or register_nav_menus() are used to declare theme-supported custom navigation menus. Question 14. Which file must be present in every WordPress theme for it to work? A) header.php B) index.php C) functions.php D) footer.php Answer: B Explanation: index.php is required for every theme as the fallback template; without it, the theme cannot function. Question 15. How do you properly enqueue a CSS file in a WordPress theme? A) By adding a link in header.php B) Using wp_register_style() C) By using wp_enqueue_style() in functions.php

C) enable_post_thumbnails() D) register_post_type() Answer: A Explanation: add_theme_support('post-thumbnails') is used in functions.php to enable featured images. Question 19. How do you display a dynamic sidebar in a template file? A) get_sidebar() B) display_sidebar() C) dynamic_sidebar() D) register_sidebar() Answer: C Explanation: dynamic_sidebar() outputs the widgets assigned to a registered sidebar. Question 20. What is required in the main plugin file header for WordPress to recognize a plugin? A) Plugin Name, Version, Author B) Only Plugin Name C) Plugin URI D) License Answer: A Explanation: The plugin header must include at least the Plugin Name, Version, and Author for WordPress to recognize and list the plugin. Question 21. What is the role of register_activation_hook() in a plugin? A) Activates the plugin after installation B) Runs a function when the plugin is activated

C) Registers a new post type D) Loads plugin options Answer: B Explanation: register_activation_hook() runs a specified function once when the plugin is activated. Question 22. Which hook should be used to clean up plugin data on uninstallation? A) register_deactivation_hook B) register_uninstall_hook C) uninstall_plugin D) delete_option Answer: B Explanation: register_uninstall_hook is specifically used to run cleanup code when a plugin is deleted. Question 23. What is the difference between an action and a filter in WordPress? A) Actions modify data, filters execute code B) Actions execute code at specific points, filters modify data C) Filters are for themes only D) They are the same Answer: B Explanation: Actions allow execution of functions at specific points; filters modify data before it is used or displayed. Question 24. Which hook would you use to add a function that runs when a post is saved? A) save_post B) wp_enqueue_scripts

C) Edit the database directly D) Use a theme template Answer: B Explanation: add_meta_box() is used to add custom fields/metaboxes to the post editing screen. Question 28. What is the main purpose of nonce fields in WordPress forms? A) To speed up submissions B) To verify requests and prevent CSRF attacks C) To store user data D) To add widgets Answer: B Explanation: Nonces are used to verify the source and intent of requests, protecting against Cross-Site Request Forgery. Question 29. Which role has the least capabilities in a default WordPress installation? A) Editor B) Contributor C) Subscriber D) Author Answer: C Explanation: The Subscriber role can only manage their own profile and has no content creation privileges. Question 30. How can you prevent file editing from the WordPress dashboard? A) Remove all plugins B) Set DISALLOW_FILE_EDIT to true in wp-config.php

C) Change the theme D) Add a new user role Answer: B Explanation: Adding define('DISALLOW_FILE_EDIT', true); to wp-config.php disables the theme and plugin editor in the dashboard. Question 31. What does a caching plugin like WP Rocket do? A) Creates new user accounts B) Stores pre-generated HTML of pages to reduce server load C) Installs themes D) Generates sitemaps only Answer: B Explanation: Caching plugins store static versions of pages to improve performance by reducing the number of PHP/database calls. Question 32. Which image format is generally preferred for web optimization in 2024? A) BMP B) TIFF C) WebP D) GIF Answer: C Explanation: WebP provides better compression and quality for the web compared to older formats like JPEG or PNG. Question 33. What does the WP_DEBUG constant control? A) The active theme

A) Reinstall WordPress B) Upload files and import the database backup C) Delete .htaccess D) Reset the theme Answer: B Explanation: Restoring from backup requires uploading the saved files and importing the database to recover the site. Question 37. What is the main advantage of using Git for WordPress development? A) Automatic plugin updates B) Version control for code and collaboration C) Faster page loads D) Improved security Answer: B Explanation: Git allows developers to track changes, collaborate, and roll back to previous versions safely. Question 38. Which environment should be used to test updates before deploying to a live site? A) Production B) Staging C) Main D) Public Answer: B Explanation: Staging is a testing environment where changes can be verified without impacting the live/production site.

Question 39. What is a common task performed by WP-CLI? A) Adding users via the command line B) Editing images C) Changing site themes visually D) Managing hosting accounts Answer: A Explanation: WP-CLI allows for management of users, plugins, themes, and options through the command line. Question 40. How do you create a custom endpoint for the WordPress REST API? A) By editing .htaccess B) By using register_rest_route() C) By modifying the wp-config.php D) By changing the database Answer: B Explanation: register_rest_route() is used in plugins or themes to define custom REST API endpoints. Question 41. Which authentication method is commonly used for REST API requests in WordPress 5. and later? A) Basic Auth B) JWT only C) Application Passwords D) FTP Answer: C Explanation: Application Passwords provide a secure way to authenticate REST API requests without exposing user credentials.

Question 45. What is the purpose of add_theme_support('custom-logo')? A) To enable custom background colors B) To allow the theme to support a customizable site logo C) To register a sidebar D) To create a custom post type Answer: B Explanation: add_theme_support('custom-logo') enables the use of a logo uploaded via the WordPress customizer. Question 46. Which hook is used to enqueue scripts and styles properly in themes and plugins? A) wp_head B) wp_enqueue_scripts C) admin_menu D) init Answer: B Explanation: wp_enqueue_scripts is the standard hook to enqueue front-end scripts and styles. Question 47. What is an advantage of using object caching in WordPress? A) Faster theme switching B) Reduced database queries by caching results in memory C) Improved SEO D) Easier plugin installation Answer: B Explanation: Object caching keeps frequently needed data in memory to reduce repeat database hits and improve speed.

Question 48. How can you remove a previously added action in WordPress? A) remove_action() B) delete_action() C) unregister_action() D) stop_action() Answer: A Explanation: remove_action() undoes a previously added action hook. Question 49. What does the term 'nonce' stand for in WordPress security? A) Number used once B) Non-editable content C) Non-standard code D) New option Answer: A Explanation: Nonce stands for 'number used once' and is a security token to prevent replay attacks. Question 50. For which scenario would you use the pre_get_posts filter? A) To change post content before display B) To modify the main query before posts are retrieved C) To display a custom admin menu D) To translate plugin text Answer: B Explanation: pre_get_posts allows you to alter the main query before WordPress fetches posts, useful for modifying queries on the fly.

Question 54. What is the effect of setting WP_DEBUG_DISPLAY to false? A) Debug messages will not be shown on screen B) Debug messages will be logged C) Errors will be emailed D) WordPress will not load Answer: A Explanation: WP_DEBUG_DISPLAY set to false hides debug messages from the browser, useful on production sites. Question 55. Which function is used to create a widget-ready area in a theme? A) register_sidebar() B) add_sidebar() C) get_sidebar() D) dynamic_sidebar() Answer: A Explanation: register_sidebar() declares a new area where widgets can be placed in the theme. Question 56. What does the 'capability_type' argument define in register_post_type()? A) The type of content stored B) The permissions required to manage the post type C) The menu position D) The post format Answer: B Explanation: 'capability_type' sets which permissions are needed to interact with the custom post type.

Question 57. Why is it important to run database maintenance and remove expired transients? A) To increase user registrations B) To reduce database bloat and improve performance C) To change the admin URL D) For plugin activation Answer: B Explanation: Regular cleanup of expired transients and maintenance helps keep the database optimized. Question 58. What does the WP_Query class enable developers to do? A) Update plugins B) Create custom database queries for posts C) Change admin colors D) Install themes Answer: B Explanation: WP_Query allows developers to write advanced queries for retrieving posts and custom content. Question 59. How can file uploads be restricted to administrators only? A) By editing .htaccess B) By filtering the 'user_has_cap' capability C) By changing site URL D) By deleting upload folder Answer: B Explanation: Restricting the 'upload_files' capability with user_has_cap ensures only admins can upload.