Search Suggest

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?

"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?

  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

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?

  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

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?

  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

Answer: All 1, 2, 3, and 4

Explanation: All of the options 1, 2, 3, and 4 (Duo, Google Authenticator, WordFence, Rublon) 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:

  1. You can place them into a hierarchical order where a page can be the parent or child of another page creating a page structure.
  2. 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:

  1. comment_author_(HASH)
  2. comment_author_email_(HASH)
  3. 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:

  1. delete_published_posts
  2. 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:

  1. You can manually approve the comments of other users.
  2. 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?
http://example.com/2012/12/30/post-name

  • 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:

  1. Default: This is the default permalink structure in WordPress and includes the post ID in the URL, such as http://example.com/?p=123.
  2. 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.
  3. 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.
  4. 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.
  5. Numeric: This structure includes the post ID in the URL, such as http://example.com/archives/123.
  6. 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:

  1. manage_categories
  2. 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?

  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

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?

  1. Pages
  2. Categories
  3. 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.

  1. wp_links
  2. wp_terms
  3. wp_users
  4. 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?

  1. Comment author must fill out name and e-mail 
  2. Users must be registered and logged in to comment
  3. 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?

  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

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?

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

  1. index.php
  2. single.php
  3. 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?

  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

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 injection, Cross-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 Cache, MariaDB, 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".

  1. You have forgotten to include the opening bracket (
  2. You have forgotten to include the $ when referencing a variable
  3. Missing a semicolon (;) at the end of an individual line
  4. 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

  1. manage_network_plugins
  2. delete_plugins
  3. 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?

  1. Posts
  2. 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?

  1. .htaccess
  2. 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?

  1. An .htaccess file
  2. Apache web server with the mod_rewrite module installed
  3. 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 "Pretty" permalinks 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:

  1. Number of posts
  2. Number of pages
  3. 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 editor, Admin 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
  1. All 1,2 and 3
  2. Only 1 and 2
  3. Only 1 and 3
  4. 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 Windows, Mac, 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.

2 comments

  1. Thanks ifti Chacha
  2. I stumbled upon this article while searching for information on the Fiverr English test answer. As someone who is considering taking the test, I found this article to be quite intriguing.

    While I understand the curiosity behind wanting to find the "answer" to the test, I believe it's important to emphasize the significance of genuine language proficiency. Tests like the Fiverr English test are designed to evaluate a person's language skills and competence, and relying on pre-determined answers defeats the purpose of such assessments.

    Instead, I encourage individuals to focus on improving their English language abilities through practice, study, and exposure to authentic English materials. This will not only benefit them in the test but also in real-life scenarios where effective communication is crucial.

    It's essential to approach language tests with integrity and a genuine desire to enhance our skills. By investing time and effort into developing our language profi…