Wordpress MCQ Multiple Choice Questions Answers - Page 3 for Practice
61. 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().
62. 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
63. 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
64. WordPress is an open-source software licensed under the GPL. This means that
Correct Answer is: all of these answers
65. 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
66. 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();
67. You can harden your Wordpress site security by adding _ to your wp-config.php file?
Correct Answer is: unique keys and salts
68. You can harden your WordPress site security by adding __ to your wp-config.php file?
Correct Answer is: unique keys and salts
69. 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
70. 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.