Upwork Test Answers | WordPress Upwork Test Answers 2017
Q1.) select all the default taxonomies in wordpress.
Ans.)
1)category
2) post_tag
3) link_category
4) post_category
5) post_format
Q2.) which concept does wordpress uses to control user access to different features.
Ans.) Role
Q3.) Which of the following is a not default image size in WP?
Ans.) Small size
Q4.) What is the name of table in database which stores custom fields data?
Ans.) wp_postmeta
Q.5) What are WordPress hooks?
Ans.) group of plugins which control wordpress behavior
Q6.) How do you enable the network setup menu item(enable multisite) in wordpress?
Ans.) set WP_Allow_MULTISITE as true in wp_config.php
Q7.) how to style each list item background of the wordpress navigation separately.
Ans.)
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;
}
Q8.)If you need to store information temporarily, which wordpress system would you use :
Ans.) Transients
Q9.) how do you enable debug mode in WP?
Ans.) By setting WP_DEBUG as true in WP-Config.php
Q10.) what can the contributer role do?
Ans.) Edit Posts
Q11.)Which constant is NOT recognized in wp-config.php?
Ans.) wp_HOME_URL
Q12.)Which wp global object is used to execute custom databse queries?
Ans.) $wpdb
Q13.)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?
Ans.)wp_config.php
Q14.)what is user Management?
Ans.) WP User Manager. Managing your members, creating front-end profiles and custom login and registration pages should be easy. You easily add custom userregistration, login and password recovery forms to your WordPress website.
Q15.) How you can create a static page with wordpress?
Ans.) to create a static page in wordpress………
Q16.) Is it possible to create posts programmatically?
Ans.) Yes,with wp_insert_post() function
Q17.) which of the following is the correct way to register shortcode?
Ans.)
function foobar_func( $atts )
{
return “foo and bar”;
}
add_shortcode( ‘foobar’, ‘foobar_func’ );
Q18.) What is wordpress multisite?
Ans.) wp configuration features that supports multiple sites.
Q19.) Which of the following is not a default user role in wp?
Ans.) Blogger
Q20.) What does wp_rand() function?
Ans.) Generates a random number.
Q21.) Which of the following is not a wordpress role?
Ans.) System
Q22.) Which of the following is incorrect possible value for $show attribute of bloginfo($show) function?
Ans.) ‘homeurl’
Q23.) pick the correct default post types readily available to users or internally used by the wordpress installation.
Ans.)
1) post
2) page
Q24.) what is common to all these functions: next_post,previous_post,link_pages,the _author_url,wp_get_link?
Ans.) They are all deprecated.
Q25.)Wordpress navigation menu without sub menu.
Ans.) wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’,’depth’ => 1) ) );
Q26.)Which of the following post types are by default available in wordpress installation(choose all the apply)
Ans.) Post
Page
Q27.) What is the difference between the wp_title and the_title tags?
Ans.) 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”.
Q28.)Which of the following HTML tags are not allowed to be used in a post comment?
Ans.) Form
Img
Q29.) A wordpress___________ is a collection of files that work together produce a graphical interface with an underlying unifying design for a weblog.
Ans.) Theme
Q30.) Themes typically reside in the ______________ directory.
Ans.) wp-content/themes
Q31.) _________________ is the ability for readers to respond to articles writte in your blog.
Ans.) Comment Posting
Q32.) A/an __________ is a globally recognized avatar.
Ans.) gravatar
Q33.) _______________ make it possible for a person to have one avatar across the entire web.
Ans.) Gravatar
<
Q34.) where are plugin options stored in WordPress ?.
Ans.) They are stored in WordPress plugin folder
Q35.) What is the default site update service that WordPress automatically notifies when you publish a new post?
Ans.) http://rpc.pingomatic.com
Q36.) Pick the default template tag(s).
Ans.) wp_title
the_title
Q37.) WordPress uses a ____________ in conjucntion with the mod_rewrite Apache module to produce permalinks?
Ans.) an .htaccess file
Q38.) What is permalink?
Ans.) The complete url of your wordpress site.
Q39.)Where can you change the Timezone used by WordPress in the dashboard?
Ans.)In Settings > General
Q40.) _____________ are condensed summaries of your blog posts.
Ans.) Excerpts
Q41.) What database does WordPress use?
Ans.) MySQL
Q42.)In manual installation,wp-config-sample.php shoud be renamed to_____.
Ans.) wp-config.php
Q43.) What is the default table prefix in WP?
Ans.) wp_