Wordpress MCQ Multiple Choice Questions Answers - Page 4 | Quiz for Practice
Wordpress MCQ Questions for Practice
46. Which Wordpress conditional would you use to determine if you were on a single page?
Correct Answer is: is_single()
47. Which WordPress setting would you use to make page URLs look like http://example.com/my-page/ instead of the default http://example.com/?p=21/?
Correct Answer is: Permalinks
48. Which WP-CLI command would you use to manage the capabilities of a user role?
Correct Answer is: wp role
49. Who owns the trademark for WordPress and WordCamp names and logos?
Correct Answer is: WordPress Foundation (The WordPress Foundation owns and oversees the trademarks for the WordPress and WordCamp names and logos.)
50. Why can't you modify the query in a template page?
Correct Answer is: You can modify the query in a template page if you use pre_get_posts().
51. Within the editor, blocks are rendered as JavaScript. How are blocks rendered on the front end of a site?
Correct Answer is: as a React component
52. Wordpress core and many plugins store data in the database in a special format as represented by the sample below. What format is this called? a:2:{i:0;s:27:"ari-adminer/ari-adminer.php";i:1;s:30:"atomic-blocks/atomicblocks.php";}
Correct Answer is: serialized data
53. WordPress is an open-source software licensed under the GPL. This means that
Correct Answer is: all of these answers
54. WordPress is translated, at least partially, in more than 200 locales. If you wanted to help translate WordPress into other languages, which contributor group would you join?
Correct Answer is: polyglots
55. WP_Query is the WordPress query class that is used to fetch posts from the database. How would you create a new instance of this class?
Correct Answer is: $query = new WP_Query();
56. You can harden your Wordpress site security by adding _ to your wp-config.php file?
Correct Answer is: unique keys and salts
57. You can harden your WordPress site security by adding __ to your wp-config.php file?
Correct Answer is: unique keys and salts
58. You have a search bar on your site. You would like to use a
Use the built-in WordPress CSS class .screen-reader-text to hide the text from screen, like this: Search
Create a custom CSS class to set a large negative value to the text-indent property to hide the text off screen, like this: Search
The majority of users do not require a screen reader. Remove the label entirely.
Correct Answer is: Use the built-in WordPress CSS class .screen-reader-text to hide the text from screen, like this: Search
59. You would use a post instead of a page when the content is
for a top-level menu item
nested (has a parent/child relationship with another piece of content)
when the content is part of a blog.
evergreen
Correct Answer is: when the content is part of a blog.
60. According to WordPress PHP coding standards for inline comments, how would you write a single-line comment in a PHP document?
// This is a single line comment
/* _ This is a single line comment._/
// This is a single line comment.
Correct Answer is: // This is a single line comment