Fiverr & Upwork WordPress Test With Answers 2024

Note: The motive behind creating this Q&A is to help students successfully pass the WordPress test on Fiverr and Upwork. We recommend to prepare yourselves with the below Questions and Answers before starting the test.

Correct answers are in Bold.

1. What should be done if a fatal error message “Out of Memory” is received while adding a new post in WordPress?

Contact hosting provider to get memory increased.
Add clear(‘WP_CACHE’, ‘0’); to your wp-config.php file.
Add define(‘WP_MEMORY_LIMIT’, ’64M’); to your wp-config.php file.
Install a cache plugin and clear the cache memory from it.

2. In this stock quote api for wordpress of yahoo http://download.finance.yahoo.com/d/quotes.csv?s=GOOG&f=ll, what does ‘ s’  stand for?

Stock Format
Stock Variable
Stock Symbol
Stock Supplier

3. How can widgets for individual pages be managed within the page editor?

By creating a new sidebar for every page
By including sidebar.php in every page
By creating a new sidebar for the page, followed by conditional display rules on individual widgets
By using a custom widget plugin

4. Which of the following is the correct way to specifically enable plugins for certain posts and pages that need them?

By going in WordPress plugins section and selecting the specific plugins from there.
Installing a plugin organizer plugin.
By going in the General Settings area.
It can’t be done.

5. How can the social icons on a WordPress page be restored, if they stop working due to implementing infinite scrolling on the page?

Add this code where the code of the social icons are present:
var el = document.body;
if (typeof FB !== “undefined”) { FB.XFBML.parse(el); }
if (typeof twitter !== “undefined”) { twitter.XFBML.parse(el); }
if (typeof googleplus !== “undefined”) { googleplus.XFBML.parse(el); }
Disable the social icons plugin and then enable it again.
Add this code where the code of the social icons are present:
var el = document.body; if (typeof gapi !== “undefined”) { gapi.plusone.go(el); }if (typeof FB !== “undefined”) { FB.XFBML.parse(el); }if (typeof twttr !== “undefined”) { twttr.widgets.load(); }
Clear the browser cache.

6. Which of the following will call the WordPress media uploader form element?

<form enctype=”multipart/form-data” method=”post” action=”<?=bloginfo(“siteurl”);?>/wp-admin/media-upload.php?inline=&upload-page-form=” class=”media-upload-form type-form validate” id=”file-form”>

<a onclick=”return false;” title=”Upload image” class=”thickbox” id=”add_image” href=”/media-upload.php?type=image&TB_iframe=true&width=640&height=105″>Upload Image</a>
<a href=”/media-upload.php?type=image&TB_iframe=true&width=640&height=105″>Upload Image</a>
<form enctype=”multipart/form-data” method=”post” action=”<?=bloginfo(“bloginfo”);?>/wp-admin/media-upload.php?inline=&upload-page-form=” class=”media-upload-form type-form validate” id=”file-form”>

7. Which of the following is the correct way to include the content of one page to another?

wp_get_page($page) to retrieve the content
By using get_page_by_path($path) function to retrieve page content
wp_show_page($page)
show_post($post)

8.Which of the following is the correct way to add a simple WordPress gallery in an external PHP file?

add_filter(‘do_shortcode [ gallery]’, 11);
echo do_shortcode(‘ [ gallery]’);
add_filter(‘widget_text’, ‘do_shortcode [ gallery]’);
This can’t be done.

9. Which of the following will remove anchors from all nodes/levels except the 4th level nodes of a WordPress category?
Parent node (1st level)
–>Child node (2nd level)
—->3rd level node
——>4th level node
Note: There may be more than one right answer.

.cat-item a, .cat-item .cat-item a.hover {cursor: default;} .cat-item .cat-item a.hover {cursor: pointer;}

.cat-item a, .cat-item .cat-item a {cursor: default;} .cat-item .cat-item a {cursor: pointer;}

.cat-item a, .cat-item .cat-item .cat-item .cat-item a {cursor: default;}

.cat-item .cat-item .cat-item a {cursor: pointer;}

.cat-item a, .cat-item .cat-item a:hover {cursor: pointer;} .cat-item .cat-item a:hover {cursor: default;}

10. ____________ can write their own posts but may not publish or delete them. Their HTML is limited to the set of allowed tags and they cannot upload media files.

Contributor
Author
Editor
Subscriber
Administrator

11. What type of tool is WordPress?

It is a just CMS for creating websites
Blogging tool and Partially – CMS
Full Featured Blogging Tool and CMS
Tool to create website with templates and admin section

12. Which among the following is the best way to detect if the current page is the login page in WordPress?
if ($pagenow != ‘wp-login.php’ && !is_admin())
 function is_login_page() {return in_array($GLOBALS[‘pagenow’], array(‘wp-login.php’, ‘wp-register.php’));}
$uri = $_SERVER[‘REQUEST_URI’];echo $uri;
function is_login_page() {return !strncmp($_SERVER[‘REQUEST_URI’], ‘/wp-login.php’, strlen(‘/wp-login.php’));}

13. What is the output of the following code?
[sourcecode language=”r”]
Your R code and comments
x <- rnorm(100)
y <- x + 10
[/sourcecode]
Number of the comments in blog post limited to 100
R removed from the blog post
Removed comments from blog post
embed R in blog post

14. How would you extend the time of the WordPress login session?

add_filter( ‘auth_cookie_expiration’, ‘stay_logged_in_for_1_year’ );
function stay_logged_in_for_1_year( $expire ) {
return 31556926; // 1 year in seconds}

add_filter(‘auth_cookie’, ‘stay_logged_in_for_1_year’);
function stay_logged_in_for_1_year($expire) {
return 31556926;}
add_filter(‘secure_logged_in_cookie’, ‘stay_logged_in_for_1_year’);
function stay_logged_in_for_1_year($expire) {
return 31556926;}

15. Which of these are a part of WordPress API?
Note: There may be more than one right answer.
Theme Modification API
Metadata API
Theme Update API
Settings API
Options API
Theme Customization API

User API
Update API 

16. Which of the following is the correct way for enabling support for Post Thumbnails?
add_theme_support( ‘thumbnails’ );
add_support( ‘post-thumbnails’ );
add_theme_support( ‘post-thumbnails’ );
theme_support( ‘thumbnails’ );

17. Which concept does WordPress uses to control user access to different features?
Username
Access tokens
Role
Cookies

18. How do you enable the Network Setup menu item(enable Multisite) in WordPress?
Install WP MU plugin
Activate WP Multisite in Settings menu
Set WP_ALLOW_MULTISITE as true in wp-config.php
WP MU has been discontinued as a separate project so there is no way to set up multisites in WP now

19. Which constant is NOT recognized in wp-config.php?
WP_SITEURL
WP_CONTENT_DIR
WP_CONTENT_URL
WP_HOME_URL

20. Select all the default post types in WordPress.
Note: There may be more than one right answer

post
page
attachment
revision
nav_menu_item

21. What is the default table prefix in WP?
_wp
w_
wp_
wp-

22. What is WordPress multisite?
Special version of WordPress that can support many sites and is not free.
WP configuration feature that supports multiple sites.
A WP plugin that supports multiple sites.
A popular WP theme that supports multiple sites.

23. Which is the most important file that should be deleted from your WordPress install directory once you’ve completed setup?
setup-example.xml
wp_config_sample.php
wp-config-sample.php
wp-setup-sample.php

24. Which files are a minimum required by a theme to function?
style.css and functions.php
style.css and index.php
index.php and functions.php
index.php, functions.php and style.css

25. How can an <li> tag’s class and ID attributes be removed from menu items and page lists?

add_filter(‘nav_menu_css_class’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘nav_menu_item_id’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘page_css_class’, ‘my_css_attributes_filter’, 100, 1); function my_css_attributes_filter($var) { return is_array($var) ? array() : »; }
add_filter(‘nav_menu_css_class’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘nav_menu_item_id’, ‘my_css_attributes_filter’, 100, 1); function my_css_attributes_filter($var) { if(is_array($var)){ $varci= array_intersect($var, array(‘current-menu-item’)); $cmeni = array(‘current-menu-item’); $selava = array(‘selectedmenu’); $selavaend = array(); $selavaend = str_replace($cmeni, $selava, $varci); } else{ $selavaend= »; } return $selavaend; }
add_filter (‘wp_nav_menu’,’strip_empty_classes’); function strip_empty_classes($menu) { $menu = preg_replace(‘/ class=([«\’])(?!active).*?\1/’,»,$menu); return $menu; }
None of the above

26. Which files are required for a theme to function?
style.css, functions.php
style.css, index.php
index.php, functions.php
index.php, functions.php, style.css

27. You need a single post meta value in a bigger post loop and you need it only one time, and you want it to be as fast as possible. How would you proceed?

Of course, get_post_meta($post->ID, ‘post_meta’, true);
I would use a direct query like: $wpdb->get_var($wpdb->prepare(«SELECT meta_value from $wpdb->postmeta WHERE post_id = %d and meta_key = ‘post_meta’”, $post->ID));
I would use a direct query like: $wpdb->get_results($wpdb->prepare(«SELECT * from $wpdb->postmeta WHERE meta_key = %s”, ‘post_meta’));

28. Select all the default taxonomies in WordPress.
Note: There may be more than one right answer

post_category
post_tag
link_category

product_tag
post_format
category
 

29. How do you enable debug mode in WP?
By going to Dashboard > Settings > General and then enable debug mode
By setting WP_DEBUG as true in wp-config.php
It is enabled by default

30. Where can you change the Timezone used by WordPress in the dashboard?
In Settings > Media
In Settings > General
In Settings > Reading
In Settings > Writing

31. What are the default plugins installed in the WordPress?
Note: There may be more than one right answer.
Contact form7
Akismet
All in one SEO
Hello Dolly

32. What is the name of self-hosted version of WordPress?
WordPress.com
WordPress.org
Open Source WordPress
WordPress online

33. Which default WP function can be used to assign different classes to the body element?
body_class()
get_theme_support()
sanitize_html_class()

34. Which function(s) can be used to programatically create a new user in WordPress?
Note: There may be more than one right answer.
wp_update_user
wp_create_user
register_new_user
wp_insert_user

35. Retrieve all the post types that support thumbnails or excerpts.

get_post_type(array(‘supports’ => array(‘thumbnail’, ‘excerpt’)), ‘names’, ‘or’);
post_type_supports(‘post’, array(‘thumbnail’, ‘excerpt’), ‘or’);
get_post_types_by_support(array(‘thumbnail’, ‘excerpt’), ‘or’);

36. Which of the following functions check if current visitor is a logged in user?
is_visitor_logged_in ();
is_user_logged_in ();
if_user_logged_in ();
is_user_logged ();

37. Is it possible to bypass trash and force deletion with wp_delete_post() function?
No
Yes

38. Which one of the following files is located in the root of your WordPress installation directory and contains your website’s setup details, such as database connection info?
setup.html
wp-setup.php
wp-config.php
wp-install.php

39. What type of hook is wp_meta
Action Hook
Filter Hook

40.How will you check if a page exists for a given URL?
get_page_by_path()
get_page_url()
get_page_link()
get_page_uri()

41. What can the Contributor role do?
Moderate comments
Publish posts
Edit posts
Edit pages

42. Is it possible to create posts programmatically?
No
Yes, with wp_insert_post() function
Yes, with wp_add_post() function
Yes, with wp_create_post() function

43. What is common to all these functions: next_post, previous_post, link_pages, the_author_url, wp_get_link?
They all return URLs
They are all deprecated
They all point to posts or post lists
They all echo something

44. How to display the value of a post meta field named my_custom?
$post_meta = get_post_meta($post->ID, ‘my_custom’, true);
echo $post_meta;

$post_meta = get_post_meta($post->ID);
echo $post_meta;
echo get_meta($post->ID, ‘my_custom’);

45. Pick the correct default Post Types readily available to users or internally used by the WordPress installation.
Note: There may be more than one right answer.

Post
Page
Blog
Media
Archive
Category

46. Which of the following is incorrect possible value for $show attribute of bloginfo($show) function?
‘name’
‘description’
‘homeurl’
‘admin_email’

47. Where can you set a static page as the front page in WP?
In wp-config.php
In Dashboard->Settings->Reading
In Dashboard->Settings->General
In Dashboard->Appearance

48. How you determine if a script has been enqueued correctly?
has_enqueue_script(‘my-script-handle’);
wp_script_is(‘my-script-handle’, ‘enqueued’);
is_script_loaded(‘my-script-handle’);

49. How do you check if the current user has the role “administrator”?
Note: There may be more than one right answer.

current_user_can_do(‘manage_options’);
is_admin();
current_user_can(‘administrator’);
current_user_can_do(‘manage’);
in_array(‘administrator’, wp_get_current_user()->roles);

50. What is the correct way for displaying navigation menu called “Primary Menu”?

wp_nav_menu( array(
‘menu’ => ‘Primary Menu’) );

wp_navigation_menu( array(
‘menu’ => ‘primary-menu’) );
wp_navigation( array(
‘menu’ => ‘Primary Menu’) );
wp_menu( array(
‘menu’ => ‘primary-menu’) );

51. Which of the following is true about bloginfo(‘url’); function?
Displays URL of the active theme’s directory.
Displays the “Site address (URL)” set in Settings > General. This data is retrieved from the “home” record in the wp_options table.
Displays the current post URL.
Displays the “WordPress address (URL)” set in Settings > General. This data is retrieved from the “siteurl” record in the wp_options table.

52. How do you know if a WordPress action has been previously fired?
Using the has_action(‘my_action’) function.
Using the did_action(‘my_action’) function.
Using the current_filter function. 

53. Clean up a comma-separated list of post ids. Example list: 1254,9930,10974,”192”,9930,192
array_map(‘absint’, ’1254,9930,10974,”192”,9930,192’);
explode(1254,9930,10974,”192”,9930,192);
wp_parse_id_list(1254,9930,10974,”192”,9930,192); 

54. What is the correct way to use the _n() function?
printf( _n( ‘The post has 1 star.’, ‘The post has %d stars.’, $view_count ), $view_count );
printf( _n( ‘The post has %d star.’, ‘The post has %d stars.’, $view_count ), $view_count );

55. How many WordPress posts can you create?
WordPress recommends less than 10,000 posts.
WordPress is limited to 1,000 posts.
WordPress has not set any limit.
WordPress is limited to 1,00,000 posts.

56. In which way MD5 hash does wordpress stores and represents?
In Hex string
In Base64 string
in raw data file
text file

57. Sometimes you might want to disable all the automatic background updates of WordPress, extensions, themes and languages. How would you accomplish that?
Note: There may be more than one right answer

via a define in wp-config.php: define(‘AUTOMATIC_UPDATER_DISABLED’, true);
with a filter: add_filter(‘automatic_updater_disabled’, ‘__return_true’);
I’m using git, so I would use a special filter:
add_filter(‘automatic_updates_is_vcs_checkout’, ‘__return_false’, 1); 

58. You need to include a link in a sentence. How can you do that?
_e( ‘Publish something using our Post by Email feature.’ );
printf( __( ‘Publish something using our Post by Email feature.’), ‘http://support.wordpress.com/post-by-email/’ );
printf( __( ‘Publish something using our %s feature.’ ), sprintf( ‘%s’, __( ‘Post by Email’ ) ) );

59. Select all the WordPress supported audio formats.
Note: There may be more than one right answer
aiff
mp3
ogg

flac
wma
m4a
wav

60. Assuming we are using ‘wp_’ as the database table prefix, in which table are all the custom fields related to a post stored?
wp_posts
wp_postmeta
wp_terms

61. Is it possible to disable the trash and delete the posts immediatelly?
No.
Yes, via a define in wp-config.php: define(‘EMPTY_TRASH_DAYS’, 0);
Yes, via a define in wp-config.php: define(‘EMPTY_TRASH_DAY’, 0);

62. Which is the default site update service that WordPress automatically notifies when you publish a new post?
http://www.feedsubmitter.com
http://rpc.pingomatic.com
http://google.com
http://ping.feedburner.com

63. Which of the following is not a WordPress role?
System
Subscriber
Administrator
Editor

64. Which of the following is not a default image size in WP?
Small Size
Medium Size
Large Size
Thumbnail Size

65. Which of the following is an example of a WordPress plugin that provides pagination capabilities?
Page Break
Page Generator
WP-PageNavi
Page-list

66. What is a permalink?

Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings.
The numeric IP address of your WordPress site.
The complete URL of your WordPress site.
A popular WordPress plugin.

67. Which from below are default post types in WordPress and are readily available to users or internally used by the WordPress installation by default:
Note: There may be more than one right answer
Post
Page
Links
Attachment
Revision
Comments
Navigation menu

68. Which of the following is not a default user role in WP?
Blogger
Author
Subscriber
Contributor

69. What are WordPress hooks?
Setting options available to WordPress administrators.
Security functions that run inside WordPress
Group of plugins which control WordPress behavior.
Ways to change the default behavior of WordPress.

70. How many WordPress themes can be installed in a single WordPress installation?
1
10
100
Unlimited

71. _____________ can publish, edit, and delete their own posts. They cannot write pages. They can upload some kinds of media files, and they are allowed to use only the limited set of HTML tags.
Contributor
Author
Editor
Subscriber
Administrator

72. Which WP global object is used to execute custom database queries?
$wpdb
$wp_db
$db_query
$wp_query

73. Arrange the following templates in decreasing order of priority from left to right for Site Front Page:
index.php
front-page.php
home.php
index.php, front-page.php, home.php
front-page.php, home.php, index.php
home.php, front-page.php, index.php
front-page.php,index.php home.php

74. Is it possible to retrieve list of custom taxonomy terms with get_terms() function?
Yes
No

75. What database does WordPress use?
Notes
PostgreSQL
MySQL
Oracle

76. What is true about the_meta() function?
Note: There may be more than one right answer

This is a function for displaying custom fields for the current post, known as the “post-meta” (stored in the wp_postmeta table).
It formats the data into an unordered list.

It may be used outside the loop.
the_meta() will ignore meta_keys (i.e. field names) that begin with an underscore.

76. Which of the following files in a WP theme is NOT a file required by the theme review team for acceptance into the WordPress.org theme directory?
page.php
style.css
index.php
comments.php
screenshot.png

77. Which of the following will change the default ordering of categories in the WordPress post edit page?
Adding ‘checked_ontop’ => FALSE to the args in wp_terms_checklist() in the functions.php file
Disabling category ordering in the WordPress admin settings
Setting category_ordering=false in the wp-config.php file
Adding ‘category_ordering’ => FALSE to the args in wp_terms_checklist() in the functions.php file

78. If you need to store information temporarily, which WordPress system would you use:
Options
Meta tables
Transients
The REST API

79. Select all of the supported page statuses in WordPress.
Note: There may be more than one right answer.

draft (Draft)
pending (Pending Review)
private (Private)
publish (Published)

80. Which of the following is the correct way to register shortcode?
function foobar_func ( $atts ){return “foo and bar”;}new_shortcode( ‘foobar’, ‘foobar_func’ );
function foobar_func ( $atts ){return “foo and bar”;}insert_shortcode( ‘foobar’, ‘foobar_func’ );
function foobar_func ( $atts ){return “foo and bar”;}register_shortcode( ‘foobar’, ‘foobar_func’ );
function foobar_func ( $atts ){return “foo and bar”;}add_shortcode( ‘foobar’, ‘foobar_func’ );

81. Which of the following strings is not a default WordPress post format slug?
aside
image
quote
status

82. Which HTML tags are not allowed to be used in a post comment?
Note: There may be more than one right answer
code
form
img
strike
table

83. Which hook can be used to update kses and TinyMCE to allow select new attributes for an HTML element?
tool_box
tiny_mce_before_init
tiny_mce_plugins
htmledit_pre

84. What is the difference between filters and actions?
An action is defined as a function that takes in some kind of input, modifies it, and then returns it whereas a filter is just a place where you call a function, and you don’t really care what it returns
A filter is defined as a function that takes in some kind of input, modifies it, and then returns it whereas an action is just a place where you call a function, and you don’t really care what it returns
There is no difference. Both are used for hooking into an action.

85. Where plugins options are stored in WordPress?
They are stored in WordPress theme folder.
They are stored in WordPress plugins folder.
They are stored in WordPress.org and not on your site.
They are stored in WordPress Database.

86. When is it recommended to rebuild the $wp_rewrite object with the flush_rewrite_rules() function?
once in a while
after every one hour
on every custom post type page load
after activatation and deactivation of a custom post types plugin

87. When adding a function to the “the_content” hook, where will you see changes?
On the blog list page.
On the single post page.
It depends on how your theme is set up.
On the archive page.

88. What is the WordPress way of adding a query variable to an URL
site_url(‘?’ . $foo . ‘=’ . $bar);
home_url(‘$’ . $foo . ‘=’ . $bar);
add_query_arg($foo, $bar, home_url());

89. Which standard WP class do you need to necessarily extend to create your widget?
WP_Widget
WP_Widget_Form_Customize_Control
WP_Customize_Control
WP_Customize_Sidebar_Section

90. Display the current pagination number.
$page = get_page(‘1’);
echo ‘Current page: ’ . $page->post_paged;
$paged = get_query_var(‘paged’, 1);
echo ‘Current page: ’ . $paged;
$page = get_post(‘1’);
echo ‘Current page: ’ . $page->post_paged;

91. Which of the following is true about wp_mail() function?
Note: There may be more than one right answer.

A true return value does not automatically mean that the user received the email successfully.
For this function to work, the settings SMTP and smtp_port (default: 25) need to be set in your php.ini file.
The default content type allows using HTML.
The function can handle only one email as $to parameter.

92. Which hook fires after WordPress has finished loading but before any headers are sent?
activate_wp_head
init
activate_header
xmirpc_call

93. What WordPress function would you use to retrieve the name of the current action?
current_filter
current_action_name
current_hook

94. Which loop is used by default to fetch the posts and loop through them?
for loop
while loop
foreach loop

95. “X people have seen this post” should be output like this:
printf( _n( ‘%d person has seen this post.’, ‘%d people have seen this post.’, $view_count ), $view_count );
printf( __( ‘%d people have seen this post.’ ), $view_count );
echo _n( ‘One person has seen this post’, “$view_count people have seen this post.” );
printf( _n( ‘%d person has seen this post.’, ‘%d people have seen this post.’ ), $view_count );
printf( 1 == $view_count ? __( ‘%d person has seen this post.’ ) : __( ‘%d people have seen this post.’ ), $view_count );

96. Pick the default template tag(s).
Note: There may be more than one right answer.

the_field()
wp_title()
the_title()
wp_field()

97. When should the wp_kses function for Data Validation be run?
At the time of form submission
Before the data is saved in the database
before the data is being rendered on the webpage

98. Arrange the following templates in decreasing order of priority from left to right used to display the posts on a Category page.
index.php
category.php
archive.php
category-ID.php
category-slug.php
category-ID.php, category-slug.php, category.php, archive.php, index.php
category-slug.php, archive.php, category.php, category-ID.php, index.php
index.php, category.php, archive.php, category-ID.php, category-slug.php
category-slug.php, category-ID.php, category.php, archive.php, index.php

99. How would you retrieve an array of all the post tags?
Note: There may be more than one right answer
get_terms(‘post_tag’, array(‘hide_empty’ => false));
get_terms(array(‘taxonomy’ => ‘post_tag’, ‘hide_empty’ => false));
get_term();
wp_terms()
wp_terms_checklist();

100. Which function should be used to insert a post title into the title attribute of an HTML element?
get_the_title();
the_title_attribute();
the_title();

101. What is the name of table in database which stores custom fields data?
wp_custommeta
wp_options
wp_terms
wp_postmeta

102. Which of the following is/are NOT the default abstract methods available in the Walker class for menus?
Note: There may be more than one right answer.
start_lvl()
end_lvl()
start_li()
end_li()

103. What does wp_rand() function?
Gets random post ID.
Gets random category ID.
Generates a random post ID for wp_insert_post() function.
Generates a random number

104. Which deprecated functions are still in use in WordPress?
register_globals()
magc_quotes()
addslashers()
get_permalink()

105. Is it possible to update posts programmatically?
Yes, with wp_edit_post() function.
Yes, with wp_update_post() function.
Yes, with wp_change_post() function.
No.

106. Which of the following categories of persons can read a post locked by password?
Only administrators, editors and authors.
Registered users who know a password.
Anyone who knows a password

107. Where do you change theme name and author details?
style.css file in the theme folder
index.php file in the theme folder
readme.txt file in the theme folder

108. In a WordPress multisite, how can a new blog site be added from the Network Admin panel?
add_action( $tag, $function_to_add, $priority, $accepted_args);
define (‘WP_ALLOW_MULTISITE’, true);
do_action (‘wpmu_blog’, $blog_id, $user_id, $domain, $path, $site_id, $meta);
do_action (‘wpmu_new_blog’, $blog_id, $user_id, $domain, $path, $site_id, $meta);

109. What is the correct order of priority in decreasing order from left to right for Custom Post Type template files?
single-{post-type}-{slug}.php, single-{post-type}.php, single.php, singular.php, index.php
single-{post-type}.php, single-{post-type}-{slug}.php, single.php, singular.php, index.php
single-{post-type}.php, single.php, singular.php, single-{post-type}-{slug}.php, index.php
index.php, singular.php, single-{post-type}-{slug}.php, single-{post-type}.php, single.php

110. What is Automated Testing in WordPress?
Automated testing is running test cases where manual intervention is not required to run each one.
It is a plugin which is used to test your custom template or plugin.
It is a function available in WordPress to test the custom template/plugin.
Thereess.

111. What is the name of theme file for a page with slug ‘about’?
page-slug-about.php
page-about.php
about.php

112. You want to schedule a backup of your site database but do not have enough permissions to access your host. Which of the following choices can help you perform this task?
Use phpMyAdmin.
Install “wp database backup” plug-in.
Use cron job to schedule.
Cannot schedule.

113. Which of the following actions must be performed before upgrading WordPress?
Back up the site.
Ensure that the database user name registered to WordPress has permission to create, modify, and delete database tables.
Deactivate plug-ins.
Enable FTP on the site.
c, and d
b, and c

114. Which of the following files must be deleted after installing WordPress 4.1?
wp-admin/install.php
install.php
installation.php
None of these files.

115. On which of the following databases can WordPress 4.1 be installed by default?
MySQL
Oracle
Microsoft SQL Server
Postgres

116. In WordPress 4.1, you can override database values for your site URLs in wp-config.php.
Yes
No

117. After moving a WordPress 4.1 site to a new host, if you change your site’s URL, you have to update your posts and pages to correct paths to the uploaded media files.
True
False

118. Is it possible to run more than one site/blog from a single installation of WordPress 4.1 ?
Yes
No

119. What is the first action you need to take for enabling WordPress 4.1 MU feature?
Enable WordPress MU feature on admin panel
Enable Network feature
Add this code to wp-config.php file: define( ‘WP_ALLOW_MULTISITE’, true );

120. Is super cache a built-in plugin of WordPress 4.1 ?
Yes
No

121. From which version of WordPress can you choose your username during the installation process?
2.7
2.8
3.0
4.0.1
4.1

122. Can you move your wp-config.php file to the parent directory without changing any settings?
Yes
Yes, provided that you are installing WordPress in your web root directory (such as public_html). Otherwise, it is imposible.
No

123. Can you move your wp-content folder elsewhere or rename it to something else without changing any settings?
Yes
No

124. A possible way to collect real-time statistics about traffic to a WordPress site is to:
One possible way to collect real-time statistics about traffic to a WordPress site is to:
use a built-in tool
use a plug-in
use a widget
None of the above: these statistics cannot be collected.

125. The date/time format of a WordPress site can be changed in __________________.
the theme’s source code
admin settings
the database
the config file

126. Which of the following blog sites can be imported into WordPress?
MySpace
Yahoo blog
Bebo
Blogspot
Opera
All of the above.

127. Can you import content from joomla or mambo site into wordpress?
Yes
No

128. Can you import content from static HTML files into wordpress?
Yes
No

129. User Level 0 converts to …
Contributor
Author
Editor
Subscriber
Administrator

130. User Level 10 converts to …
Contributor
Author
Editor
Subscriber
Administrator

131. A taxonomy is a _______.
category
term
group of terms

132. Can you set individual password for each post?
Yes
No

132. Who of the following persons can read a post locked by password?
Only administrators, editors and authors
Registered users who knows a password
Anyone who knows a password

133. What is the limitation to the depth of your categories?
10 levels
20 levels
No limit levels

134. Which of following action must be performed before using Akismet Plugin?
Simply install it.
Create an account at wordpress.com.
Create an account for this plug-in on your own site.

135. In order to display a widget, the user must _________________.
set the “show property” of the desired widget to “true”
drag the desired widget to the side bar
add the desired widget to the post
change the source code

136. Which of the following methods can be used to eliminate spam?
Using the wp-captcha-free plug-in.
Using the askimet plug-in.
Using a widget.
None of the above.
a and b

137. In WordPress 4.1, which of the following theme files can be used to customize the “page not found error” error page?
index.php
404.php
functions.php
page.php

138. Is the functions.php file required in each theme in the WordPress 4.1 website?
Yes
No

139. What is the name of theme file for a page with slug ‘about’?
page-slug-about.php
page-about.php
about.php

140. What is the name of theme file for a page with id ‘3’?
page-id-3.php
page-3.php
3.php

141. What is the right order (by priority in use) to display page in Template Hierarchy?
page-{slug}.php, page-{id}.php, page.php, index.php
page-{id}.php, page-{slug}.php, page.php, index.php
page-{slug}.php, page-{id}.php, page.php, archive.php, index.php
page-{slug}.php, page-{id}.php, page.php, 404.php

142. What is the right order (by priority in use) to display category in Template Hierarchy?
category -{slug}.php, category-{id}.php, category.php, index.php
category -{id}.php, category-{slug}.php, category.php, index.php
category -{slug}.php, category-{id}.php, category.php, archive.php, index.php
category -{slug}.php, category-{id}.php, category.php, 404.php

143. What is the right order (by priority in use) to display tag in Template Hierarchy?
tag -{slug}.php, tag-{id}.php, tag.php, index.php
tag -{id}.php, tag -{slug}.php, tag.php, index.php
tag -{slug}.php, tag -{id}.php, tag.php, archive.php, index.php
tag -{slug}.php, tag -{id}.php, tag.php, 404.php

144. What is the right order (by priority in use) to display taxonomies in Template Hierarchy?
taxonomy -{taxonomy}.php, taxonomy-{id}.php, taxonomy.php, index.php
taxonomy -{taxonomy}-{term}.php, taxonomy-{taxonomy}.php, taxonomy.php, archive.php, index.php
taxonomy -{ taxonomy}.php, taxonomy.php, archive.php, index.php
taxonomy.php, archive.php, index.php

145. The “function_exists()” function can be used to check whether a plug-in is activated or not.

True
False

146. The WordPress loop can be used ______.
to retrieve any data in WordPress
to display every post
only for calculation
WordPress loop cannot be used for any purpose.

147. Using _______ is a good way to ensure that a WordPress site is indexed by search engines.
a sitemap
robot.txt
a widget

148. One way to make a WordPress 4.1 page title more SEO friendly is to____
use the wp-changetitle plug-in
use a widget
change the title tag in header.php to something like “blog name »» category »» post name

149. Meta tags can be added to WordPress 4.1 pages by _______.
using plug-ins
adding them to the header.php file
updating the database
a and b
b and c

150. Which of the following methods can be used to make permalinks SEO friendly?
Updating the database.
Changing the source code.
Configuring the feature in the config file.
Configuring the feature in the admin settings.

152. Which role is not for Contributor:

read
edit_posts
edit_published_posts
delete_posts

153. Which of the following are the minimum standards that your server should support for WordPress 4.1
PHP version 4.4.9 or greater and MySQL version 4.0 or greater
PHP version 5.2.4 or greater and MySQL version 5.0.15 or greater
PHP version 4.4.9 or greater and MySQL version 5.1 or greater
PHP version 5.0 or greater and MySQL version 5.1 or greater

155. In relation to get the blog indexed in Google search, which of the following terms processes the information and also determines the quality of the content, so that the information can be placed appropriately on Google pages?
Crawling
Indexing
Googlebot

156. Which of the following types of permalinks are available in WordPress 5?

Default
PATHINFO
mod_rewrite

157. Which of the following options is the correct order (by priority in use) to display tag in template hierarchy?
tag-{slug}.php, tag.php, tag-{id}.php, archive.php, index.php
tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php
archive.php, index.php, tag-{slug}.php, tag-{id}.php, tag.php
tag-{id}.php, tag-{slug}.php, tag.php, archive.php, index.php

158. Which of the following options are the correct tables that will always be backed up while taking backups in WordPress?

wp_links
wp_terms
wp_users
wp_postmeta

159. Which of the following options is a program that can be used to manipulate the databases remotely through a web interface?

W3 Total Cache
phpMyAdmin
MariaDB
WP Super Cache

160. Which of the following plugins can be used in WordPress 5 for two-step authentication?
1. Duo
2. Google Authenticator
3. WordFence
4. Rublon
All 1, 2, 3, and 4
Only 1, 2, and 3
Only 2, 3, and 4
Only 1, 3, and 4

161. Which of the following options is the correct order (by priority in use) to display category in template hierarchy?

index.php, category-{slug}.php, category-{id}.php, category.php, archive.php
category.php, archive.php, category-{slug}.php, category-{id}.php, index.php
category-{slug}.php, archive.php, category-{id}.php, category.php, index.php
category-{slug}.php, category-{id}.php, category.php, archive.php, index.php

162. In WordPress, a contributor has which of the following capabilities?
read
delete_posts
edit_posts

publish_posts

163. You can use the pre_get_posts filter hook for including custom posts into your main query of blog posts.

True
False

164. In relation to posts screen, which of the following options is the default view in the table of posts?

List view
Excerpt view

None of the above.

165. Which of the following statements are correct about the “Pages” post type in WordPress?

You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.
They can be displayed in a reversed time-based order.
They do not make use of categories like posts do.
None of the above.

166. If you have shell access to your server, then which of the following commands can you use to change the file permissions for files recursively?

find /path/to/your/wordpress/install/ -type d -exec chmod 777 {} \;
find /path/to/your/wordpress/install/ -type f -exec chmod 755 {} \;
locate /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;
find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;

167. WP Super Cache is not a static page caching plugin for WordPress.

True
False

168. In relation to dashboard screen in WordPress 5, which of the following options are provided by the At a Glance widget?

Most recent comments
Number of posts
Number of pages
Number of comments

Recently published posts

169. While updating WordPress, which of the following options can be the correct reason for the given message on the screen?
“Briefly unavailable for scheduled maintenance. Please check back in a minute.”

maintain.php
htaccess web.config
web.config
.maintenance file

170. In relation to backing up your WordPress database, which of the following tools can be used for taking backup only in Windows operating system?

EMS SQL Management Studio for MySQL
Aqua Data Studio
Navicat for MySQL

171. Which of the following plugins can be used to improve the performance by caching your WordPress posts and pages as the static files?
1. W3 Total Cache
2. WP Super Cache
3. Cache Enabler
All 1, 2, and 3
Only 1 and 2
Only 1 and 3
Only 2 and 3

172. Which of the following options is the correct order (by priority in use) to display a single page in template hierarchy?

custom template file, page-{slug}.php, page-{id}.php, page.php, singular.php, index.php
custom template file, page-{id}.php, page-{slug}.php, page.php, singular.php, index.php
singular.php, index.php, page-{id}.php, page-{slug}.php, page.php, custom template file
index.php, custom template file, page-{id}.php, page-{slug}.php, page.php, singular.php

173. Which of the following options is an open source WAF (web firewall) that can be installed at a web server to filter the content before it is processed by WordPress?

iThemes Security
WordFence
ModSecurity
Shield

174. By default, which of the following databases is used by WordPress 5?

PostgreSQL
Microsoft SQL
Server MySQL
Oracle

175. In relation to screen options in WordPress, which of the following items/ modules is/ are hidden by default?
1. Posts
2. Tags

Only 1
Only 2
Both 1 and 2
Neither 1 nor 2

176. In WordPress, which of the following options are the incorrect capabilities of the Author role?

delete_published_posts
delete_published_pages
edit_posts
manage_links

177. By default, WordPress makes use of which of the following files in a theme for displaying posts of any type of the front-end of a website?

index.php
single.php
archive.php

178. WordPress 5 is written in which of the following languages?

Java
C++
PHP
Go

179. Which of the following capabilities are only available in the Super Admin role?

manage_network_plugins
delete_plugins
manage_categories
setup_network

180. Which of the following statements is/ are correct about the post types in WordPress?

Attachments can make use of the wp_postmeta table to store the extra information like image’s metadata.
Each theme in WordPress can have its own custom CSS post.
Both options a and b
Neither option a nor b

181. Which of the following options are the correct files that are required for making a theme in WordPress?
1. index.php
2. style.css
3. theme.php

All 1, 2, and 3
Only 1 and 2
Only 1 and 3
Only 2 and 3

182. By default, meta tags are included in WordPress.

True
False

183. In WordPress, a subscriber has which of the following capabilities?

read
delete_posts
edit_posts
publish_posts

184. In WordPress, which of the following attacks can you see via the logs?
1. Cross Site Scripting (XSS)
2. Remote File Inclusion (RFI)
3. Local File Inclusion (LFI)
4. Directory Traversal attempts
All 1, 2, 3, and 4

Only 1, 2, and 3
Only 2, 3, and 4
Only 1, 3, and 4

185. Which of the following options are the correct capabilities of the Editor role in a single site WordPress installation?

manage_categories
manage_links
update_themes
manage_options

186.Which of the following roles has the unfiltered_html capability in a single site WordPress installation?

Administrator
Editor
Author
Contributor

187. You can edit the .htaccess file by FTP or shell.

True
False

188. You can adjust the length of cookies with the ‘auth_cookie_expiration’ hook.

True
False

189. In relation to the roles of WordPress 5, which of the following options can only publish and manage their own posts?

Editor
Author
Subscriber
Contributor

190. While blogging in WordPress, which of the following options is the collection of programming scripts that can be used to add additional functionality to the blogs?

Post Slug
Excerpt
Plugin
Pingback

191. In relation to caching in WordPress, Varnish cache application is supported on which of the following platforms?

Windows 7
Linux
FreeBSD

192. What is the default value of the SCRIPT_DEBUG constant?

true
false

193. Which of the following is the correct option that is the default theme of WordPress 5?

Gravatar
Twenty Nineteen
Permalink
None of the above.

194. Which of the following options are the valid filters in template hierarchy?

singular_template
search_template
embed_template
author_template

195. Which of the following definitions of the WP_DEBUG constant can be used to trigger the debug mode throughout WordPress?

define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG’, ‘true’ );
define( ‘WP_DEBUG’, ‘1’ );
define( ‘WP_DEBUG’, “true” );

196. How can you access Your Profile Screen in WordPress?
1. From the main navigation menu under Users.
2. By clicking on the name link at the top of the WordPress screen.

Only 1
Only 2
Both 1 and 2
Neither 1 nor 2

197. In relation to profile screen in WordPress, which of the following personal options are available that can be configured?

Visual editor
Admin Color Scheme
Syntax Highlighting
Toolbar

198. In relation to WordPress editor, which of the following options is the default block type?

Paragraph
Image
Heading
Gallery

199. The given command can be used to backup all the database tables.
mysqldump –add-drop-table -h mysql_hostserver -u mysql_username -p mysql_databasename

True
False

200. In relation to posts screen, which of the following columns are displayed in the table of posts?

Title
ID
Categories
Tags
Author

201. Can you import content from a static HTML site to WordPress?

Yes
No

202. While selecting the color scheme under the personal options in WordPress, which of the following colors are the menu background colors?

Last two colors
Middle two colors
First two colors
None of the above.

203. In relation to WordPress site, which of the following options is correct about a sitemap?

It is an enhancement to your existing URLs that can improve SEO of your website.
It is a single page listing of all the posts on your website.
It is a collection of all the visited links on a WordPress website.
None of the above.

204. Which of the following you should avoid while choosing a password?
1. Permutation of your real name, username, or company name.

2. A word from a dictionary, in any language.
3. Any numeric-only or alphabetic-only password.
4. Any password containing numeric, alphabets, and special symbols.

All 1, 2, 3, and 4
Only 1, 2, and 3
Only 1, 2, and 4
Only 2, 3, and 4

205. While exporting your WordPress data, which of the following data can you export?
1. Posts
2. Pages
3. Comments
4. Categories
5. Custom taxonomies

All 1, 2, 3, 4, and 5
Only 1, 2, 4, and 5
Only 2, 3, 4, and 5
Only 2, 4, and 5
Only 1, 2, 3, and 4

206. Which of the following options is a correct example of PATHINFO permalinks?

http://example.com/?p=N
http://example.com/2012/post-name/
http://example.com/2012/12/30/post-name
http://example.com/index.php/yyyy/mm/dd/post-name/

207. The given URL is an example of which of the following permalinks

Default
PATHINFO
mod_rewrite
None of the above.

208. By default, all the published pages are added to the menu automatically by WordPress.

True
False

209. Which of the following options is the correct order (by priority in use) to display home page in the template hierarchy?

home.php, index.php, front-page.php, page.php
front-page.php, home.php, page.php, index.php
index.php, front-page.php, home.php, page.php
front-page.php, index.php, home.php, page.php

210. By default, which of the following post types are always included within a WordPress installation?

Attachments
Custom CSS
Changesets
Posts

211. Which of the following options is a condensed summary of your blog post?

Post slug
Plugin
Permalink
Excerpt

212. In which of the following orders, 404 template files are called in template hierarchy?

404.php, index.php
index.php, 404.php, archive.php
index.php, 404.php
404.php, archive.php, index.php

213. What does the “Error 145” in WordPress indicate?

It indicates that the cache on your server is full.
It indicates that a table in your database is corrupted.
It indicates a missing column in your database.
None of the above.

214. What does the “Error 28” in WordPress indicate?

It indicates that the cache on your server is full.
It indicates that a table in your database is corrupted.
It indicates a missing column in your database.
It indicates that you have too many files in /tmp.

215. Which of the following statements are correct about the W3 Total Cache (W3Tc)plugin?

It helps to reduce response time by creating static HTML version of pages and permits web servers to serve them without invoking PHP.
It helps for caching database queries (objects).
It manages the headers such as entity tag, cache-control, expires, etc.

216. An Author role in WordPress has edit_pages capability.

True
False

217. In WordPress, which of the following plugins can be used to limit the number of login attempts?

SiteGuard WP Plugin
OSSEC
inotify
Brute Force Login Protection

218. While backing up your WordPress database by using MySQL Workbench, what is the size limit of the database to be backed up?

1 GB
2 GB
5 GB
There is no size limit

219. In WordPress, which of the following types of items you can add into your menu?
1. Pages
2. Categories
3. Custom links

All 1, 2, and 3
Only 1 and 2
Only 1 and 3
Only 2 and 3

220. Which of the following options is the purpose of the Piklist plugin in WordPress?

It is used to create a list of disabled users in WordPress.
It is used to create a key-value pair for authenticating a user.
It permits you to create custom meta boxes and fields in WordPress.
Both options a and c

221. In WordPress, which of the following statements are correct about the comment administration on your site?

You can manually approve the comments of other users.
You cannot cut down on the number of comments for approval.
You can get a notification when someone post a comment.

None of the above.

222. Which of the following roles can edit your username in WordPress?

A user itself
An administrator
An editor
A subscribe
No one can edit your username

223. Which of the following statements are correct about the posts screen?

Categories can be added in bulk to a set of posts.
Tags can be added in bulk to a set of posts.
Categories can be deleted in bulk from a set of posts.
Tags can be deleted in bulk from a set of posts.

224. In WordPress, “Revisions” and “Attachments” post types are stored in wp_posts table.

True
False

225. Which of the following options are the correct cookies that WordPress uses for the users who have registered an account with the WordPress site?

wordpress_logged_in_[hash] comment_author_url_{HASH}
comment_author_{HASH}
wordpress_[hash]

226. In relation to a WordPress theme, which of the following statements is correct about the index.php file?

It is a fall-back file that is used to serve all the content to the browsers for rendering.
It is used to provide the meta-data for communication to WordPress about a theme.
It can be used to style the HTML that exists on the other required file.

227. It is mandatory for all the WordPress users to add an e-mail address in their respective profiles.

True
False

228. In WordPress, which of the following template tags is used to tell WordPress to get the blog title out of the database and add it in the template file?

get_header()
get_footer()
the_title()
bloginfo( ‘name’ )

229. In relation to file system monitoring in WordPress, which of the following tools is the OS kernel level file monitoring service that can be used for running commands on the filesystem events?

Git
diff
inotify
OSSEC

230. Which of the following options is the correct order (by priority in use) to display custom taxonomies in template hierarchy?

taxonomy.php, taxonomy-{taxonomy}.php, taxonomy-{taxonomy}-{term}.php, index.php, archive.php
taxonomy-{taxonomy}.php, taxonomy-{taxonomy}-{term}.php, taxonomy.php, archive.php, index.php
taxonomy.php, taxonomy-{taxonomy}.php, taxonomy-{taxonomy}-{term}.php, archive.php, index.php
taxonomy-{taxonomy}-{term}.php, taxonomy-{taxonomy}.php, taxonomy.php, archive.php, index.php

231. In relation to caching in WordPress, which of the following levels of authority are provided by Varnish?

The command line arguments
The CLI interface
VCL programs
HTTP requests

232. Suppose, you have a fixed IP address and you do not want any person (except yourself) to login to your admin area.
Which of the following files will help you to limit access to wp-login.php?
1. .htaccess
2. web.config

Only 1 can be used
Only 2 can be used
Both 1 and 2 can be used
Neither 1 nor 2 can be used

233. Which of the following cookies is set by WordPress 5 that is used to customize your view of admin interface and the main site interface?

wordpress_logged_in_[hash] wp-settings-{time}-[UID] wordpress_[hash] None of the above.

234. Meta tags in WordPress sites can be added in which of the following ways?

By using plugins
By adding them to the “header.php” template file in the WordPress theme
By updating the database
Both options a and b
Both options b and c

235. By default in WordPress, a standard post will have which of the following taxonomies types?

Categories
Post formats
Tags

236. If you are receiving an error that says “parse error: unexpected”, which of the following options can be the reasons for the same?

You have forgotten to include the opening bracket (
You have forgotten to include the $ when referencing a variable
Missing a semicolon (;) at the end of an individual line
You have an else statement with no opening if statement

237. By default, the WordPress dashboard permits administrators to edit plugins and theme files.

Yes
No

238. The MySQL Workbench tool can be used for taking backups of WordPress databases. With which of the following operating systems, can you use this tool?

Windows
Mac
Linux

239. Which of the following options are available as commenter rules in WordPress?
1. Comment author must fill out name and e-mail

2. Users must be registered and logged in to comment
3. Allow people to post comments on new articles

Only 1 and 2
Only 1 and 3
Only 2 and 3
All 1, 2, and 3

240. Which of the following options are the correct requirements for using “Pretty” permalinks?
1. An .htaccess file
2. Apache web server with the mod_rewrite module installed
3. The FollowSymLinks option enabled in the WordPress’s home directory

All 1, 2, and 3
Only 1 and 2
Only 1 and 3
Only 2 and 3

241. While using Permalinks in blogging, which of the following options is the title of your article post within the link?

Post Slug
Excerpt
Plugin
Trackback

242. In WordPress, which of the following options is/ are the correct example(s) of a non-hierarchical taxonomy?

Category
Tag
Both options a and b
Neither option a nor b

243. The plugins Rublon and WordFence cannot be used for two-step authentication.

True
False

244. In relation to WordPress, which of the following cookies are stored on the visitors’ computers when they comment on your blog?

comment_author_{HASH}
wp-settings-{time}-[UID] cookies
wordpress_logged_in_[hash] comment_author_email_{HASH}

4.3/5.0 Article rating
38 Reviews
Was this article helpful? Please rate this article to give us valuable insights for our improvements.
  1. Wow!
  2. Mmm
  3. Hmm
  4. Meh
  5. Pff

Steve Copeland

I started Dyna Themes to help people find the creative themes that best fits for your needs. I am an experienced developer and digital marketer, and I love writing!

View all posts

Add comment

Your email address will not be published. Required fields are marked *