WordPress Test Upwork Top 10% – Upwork Exam 2018

/
/
3353 Views

1.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.

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

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

4. A/an ……….. is a globally recognized avatar.
alias
alter ego
avatron
gravatar
site_avatar
5. 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.

6. Which WordPress system can be used to temporarily store information?
Options
Meta tables
Transients
The REST API

7. Which of the following 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

8.What does WordPress use to control user access to different features?
Username
Access tokens
Role
Cookies

9.Which of the following is true about wp_mail() function? (choose all that apply)
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.

9. Which option allows you to style each list item background or WordPress Navigation separately?
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;
}

nav li:nth-childs(1).current-menu-item {
background-color: red;
}
nav li:nth-childs(2).current-menu-item {
background-color: blue;
}
nav li:nth-childs(3).current-menu-item {
background-color: green;
}

nav li:nth-first-child(1).current-menu-item {
background-color: red;
}
nav li:nth-second-child(2).current-menu-item {
background-color: blue;
}
nav li:nth-last-child(3).current-menu-item {
background-color: green;

}All of the above

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

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

12. What is a 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.

13. ……………. make it possible for a person to have one avatar across the entire web.
Avatars
Gravatars
Smileys
Widgets
None of the above

14. Themes typically reside in the ………….. directory.
wp-content/
wp-content/main
wp-content/styles
wp-content/themedir
wp-content/themes

15. ………………. is the ability for readers to respond to articles written in your blog.
Comment posting
Comment rating
Comment spamming
Feedback posting
None of the above

16. Where are plugin options stored in WordPress?
They are stored in WordPress theme folder.
They are stored in WordPress plugin folder.
They are stored in WordPress.org website.
They are stored in WordPress Database.

18. How do you enable the debug mode in WordPress?
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

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

20. 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 information?
setup.html
wp-setup.php
wp-config.php
wp-install.php

21. What is the difference between the wp_title and the_title tags?
wp_title() function is for use inside “The Loop” to display the title of a page. the_title() on the other hand is used without “The Loop”.
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”.
wp_title() function is for use inside “The Loop” to display the title of a page. the_title() on the other hand is used within “The Loop”.
All of the above

22. A theme ____ acts like a plugin and, if present in your theme, is automatically loaded during WordPress initialization.
Bootstrap File
Functions File
Plugin File
Setup File
Stylesheet

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

24. 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’ );

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

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

27. 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

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

29. Which of the following post types are by default available in WordPress installation. (choose all that apply)
Note: There may be more than one right answer.
Post
Page
Blog
Media
Archive
Category

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

31. In a manual installation, wp-config-sample.php should be renamed to __.
wp-config-man.php
wp-config.php
wp-loop.php
wp-main.php
wp-startup.php

32. What are the common features of the following 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

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

34. Pick the default template tag(s).
Note: There may be more than one right answer.
the_field()
wp_title()
the_title()
wp_field()

35. WordPress uses a _____ in conjunction with the mod_rewrite Apache module to produce permalinks.
a .config file
an .htaccess file
an XFN file
an XML file
none of these

36. A minimal Theme consists of what two files?
style.css and functions.php
style.css and index.php
style.css and template.php
template.php and index.php
theme.css and homepage.php

Sign up for our newsletter to get Daily Updates

It is main inner container footer text