Wordpress MCQ Multiple Choice Questions Answers - Page 2 for Practice
31. Where can you find the official WordPress documentation and usage guide?
Correct Answer is: developer.wordpress.org
32. Where do you configure global settings for comments on your WordPress site?
Correct Answer is: Discussion Settings
33. Which folder in a WordPress install is not affected by an automatic WordPress update?
Correct Answer is: root
34. Which is a best practice for working with WordPress CSS?
Correct Answer is: Use spaces to indent each property.
35. Which is not a benefit of DRY code?
Correct Answer is: The code is less abstracted.
36. Which is NOT a suggested performance improvement for your WordPress website?
Correct Answer is: UTF8 is supported.
37. Which of the following file types is NOT involved in translating WordPress?
Correct Answer is: .pot
38. Which of the following is NOT a suggested security improvement for your WordPress website?
Correct Answer is: Please check the page for the answer.
39. Which of the following must have underlined links in order to meet WCAG 2.0 accessibility standards?
Correct Answer is: links in paragraph text
40. Which of these are best practices in accessibility?
Correct Answer is: all of these answers
41. Which of these are the minimum files required to make a child theme?
Correct Answer is: functions.php style.css
42. Which of these CSS classs naming convention is correct according to WordPress CSS Coding Standards?
Correct Answer is: .selector_name
43. Which of these does not impact your site speed?
Correct Answer is: inactive plugins
44. Which of these is NOT a part of the internationalization and localization process?
Correct Answer is: translators translating the POT file into a PO file, one for each language
45. Which software development principle, often used in WordPress, aims to reduce the repetition of code?
Correct Answer is: DRY
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