Upwork WordPress Test Question With Answers
1. select all the default taxonomies in wordpress.
Answers: post_category
2. which concept does wordpress uses to control user access to different features.
Answers: Role
3. Which of the following is a not default image size in WP?
Answers: Small size
4. What is the name of table in database which stores custom fields data?
Answers: wp_postmeta
5. What are WordPress hooks?
Answers: group of plugins which control WordPress behavior
6. How do you enable the network setup menu item(enable multisite) in WordPress?
Answers: set WP_Allow_MULTISITE as true in wp_config.php
7. how to style each list item background of the WordPress navigation separately.
Answers:
nav li:nth-child(1).current-menu-item
{
background-color: red;
}
nav li:nth-child(2).current-menu-item
{
background-color: blue;
}
nav li:nth-child(3).current-menu-item
{
background-color: green;
}
8. If you need to store information temporarily, which wordpress system would you use :
Answers: Transients
9. how do you enable debug mode in WP?
Answers: By setting WP_DEBUG as true in WP-Config.php
10. what can the contributer role do?
Answers: Edit Posts
11. Which constant is NOT recognized in wp-config.php?
Answers: wp_HOME_URL
12. Which wp global object is used to execute custom databse queries?
Answers: $wpdb
13. 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?
Answers: wp_config.php
14. what is user Management?
Answers: WP User Manager. Managing your members, creating front-end profiles and custom login and registration pages should be easy. You easily add custom user registration, login and password recovery forms to your WordPress website.
15. How you can create a static page with wordpress?
Answers: to create a static page in wordpress………
16. Is it possible to create posts programmatically?
Answers: Yes,with wp_insert_post() function
17. which of the following is the correct way to register shortcode?
Answers:
function foobar_func( $atts )
{
return “foo and bar”;
}
dd_shortcode( ‘foobar’, ‘foobar_func’ );
18. What is wordpress multisite?
Answers: wp configuration features that supports multiple sites.
19. Which of the following is not a default user role in wp?
Answers: Blogger
20. What does wp_rand() function?
Answers: Generates a random number.
21. Which of the following is not a wordpress role?
Answers: System
22. Which of the following is incorrect possible value for $show attribute of bloginfo($show) function?
Answers: ‘homeurl’
23. pick the correct default post types readily available to users or internally used by the wordpress installation.
Answers:
1) post
2) page
24. what is common to all these functions: next_post,previous_post,link_pages,the _author_url,wp_get_link?
pick the correct default post types readily available to users or internally used by the wordpress installation.
Answers: They are all deprecated.
25. Wordpress navigation menu without sub menu.
Answers: wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’,’depth’ => 1) ) );
26. Which of the following post types are by default available in WordPress installation(choose all the apply)
Answers: Post
Page
27. What is the difference between the wp_title and the_title tags?
Answers: wp_title() function is for use outside “The Loop” to display the title of a page. the_title() on the other hand is used within “The Loop”.
28. Which of the following HTML tags are not allowed to be used in a post comment?
Answers: Form
Img
table
29. A wordpress___________ is a collection of files that work together produce a graphical interface with an underlying unifying design for a weblog.
Answers: Theme
30. Themes typically reside in the ______________ directory.
Answers: wp-content/themes
31. _________________ is the ability for readers to respond to articles write in your blog.
Answers: Comment Posting
32. A/an __________ is a globally recognized avatar.
Answers: gravatar
33. _______________ make it possible for a person to have one avatar across the entire web.
Answers: Gravatar
<
34. where are plugin options stored in WordPress ?.
Answers: Plugin options are stored in the database
35. What is the default site update service that WordPress automatically notifies when you publish a new post?
Answers: http://rpc.pingomatic.com
36. Pick the default template tag(s).
Answers: wp_title
the_title
37. WordPress uses a ____________ in conjucntion with the mod_rewrite Apache module to produce permalinks?
Answers: an .htaccess file
38. What is permalink?
Answers: The complete url of your wordpress site.
39. Where can you change the Timezone used by WordPress in the dashboard?
Answers: In Settings > General
40. _____________ are condensed summaries of your blog posts.
Answers: Excerpts
41. What database does WordPress use?
Answers: MySQL
42. In manual installation,wp-config-sample.php shoud be renamed to_____.
Answers: wp-config.php
43. What is the default table prefix in WP?
Answers: wp_
Answers: post_category
2. which concept does wordpress uses to control user access to different features.
Answers: Role
3. Which of the following is a not default image size in WP?
Answers: Small size
4. What is the name of table in database which stores custom fields data?
Answers: wp_postmeta
5. What are WordPress hooks?
Answers: group of plugins which control WordPress behavior
6. How do you enable the network setup menu item(enable multisite) in WordPress?
Answers: set WP_Allow_MULTISITE as true in wp_config.php
7. how to style each list item background of the WordPress navigation separately.
Answers:
nav li:nth-child(1).current-menu-item
{
background-color: red;
}
nav li:nth-child(2).current-menu-item
{
background-color: blue;
}
nav li:nth-child(3).current-menu-item
{
background-color: green;
}
8. If you need to store information temporarily, which wordpress system would you use :
Answers: Transients
9. how do you enable debug mode in WP?
Answers: By setting WP_DEBUG as true in WP-Config.php
10. what can the contributer role do?
Answers: Edit Posts
11. Which constant is NOT recognized in wp-config.php?
Answers: wp_HOME_URL
12. Which wp global object is used to execute custom databse queries?
Answers: $wpdb
13. 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?
Answers: wp_config.php
14. what is user Management?
Answers: WP User Manager. Managing your members, creating front-end profiles and custom login and registration pages should be easy. You easily add custom user registration, login and password recovery forms to your WordPress website.
15. How you can create a static page with wordpress?
Answers: to create a static page in wordpress………
16. Is it possible to create posts programmatically?
Answers: Yes,with wp_insert_post() function
17. which of the following is the correct way to register shortcode?
Answers:
function foobar_func( $atts )
{
return “foo and bar”;
}
dd_shortcode( ‘foobar’, ‘foobar_func’ );
18. What is wordpress multisite?
Answers: wp configuration features that supports multiple sites.
19. Which of the following is not a default user role in wp?
Answers: Blogger
20. What does wp_rand() function?
Answers: Generates a random number.
21. Which of the following is not a wordpress role?
Answers: System
22. Which of the following is incorrect possible value for $show attribute of bloginfo($show) function?
Answers: ‘homeurl’
23. pick the correct default post types readily available to users or internally used by the wordpress installation.
Answers:
1) post
2) page
24. what is common to all these functions: next_post,previous_post,link_pages,the _author_url,wp_get_link?
pick the correct default post types readily available to users or internally used by the wordpress installation.
Answers: They are all deprecated.
25. Wordpress navigation menu without sub menu.
Answers: wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’,’depth’ => 1) ) );
26. Which of the following post types are by default available in WordPress installation(choose all the apply)
Answers: Post
Page
27. What is the difference between the wp_title and the_title tags?
Answers: wp_title() function is for use outside “The Loop” to display the title of a page. the_title() on the other hand is used within “The Loop”.
28. Which of the following HTML tags are not allowed to be used in a post comment?
Answers: Form
Img
table
29. A wordpress___________ is a collection of files that work together produce a graphical interface with an underlying unifying design for a weblog.
Answers: Theme
30. Themes typically reside in the ______________ directory.
Answers: wp-content/themes
31. _________________ is the ability for readers to respond to articles write in your blog.
Answers: Comment Posting
32. A/an __________ is a globally recognized avatar.
Answers: gravatar
33. _______________ make it possible for a person to have one avatar across the entire web.
Answers: Gravatar
<
34. where are plugin options stored in WordPress ?.
Answers: Plugin options are stored in the database
35. What is the default site update service that WordPress automatically notifies when you publish a new post?
Answers: http://rpc.pingomatic.com
36. Pick the default template tag(s).
Answers: wp_title
the_title
37. WordPress uses a ____________ in conjucntion with the mod_rewrite Apache module to produce permalinks?
Answers: an .htaccess file
38. What is permalink?
Answers: The complete url of your wordpress site.
39. Where can you change the Timezone used by WordPress in the dashboard?
Answers: In Settings > General
40. _____________ are condensed summaries of your blog posts.
Answers: Excerpts
41. What database does WordPress use?
Answers: MySQL
42. In manual installation,wp-config-sample.php shoud be renamed to_____.
Answers: wp-config.php
43. What is the default table prefix in WP?
Answers: wp_
