WordPress Fiverr Test Answers

WordPress Fiverr Test Answers

1. While updating WordPress, which of the following options can be the correct reason for the given message on the screen?

WordPress Fiverr Test Answers
"Briefly unavailable for scheduled maintenance. Please check back in a minute."

maintain.php

htaccess web-config

Web-config

.maintenance file

Answer: .maintenance file

Explanation: This message is usually displayed due to the presence of a .maintenance file in the WordPress installation. This file is created by WordPress during an update and informs visitors that the website is temporarily unavailable due to maintenance. Once the update is complete, the file is deleted and the website returns to normal operation.


2. In relation to backing up your WordPress database, which of the following tools can be used for taking backup only in Windows operating system?

EMS SQL Management Studio for MySQL

Aqua Data Studio

Navicat for MySQL

Answer: EMS SQL Management Studio for MySQL

Explanation: EMS SQL Management Studio for MySQL can be used to take a backup of a WordPress database in a Windows operating system. It is a powerful tool for managing and administering MySQL databases, including taking backups, restoring data, and executing SQL queries.


3. By default in WordPress, a standard post will have which of the following taxonomies types?

Categories

Post formats

Tags

Answer: Categories and Tags.

Explanation: By default in WordPress, a standard post will have two taxonomy types: Categories and Tags.

Categories allow you to group related posts together in a hierarchical manner and can be used to organize the content on your site into broader topics.

Tags are similar to categories, but they are non-hierarchical and can be used to describe the specific details of a post, such as its topics, keywords, or attributes.

Post formats are a different type of taxonomy that provides a standardized way to style different types of content, such as images, videos, galleries, and quotes. However, it is not enabled by default and must be added to a theme to use.


4. In which of the following orders, 404 template files are called in template hierarchy?

404.php, index.php

index.php, 404.php, archive.php

index.php, 404.php

404.php, archive.php, index.php

Answer: 404.php, index.php

Explanation: In WordPress, the 404 template files are called in the following order in the template hierarchy:

404.php, index.php

The first file checked by WordPress when a 404 error occurs is the 404.php file. If this file is not found, then WordPress will fall back to the index.php file as a catch-all template. The archive.php file is not part of the 404 template hierarchy.


5. If you have shell access to your server, then which of the following commands can you use to change the file permissions for directories recursively?

locate /path/to/your/wordpress/install/ -type f -exec chmod 755 {} \;

find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \;

update /path/to/your/wordpress/install/ -type d -exec chmod 644 {} \;

locate /path/to/your/wordpress/install/ -type d -exec chmod 644 {} \;

Answer: find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \;

Explanation: This command uses the find command to search for all directories (-type d) within the specified path and then uses the -exec option to run the chmod 755 command on each directory found. The permissions 755 indicate that the owner can read, write, and execute the file, while others can only read and execute it. The {} \; syntax at the end of the command is used to specify the end of the -exec option and is required for it to work properly.

Note: The locate command is not commonly used for this purpose as it searches a database of files, not the actual file system, and may not return accurate results. The update command is not a valid shell command.


6. By default, which of the following databases is used by WordPress 5?

PostgreSQL

Microsoft SOL Server

MySQL

Oracle

Answer: MySQL

Explanation: By default, WordPress 5 uses MySQL as its database management system. MySQL is a popular open-source relational database management system (RDBMS) that is widely used for web applications and is well-suited to the needs of most WordPress installations. WordPress can also be configured to use other databases, such as PostgreSQL, Microsoft SQL Server, or Oracle, but this typically requires additional setup and configuration.


7.  Empty

Answer: 

Explanation: 


8. Which of the following roles can edit your username in WordPress?

A user itself

An administrator

An editor

A subscriber

No one can edit your username

Answer:  No one can edit your username

Explanation: By default, usernames cannot be changed in WordPress once they have been created. This is to prevent issues with the links and URLs that are associated with the user account, as well as to maintain the integrity of the website's data. If a user needs to change their username, it is typically recommended to create a new user account with the desired username and then transfer the content from the old account to the new one.

No one can edit your username in wordpress

 


9. In WordPress, “Revisions” and “Attachments” post types are stored in wp_posts table.

True

False

Answer: True

Explanation: In WordPress, the "Revisions" and "Attachments" post types are stored in the wp_posts table, just like regular posts and pages. The wp_posts table is used to store all the content for a WordPress site, including posts, pages, custom post types, revisions, and attachments. Each post type is identified by a unique value in the "post_type" field of the table, which allows WordPress to distinguish between different types of content.


10. WP Super Cache is not a static page caching plugin for WordPress.

True

False

Answer: False

Explanation: WP Super Cache is a static page caching plugin for WordPress. It is a popular caching solution that creates static HTML files from dynamic WordPress pages, allowing them to be served more quickly to visitors. This can significantly improve the performance and loading speed of a WordPress site, especially in shared hosting environments. WP Super Cache is a free and open-source plugin that is widely used by WordPress users to improve the performance of their websites.


11.  In WordPress, which of the following plugins can be used to limit the number of login attempts?

SiteGuard WP Plugin

OSSEC

inotify

Brute Force Login Protection

Answer: SiteGuard WP Plugin and Brute Force Login Protection

Explanation: In WordPress, "SiteGuard WP Plugin" and "Brute Force Login Protection" plugins can be used to limit the number of login attempts. These plugins add an extra layer of security to the login process by limiting the number of login attempts that can be made from a specific IP address within a certain time frame. If a user exceeds the maximum number of allowed login attempts, their IP address will be temporarily blocked, preventing further attempts until the block is lifted. This helps to prevent brute force attacks, in which an attacker repeatedly tries to guess a user's password in order to gain access to the site.


12. What does the “Error 28” in WordPress indicate?

It indicates that the cache on your server is full.

It indicates that a table in your database is corrupted.

It indicates a missing column in your database.

It indicates that you have too many files in /tmp.

Answer: It indicates that you have too many files in /tmp.

Explanation: "Error 28" in WordPress typically indicates that you have run out of disk space on your server. The error message appears when WordPress is unable to create or save new files because there is not enough available disk space. In order to resolve the issue, you may need to delete unneeded files or upgrade your server to a plan with more storage. This error message is not related to issues with the cache, database corruption, missing columns, or having too many files in the /tmp directory.


13. Which of the following you should avoid while choosing a password?

Permutation of your real name, username, or company name.

A word from a dictionary, in any language.

Any numeric-only or alphabetic-only password.

Any password containing numeric, alphabets, and special symbols.

All 1, 2, 3, and 4

Only 1, 2, and 3

Only 1, 2, and 4

Only 2, 3, and 4

Answer: All of 1, 2, 3, and 4.

Explanation: It is recommended to avoid these types of passwords because they are easily guessable, either by humans or by automated cracking software. Permutations of your real name, username, or company name are easily discoverable by an attacker. Dictionary words can be cracked using a dictionary attack, which checks every word in a dictionary. Numeric-only or alphabetic-only passwords can be cracked by an attacker who tries every possible combination of numbers or letters. On the other hand, a password that contains a combination of numeric, alphabet, and special symbols, which are also long and random, is much harder to guess and crack.

Avoiding passwords that contain a combination of numbers, alphabets, and special symbols are not recommended because, although it seems secure, these passwords can still be vulnerable to attacks, such as dictionary attacks, where the attacker uses a pre-compiled list of common passwords, or brute-force attacks, where the attacker tries every possible combination of characters. To create a truly secure password, it's recommended to use a long, random combination of characters that include numbers, letters, and special characters, and to not reuse passwords for multiple accounts.


14. While exporting your WordPress data, which of the following data can you export?

Posts

Pages

Comments

Categories

Custom taxonomies

All 1, 2, 3, 4, and 5

Only 1, 2, 4, and 5

Only 2, 3, 4, and 5

Only 2, 4, and 5

Only 1, 2, 3, and 4

Answer: All 1, 2, 3, 4, and 5

Explanation: All Posts, Pages, Comments, Categories, and Custom taxonomies can be exported from WordPress.


15. Which of the following options is a condensed summary of your blog post?

Post slug

Plugin

Permalink

Excerpt

Answer: Excerpt

Explanation: An excerpt is a condensed summary of your blog post that can be used to give readers a preview of the content. It is usually displayed on the blog homepage or in search results and helps the reader get an idea of what the post is about before clicking through to read the full post. An excerpt is a great way to give your readers a quick and easy overview of your post, and can also help to improve the readability of your blog by breaking up long blocks of text into smaller, more manageable pieces.


16. In relation to the profile screen in WordPress, which of the following personal options are available that can be configured?

Visual editor

Admin Color Scheme

Syntax Highlighting

Toolbar

Answer: Visual editor, Admin Color Scheme, and Toolbar.

Explanation: Visual editor, Admin Color Scheme, and Toolbar options are available in the profile screen in WordPress that can be configured.

Syntax highlighting is not a personal option that can be configured in the profile screen in WordPress. This feature is usually used for programming or code editing and is not typically found in the user profile settings. The options available for personal configuration in the WordPress profile screen are typically related to the user interface, such as the visual editor, admin color scheme, and toolbar.


17. An Author role in WordPress has edit_pages capability.

True

False

Answer: False

Explanation: The Author role in WordPress typically does not have the capability to edit pages. By default, this role has the capability to edit their own posts but not the pages. The user with an Author role is usually limited to creating, editing, and publishing their own posts.


18. Which of the following plugins can be used in WordPress 5 for two-step authentication?

Duo

Google Authenticator

WordFence

Rublon

All 1, 2, 3, and 4

Only 1, 2, and 3

Only 2, 3, and 4

Only 1, 3, and 4

Answer: All 1, 2, 3, and 4

Explanation: All of the options 1, 2, 3, and 4 (DuoGoogle AuthenticatorWordFenceRublon) can be used in WordPress 5 for two-step authentication.


19. In relation to caching in WordPress, Varnish cache application is supported on which of the following platforms?

Windows 7

Linux

FreeBSD

Answer: Linux and FreeBSD

Explanation: The varnish cache application is only supported on Linux and FreeBSD platforms. Varnish Cache is an open-source web application accelerator designed to work on Linux systems. It was not designed or tested to work on the Windows 7 operating system. Therefore, it is not supported on Windows 7.


20. Which of the following options are the valid filters in template hierarchy?

singular_template

search_template

embed_template

author_template

Answer: singular_template, search_template, and author_template

Explanation: Only the first three options, singular_template, search_template, and author_template, are valid filters in the template hierarchy in WordPress. The last option, "embed_template" is not a standard filter in the template hierarchy in WordPress.

"embed_template" is not a standard filter in the template hierarchy in WordPress because it is a specific type of template used for the oEmbed feature. oEmbed is a format for allowing an embedded representation of a URL on third-party sites. The "embed_template" filter is used to determine the template file that should be used for rendering the content for an oEmbed request.

The filters included in the template hierarchy are the core templates used to display different types of content on a WordPress site, such as single posts, search results, and author archives. These templates are part of the standard WordPress theme and are used to determine which template file should be used to render the content for a given request.


21. Which of the following statements are correct about the posts screen?

Categories can be added in bulk to a set of posts.

Tags can be added in bulk to a set of posts.

Categories can be deleted in bulk from a set of posts.

Tags can be deleted in bulk from a set of posts.

Answer: All the statements are correct.

Explanation: In a content management system like WordPress, both categories and tags can be assigned and managed on a per-post basis or in bulk for a set of posts. This means that, through the Posts screen, you can add or delete either categories or tags in bulk to or from multiple posts at once, making the task of organizing and categorizing your content much more efficient.


22. Which of the following is the correct option that is the default theme of WordPress 5?

Gravatar

Twenty Nineteen

Permalink

None of the above.

Answer: Twenty Nineteen

Explanation: Twenty Nineteen is the default theme for WordPress version 5. WordPress 5.0 was released on December 6th, 2018, With the release of WordPress 5 they changed the default theme to Twenty Nineteen. It is a minimal and modern theme designed to be responsive, and customizable, and provide a good base for developers to build upon. The other options, Gravatar and Permalink, are not themes, but rather features related to user avatars and post URLs, respectively.


33. Which of the following statements are correct about the “Pages” post type in WordPress?

You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.

They can be displayed in a reversed time-based order.

They do not make use of categories like posts do.

None of the above.

Answer: The correct statements are:

You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.

They do not make use of categories like posts do.

Explanation: In WordPress, Pages are a separate post type that is intended for static, non-chronological content such as "About" or "Contact" pages. The hierarchical ordering of pages allows you to create a page structure with parent and child pages, allowing you to organize your content in a tree-like manner. Pages do not use categories as a way to organize content, as posts do, but they can make use of other taxonomies such as tags. Pages are not displayed in a reversed time-based order, unlike posts, which are displayed in reverse chronological order on the blog index by default.


24. In relation to WordPress, which of the following cookies are stored on the visitors' computers when they comment on your blog?

comment_author_(HASH)

wp-settings(time)-[UID] cookies

wordpress_logged_in_[hash]

comment_author_email_(HASH}

Answer: The correct cookies stored on the visitors' computers when they comment on a WordPress blog are:

comment_author_(HASH)

comment_author_email_(HASH)

wordpress_logged_in_[hash]

Explanation: These cookies are stored on the visitor's computer to remember their comment information such as name, email, and if they are logged in so that they don't have to fill out their details every time they want to post a comment on the same site. The "HASH" in the cookie name is a unique identifier that is generated for each visitor to ensure the security and privacy of their data.

The "wp-settings-(time)-[UID]" cookies are not related to comments, but rather store user-specific settings for the WordPress dashboard for logged-in users.


25. In WordPress, which of the following options are the incorrect capabilities of the Author role?

delete_published_posts

delete_published_pages

edit_posts

Manage_links

Answer: The incorrect capabilities for the Author role in WordPress are:

delete_published_posts

delete_published_pages

Explanation: In WordPress, the Author role has the capability to create and edit their own posts (edit_posts), but they do not have the ability to delete their own published posts (delete_published_posts) or published pages (delete_published_pages). These actions require higher-level capabilities, such as those possessed by an Editor or an Administrator.

"Manage_links" is not a capability related to the Author's role, but rather to the management of links in the WordPress blogroll.


26. By default, the WordPress dashboard permits administrators to edit plugins and theme files.

Yes

No

Answer: No.

Explanation: By default, the WordPress dashboard does not permit administrators to edit plugins and theme files directly from the dashboard. Editing these files requires accessing the server where the WordPress installation is hosted, either through a file transfer protocol (FTP) client or through a file manager provided by the hosting service.

Editing plugin and theme files directly in the dashboard can introduce security risks and is generally discouraged, as a misconfiguration or error in the code can cause the site to malfunction or become vulnerable to attack. It is recommended to use a child theme or a plugin customization tool to make modifications to plugins and themes in a safe and controlled manner.


27. What is the default value of the SCRIPT_DEBUG constant?

true

False

Answer: False

Explanation: The default value of the SCRIPT_DEBUG constant in WordPress is False.

The SCRIPT_DEBUG constant is a PHP constant that, when set to True, causes WordPress to use the unminified versions of its JavaScript and CSS files instead of the minified versions. This can be useful for debugging purposes, as the unminified files are easier to read and can help with identifying issues in the code.

When SCRIPT_DEBUG is set to False (which is the default value), WordPress uses the minified versions of its JavaScript and CSS files, which are smaller in size and faster to load. This setting is recommended for production sites, as it helps to optimize the site's performance.


28.  In WordPress, which of the following statements are correct about the comment administration on your site?

You can manually approve the comments of other users.

You cannot cut down on the number of comments for approval.

You can get a notification when someone posts a comment.

None of the above.

Answer: The correct statements about the comment administration in WordPress are:

You can manually approve the comments of other users.

You can get a notification when someone posts a comment.

Explanation: As the administrator of a WordPress site, you have the ability to approve or reject comments left by others on your site. By default, WordPress will notify you when a new comment is posted, and you can choose to approve, edit, reply to, or mark it as spam.

There is no option to "cut down on the number of comments for approval" in the core WordPress platform. However, you can set the comment moderation settings in the WordPress dashboard to automatically approve comments from known users, or to hold all comments for moderation. Additionally, there are plugins available that can help with comment moderation, such as those that allow you to set up a comment blacklist or that automatically flag comments containing specific keywords.


29. The given URL is an example of which of the following permalinks?

Default

PATHINFO

mod_rewrite

None of the above.

Answer: None of the above.

Explanation: The URL: http://example.com/2012/12/30/post-name is an example of a "Custom Structure" or "Pretty" permalink.

In WordPress, permalinks refer to the permanent URLs for your posts, pages, categories, and other content. The default permalink structure in WordPress is a basic structure that includes the post ID, such as http://example.com/?p=123.

The "Custom Structure" or "Pretty" permalink shown in the example URL uses a specific pattern to create a more readable and descriptive URL. The structure in this example includes the date of the post and the post name, separated by slashes.

"PATHINFO" permalinks are similar to the custom structure but include an extra "index.php" component in the URL, such as http://example.com/index.php/2012/12/30/post-name.

"mod_rewrite" permalinks use the Apache module mod_rewrite to create URL structures that are more search engine friendly and do not include query parameters, such as http://example.com/2012/12/30/post-name.


30. Which of the following options is the correct order (by priority in use) to display category in template hierarchy?

index.php, category-{slug).php, category-{id}.php, category.php, archive.php

category.php, archive.php, category [slug.php, category-{id}.php, index.php

category-{slug).php, archive.php, category-{id}.php, category.php, index.php

category-(slug).php, category-{id}.php, category.php, archive.php, index.php

Answer: The correct order (by priority in use) to display categories in the template hierarchy in WordPress is:

category-(slug).php, category-{id}.php, category.php, archive.php, index.php

Explanation: In WordPress, the template hierarchy determines the order in which templates are used to display different types of content, such as categories, tags, or posts. When a visitor requests a category archive page, WordPress first checks for a template with a specific name for that category, based on the category's slug or ID. If that template does not exist, it will then check for a generic category template, followed by the archive template, and finally, the index.php template as a fallback.

The template hierarchy is a key aspect of WordPress theme development and allows for great customization and flexibility in the way different types of content are displayed on your site.


31. Which of the following types of permalinks are available in WordPress 5?

Default

OPATHINFO

I mod_rewrite

Answer: Default

Explanation: The following types of permalinks are available in WordPress 5:

Default: This is the default permalink structure in WordPress and includes the post ID in the URL, such as http://example.com/?p=123.

Pretty or Custom Structure: This allows you to create custom, human-readable permalinks using a specific pattern. For example, http://example.com/2012/12/30/post-name.

Day and name: This structure includes the date the post was published, and the post name, such as http://example.com/2022/02/02/post-name.

Month and name: This structure includes the month and year the post was published, and the post name, such as http://example.com/2022/02/post-name.

Numeric: This structure includes the post ID in the URL, such as http://example.com/archives/123.

Post name: This structure uses only the post name to create the permalink, such as http://example.com/post-name.

These permalink options are available in the WordPress admin under the "Settings" menu, and you can choose the permalink structure that best suits your needs. The most common permalink structure used by WordPress users is the "Pretty" or "Custom Structure" permalink, as it provides a clean and human-readable URL for your content.


32. In relation to WordPress site, which of the following options is correct about a sitemap?

It is an enhancement to your existing URLs that can improve SEO of your website.

It is a single page listing of all the posts on your website.

It is a collection of all the visited links on a WordPress website.

None of the above.

Answer: It is an enhancement to your existing URLs that can improve SEO of your website.

Explanation: A sitemap is a file that lists all the pages of a website and provides information to search engines about how those pages are organized and how frequently they are updated. By including a sitemap on your WordPress website, you can help search engines discover and index your content more effectively, which can lead to improved search engine rankings and more organic traffic.


33. Which of the following roles has the unfiltered_html capability in a single site WordPress installation?

Administrator

Editor

Author

Contributor

Answer: Administrator

Explanation: The "Administrator" role has the unfiltered_html capability in a single site WordPress installation. The other roles, such as "Editor," "Author," and "Contributor," do not have the "unfiltered_html" capability by default in WordPress because it is a security risk. The "unfiltered_html" capability allows users to input any type of HTML code into the WordPress editor, including potentially harmful scripts or scripts that can change the appearance or behavior of a site.

The "Administrator" role has the most permissions and capabilities in WordPress, which is why it has the "unfiltered_html" capability. However, this capability should be used with caution and only by trusted users who understand the potential risks.


34. It is mandatory for all the WordPress users to add an e-mail address in their respective profiles.

True

False

Answer: True

Explanation: It is true because according to the official WordPress website, all users are required to list a unique email address in their profiles. This email address is necessary for the blog to notify the user of new comments to their posts and for other administrative purposes. This requirement ensures that the user can be reached in a timely manner and stay informed about important updates related to their WordPress account.


35. In WordPress, which of the following options is/ are the correct example(s) of a non-hierarchical taxonomy?

Category

Tag

Both options a and b

Neither option a nor b

Answer: Both options a and b

Explanation: Non-hierarchical taxonomies, such as categories and tags, do not have a parent-child relationship. Each item in the taxonomy, such as a tag or a category, stands alone and is not related to any other item in the same taxonomy. This makes it easy to categorize and organize content in a flexible way.


36. What does the “Error 145” in WordPress indicate?

It indicates that the cache on your server is full.

It indicates that a table in your database is corrupted.

It indicates a missing column in your database.

None of the above.

Answer: It indicates that a table in your database is corrupted.

Explanation: It indicates that a table in your database is corrupted. "Error 145" in WordPress is an error code that is related to database corruption. This error message is typically encountered when a table in the WordPress database is damaged or broken and cannot be accessed or repaired. The error message may indicate that a table is missing or that the data within the table is not properly structured, leading to the error.


37. Which of the following options are the correct capabilities of the Editor role in a single site WordPress installation?

manage_categories

manage_links

Update_themes

Manage_options

Answer: The correct capabilities for the Editor role in a single site WordPress installation are:

manage_categories

manage_links

Explanation: The Editor role in WordPress has the ability to manage categories and links within the website, but does not have the ability to update themes or manage options, which are typically reserved for higher-level roles such as Administrators.


38. In WordPress, a subscriber has which of the following capabilities?

read

delete_posts

edit_posts

Publish_posts

Answer: read

Explanation: The subscriber role in WordPress is the most basic role and typically has limited capabilities. A subscriber can only view and read the content on a WordPress website. They do not have the ability to delete posts, edit posts, or publish posts. These capabilities are typically reserved for higher-level roles such as Contributors, Editors, or Administrators.


39. How can you access Your Profile Screen in WordPress?

From the main navigation menu under Users.

By clicking on the name link at the top of the WordPress screen.

Only 1

Only 2

Both 1 and 2

Neither 1 nor 2

Answer: Both 1 and 2

Explanation: Your Profile Screen is accessible from both the main navigation menu under Users and by clicking on your name link at the top of the WordPress screen. Here you can specify your name and how it will be displayed on your site, your e-mail address (for administrative purposes), other personal information, and personal options.


40. In WordPress, which of the following types of items you can add into your menu?

Pages

Categories

Custom links

All 1, 2, and 3

Only 1 and 2

Only 1 and 3

 Only 2 and 3

Answer: All 1, 2, and 3

Explanation: In WordPress, you can add all types of Pages, Categories, and Custom Links into your menu. The menu in WordPress allows you to create custom navigation menus for your website. You can add any type of page, post, category, or custom link to your menu. This flexibility allows you to create a navigation menu that suits your website's needs and enhances its usability for visitors.


41. Which of the following options are the correct tables that will always be backed up while taking backups in WordPress?

wp_links

wp_terms

wp_users

wp_postmeta

Answer: All of the above tables will always be backed up while taking backups in WordPress.

wp_links

wp_terms

wp_users

wp_postmeta

Explanation: These are some of the core tables in a WordPress database and are essential for the functioning of a WordPress site. These tables contain important data such as users, terms, post metadata, and links, so they should always be included when backing up your WordPress site. This ensures that all necessary data is saved and can be restored in the event of a problem.


42. By default, all the published pages are added to the menu automatically by WordPress.
True
False

Answer: False

Explanation: By default, WordPress does not automatically add all published pages to the menu. WordPress provides users with the ability to create custom menus by adding pages, posts, categories, and other content types to the menu through the Menu Screen. Users have the option to choose which pages and other content types they want to add to their menu and in what order they appear.


43. Which of the following options are available as commenter rules in WordPress?

Comment author must fill out name and e-mail 

Users must be registered and logged in to comment

Allow people to post comments on new articles

Only 1 and 2

Only 1 and 3

Only 2 and 3

All 1, 2, and 3

Answer: All 1, 2, and 3

Explanation: By default, WordPress does not have any commenter rules enabled, but you can set rules such as comment author must fill out name and email, users must be registered and logged in to comment, and allowing people to post comments on new articles. You can enable these rules through the WordPress settings, which allows you to control who can comment on your website and what information they need to provide.


44.  The given command can be used to backup all the database tables.
mysqldump –add-drop-table-h mysql_hostserver-u mysql_username -p mysql_databasename

True
False

Answer: True

Explanation: This command is used to back up all the database tables in WordPress by exporting a SQL dump file. The parameters of the command include:

-h: Specifies the hostname of the database server
-u: Specifies the MySQL username
-p: Prompts for the password associated with the MySQL username
mysql_databasename: Specifies the name of the database that needs to be backed up.

This command line tool can be used to back up all the database tables, including wp_comments, wp_posts, wp_options, wp_users, etc.


45. Which of the following options is the correct order (by priority in use) to display tag in template hierarchy?

tag-[slug].php, tag.php, tag-{id}.php, archive.php, index.php

tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php

archive.php, index.php, tag-[slug].php, tag-{id}.php, tag.php

tag-{id}.php, tag-[slug].php, tag.php, archive.php, index.php

Answer: tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php

Explanation: In WordPress, the template hierarchy is used to determine which template file will be used to display content on a page. The priority in use is determined by the order in which templates are listed. The order of templates listed is the correct order (by priority in use) to display a tag in the template hierarchy. The system will first look for the most specific template file, such as tag-[slug].php or tag-{id}.php. If it doesn't find the specific template, it will then look for a more general template, such as tag.php. If it still can't find a matching template, it will fall back to the archive.php template and, as a last resort, the index.php template.


46. Which of the following plugins can be used to improve the performance by caching your WordPress posts and pages as the static files?

W3 Total Cache

WP Super Cache

Cache Enabler

All 1, 2, and 3

Only 1 and 2

Only 1 and 3

Only 2 and 3

Answer: All 1, 2, and 3

Explanation: The plugins W3 Total CacheWP Super Cache, and Cache Enabler all can help improve the performance of a WordPress website by caching posts and pages as static files. By doing this, the site can load faster as the cached files can be served to visitors directly, instead of generating them dynamically with every page load. This leads to a faster and more responsive website, improving the overall user experience and reducing the server load.


47. You can use the pre_get_posts filter hook for including custom posts into your main query of blog posts.

True

False

Answer: True

Explanation: The pre_get_posts filter hook can be used to modify the main query of blog posts before it is executed. This allows you to include custom post types, taxonomies, or any other customizations to the main query. With this hook, you can change the query parameters, sort order, and even exclude certain posts or post types from the main query results.


48. In relation to posts screen, which of the following columns are displayed in the table of posts?

Title

Categories

Tags

Author

Answer: All Title, Categories, Author, and Tags are displayed in the table of posts on the Posts screen in WordPress.

Explanation: These columns (Title, Categories, Tags, Author) are important information about each post, and the Posts screen in WordPress provides a way to view, edit, and manage all of your posts in one place. By including these columns in the table, it makes it easier to see at a glance what each post is about, who wrote it, what categories and tags are associated with it, and more, which is why they are displayed in the table of posts.


49. Can you import content from a static HTML site to WordPress?

Yes

No

Answer: Yes

Explanation: you can import content from a static HTML site to WordPress. There are various tools and plugins available for this purpose, such as the Import HTML Files plugin or the HTML Import 2 plugin. These tools allow you to import the content of your HTML pages into WordPress, preserving the original formatting and structure of your pages.


50. While backing up your WordPress database by using MySQL Workbench, what is the size limit of the database to be backed up?

1GB

2 GB

5 GB

There is no size limit

Answer: There is no size limit

Explanation: There is no size limit for backing up a WordPress database using MySQL Workbench. The size of the database depends on the hardware and the available storage space on the system where the backup is being taken. MySQL Workbench is a powerful tool that can handle large databases and it provides the functionality to back up the entire database or a selection of specific tables.


51. In relation to get the blog indexed in Google search, which of the following terms processes the information and also determines the quality of the content, so that the information can be placed appropriately on Google pages?

Crawling

Indexing

Googlebot

Answer: Indexing

Explanation: Crawling and indexing are critical steps in the process of getting a website indexed in Google search. Crawling refers to the process of discovering new or updated pages on a website. The Googlebot, which is the software program that crawls the web, follows links from one page to another, and indexes the information it finds. The process of indexing involves organizing this information in a way that makes it searchable so that when a user enters a search query, the results returned are relevant and of high quality. By determining the quality of the content, the Googlebot can ensure that the information is placed appropriately on Google pages.


52.  In relation to file system monitoring in WordPress, which of the following tools is the OS kernel level file monitoring service that can be used for running commands on the filesystem events?

Git

diff

inotify

OSSEC

Answer: inotify

Explanation: The inotify tool is a kernel-level file system monitoring service for Linux. It enables the operating system to monitor specific file systems events, such as changes to a file or directory, and run specified commands in response to these events. This makes it a useful tool for monitoring changes to your WordPress file system, as well as running automated tasks, such as backups or security scans, in response to changes. By using inotify, you can ensure that your WordPress site remains secure and up-to-date even when changes are made to the file system.


53. Which of the following options is a correct example of PATHINFO permalinks?

http://example.com/?p=N

http://example.com/2012/post-name/

http://example.com/2012/12/30/post-name

http://example.com/index.php/yyyy/mm/dd/post-name/

Answer: http://example.com/index.php/yyyy/mm/dd/post-name/

Explanation: PATHINFO permalinks are a type of URL structure used in WordPress to make the URLs of blog posts, pages and other content more human-readable and search engine friendly. The URL structure follows the pattern http://example.com/index.php/yyyy/mm/dd/post-name/, where yyyy represents the year, mm represents the month, and dd represents the day of the post's publication. This structure provides a clear and concise way of displaying the publication date and title of the post, making it easier for both humans and search engines to understand the context of the content.


54. Which of the following statements are correct about the W3 Total Cache (W3Tc)plugin?

It helps to reduce response time by creating static HTML version of pages and permits

web servers to serve them without invoking PHP

It helps for caching database queries (objects).

It manages the headers such as entity tag, cache-control, expires, etc.

Answer: All of the following statements are correct about the W3 Total Cache (W3TC) plugin:

It helps to reduce response time by creating static HTML version of pages and permits

web servers to serve them without invoking PHP.

It helps for caching database queries (objects).

It manages the headers such as entity tag, cache-control, expires, etc.

Explanation: W3 Total Cache is a popular caching plugin for WordPress that helps to improve website performance by caching various elements, such as pages, posts, database queries, and more. It also allows for management of HTTP headers, which can further improve website performance by allowing for better control of caching on the client side.


55. You can edit the .htaccess file by FTP or shell.

True

False

Answer: True

Explanation: You can edit the .htaccess file by FTP (File Transfer Protocol) or shell access. FTP is a commonly used method for uploading and downloading files to and from a web server, and it can also be used to edit the .htaccess file. Shell access, on the other hand, is a command line interface that provides direct access to the underlying operating system of a server. With shell access, you can edit the .htaccess file using a text editor, such as vs code or Sublime Text.


56. Which of the following definitions of the WP_DEBUG constant can be used to trigger the debug mode throughout WordPress?

define( ‘WP_DEBUG', true);

define( ‘WP_DEBUG', ‘true');

define(‘WP_DEBUG', ‘1');

define(‘WP_DEBUG),”true” );

Answer: define( 'WP_DEBUG', true );

Explanation: In this definition, WP_DEBUG is set to a boolean value of true, which enables the debug mode in WordPress. When the debug mode is enabled, WordPress will display errors and warnings on the front end of the site, making it easier for developers to identify and fix issues. It is important to note that the debug mode should only be enabled during development and testing, and it should be disabled in a production environment to prevent sensitive information from being disclosed.


57. Which of the following options is the correct order (by priority in use) to display custom taxonomies in template hierarchy?

taxonomy.php, taxonomy-{taxonomy).php, taxonomy-{taxonomy}-{term}.php, index.php, archive.php

taxonomy-{taxonomy].php, taxonomy-{taxonomy){term}.php, taxonomy.php, archive.php, index.php

taxonomy.php, taxonomy-{taxonomy].php, taxonomy-{taxonomy}{term}.php, archive.php, index.php

taxonomy-(taxonomy)-(term}.php, taxonomy-{taxonomy].php, taxonomy.php, archive.php, index.php

Answer: taxonomy-(taxonomy)-(term}.php, taxonomy-{taxonomy].php, taxonomy.php, archive.php, index.php

Explanation: In WordPress, the template hierarchy is used to determine which template file should be used to display a particular type of content. When displaying custom taxonomies, WordPress will first look for a template file that matches the taxonomy and term, for example, taxonomy-{taxonomy}-{term}.php. If it does not find a template file for the specific taxonomy and term, it will look for a template file for just the taxonomy, for example, taxonomy-{taxonomy}.php. If it does not find a template file for the taxonomy, it will look for the generic taxonomy.php template. If this file is not present, it will fall back to the archive.php template and, if that is not present, the index.php template will be used.


58. By default, WordPress makes use of which of the following files in a theme for displaying posts of any type of the front-end of a website?

index.php

single.php

archive.php

Answer: All of them are correct

index.php

single.php

archive.php

Explanation: By default, WordPress makes use of the index.php file in a theme for displaying posts of any type on the front end of a website. If the theme does not have an index.php file, it will fall back to the archive.php file. If that is also not present, it will use the single.php file for individual posts.

In the template hierarchy, index.php acts as a catch-all file for displaying different types of content, including posts, archives, and search results. If a more specific template file is needed for a particular type of content, such as single posts, WordPress will use that template file instead of index.php.


59. Which of the following options is the correct order (by priority in use) to display home page in the template hierarchy?

home.php, index.php, front-page.php, page.php

front-page.php, home.php,page.php, index.php

index.php, front-page.php, home.php,page.php

front-page.php, index.php, home.php,page.php

Answer: front-page.php, home.php,page.php, index.php

Explanation: In the template hierarchy, WordPress checks for the presence of "front-page.php" first, then "home.php", then "index.php" as a catch-all file. If none of these files are present, it will use "page.php" as a fallback. The home page in WordPress can be either a static page or the latest blog posts, and the correct template file to use depends on the settings specified in the WordPress admin dashboard.


60. If you have shell access to your server, then which of the following commands can you use to change the file permissions for files recursively?

find /path/to/your/wordpress/install/ -type d-exec chmod 777 {} \;

find /path/to/your/wordpress/install/-type f -exec chmod 755 {} \;

locate /path/to/your/wordpress/install/-type f-exec chmod 644{} \;

find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;

Answer: find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;

Explanation: This command finds all files within the specified path /path/to/your/wordpress/install/ and executes the chmod 644 commands on each file, which sets the permissions to allow read access for the owner and read access for others. This is a common file permission setting for web servers.

Note: The command locate locate /path/to/your/wordpress/install/-type f-exec chmod 644{} \; is not correct and should not be used. The "locate" command is used for searching for files and directories on the system, it does not have the capability to modify file permissions. The correct command to change the file permissions recursively is "find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} ;".


61. While selecting the color scheme under the personal options in WordPress, which of the following colors are the menu background colors?

Last two colors

Middle two colors

First two colors

None of the above.

Answer: None of the above.

Explanation: It depends on the WordPress theme being used. The menu background color options can vary depending on the theme, so there is no one answer that fits all situations. It is best to check the customization options within your specific WordPress theme to determine which color options are available for the menu background.


62. Meta tags in WordPress sites can be added in which of the following ways?

By using plugins

By adding them to the “header.php” template file in the WordPress theme

By updating the database

Both options a and b

Both options b and c

Answer: Both options a and b

Explanation: The reason for using both options "a" and "b" for adding meta tags in WordPress sites is that either using a plugin or editing the "header.php" template file in the WordPress theme allows for the addition of meta tags in a WordPress site. The choice between using a plugin or editing the "header.php" file would depend on the specific needs and preferences of the user. Some users may prefer using a plugin for ease of use and convenience, while others may prefer editing the "header.php" file for more control and customization.


63. In WordPress, which of the following attacks can you see via the logs?

Cross Site Scripting (XSS)

Remote File Inclusion (RFI)

Local File Inclusion (LFI)

Directory Traversal attempts

All 1, 2, 3, and 4 

Only 1, 2, and 3

Only 2, 3, and 4

Only 1, 3, and 4

Answer: All 1, 2, 3, and 4.

Explanation: In WordPress, logs are used to record important events related to the website. They can be used to monitor the security of the website and detect any suspicious activity. Among the attacks listed above, Cross Site Scripting (XSS)Remote File Inclusion (RFI)Local File Inclusion (LFI), and Directory Traversal attempts are all potential security threats that can compromise the security of a website. By monitoring the logs, you can detect any of these attacks and take appropriate measures to secure your website.


64. Which of the following options is the correct order of rendering the date-based archive index pages in template hierarchy?

date.php, archive.php, index.php

date.php, index.php, archive.php

index.php, date.php, archive.php

Answer: date.php, archive.php, index.php

Explanation: The order of rendering the date-based archive index pages in the template hierarchy is index.php, date.php, and archive.php because WordPress uses this order to determine the most appropriate template file to display the content. The first file that WordPress finds exists is the one it will use. So, it starts with the most specific, date.php, which is used to display archive pages based on date. If this file does not exist, it then moves on to archive.php, which is used to display archive pages in general. If neither of these files exists, it falls back to the catch-all file, index.php. Using this order, WordPress ensures that the most specific template file is used to display the content, while still having a fallback if necessary.


65. In relation to WordPress editor, which of the following options is the default block type?

Paragraph

Image

Heading

Gallery

Answer: Paragraph

Explanation: The default block type in the WordPress editor is the Paragraph block. This is because the Paragraph block provides the most basic and versatile text formatting options, making it the most commonly used block type. The Paragraph block allows users to write, format, and structure content in a straightforward and simple manner, making it a good starting point for users to create content within the WordPress editor.


66. Which of the following options is an open source WAF (web firewall) that can be installed at a web server to filter the content before it is processed by WordPress?

iThemes Security

WordFence

Mod Security

Shield

Answer: WordFence and ModSecurity are both open source WAFs (web firewalls) that can be installed at a web server to filter the content before it is processed by WordPress.

Explanation: WordFence is a security plugin for WordPress that provides a web application firewall to protect against common security threats such as SQL injectionCross-Site Scripting (XSS), and Cross-Site Request Forgery (CSRF). It can be used to filter incoming traffic before it is processed by WordPress, making it a form of web firewall.

ModSecurity is an open-source WAF (web application firewall) that can be installed on a web server to filter incoming content before it is processed by the web application. It provides protection against various types of attacks, such as SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF), by inspecting HTTP requests and responses and blocking malicious content. ModSecurity is a highly configurable solution that can be customized to meet the specific security needs of a website, making it an effective solution for protecting WordPress sites.


67. Which of the following options is a program that can be used to manipulate the databases remotely through a web interface?

W3 Total Cache

phpMyAdmin

MariaDB

WP Super Cache

Answer: phpMyAdmin

Explanation: phpMyAdmin is a program specifically designed for managing databases remotely through a web interface. It provides a graphical user interface for managing and manipulating databases, including performing operations such as creating, modifying, and deleting tables and records. On the other hand, W3 Total CacheMariaDB, and WP Super Cache are not related to database management but are related to the performance optimization of a WordPress website.


68. In relation to caching in WordPress, which of the following levels of authority are provided by Varnish?

The command line arguments

The CLI interface

VCL programs

HTTP requests

Answer: HTTP requests

Explanation: Varnish provides caching at the HTTP request level. This means that it stores and retrieves data from the cache based on the HTTP requests received by the server. Varnish uses VCL (Varnish Configuration Language) programs to determine how to process incoming requests, and these programs can be customized using the CLI (Command Line Interface) or through command line arguments. By providing caching at the HTTP request level, Varnish can significantly improve the performance of WordPress sites by reducing the number of dynamic PHP requests and database queries required to render a page.

Note: VCL (Varnish Configuration Language) programs are used to define the configuration of Varnish, but they do not provide different levels of authority. Authority levels in Varnish are determined by the specific configurations defined in the VCL programs, not by the VCL programs themselves.


69. WordPress 5 is written in which of the following languages?

Java

C++

PHP

GO

Answer: PHP

Explanation: WordPress 5 is written in PHP because PHP is a server-side scripting language that is well-suited for building dynamic websites. It is widely used for web development and has a large community of developers and users, making it an ideal choice for building open-source projects like WordPress. PHP is also easy to learn, flexible and has a vast array of libraries and plugins available that can be used to extend its functionality. These features make it the best choice for building the dynamic and powerful content management system that is WordPress.


70. In WordPress, which of the following template tags is used to tell WordPress to get the blog title out of the database and add it in the template file?

get_header()

get_footer

the_title

bloginfo(‘name')

Answer: bloginfo(‘name')

Explanation: The template tag bloginfo('name') is used to retrieve and display the site title from the WordPress database, whereas the_title is used to display the title of the current post or page. The get_header() and get_footer() template tags are used to include the header and footer sections of the theme, respectively, into a WordPress template file.


71. If you are receiving an error that says “parse error: unexpected”, which of the following options can be the reasons for the same?

You have forgotten to include the opening bracket (

You have forgotten to include the $ when referencing a variable

Missing a semicolon (;) at the end of an individual line

You have an else statement with no opening if statement

Answer: All of the options 1, 2, 3, and 4 can be the reasons for the error "parse error: unexpected".

You have forgotten to include the opening bracket (

You have forgotten to include the $ when referencing a variable

Missing a semicolon (;) at the end of an individual line

You have an else statement with no opening if statement

Explanation: The error "parse error: unexpected" typically occurs when the PHP interpreter encounters unexpected syntax in your code. One of the most common causes of this error is a missing opening bracket, which can cause the interpreter to misinterpret the structure of the code and generate the error. Other common causes include forgetting to include the $ when referencing a variable, missing a semicolon at the end of an individual line, or having an else statement with no opening if statement. These types of errors can be caused by simple typos, or by more complex logic errors in your code. To fix the issue, you will need to carefully review the code to identify the source of the error and correct it.


72. Which of the following capabilities are only available in the Super Admin role?

manage_network_plugins

delete_plugins

manage_categories

setup_network

Answer: The Super Admin role capabilities are

manage_network_plugins

delete_plugins

setup_network

Explanation: In a WordPress Multisite network, the "Super Admin" role has access to additional capabilities beyond the standard "Administrator" role. These capabilities are specific to the management and administration of the entire network and include the ability to create and delete sites, manage network users, manage network plugins and themes, upgrade the network, and set up the network.


73. In relation to screen options in WordPress, which of the following items/modules is/are hidden by default?

Posts

Tags

Only 1

Only 2

Both 1 and 2

Neither 1 nor 2

Answer: Neither 1 nor 2

Explanation: Screen options in WordPress 5 allow the user to control which items or modules are visible or hidden on a particular screen. By default, certain items or modules may be hidden in order to declutter the interface or streamline the user's workflow. The decision of what is hidden by default is determined by the developers of WordPress based on user testing and feedback, as well as the overall design goals of the platform. The specific items or modules that are hidden by default can change over time based on these factors.


74. In relation to the roles of WordPress 5, which of the following options can only publish and manage their own posts?

Editor

Author

Subscriber

Contributor

Answer: Author

Explanation: The "Author" role in WordPress 5 has the capability to only publish and manage their own posts. This means that an "Author" can create and publish new posts, edit their own posts, and delete their own posts, but they cannot publish or manage posts created by other users. This is the primary difference between an "Author" and other roles such as an "Editor" or "Administrator" which have broader capabilities to manage and publish posts created by multiple users.


75. While using Permalinks in blogging, which of the following options is the title of your article post within the link?

Post Slug

Excerpt

Plugin

Trackback

Answer: Post Slug

Explanation: The "Post Slug" refers to the text that appears in the URL for an individual post. It is a user-friendly version of the post's title, typically derived from the post title, used to create the URL for that post. In Permalinks, the post slug is used to create the final URL for a post, and it can be changed to create a more custom and memorable URL for that post. This helps improve the readability and discoverability of the post in search engines and for users, making it an important element in the overall user experience and search engine optimization (SEO) of a blog.


76.  In relation to posts screen, which of the following options is the default view in the table of posts?

List view

Excerpt view

None of the above.

Answer: List view

Explanation: The default view of the table of posts in the posts screen in WordPress is the "List View". This is because the list view is the simplest and most straightforward way to display a large number of posts in a table format, making it easier to manage, search and edit them. In the list view, each row of the table represents a single post and includes important information such as the post title, author, date, status, and categories.


77. Which of the following statements are correct about the “Pages' post type in WordPress?

You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.

They can be displayed in a reversed time-based order.

They do not make use of categories like posts do

None of the above.

Answer: The correct “Pages" post type in WordPress are:

You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.

They do not make use of categories like posts do.

Explanation: The statement "You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure." is correct because, in WordPress, pages are hierarchical, meaning a page can have a parent and child relationship with another page. This allows you to create a tree-like structure of pages on your site.

The statement "They can be displayed in a reversed time-based order." is incorrect because pages do not have a publish date and are not ordered based on the date they were created or published like posts.

The statement "They do not make use of categories like posts do" is correct because pages in WordPress do not use categories, they only use hierarchical relationships and custom taxonomies.


78. While blogging in WordPress, which of the following options is the collection of programming scripts that can be used to add additional functionality to the blogs?

Post Slug

Excerpt

Plugin

Pingback

Answer: Plugin

Explanation: A plugin in WordPress is a collection of programming scripts that can be used to add additional functionality to the blog. These scripts can extend the functionality of the blog by adding new features, customizing existing features, and integrating with other services and tools. Plugins can help to make a blog more powerful, flexible, and user-friendly by enabling features such as custom post types, advanced analytics, custom forms, and more.


79. You can adjust the length of cookies with the ‘auth_cookie_expiration' hook.

True

False

Answer: True

Explanation: True. The 'auth_cookie_expiration' hook in WordPress allows you to adjust the length of cookies, which determines the duration that a user stays logged in. By default, the value of this hook is set to two days (172800 seconds), but you can adjust this value to a longer or shorter duration by adding a custom function to your theme's functions.php file that filters the expiration time.


80. Suppose, you have a fixed IP address and you do not want any person (except yourself) to login to your admin area.
Which of the following files will help you to limit access to wp-login.php?

.htaccess

web.config

Only 1 can be used

Only 2 can be used

Both 1 and 2 can be used

Neither 1 nor 2 can be used

Answer: Both 1 and 2 can be used to limit access to wp-login.php.

Explanation: You can use .htaccess to limit access to wp-login.php by adding a code that restricts access based on IP address. If you're using a Windows server, you can use web.config to achieve the same result.

The .htaccess file is a server configuration file that can be used to control access to specific files, including wp-login.php. By placing specific rules in the .htaccess file, you can limit access to your admin area to only those with a specific IP address.

On the other hand, web.config is a configuration file for Microsoft Internet Information Services (IIS) and is typically not used for a WordPress installation.


81. Which of the following options are the correct requirements for using “Pretty” permalinks?

An .htaccess file

Apache web server with the mod_rewrite module installed

The FollowSymLinks option enabled in the WordPress's home directory

All 1, 2, and 3

Only 1 and 2

Only 1 and 3

Only 2 and 3

Answer: All 1, 2, and 3

Explanation: The ".htaccess" file, Apache web server with the mod_rewrite module installed, and the FollowSymLinks option enabled in the WordPress's home directory are required for using "Prettypermalinks because these allow for the creation of clean and easily readable URLs for your blog posts, pages and other content. The .htaccess file is used to specify the rules for how URLs should be rewritten and processed, while the Apache web server with the mod_rewrite module installed is necessary to enable the use of these rules. The FollowSymLinks option enables the server to follow symbolic links, which is necessary for the server to properly process the rules specified in the .htaccess file.


82. Which of the following options are the correct cookies that WordPress uses for the users who have registered an account with the WordPress site?

wordpress_logged_in_{hash}

comment_author_url_{HASH}

comment_author_{HASH}

wordpress_[hash]

Answer: WordPress uses "wordpress_logged_in_{hash}" and "wordpress_[hash]" cookies for the users who have registered an account with the WordPress site.

Explanation: WordPress uses different cookies to manage user sessions and preferences. The "wordpress_logged_in_{hash}" cookie is used to store the user's authentication credentials, indicating that the user is logged in. The "comment_author_url_{HASH}" and "comment_author_{HASH}" cookies store the user's name and website URL if the user has previously left a comment on the site. The "wordpress_[hash]" cookie is a general-purpose authentication cookie that stores information about the user's session. All these cookies are used by WordPress to provide a seamless and secure user experience, allowing users to remain logged in and have their preferences remembered as they browse the site.


83. Which of the following options is the purpose of the Piklist plugin in WordPress?

It is used to create a list of disabled users in WordPress.

It is used to create a key-value pair for authenticating a user.

It permits you to create custom meta boxes and fields in WordPress.

Both options a and c

Answer: It permits you to create custom meta boxes and fields in WordPress.

Explanation: Piklist is a plugin for WordPress that is used for creating custom meta boxes and fields. It allows developers and users to easily add extra data to posts, pages, custom post types, users, and more. The plugin provides an intuitive, user-friendly interface for building and managing these fields and meta boxes, making it easier for users to work with custom data in WordPress. The plugin does not provide any functionality for creating a list of disabled users or for authenticating users.


84. Which of the following cookies is set by WordPress 5 that is used to customize your view of the admin interface and the main site interface?

wordpress_logged_in_[hash]

wp-settings-time)-[UID]

wordpress_[hash]

None of the above.

Answer: wp-settings-time)-[UID]

Explanation: The "wordpress_logged_in_[hash]" cookie is set by WordPress to customize a user's view of the admin interface and the main site interface. The "[hash]" part is a unique identifier that is specific to each user. This cookie helps to remember user preferences, such as the selected color scheme and the hidden/displayed items in the admin interface and provides a customized experience for each user. This allows the user to have a personalized view of the site that they can easily navigate and use more efficiently.

The others cookies serve different purposes such as remembering login credentials, preferences for the WordPress interface, and user sessions. The selected cookie, "wp-settings-time-[UID]", specifically relates to the customization of the view of the WordPress interface for the user with the specific UID.


85. In relation to the dashboard screen in WordPress 5, which of the following options are provided by the At a Glance widget?

Most recent comments

Number of posts

Number of pages

Number of comments

Recently published posts

Answer: The At a Glance widget provides the following options:

Number of posts

Number of pages

Number of comments

Explanation: The At a Glance widget in the WordPress dashboard provides quick information about the website, including the number of posts, pages, and comments. This widget is designed to give users a quick overview of the website's content and activity. This information helps users quickly gauge the status and activity of the website, and make decisions on what tasks they may need to perform next.


86. Empty

Answer: 

Explanation: 


87. By default, which of the following post types are always included within a WordPress installation?

Attachments

Custom css

Changesets

Posts

Answer: Posts

Explanation: Posts are the main content type in a WordPress site, used to publish and organize content such as articles, blog posts, and updates. Posts are central to the functionality of a WordPress site, as they form the basis for the site's content and allow users to add and publish new content in a structured manner. As a result, posts are always included by default in a WordPress installation.


88. The plugins Rublon and WordFence cannot be used for two-step authentication.

True

False

Answer:  False

Explanation: Both the Rublon and WordFence plugins offer two-step authentication as a security feature for WordPress sites. Two-step authentication adds an extra layer of security to a WordPress site by requiring users to provide two forms of authentication, such as a password and a one-time code generated by an authenticator app, to log in.

Rublon provides two-step authentication as a Pro feature and a Free feature Both, allowing users to secure their WordPress site with an extra layer of security.

WordFence also offers two-step authentication as a Premean feature and a Free feature Both, providing users with the option to add an extra layer of security to their site and protect it from unauthorized access.


89. By default, meta tags are included in WordPress.

True

False

Answer: False.

Explanation: By default, WordPress does not include meta tags. However, meta tags can be added to a WordPress site through the use of plugins or by manually editing the theme's header.php file.


90. Which of the following options is the correct order (by prioroty in use) to display tag in template hierarchy?

tag-{slug}.php, tag.php, tag-{id}.php, archive.php, index.php

tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php

archive.php, index.php, tag-{slug}.php, tag-{id}.php, tag.php

tag-{id}.php, tag-{slug}.php, tag.php, archive.php, index.php

Answer: tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php

Explanation: In WordPress, the template hierarchy is a system used to determine which template file to use to display a certain page or content on your website. The order of priority in the template hierarchy determines which file will be used first in case multiple template files can be used to display certain content.

The correct order (by priority in use) to display a tag in the template hierarchy is: tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php


So, WordPress will first look for a tag-specific template file (tag-{slug}.php or tag-{id}.php) that matches the requested tag's slug or ID, then it will look for a generic tag template file (tag.php), then it will look for a generic archive template file (archive.php), and finally, it will use the default template file (index.php) if no other template files are found.


91. In relation to the profile screen in WordPress, which of the following personal options are available that can be configured?

Visual editor

Admin color scheme

Syntax highlighting

Toolbar

Answer: Visual editorAdmin color scheme, and Toolbar are available options that can be configured on the profile screen in WordPress.

Explanation: The options listed are part of the personal options that can be configured on the profile screen in WordPress. This screen provides users with the ability to customize certain settings related to their user account, including the visual editor, admin color scheme, syntax highlighting, and toolbar. 

Syntax highlighting is typically not an option in the profile screen in WordPress as it is a feature used in code editors or integrated development environments (IDEs) for improving the readability and understanding of the source code. The profile screen in WordPress is intended for user preferences and customization, such as choosing a visual editor or selecting an admin color scheme for the backend interface.


92. Which of the following options are the correct files that are required for making a theme in WordPress?

index.php

style.css

theme.php

All 1,2 and 3

Only 1 and 2

Only 1 and 3

Only 2 and 3

Answer: Only 1 and 2

Explanation: The files index.php and style.css are the minimum required files for making a theme in WordPress. The file index.php is the main template file and it is required to display the content of a WordPress website. The file style.css is used to define the styles and layout of the theme. The file theme.php is not a required file, but it can be used to include additional functions and features in the theme.


93. Which of the following statements is/are correct about the post types in WordPress?

Attachments can make use of the wp_postmeta table to store the extra information like image’s metadata

Each theme in WordPress can have its own custom css post

Both options a and b

Neither option a nor b

Answer: Both options a and b

Explanation: In WordPress, "Attachments" is a built-in post type that can use the wp_postmeta table to store extra information such as the metadata of an image. However, themes in WordPress do not have a custom CSS post type, as CSS is typically stored in a separate stylesheet file.


94. The MySQL Workbench Tool can be used for taking backups of WordPress databases. With which of the following operating systems, can you use this tool?

Windows

Mac

Linux

Answer: All of them can be used

Windows

Mac

Linux

Explanation: MySQL Workbench is a multi-platform tool, which means it can be used on different operating systems, including WindowsMac, and Linux. It is a graphical tool for managing and developing MySQL databases, and it can be used to perform various database management tasks, including taking backups of databases.

 

1. What should be done if a fatal error message “Out of Memory” is received while adding a new post in WordPress?

Contact hosting provider to get memory increased.
Add clear(‘WP_CACHE’, ‘0’); to your wp-config.php file.
Add define(‘WP_MEMORY_LIMIT’, ’64M’); to your wp-config.php file.
Install a cache plugin and clear the cache memory from it.

2. In this stock quote api for wordpress of yahoo http://download.finance.yahoo.com/d/quotes.csv?s=GOOG&f=ll, what does ‘ s’  stand for?

Stock Format
Stock Variable
Stock Symbol
Stock Supplier

3. How can widgets for individual pages be managed within the page editor?

By creating a new sidebar for every page
By including sidebar.php in every page
By creating a new sidebar for the page, followed by conditional display rules on individual widgets
By using a custom widget plugin

4. Which of the following is the correct way to specifically enable plugins for certain posts and pages that need them?

By going in WordPress plugins section and selecting the specific plugins from there.
Installing a plugin organizer plugin.
By going in the General Settings area.
It can’t be done.

5. How can the social icons on a WordPress page be restored, if they stop working due to implementing infinite scrolling on the page?

Add this code where the code of the social icons are present:
var el = document.body;
if (typeof FB !== “undefined”) { FB.XFBML.parse(el); }
if (typeof twitter !== “undefined”) { twitter.XFBML.parse(el); }
if (typeof googleplus !== “undefined”) { googleplus.XFBML.parse(el); }
Disable the social icons plugin and then enable it again.
Add this code where the code of the social icons are present:
var el = document.body; if (typeof gapi !== “undefined”) { gapi.plusone.go(el); }if (typeof FB !== “undefined”) { FB.XFBML.parse(el); }if (typeof twttr !== “undefined”) { twttr.widgets.load(); }
Clear the browser cache.

6. Which of the following will call the WordPress media uploader form element?

<form enctype=”multipart/form-data” method=”post” action=”<?=bloginfo(“siteurl”);?>/wp-admin/media-upload.php?inline=&upload-page-form=” class=”media-upload-form type-form validate” id=”file-form”>

<a onclick=”return false;” title=”Upload image” class=”thickbox” id=”add_image” href=”/media-upload.php?type=image&TB_iframe=true&width=640&height=105″>Upload Image</a>
<a href=”/media-upload.php?type=image&TB_iframe=true&width=640&height=105″>Upload Image</a>
<form enctype=”multipart/form-data” method=”post” action=”<?=bloginfo(“bloginfo”);?>/wp-admin/media-upload.php?inline=&upload-page-form=” class=”media-upload-form type-form validate” id=”file-form”>

7. Which of the following is the correct way to include the content of one page to another?

wp_get_page($page) to retrieve the content
By using get_page_by_path($path) function to retrieve page content
wp_show_page($page)
show_post($post)

8.Which of the following is the correct way to add a simple WordPress gallery in an external PHP file?

add_filter(‘do_shortcode [ gallery]’, 11);
echo do_shortcode(‘ [ gallery]’);
add_filter(‘widget_text’, ‘do_shortcode [ gallery]’);
This can’t be done.

9. Which of the following will remove anchors from all nodes/levels except the 4th level nodes of a WordPress category?
Parent node (1st level)
–>Child node (2nd level)
—->3rd level node
——>4th level node
Note: There may be more than one right answer.

.cat-item a, .cat-item .cat-item a.hover {cursor: default;} .cat-item .cat-item a.hover {cursor: pointer;}

.cat-item a, .cat-item .cat-item a {cursor: default;} .cat-item .cat-item a {cursor: pointer;}

.cat-item a, .cat-item .cat-item .cat-item .cat-item a {cursor: default;}

.cat-item .cat-item .cat-item a {cursor: pointer;}

.cat-item a, .cat-item .cat-item a:hover {cursor: pointer;} .cat-item .cat-item a:hover {cursor: default;}

10. ____________ can write their own posts but may not publish or delete them. Their HTML is limited to the set of allowed tags and they cannot upload media files.

Contributor
Author
Editor
Subscriber
Administrator

11. What type of tool is WordPress?

It is a just CMS for creating websites
Blogging tool and Partially – CMS
Full Featured Blogging Tool and CMS
Tool to create website with templates and admin section

12. Which among the following is the best way to detect if the current page is the login page in WordPress?
if ($pagenow != ‘wp-login.php’ && !is_admin())
 function is_login_page() {return in_array($GLOBALS[‘pagenow’], array(‘wp-login.php’, ‘wp-register.php’));}
$uri = $_SERVER[‘REQUEST_URI’];echo $uri;
function is_login_page() {return !strncmp($_SERVER[‘REQUEST_URI’], ‘/wp-login.php’, strlen(‘/wp-login.php’));}

13. What is the output of the following code?
[sourcecode language=”r”]
Your R code and comments
x <- rnorm(100)
y <- x + 10
[/sourcecode]
Number of the comments in blog post limited to 100
R removed from the blog post
Removed comments from blog post
embed R in blog post

14. How would you extend the time of the WordPress login session?

add_filter( ‘auth_cookie_expiration’, ‘stay_logged_in_for_1_year’ );
function stay_logged_in_for_1_year( $expire ) {
return 31556926; // 1 year in seconds}

add_filter(‘auth_cookie’, ‘stay_logged_in_for_1_year’);
function stay_logged_in_for_1_year($expire) {
return 31556926;}
add_filter(‘secure_logged_in_cookie’, ‘stay_logged_in_for_1_year’);
function stay_logged_in_for_1_year($expire) {
return 31556926;}

15. Which of these are a part of WordPress API?
Note: There may be more than one right answer.
Theme Modification API
Metadata API
Theme Update API
Settings API
Options API
Theme Customization API

User API
Update API 

16. Which of the following is the correct way for enabling support for Post Thumbnails?
add_theme_support( ‘thumbnails’ );
add_support( ‘post-thumbnails’ );
add_theme_support( ‘post-thumbnails’ );
theme_support( ‘thumbnails’ );

17. Which concept does WordPress uses to control user access to different features?
Username
Access tokens
Role
Cookies

18. How do you enable the Network Setup menu item(enable Multisite) in WordPress?
Install WP MU plugin
Activate WP Multisite in Settings menu
Set WP_ALLOW_MULTISITE as true in wp-config.php
WP MU has been discontinued as a separate project so there is no way to set up multisites in WP now

19. Which constant is NOT recognized in wp-config.php?
WP_SITEURL
WP_CONTENT_DIR
WP_CONTENT_URL
WP_HOME_URL

20. Select all the default post types in WordPress.
Note: There may be more than one right answer

post
page
attachment
revision
nav_menu_item

21. What is the default table prefix in WP?
_wp
w_
wp_
wp-

22. What is WordPress multisite?
Special version of WordPress that can support many sites and is not free.
WP configuration feature that supports multiple sites.
A WP plugin that supports multiple sites.
A popular WP theme that supports multiple sites.

23. Which is the most important file that should be deleted from your WordPress install directory once you’ve completed setup?
setup-example.xml
wp_config_sample.php
wp-config-sample.php
wp-setup-sample.php

24. Which files are a minimum required by a theme to function?
style.css and functions.php
style.css and index.php
index.php and functions.php
index.php, functions.php and style.css

25. How can an <li> tag’s class and ID attributes be removed from menu items and page lists?

add_filter(‘nav_menu_css_class’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘nav_menu_item_id’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘page_css_class’, ‘my_css_attributes_filter’, 100, 1); function my_css_attributes_filter($var) { return is_array($var) ? array() : »; }
add_filter(‘nav_menu_css_class’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘nav_menu_item_id’, ‘my_css_attributes_filter’, 100, 1); function my_css_attributes_filter($var) { if(is_array($var)){ $varci= array_intersect($var, array(‘current-menu-item’)); $cmeni = array(‘current-menu-item’); $selava = array(‘selectedmenu’); $selavaend = array(); $selavaend = str_replace($cmeni, $selava, $varci); } else{ $selavaend= »; } return $selavaend; }
add_filter (‘wp_nav_menu’,’strip_empty_classes’); function strip_empty_classes($menu) { $menu = preg_replace(‘/ class=([«\’])(?!active).*?\1/’,»,$menu); return $menu; }
None of the above

26. Which files are required for a theme to function?
style.css, functions.php
style.css, index.php
index.php, functions.php
index.php, functions.php, style.css

27. You need a single post meta value in a bigger post loop and you need it only one time, and you want it to be as fast as possible. How would you proceed?

Of course, get_post_meta($post->ID, ‘post_meta’, true);
I would use a direct query like: $wpdb->get_var($wpdb->prepare(«SELECT meta_value from $wpdb->postmeta WHERE post_id = %d and meta_key = ‘post_meta’”, $post->ID));
I would use a direct query like: $wpdb->get_results($wpdb->prepare(«SELECT * from $wpdb->postmeta WHERE meta_key = %s”, ‘post_meta’));

28. Select all the default taxonomies in WordPress.
Note: There may be more than one right answer

post_category
post_tag
link_category

product_tag
post_format
category
 

29. How do you enable debug mode in WP?
By going to Dashboard > Settings > General and then enable debug mode
By setting WP_DEBUG as true in wp-config.php
It is enabled by default

30. Where can you change the Timezone used by WordPress in the dashboard?
In Settings > Media
In Settings > General
In Settings > Reading
In Settings > Writing

31. What are the default plugins installed in the WordPress?
Note: There may be more than one right answer.
Contact form7
Akismet
All in one SEO
Hello Dolly

32. What is the name of self-hosted version of WordPress?
WordPress.com
WordPress.org
Open Source WordPress
WordPress online

33. Which default WP function can be used to assign different classes to the body element?
body_class()
get_theme_support()
sanitize_html_class()

34. Which function(s) can be used to programatically create a new user in WordPress?
Note: There may be more than one right answer.
wp_update_user
wp_create_user
register_new_user
wp_insert_user

35. Retrieve all the post types that support thumbnails or excerpts.

get_post_type(array(‘supports’ => array(‘thumbnail’, ‘excerpt’)), ‘names’, ‘or’);
post_type_supports(‘post’, array(‘thumbnail’, ‘excerpt’), ‘or’);
get_post_types_by_support(array(‘thumbnail’, ‘excerpt’), ‘or’);

36. Which of the following functions check if current visitor is a logged in user?
is_visitor_logged_in ();
is_user_logged_in ();
if_user_logged_in ();
is_user_logged ();

37. Is it possible to bypass trash and force deletion with wp_delete_post() function?
No
Yes

38. 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?
setup.html
wp-setup.php
wp-config.php
wp-install.php

39. What type of hook is wp_meta
Action Hook
Filter Hook

40.How will you check if a page exists for a given URL?
get_page_by_path()
get_page_url()
get_page_link()
get_page_uri()

41. What can the Contributor role do?
Moderate comments
Publish posts
Edit posts
Edit pages

42. Is it possible to create posts programmatically?
No
Yes, with wp_insert_post() function
Yes, with wp_add_post() function
Yes, with wp_create_post() function

43. What is common to all these functions: next_post, previous_post, link_pages, the_author_url, wp_get_link?
They all return URLs
They are all deprecated
They all point to posts or post lists
They all echo something

44. How to display the value of a post meta field named my_custom?
$post_meta = get_post_meta($post->ID, ‘my_custom’, true);
echo $post_meta;

$post_meta = get_post_meta($post->ID);
echo $post_meta;
echo get_meta($post->ID, ‘my_custom’);

45. Pick the correct default Post Types readily available to users or internally used by the WordPress installation.
Note: There may be more than one right answer.

Post
Page
Blog
Media
Archive
Category

46. Which of the following is incorrect possible value for $show attribute of bloginfo($show) function?
‘name’
‘description’
‘homeurl’
‘admin_email’

47. Where can you set a static page as the front page in WP?
In wp-config.php
In Dashboard->Settings->Reading
In Dashboard->Settings->General
In Dashboard->Appearance

48. How you determine if a script has been enqueued correctly?
has_enqueue_script(‘my-script-handle’);
wp_script_is(‘my-script-handle’, ‘enqueued’);
is_script_loaded(‘my-script-handle’);

49. How do you check if the current user has the role “administrator”?
Note: There may be more than one right answer.

current_user_can_do(‘manage_options’);
is_admin();
current_user_can(‘administrator’);
current_user_can_do(‘manage’);
in_array(‘administrator’, wp_get_current_user()->roles);

50. What is the correct way for displaying navigation menu called “Primary Menu”?

wp_nav_menu( array(
‘menu’ => ‘Primary Menu’) );

wp_navigation_menu( array(
‘menu’ => ‘primary-menu’) );
wp_navigation( array(
‘menu’ => ‘Primary Menu’) );
wp_menu( array(
‘menu’ => ‘primary-menu’) );

51. Which of the following is true about bloginfo(‘url’); function?
Displays URL of the active theme’s directory.
Displays the “Site address (URL)” set in Settings > General. This data is retrieved from the “home” record in the wp_options table.
Displays the current post URL.
Displays the “WordPress address (URL)” set in Settings > General. This data is retrieved from the “siteurl” record in the wp_options table.

52. How do you know if a WordPress action has been previously fired?
Using the has_action(‘my_action’) function.
Using the did_action(‘my_action’) function.
Using the current_filter function. 

53. Clean up a comma-separated list of post ids. Example list: 1254,9930,10974,”192”,9930,192
array_map(‘absint’, ’1254,9930,10974,”192”,9930,192’);
explode(1254,9930,10974,”192”,9930,192);
wp_parse_id_list(1254,9930,10974,”192”,9930,192); 

54. What is the correct way to use the _n() function?
printf( _n( ‘The post has 1 star.’, ‘The post has %d stars.’, $view_count ), $view_count );
printf( _n( ‘The post has %d star.’, ‘The post has %d stars.’, $view_count ), $view_count );

55. How many WordPress posts can you create?
WordPress recommends less than 10,000 posts.
WordPress is limited to 1,000 posts.
WordPress has not set any limit.
WordPress is limited to 1,00,000 posts.

56. In which way MD5 hash does wordpress stores and represents?
In Hex string
In Base64 string
in raw data file
text file

57. Sometimes you might want to disable all the automatic background updates of WordPress, extensions, themes and languages. How would you accomplish that?
Note: There may be more than one right answer

via a define in wp-config.php: define(‘AUTOMATIC_UPDATER_DISABLED’, true);
with a filter: add_filter(‘automatic_updater_disabled’, ‘__return_true’);
I’m using git, so I would use a special filter:
add_filter(‘automatic_updates_is_vcs_checkout’, ‘__return_false’, 1); 

58. You need to include a link in a sentence. How can you do that?
_e( ‘Publish something using our Post by Email feature.’ );
printf( __( ‘Publish something using our Post by Email feature.’), ‘http://support.wordpress.com/post-by-email/’ );
printf( __( ‘Publish something using our %s feature.’ ), sprintf( ‘%s’, __( ‘Post by Email’ ) ) );

59. Select all the WordPress supported audio formats.
Note: There may be more than one right answer
aiff
mp3
ogg

flac
wma
m4a
wav

60. Assuming we are using ‘wp_’ as the database table prefix, in which table are all the custom fields related to a post stored?
wp_posts
wp_postmeta
wp_terms

61. Is it possible to disable the trash and delete the posts immediatelly?
No.
Yes, via a define in wp-config.php: define(‘EMPTY_TRASH_DAYS’, 0);
Yes, via a define in wp-config.php: define(‘EMPTY_TRASH_DAY’, 0);

62. Which is the default site update service that WordPress automatically notifies when you publish a new post?
http://www.feedsubmitter.com
http://rpc.pingomatic.com
http://google.com
http://ping.feedburner.com

63. Which of the following is not a WordPress role?
System
Subscriber
Administrator
Editor

64. Which of the following is not a default image size in WP?
Small Size
Medium Size
Large Size
Thumbnail Size

65. Which of the following is an example of a WordPress plugin that provides pagination capabilities?
Page Break
Page Generator
WP-PageNavi
Page-list

66. What is a permalink?

Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings.
The numeric IP address of your WordPress site.
The complete URL of your WordPress site.
A popular WordPress plugin.

67. Which from below are default post types in WordPress and are readily available to users or internally used by the WordPress installation by default:
Note: There may be more than one right answer
Post
Page
Links
Attachment
Revision
Comments
Navigation menu

68. Which of the following is not a default user role in WP?
Blogger
Author
Subscriber
Contributor

69. What are WordPress hooks?
Setting options available to WordPress administrators.
Security functions that run inside WordPress
Group of plugins which control WordPress behavior.
Ways to change the default behavior of WordPress.

70. How many WordPress themes can be installed in a single WordPress installation?
1
10
100
Unlimited

71. _____________ can publish, edit, and delete their own posts. They cannot write pages. They can upload some kinds of media files, and they are allowed to use only the limited set of HTML tags.
Contributor
Author
Editor
Subscriber
Administrator

72. Which WP global object is used to execute custom database queries?
$wpdb
$wp_db
$db_query
$wp_query

73. Arrange the following templates in decreasing order of priority from left to right for Site Front Page:
index.php
front-page.php
home.php
index.php, front-page.php, home.php
front-page.php, home.php, index.php
home.php, front-page.php, index.php
front-page.php,index.php home.php

74. Is it possible to retrieve list of custom taxonomy terms with get_terms() function?
Yes
No

75. What database does WordPress use?
Notes
PostgreSQL
MySQL
Oracle

76. What is true about the_meta() function?
Note: There may be more than one right answer

This is a function for displaying custom fields for the current post, known as the “post-meta” (stored in the wp_postmeta table).
It formats the data into an unordered list.

It may be used outside the loop.
the_meta() will ignore meta_keys (i.e. field names) that begin with an underscore.

76. Which of the following files in a WP theme is NOT a file required by the theme review team for acceptance into the WordPress.org theme directory?
page.php
style.css
index.php
comments.php
screenshot.png

77. Which of the following will change the default ordering of categories in the WordPress post edit page?
Adding ‘checked_ontop’ => FALSE to the args in wp_terms_checklist() in the functions.php file
Disabling category ordering in the WordPress admin settings
Setting category_ordering=false in the wp-config.php file
Adding ‘category_ordering’ => FALSE to the args in wp_terms_checklist() in the functions.php file

78. If you need to store information temporarily, which WordPress system would you use:
Options
Meta tables
Transients
The REST API

79. Select all of the supported page statuses in WordPress.
Note: There may be more than one right answer.

draft (Draft)
pending (Pending Review)
private (Private)
publish (Published)

80. Which of the following is the correct way to register shortcode?
function foobar_func ( $atts ){return “foo and bar”;}new_shortcode( ‘foobar’, ‘foobar_func’ );
function foobar_func ( $atts ){return “foo and bar”;}insert_shortcode( ‘foobar’, ‘foobar_func’ );
function foobar_func ( $atts ){return “foo and bar”;}register_shortcode( ‘foobar’, ‘foobar_func’ );
function foobar_func ( $atts ){return “foo and bar”;}add_shortcode( ‘foobar’, ‘foobar_func’ );

81. Which of the following strings is not a default WordPress post format slug?
aside
image
quote
status

82. Which HTML tags are not allowed to be used in a post comment?
Note: There may be more than one right answer
code
form
img
strike
table

83. Which hook can be used to update kses and TinyMCE to allow select new attributes for an HTML element?
tool_box
tiny_mce_before_init
tiny_mce_plugins
htmledit_pre

84. What is the difference between filters and actions?
An action is defined as a function that takes in some kind of input, modifies it, and then returns it whereas a filter is just a place where you call a function, and you don’t really care what it returns
A filter is defined as a function that takes in some kind of input, modifies it, and then returns it whereas an action is just a place where you call a function, and you don’t really care what it returns
There is no difference. Both are used for hooking into an action.

85. Where plugins options are stored in WordPress?
They are stored in WordPress theme folder.
They are stored in WordPress plugins folder.
They are stored in WordPress.org and not on your site.
They are stored in WordPress Database.

86. When is it recommended to rebuild the $wp_rewrite object with the flush_rewrite_rules() function?
once in a while
after every one hour
on every custom post type page load
after activatation and deactivation of a custom post types plugin

87. When adding a function to the “the_content” hook, where will you see changes?
On the blog list page.
On the single post page.
It depends on how your theme is set up.
On the archive page.

88. What is the WordPress way of adding a query variable to an URL
site_url(‘?’ . $foo . ‘=’ . $bar);
home_url(‘$’ . $foo . ‘=’ . $bar);
add_query_arg($foo, $bar, home_url());

89. Which standard WP class do you need to necessarily extend to create your widget?
WP_Widget
WP_Widget_Form_Customize_Control
WP_Customize_Control
WP_Customize_Sidebar_Section

90. Display the current pagination number.
$page = get_page(‘1’);
echo ‘Current page: ’ . $page->post_paged;
$paged = get_query_var(‘paged’, 1);
echo ‘Current page: ’ . $paged;
$page = get_post(‘1’);
echo ‘Current page: ’ . $page->post_paged;

91. Which of the following is true about wp_mail() function?
Note: There may be more than one right answer.

A true return value does not automatically mean that the user received the email successfully.
For this function to work, the settings SMTP and smtp_port (default: 25) need to be set in your php.ini file.
The default content type allows using HTML.
The function can handle only one email as $to parameter.

92. Which hook fires after WordPress has finished loading but before any headers are sent?
activate_wp_head
init
activate_header
xmirpc_call

93. What WordPress function would you use to retrieve the name of the current action?
current_filter
current_action_name
current_hook

94. Which loop is used by default to fetch the posts and loop through them?
for loop
while loop
foreach loop

95. “X people have seen this post” should be output like this:
printf( _n( ‘%d person has seen this post.’, ‘%d people have seen this post.’, $view_count ), $view_count );
printf( __( ‘%d people have seen this post.’ ), $view_count );
echo _n( ‘One person has seen this post’, “$view_count people have seen this post.” );
printf( _n( ‘%d person has seen this post.’, ‘%d people have seen this post.’ ), $view_count );
printf( 1 == $view_count ? __( ‘%d person has seen this post.’ ) : __( ‘%d people have seen this post.’ ), $view_count );

96. Pick the default template tag(s).
Note: There may be more than one right answer.

the_field()
wp_title()
the_title()
wp_field()

97. When should the wp_kses function for Data Validation be run?
At the time of form submission
Before the data is saved in the database
before the data is being rendered on the webpage

98. Arrange the following templates in decreasing order of priority from left to right used to display the posts on a Category page.
index.php
category.php
archive.php
category-ID.php
category-slug.php
category-ID.php, category-slug.php, category.php, archive.php, index.php
category-slug.php, archive.php, category.php, category-ID.php, index.php
index.php, category.php, archive.php, category-ID.php, category-slug.php
category-slug.php, category-ID.php, category.php, archive.php, index.php

99. How would you retrieve an array of all the post tags?
Note: There may be more than one right answer
get_terms(‘post_tag’, array(‘hide_empty’ => false));
get_terms(array(‘taxonomy’ => ‘post_tag’, ‘hide_empty’ => false));
get_term();
wp_terms()
wp_terms_checklist();

100. Which function should be used to insert a post title into the title attribute of an HTML element?
get_the_title();
the_title_attribute();
the_title();

101. What is the name of table in database which stores custom fields data?
wp_custommeta
wp_options
wp_terms
wp_postmeta

102. Which of the following is/are NOT the default abstract methods available in the Walker class for menus?
Note: There may be more than one right answer.
start_lvl()
end_lvl()
start_li()
end_li()

103. What does wp_rand() function?
Gets random post ID.
Gets random category ID.
Generates a random post ID for wp_insert_post() function.
Generates a random number

104. Which deprecated functions are still in use in WordPress?
register_globals()
magc_quotes()
addslashers()
get_permalink()

105. Is it possible to update posts programmatically?
Yes, with wp_edit_post() function.
Yes, with wp_update_post() function.
Yes, with wp_change_post() function.
No.

106. Which of the following categories of persons can read a post locked by password?
Only administrators, editors and authors.
Registered users who know a password.
Anyone who knows a password

107. Where do you change theme name and author details?
style.css file in the theme folder
index.php file in the theme folder
readme.txt file in the theme folder

108. In a WordPress multisite, how can a new blog site be added from the Network Admin panel?
add_action( $tag, $function_to_add, $priority, $accepted_args);
define (‘WP_ALLOW_MULTISITE’, true);
do_action (‘wpmu_blog’, $blog_id, $user_id, $domain, $path, $site_id, $meta);
do_action (‘wpmu_new_blog’, $blog_id, $user_id, $domain, $path, $site_id, $meta);

109. What is the correct order of priority in decreasing order from left to right for Custom Post Type template files?
single-{post-type}-{slug}.php, single-{post-type}.php, single.php, singular.php, index.php
single-{post-type}.php, single-{post-type}-{slug}.php, single.php, singular.php, index.php
single-{post-type}.php, single.php, singular.php, single-{post-type}-{slug}.php, index.php
index.php, singular.php, single-{post-type}-{slug}.php, single-{post-type}.php, single.php

110. What is Automated Testing in WordPress?
Automated testing is running test cases where manual intervention is not required to run each one.
It is a plugin which is used to test your custom template or plugin.
It is a function available in WordPress to test the custom template/plugin.
Thereess.

111. What is the name of theme file for a page with slug ‘about’?
page-slug-about.php
page-about.php
about.php

112. You want to schedule a backup of your site database but do not have enough permissions to access your host. Which of the following choices can help you perform this task?
Use phpMyAdmin.
Install “wp database backup” plug-in.
Use cron job to schedule.
Cannot schedule.

113. Which of the following actions must be performed before upgrading WordPress?
Back up the site.
Ensure that the database user name registered to WordPress has permission to create, modify, and delete database tables.
Deactivate plug-ins.
Enable FTP on the site.
c, and d
b, and c

114. Which of the following files must be deleted after installing WordPress 4.1?
wp-admin/install.php
install.php
installation.php
None of these files.

115. On which of the following databases can WordPress 4.1 be installed by default?
MySQL
Oracle
Microsoft SQL Server
Postgres

116. In WordPress 4.1, you can override database values for your site URLs in wp-config.php.
Yes
No

117. After moving a WordPress 4.1 site to a new host, if you change your site’s URL, you have to update your posts and pages to correct paths to the uploaded media files.
True
False

118. Is it possible to run more than one site/blog from a single installation of WordPress 4.1 ?
Yes
No

119. What is the first action you need to take for enabling WordPress 4.1 MU feature?
Enable WordPress MU feature on admin panel
Enable Network feature
Add this code to wp-config.php file: define( ‘WP_ALLOW_MULTISITE’, true );

120. Is super cache a built-in plugin of WordPress 4.1 ?
Yes
No

121. From which version of WordPress can you choose your username during the installation process?
2.7
2.8
3.0
4.0.1
4.1

122. Can you move your wp-config.php file to the parent directory without changing any settings?
Yes
Yes, provided that you are installing WordPress in your web root directory (such as public_html). Otherwise, it is imposible.
No

123. Can you move your wp-content folder elsewhere or rename it to something else without changing any settings?
Yes
No

124. A possible way to collect real-time statistics about traffic to a WordPress site is to:
One possible way to collect real-time statistics about traffic to a WordPress site is to:
use a built-in tool
use a plug-in
use a widget
None of the above: these statistics cannot be collected.

125. The date/time format of a WordPress site can be changed in __________________.
the theme’s source code
admin settings
the database
the config file

126. Which of the following blog sites can be imported into WordPress?
MySpace
Yahoo blog
Bebo
Blogspot
Opera
All of the above.

127. Can you import content from joomla or mambo site into wordpress?
Yes
No

128. Can you import content from static HTML files into wordpress?
Yes
No

129. User Level 0 converts to …
Contributor
Author
Editor
Subscriber
Administrator

130. User Level 10 converts to …
Contributor
Author
Editor
Subscriber
Administrator

131. A taxonomy is a _______.
category
term
group of terms

132. Can you set individual password for each post?
Yes
No

132. Who of the following persons can read a post locked by password?
Only administrators, editors and authors
Registered users who knows a password
Anyone who knows a password

133. What is the limitation to the depth of your categories?
10 levels
20 levels
No limit levels

134. Which of following action must be performed before using Akismet Plugin?
Simply install it.
Create an account at wordpress.com.
Create an account for this plug-in on your own site.

135. In order to display a widget, the user must _________________.
set the “show property” of the desired widget to “true”
drag the desired widget to the side bar
add the desired widget to the post
change the source code

136. Which of the following methods can be used to eliminate spam?
Using the wp-captcha-free plug-in.
Using the askimet plug-in.
Using a widget.
None of the above.
a and b

137. In WordPress 4.1, which of the following theme files can be used to customize the “page not found error” error page?
index.php
404.php
functions.php
page.php

138. Is the functions.php file required in each theme in the WordPress 4.1 website?
Yes
No

139. What is the name of theme file for a page with slug ‘about’?
page-slug-about.php
page-about.php
about.php

140. What is the name of theme file for a page with id ‘3’?
page-id-3.php
page-3.php
3.php

141. What is the right order (by priority in use) to display page in Template Hierarchy?
page-{slug}.php, page-{id}.php, page.php, index.php
page-{id}.php, page-{slug}.php, page.php, index.php
page-{slug}.php, page-{id}.php, page.php, archive.php, index.php
page-{slug}.php, page-{id}.php, page.php, 404.php

142. What is the right order (by priority in use) to display category in Template Hierarchy?
category -{slug}.php, category-{id}.php, category.php, index.php
category -{id}.php, category-{slug}.php, category.php, index.php
category -{slug}.php, category-{id}.php, category.php, archive.php, index.php
category -{slug}.php, category-{id}.php, category.php, 404.php

143. What is the right order (by priority in use) to display tag in Template Hierarchy?
tag -{slug}.php, tag-{id}.php, tag.php, index.php
tag -{id}.php, tag -{slug}.php, tag.php, index.php
tag -{slug}.php, tag -{id}.php, tag.php, archive.php, index.php
tag -{slug}.php, tag -{id}.php, tag.php, 404.php

144. What is the right order (by priority in use) to display taxonomies in Template Hierarchy?
taxonomy -{taxonomy}.php, taxonomy-{id}.php, taxonomy.php, index.php
taxonomy -{taxonomy}-{term}.php, taxonomy-{taxonomy}.php, taxonomy.php, archive.php, index.php
taxonomy -{ taxonomy}.php, taxonomy.php, archive.php, index.php
taxonomy.php, archive.php, index.php

145. The “function_exists()” function can be used to check whether a plug-in is activated or not.

True
False

146. The WordPress loop can be used ______.
to retrieve any data in WordPress
to display every post
only for calculation
WordPress loop cannot be used for any purpose.

147. Using _______ is a good way to ensure that a WordPress site is indexed by search engines.
a sitemap
robot.txt
a widget

148. One way to make a WordPress 4.1 page title more SEO friendly is to____
use the wp-changetitle plug-in
use a widget
change the title tag in header.php to something like “blog name »» category »» post name

149. Meta tags can be added to WordPress 4.1 pages by _______.
using plug-ins
adding them to the header.php file
updating the database
a and b
b and c

150. Which of the following methods can be used to make permalinks SEO friendly?
Updating the database.
Changing the source code.
Configuring the feature in the config file.
Configuring the feature in the admin settings.

152. Which role is not for Contributor:

read
edit_posts
edit_published_posts
delete_posts

153. Which of the following are the minimum standards that your server should support for WordPress 4.1
PHP version 4.4.9 or greater and MySQL version 4.0 or greater
PHP version 5.2.4 or greater and MySQL version 5.0.15 or greater
PHP version 4.4.9 or greater and MySQL version 5.1 or greater
PHP version 5.0 or greater and MySQL version 5.1 or greater

155. In relation to get the blog indexed in Google search, which of the following terms processes the information and also determines the quality of the content, so that the information can be placed appropriately on Google pages?
Crawling
Indexing
Googlebot

156. Which of the following types of permalinks are available in WordPress 5?

Default
PATHINFO
mod_rewrite

157. Which of the following options is the correct order (by priority in use) to display tag in template hierarchy?
tag-{slug}.php, tag.php, tag-{id}.php, archive.php, index.php
tag-{slug}.php, tag-{id}.php, tag.php, archive.php, index.php
archive.php, index.php, tag-{slug}.php, tag-{id}.php, tag.php
tag-{id}.php, tag-{slug}.php, tag.php, archive.php, index.php

158. Which of the following options are the correct tables that will always be backed up while taking backups in WordPress?

wp_links
wp_terms
wp_users
wp_postmeta

159. Which of the following options is a program that can be used to manipulate the databases remotely through a web interface?

W3 Total Cache
phpMyAdmin
MariaDB
WP Super Cache

160. Which of the following plugins can be used in WordPress 5 for two-step authentication?
1. Duo
2. Google Authenticator
3. WordFence
4. Rublon
All 1, 2, 3, and 4
Only 1, 2, and 3
Only 2, 3, and 4
Only 1, 3, and 4

161. Which of the following options is the correct order (by priority in use) to display category in template hierarchy?

index.php, category-{slug}.php, category-{id}.php, category.php, archive.php
category.php, archive.php, category-{slug}.php, category-{id}.php, index.php
category-{slug}.php, archive.php, category-{id}.php, category.php, index.php
category-{slug}.php, category-{id}.php, category.php, archive.php, index.php

162. In WordPress, a contributor has which of the following capabilities?
read
delete_posts
edit_posts

publish_posts

163. You can use the pre_get_posts filter hook for including custom posts into your main query of blog posts.

True
False

164. In relation to posts screen, which of the following options is the default view in the table of posts?

List view
Excerpt view

None of the above.

165. Which of the following statements are correct about the “Pages” post type in WordPress?

You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.
They can be displayed in a reversed time-based order.
They do not make use of categories like posts do.
None of the above.

166. If you have shell access to your server, then which of the following commands can you use to change the file permissions for files recursively?

find /path/to/your/wordpress/install/ -type d -exec chmod 777 {} \;
find /path/to/your/wordpress/install/ -type f -exec chmod 755 {} \;
locate /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;
find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;

167. WP Super Cache is not a static page caching plugin for WordPress.

True
False

168. In relation to dashboard screen in WordPress 5, which of the following options are provided by the At a Glance widget?

Most recent comments
Number of posts
Number of pages
Number of comments

Recently published posts

169. While updating WordPress, which of the following options can be the correct reason for the given message on the screen?
“Briefly unavailable for scheduled maintenance. Please check back in a minute.”

maintain.php
htaccess web.config
web.config
.maintenance file

170. In relation to backing up your WordPress database, which of the following tools can be used for taking backup only in Windows operating system?

EMS SQL Management Studio for MySQL
Aqua Data Studio
Navicat for MySQL

171. Which of the following plugins can be used to improve the performance by caching your WordPress posts and pages as the static files?
1. W3 Total Cache
2. WP Super Cache
3. Cache Enabler
All 1, 2, and 3
Only 1 and 2
Only 1 and 3
Only 2 and 3

172. Which of the following options is the correct order (by priority in use) to display a single page in template hierarchy?

custom template file, page-{slug}.php, page-{id}.php, page.php, singular.php, index.php
custom template file, page-{id}.php, page-{slug}.php, page.php, singular.php, index.php
singular.php, index.php, page-{id}.php, page-{slug}.php, page.php, custom template file
index.php, custom template file, page-{id}.php, page-{slug}.php, page.php, singular.php

173. Which of the following options is an open source WAF (web firewall) that can be installed at a web server to filter the content before it is processed by WordPress?

iThemes Security
WordFence
ModSecurity
Shield

174. By default, which of the following databases is used by WordPress 5?

PostgreSQL
Microsoft SQL
Server MySQL
Oracle

175. In relation to screen options in WordPress, which of the following items/ modules is/ are hidden by default?
1. Posts
2. Tags

Only 1
Only 2
Both 1 and 2
Neither 1 nor 2

176. In WordPress, which of the following options are the incorrect capabilities of the Author role?

delete_published_posts
delete_published_pages
edit_posts
manage_links

177. By default, WordPress makes use of which of the following files in a theme for displaying posts of any type of the front-end of a website?

index.php
single.php
archive.php

178. WordPress 5 is written in which of the following languages?

Java
C++
PHP
Go

179. Which of the following capabilities are only available in the Super Admin role?

manage_network_plugins
delete_plugins
manage_categories
setup_network

180. Which of the following statements is/ are correct about the post types in WordPress?

Attachments can make use of the wp_postmeta table to store the extra information like image’s metadata.
Each theme in WordPress can have its own custom CSS post.
Both options a and b
Neither option a nor b

181. Which of the following options are the correct files that are required for making a theme in WordPress?
1. index.php
2. style.css
3. theme.php

All 1, 2, and 3
Only 1 and 2
Only 1 and 3
Only 2 and 3

182. By default, meta tags are included in WordPress.

True
False

183. In WordPress, a subscriber has which of the following capabilities?

read
delete_posts
edit_posts
publish_posts

184. In WordPress, which of the following attacks can you see via the logs?
1. Cross Site Scripting (XSS)
2. Remote File Inclusion (RFI)
3. Local File Inclusion (LFI)
4. Directory Traversal attempts
All 1, 2, 3, and 4

Only 1, 2, and 3
Only 2, 3, and 4
Only 1, 3, and 4

185. Which of the following options are the correct capabilities of the Editor role in a single site WordPress installation?

manage_categories
manage_links
update_themes
manage_options

186.Which of the following roles has the unfiltered_html capability in a single site WordPress installation?

Administrator
Editor
Author
Contributor

187. You can edit the .htaccess file by FTP or shell.

True
False

188. You can adjust the length of cookies with the ‘auth_cookie_expiration’ hook.

True
False

189. In relation to the roles of WordPress 5, which of the following options can only publish and manage their own posts?

Editor
Author
Subscriber
Contributor

190. While blogging in WordPress, which of the following options is the collection of programming scripts that can be used to add additional functionality to the blogs?

Post Slug
Excerpt
Plugin
Pingback

191. In relation to caching in WordPress, Varnish cache application is supported on which of the following platforms?

Windows 7
Linux
FreeBSD

192. What is the default value of the SCRIPT_DEBUG constant?

true
false

193. Which of the following is the correct option that is the default theme of WordPress 5?

Gravatar
Twenty Nineteen
Permalink
None of the above.

194. Which of the following options are the valid filters in template hierarchy?

singular_template
search_template
embed_template
author_template

195. Which of the following definitions of the WP_DEBUG constant can be used to trigger the debug mode throughout WordPress?

define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG’, ‘true’ );
define( ‘WP_DEBUG’, ‘1’ );
define( ‘WP_DEBUG’, “true” );

196. How can you access Your Profile Screen in WordPress?
1. From the main navigation menu under Users.
2. By clicking on the name link at the top of the WordPress screen.

Only 1
Only 2
Both 1 and 2
Neither 1 nor 2

197. In relation to profile screen in WordPress, which of the following personal options are available that can be configured?

Visual editor
Admin Color Scheme
Syntax Highlighting
Toolbar

198. In relation to WordPress editor, which of the following options is the default block type?

Paragraph
Image
Heading
Gallery

199. The given command can be used to backup all the database tables.
mysqldump –add-drop-table -h mysql_hostserver -u mysql_username -p mysql_databasename

True
False

200. In relation to posts screen, which of the following columns are displayed in the table of posts?

Title
ID
Categories
Tags
Author

201. Can you import content from a static HTML site to WordPress?

Yes
No

202. While selecting the color scheme under the personal options in WordPress, which of the following colors are the menu background colors?

Last two colors
Middle two colors
First two colors
None of the above.

203. In relation to WordPress site, which of the following options is correct about a sitemap?

It is an enhancement to your existing URLs that can improve SEO of your website.
It is a single page listing of all the posts on your website.
It is a collection of all the visited links on a WordPress website.
None of the above.

204. Which of the following you should avoid while choosing a password?
1. Permutation of your real name, username, or company name.

2. A word from a dictionary, in any language.
3. Any numeric-only or alphabetic-only password.
4. Any password containing numeric, alphabets, and special symbols.

All 1, 2, 3, and 4
Only 1, 2, and 3
Only 1, 2, and 4
Only 2, 3, and 4

205. While exporting your WordPress data, which of the following data can you export?
1. Posts
2. Pages
3. Comments
4. Categories
5. Custom taxonomies

All 1, 2, 3, 4, and 5
Only 1, 2, 4, and 5
Only 2, 3, 4, and 5
Only 2, 4, and 5
Only 1, 2, 3, and 4

206. Which of the following options is a correct example of PATHINFO permalinks?

http://example.com/?p=N
http://example.com/2012/post-name/
http://example.com/2012/12/30/post-name
http://example.com/index.php/yyyy/mm/dd/post-name/

Post a Comment