LinkedIn WordPress Certification Exam Answers

LinkedIn WordPress Exam Quiz Answers

  • It displays a single page.
  • It displays posts on an archive.
  • It displays a single post.
  • all of these answers
  • WordPress Foundation (The WordPress Foundation owns and oversees the trademarks for the WordPress and WordCamp names and logos.)
  • WordPress.com
  • Matt Mullenweg
  • Automattic
  • PHP
  • any programming language that can make HTTP requests and interpret JSON
  • Java
  • Node.js
  • 5
  • 30
  • 15
  • 10
  • Plugins are available in free or premium (paid) versions.
  • Plugins can extend WordPress core functionality.
  • all of these answers
  • Plugins add site-specific features.
  • It connects your site to Google Analytics.
  • It displays a blog feed from websites similar to yours.
  • It protects your site from comment spam.
  • It hardens site security by enforcing strong passwords.
  • Only load scripts and styles on pages where they are needed.
  • Minify CSS and JavaScript files.
  • all of these answers
  • Use a CDN.
  • YAML
  • JSON
  • TXT
  • XML
  • blue
  • black
  • red
  • green
  • widgets, containers, sections, settings
  • containers, hooks, settings, styles
  • panels, blocks, controls, settings
  • panels, sections, controls, settings
  • Writing
  • Permalinks
  • Pretty URLs
  • Reading
  • cropping images in the media library
  • injecting specialized scripts into the content area
  • creating a site layout
  • creating and laying out content
  • .po
  • .pot
  • . mot
  • .mo
  • 10
  • 15
  • 0
  • 5
  • Template tags prefaced with the _ don’t accept arguments.
  • Template tags prefaced with the _ can be used directly within a template.
  • Template tags prefaced with the _ display a value. Template tags prefaced with get_the return a value.
  • Template tags prefaced with the _ return a value. Template tags prefaced with get_the display a value.
  • $query = new query_posts ();
  • $query = new WP_Query ();
  • $query = query_posts ();
  • $query = get_posts ();
  • Owner
  • Super Admin
  • MU Admin
  • Multisite Master
  • as plain HTML
  • as a React component
  • as JavaScript comments
  • as HTML comments
  • using a gettext function to wrap translatable strings when writing code
  • installing/using the WordPress Multilingual Plugin
  • using a tool like Poedit to parse source code and extract translatable strings into a POT file
  • translators translating the POT file into a PO file, one for each language
  • Disable the REST API via the site’s wp-config.php file.
  • Use the rest_authentication_errors () filter along with the is_user_logged_in () conditional to limit access to logged in users.
  • Use the rest_authentication_errors () filter along with cookie authentication to limit access to logged in users.
  • Use the Disable REST API plugin.
  • // do stuff

});

  • (function ($) {

// do stuff

}) (jQuery);

  • $(function () {

// do stuff

});

  • jQuery (function ($) {

// do stuff

});

  • add_action (‘example_hook’, ‘example_function’, $accepted_args, $priority)
  • add_action (‘example_function’, ‘example_hook’, $priority, $accepted_args)
  • add_action (‘example_hook’, ‘example_function’, $priority, $accepted_args)
  • add_action (‘example_function’, ‘example_hook’, $priority)
  • Assign an ARIA state of “hidden” to the label, like this: <label state=” hidden”>Search</label> <input type=”text” name=” search” id=” search” />
  • Use the built-in WordPress CSS class. screen-reader-text to hide the text from screen, like this: <label class=” screen-reader-text”>Search</label> <input type=”text” name=” search” id=” 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: <label class=” hide-this”>Search</label> <input type=”text” name=” search” id=” search” />
  • The majority of users do not require a screen reader. Remove the label entirely.
  • This is how WordPress detects a plugin’s presence. This ensures that the plugin is running from the /wp-content/plugins/ directory. If it is not, the plugin should not run.
  • This is a way to prevent naming collisions. ABSPATH is the absolute path to the plugin’s directory. If ABSPATH is defined by another WordPress plugin with the same directory slug, the plugin should not run.
  • This is a security measure. ABSPATH is the absolute path to the WordPress directory. If the file is called directly, ABSPATH will not be defined and therefore the plugin should not run.
  • This is a compatibility checker. ABSPATH is defined in WordPress core. The plugin checks that the minimum version of WordPress needed to support the plugin is installed. If it is not, the plugin should not run.
  • Use! important next to styles if they don’t give you the result you want.
  • Use hyphens in class names.
  • Use spaces to indent each property.
  • Avoid CSS shorthand for proper documentation.
  • core
  • polyglots
  • accessibility
  • documentation
  • Actions are used to add custom functions and remove WordPress functions. Filters are used to make strings translatable for localization.
  • Actions are used to add or remove code at runtime. Filters are used to modify data before it is either displayed in the browser or saved to the database.
  • Actions are used to assign values to variables at runtime. Filters are used to extract data from actions and display it in the browser.
  • Actions are used to add user-inputted data to the database. Filters are used to validate user-inputted data prior to adding it to the database.
  • all of these answers
  • Access the WordPress install via WP-CLI. Run the following command: wp plugin deactivate offending-plugin.
  • Access site files via FTP and navigate to /wp-content/plugins/. Delete the folder of the plugin that you would like to disable or simply rename it.
  • Use phpMyAdmin to change the wp_options table’s active_plugins option value to a:0: {}.
  • schema
  • route
  • response
  • request
  • wp admin
  • wp manage
  • wp cap
  • wp role
  • escape and sanitize
  • validate and escape
  • validate and sanitize
  • escape and secure
  • Determine the date of the attack and restore your site to a backup point prior to that date.
  • Hire a third-party service to clean up your site because it is difficult for someone who is not a WordPress security expert to find and remove all traces of an attack.
  • Manually delete suspicious files on the server and delete any database tables that are not core WordPress.
  • Change your hosting password, your WordPress admin password, and your database password.
  • register_post_type
  • add_meta_box
  • wp_head
  • init
  • controls colors, fonts, and page layouts
  • adds accessibility enhancements such as keyboard navigation and skip links
  • ensures a site is mobile responsive
  • all of these answers
  • HackerOne
  • Redmine
  • Trac
  • GitHub Issues
  • apply_filters (‘Hello World!’, ‘mytextdomain’);
  • __ (‘Hello World!’, ‘mytextdomain’);
  • $string = “Hello World!”;
  • esc_html (‘Hello World!’, ‘mytextdomain’);
  • to make free software
  • to democratize publishing and the freedoms that come with open source
  • to make money
  • to encourage blogging
  • The site should communicate with WordPress.org.
  • Remove inactive themes.
  • Do not output debug information.
  • WordPress updates are accomplished manually only.
  • Link to the script directly from a template named page-contact.php using the get_header () template tag, like this:

get_header (‘<script src=”/my-script.js”></script>’);

  • Use functions.php to conditionally load the script by hooking it to

wp_enqueue_scripts (), like this:

add_action (‘wp_enqueue_scripts’, ‘load_scripts’);

function load_scripts () {

if (is_page (‘contact’)) {

echo ‘<script src=”/my-script.js”></script>’;

}

}

  • Use functions.php to conditionally load the script by hooking it to

wp_enqueue_scripts (), like this:

add_action (‘wp_enqueue_scripts’, ‘load_scripts’);

function load_scripts () {

if (is_page (‘contact’)) {

wp_enqueue_script (‘script’, get_template_directory_uri (). ‘/script.js’);

}

}

  • Link to the script directly from a template named page-contact.php, like this:

<head>

<script src=”/my-script.js”></script>

</head>

  • support.wordpress.com
  • developer.wordpress.com
  • developer.wordpress.org
  • support.wordpress.org
  • Use CSS grid to create responsive layouts.
  • Use media queries to add breakpoints for different screen sizes.
  • Use Flexbox to create flexible page layouts.
  • all of these answers
  • Use the registerBlockName () function.
  • se the createGutenBlock () function.
  • Use a block template.
  • Use the registerBlockType () function.
  • RRR
  • WET
  • DRY
  • KISS
  • It runs once per post in the database.
  • It runs once.
  • The Loop doesn’t run in template files.
  • It runs once per fetched post.
  • The site should run the most recent version of WordPress.
  • Remove or inactivate unnecessary plugins.
  • UTF8 is supported.
  • Choose a very recent version of PHP.
  • Transients are persistent and write to the wp_options. The object cache persists only for the particular page load.
  • Transients are stored in the WordPress database. The object cache is stored on the server where the WordPress install is located.
  • Transients are available for the duration of a user session and apply to all page components. The object cache is available only for scripts.
  • Transients persist only for the particular page load. The object cache is persistent and writes to the wp_options table.
  • Theme settings
  • wp-config.php
  • Customizer
  • WordPress settings
  • database usernames and passwords
  • unique keys and salts
  • accessibility
  • documentation
  • // This is a single line comment
  • /* * This is a single line comment. */
  • // This is a single line comment.
  • <! – This is a single line comment –>
  • http://example.com/wp-json/
  • http://example.com/wp-admin/
  • http://example.com/wp-rest/
  • http://example.com/wp-rest-api/
  • internationalization
  • localization
  • translation
  • using GlotPress
  • prevents any non-admin user from directly editing theme or plugin files
  • disables the theme and plugin editor in the WordPress admin
  • disables the ability to edit core WordPress files from either within the WordPress admin or via direct file access
  • sets read-only permissions on all files in the WordPress install
  • formatting
  • widgets
  • layout
  • shortcodes
  • Boolean
  • Number
  • String
  • Object
  • 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
  • Do not skip heading levels.
  • Be sure there is proper color contrast between background and text.
  • If an activity can be completed with a mouse, it must also be accessible by keyboard.
  • all of these answers
  • Theme settings
  • wp-config.php
  • Customizer
  • WordPress settings
  • The query can only be run inside the Loop.
  • You can modify the query in a template page if you use pre_get_posts ().
  • According to WordPress best practices, the query should only be modified in functions.php.
  • Due to execution order, the query has already run by the time a template is loaded.
  • archive.php
  • index.php
  • page.php
  • category.php
  • hashes and reCAPTCHA
  • database username and passwords
  • custom action hooks and filters
  • unique keys and salts
  • index.php functions.php
  • index.php style.css script.js
  • functions.php style.css script.js
  • functions.php style.css
  • custom query
  • template tags
  • the Loop
  • nested loop
  • value
  • serialized data
  • PHP array
  • text array
  • is archive ()
  • is_page ()
  • is_page_template ()
  • is_single ()
  • when there is no plugin available to make a customization, you need
  • when you need to add a custom page template
  • when you need to add a custom script to the header or footer of every page in a site
  • You should never edit WordPress core.
  • Contributor
  • Author
  • Editor
  • Subscriber
  • collapsible menus
  • infinite scroll
  • skip links
  • tabbed navigation
  • windows. alert ()
  • console.log ()
  • document. write ()
  • innerHTML
  • short database queries
  • a way to cache information
  • plugins used for quick debugging
  • post draft stored in the database
  • /Wp-admin
  • root
  • /Wp-content
  • /Wp-includes
  • . selector-name
  • . selector_name
  • . selectorName
  • div.selector_name
  • The code sample does not use the GET method. It should be wrapped in the get_post_field () function and look like this $title = get_post_field ($GET [ ‘title’]);
  • The code sample does not use sanitize the form data. It should use the sanitize_text_field () function and look like this: $title = sanitize_text_field ($_POST [ ‘title’]);
  • There is no error. The code follows WordPress best practices.
  • The code sample does not allow for translation. It should use a translation function and look like this: $title = __ ($_POST [ ‘title’];
  • derivative works must also be licensed as GPL
  • all of these answers
  • the software is free to use
  • the software is free to modify
  • user testing
  • all of these answers
  • beta testing
  • automated testing
  • links on images
  • links in user interface controls
  • links in a nav bar
  • links in paragraph text

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.