WordPress Developer – Intermediate Level Test
Quiz Summary
0 of 29 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 29 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 29
1. Question
In its roadmap for the future WordPress introduced “The Four Phases of Gutenberg”? Which of the following does not belong to these phases?
CorrectIncorrect -
Question 2 of 29
2. Question
What is the purpose of moving a plugin from the `wp-content/plugins` directory to the `wp-content/mu-plugins` directory?
CorrectIncorrect -
Question 3 of 29
3. Question
Why is it important to specify the “alt text” when adding images in the media manager? Select all that apply.
CorrectIncorrect -
Question 4 of 29
4. Question
You are developing a theme that includes a stock image. Which of the following is the best markup? Assume all of the attribute values are factually accurate.
CorrectIncorrect -
Question 5 of 29
5. Question
Permalinks are not working on your website. Which of the following ways might fix them? Select all that apply.
CorrectIncorrect -
Question 6 of 29
6. Question
When creating a multisite network, which two WordPress files will you need to edit during setup?
CorrectIncorrect -
Question 7 of 29
7. Question
You are developing a WordPress website where every user has a public profile page where they can add a single social media link. You have a profile page template which loads the user’s saved social media link into the variable `$socialLink`. How should that variable be output in the profile page template?
CorrectIncorrect -
Question 8 of 29
8. Question
In the code snippet `setcookie(‘user_last_visit’, $user_last_visit, time()+31556926);`, what is the purpose of the third parameter?
CorrectIncorrect -
Question 9 of 29
9. Question
You are developing a cooking blog, and are registering a new ‘ingredients’ taxonomy to allow authors to specify ingredients related to their blog posts.
You are registering the taxonomy as follows: `register_taxonomy( ‘ingredients’, [ ‘post’ ], $args );`.
Which of the following are valid parameters (keys) that can be set within the `$args` associative array? Check all that apply.
CorrectIncorrect -
Question 10 of 29
10. Question
You have at WordPress site located at http://example.com/blog/, and you have created a new category called “pets”, so visitors can see an archive of all your pet related posts at http://example.com/blog/category/pets/.
You would like to heavily change the appearance of just that category page, without affecting the appearance of the index page. What is the standard way to do this?
CorrectIncorrect -
Question 11 of 29
11. Question
Which is the correct template hierarchy order, from least specific to most specific?
CorrectIncorrect -
Question 12 of 29
12. Question
What is the purpose of adding `defined(‘ABSPATH’) or die();` at the top of plugin files?
CorrectIncorrect -
Question 13 of 29
13. Question
Which JavaScript framework is the Gutenberg block system based on?
CorrectIncorrect -
Question 14 of 29
14. Question
Which of the following statements about the function `add_submenu_page` are incorrect?
CorrectIncorrect -
Question 15 of 29
15. Question
You have transfered a WordPress website (code and data) across to a new server, which has a new domain. However, when trying to access your website at that new domain, you are being redirected to the old domain. Which TWO of the following are potential solutions to this problem?
CorrectIncorrect -
Question 16 of 29
16. Question
What would be the standard way to alter post excerpt lengths to be 20 characters long within a WordPress theme?
CorrectIncorrect -
Question 17 of 29
17. Question
You have moved a WordPress website to a new server. Now, when trying to access the website, you get an otherwise blank page saying “Error establishing a database connection”. Which of the following may help diagnose or fix the problem? Select all that apply.
CorrectIncorrect -
Question 18 of 29
18. Question
When creating a new theme, where must `wp_footer()` be placed?
CorrectIncorrect -
Question 19 of 29
19. Question
What is the correct way to implement the setting of document titles in custom themes in modern WordPress websites?
CorrectIncorrect -
Question 20 of 29
20. Question
Your WordPress theme has a class “info” present on all posts, which contains an informative image, and you want to hide it on screen sizes 400 pixels wide or smaller. How do you implement this CSS?
CorrectIncorrect -
Question 21 of 29
21. Question
You want to allow site admins to be able to customize the color of headers in your theme, with the default color being black. What is the correct way to do this?
CorrectIncorrect -
Question 22 of 29
22. Question
Which of the following statements on the prioritization of filter functions registered with `add_filter` are correct? Select all that apply.
CorrectIncorrect -
Question 23 of 29
23. Question
Which statement is correct regarding the GPL2.0 license that WordPress uses?
CorrectIncorrect -
Question 24 of 29
24. Question
How do you enable WordPress debugging output?
CorrectIncorrect -
Question 25 of 29
25. Question
You are developing a plugin that outputs the average of all `amount` entries in a database table. The value is stored in the variable `$avg`.
This value is read frequently. Concerned about performance, you want to cache `$avg` each time the table is updated, rather than recalculating it each time it is to be shown to a user.
Which one function should be called to cache `$avg` whenever it is calculated?
CorrectIncorrect -
Question 26 of 29
26. Question
Within the Loop, how would you output a post title?
CorrectIncorrect -
Question 27 of 29
27. Question
What do we mean when we say that code in a plugin or theme is “DRY”?
CorrectIncorrect -
Question 28 of 29
28. Question
You have just installed a new plugin on a WordPress site that already has many plugins, and now the site is completely inaccessible, including wp-admin. You believe this plugin is to blame.
Given that you can access the server by SSH, how do you immediately fix this without damaging the functionality of the site?
CorrectIncorrect -
Question 29 of 29
29. Question
When using the function `is_page( $page )` in a theme template to selectively run code on a specific page, what values can `$page` be?
CorrectIncorrect