Monday, 5 October 2015

Latest Important top--word-press-interview-questions for fresher

1) What is WordPress?
Word press is a best Open Source CMS which allows it to be used free of cost.  You can use it on any kind of personal or commercial website without have to pay a single penny for it. It is built on PHP/MySQL (which is again Open Source) and licensed under GPL.
2) How safe is website on WordPress?
 The word press is safe to operate but still it is suggested to keep updating with the latest version of WordPress to avoid hacking.
3) Are there any limitations to a WordPress web site?
You can use WordPress for e-commerce sites, membership sites, photo galleries and any other type of site you can think of. The web site is created using the same html code as any other site so there are no limitations there either.
4) Do you need to have a blog in order to use WordPress for site?
WordPress was originally used as blogging software though it has since become popular for website also.  It is not necessary to have a blog to use wordpress.  Still having blog is commendable as it will help in search engine optimization.
5) From SEO point of view is wordpress helpful? Will it show the website on Google?
 It is one of the benefit of using wordpress, it has inbuilt SEO search engine. Also, you can have an additional plug-in in wordpress to help with SEO and rank on a popular search engine like Google.
Wrdpress
6) What is the current version of wordpress?
You need to quote the current version of WordPress available in market along with the release date.
7) What are the types of hooks in WordPress and mention their functions?
There are two types of hooks 1) Action hooks 2) Filter hooks
Hooks allow user to create WordPress theme or plugin with shortcode without changing the original files. Action hooks allow you to insert an additional code from an outside resource, whereas, Filter hooks will only allow you to add a content or text at the end of the post.
8) What do you mean by custom field in wordpress?
Custom field is a meta-data that allows you to store arbitrary information to the wordpress post. Through custom field extra information can be added to the post.
9) What are the positive aspects of wordpress?
Few positive aspects of wordpress are
  • Easy installation and upgrade
  • In-built SEO engine
  • Easy theme system
  • Flexibility
  • Multilingual- available in more than 70 languages
  • Own data- no unwanted advert on your website
  • Flexibility and Easy publishing option
10) What are the rules that you have to follow for wordpress plugin development?
  • Create a unique name
  • Create the plugin’s folder
  • Create a sub-folder for PHP files,  translations and assets
  • Create the main plug-in file and fill in header information
  • Create activation and de-activation functions
  • Create an uninstall script
  • Create a readme.txt file
  • To detect paths to plugin file use proper constants and functions
11) What is the prefix of wordpress tables by default?
By default, wp_ is the prefix for wordpress.
12) Why does WordPress use MySQL?
MySQL is widely available database server and is extremely fast.  It is an open source and it is available at no cost also it is supported by many low-cost Linux hosts so its easy for anyone to host their website.
13) Is it possible to rename the WordPress folder?
Yes, it is possible to rename the WordPress folder.  If WordPress is already installed you have to login to the weblog as the administrator and then change the settings
WordPress address (URI)  :
Blog address( URI) :
After making the changes, you can rename the folder or directory with the WordPress file in it.
14) How many tables are there in WordPress by default?
There are about 11 tables in WordPress by default. Note: With succeeding releases of WordPress this number will change. You need to check phpMyAdmin to determine the number of tables in a vanilla version of latest WordPress installation.
15) What is WordPress loop?
To display post WordPress use PHP code, this code is known as loop.
16) How you can disable the WordPress comment?
If you go on dashboard under options-discussion there is a comment “ Allow people to post comment” try unchecking the comment.
17) What are the steps you can take if your WordPress file is hacked?
  • Install security plug-ins like WP security
  • Re-install the latest version of WordPress
  • Change password and user-ids for all your users
  • Check your themes and plug-ins are up to date
18) What are the template tags in WordPress?
In WordPress template tags is a code that instructs WordPress to “do” or “get” something.
19) Does WordPress have cookies?
Yes, WordPress have cookies and WordPress uses cookies for verification of users while logged in.

20) In what case you don’t see plugin menu?
You can’t see your plugin menu when the blog is hosted on free wordpress.com as you cannot add plugin there.  Also, if you do not have an account of an administrator level on your WordPress is not possible to see plugin.
21) At what instance you get locked out of your WordPress admin and see your website as a blank screen?
This would likely happen when you have pasted a code from a website with wrong formats, also when you have pasted a code in a wrong location. It may also happen when your IP is banned
22) Why you use a static front page in wordpress?
Some WordPress users wants their WordPress installation to be more than a blog site. To give their page a look more like a real website page some users use static front page.
23) What are the plugins you can use to create contact form in WordPress?
To create a contact form in WordPress you can use plugin like Gravity forms or also you can use a free plugin contact form 7.
24) Why widget does not show up in the sidebar?
While using widget you have to ensure whether your theme supports the widget and if it does then it must show the sidebar.  If in any case if it happens that you don’t see the sidebar then it might be missing the “function.php” file or file similar to that.  This can also happen if you have forgot to save the changes in the widget or refreshing the older display of the page.
25) Is there any limitation for using WordPress?
No, there is no limitation for using WordPress.  WordPress can be used for innumerable purpose membership site, e-commerce site, photo-gallery and many more.
26) How is creating a site on wordpress.org different from wordpress.com?
Most of the things are similar in both except the choices of themes and the usage of plugins.
27) Why wordpress.com is considered more secure than wordpress.org?
WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugin’s.  However the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.
28) Does de-activated plugins slow down a WordPress site?
No, de-activated plugins cannot slow down the WordPress site.  Wordpress only loads the active plugins and ignores everything else.
29) In what case we cannot recommend WordPress to our client?
We cannot recommend WordPress on following situation:
  • If client is working on non-CMS base project
  • If site wants complex or innovative e-commerce
  • In case of enterprise intranet solution
  • Sites requiring custom scripting solutions.
30) What are the essential features you look for a theme?
Theme selection differs according to the requirement, but an ideal theme would be something that would not restrict to use the number of pages, plugins or static homepage.
31) How Custom theme is different than Normal theme?
Custom theme allows for SEO search, but with a SEO plugin available it would not make much difference to normal theme. One benefit using the Custom theme is that it allows to make the changes without going much into the coding part.
32) How you can create a static page with WordPress?
To create a static page in wordpress, in the page section  you have to upload a php files to the server in the theme folder, and then select that as your template.  This allows you to add any page and look that you wanted for your blog and it will remain static.
33) Is there any other CMS better WordPress?
WordPress is no doubt a good CMS, but Drupal and Joomla are among the best CMS you can work with.
34) Which is the best multi-lingual plugin for wordpress?
Keeping all the limitations in mind, WPML would be the best multi-lingual plugin for wordpress .
35) Can you update your own content on the site?
It depends on the type of the site or project, but yes one can update their own content on the site.
36) What are meta-tags?
Meta-tags are keywords and description used to display website or page information.
37) What should one use for plugin development — custom post types or custom database tables?
There is no specific preference for plugin development; it depends on what type of plugin’s one has to develop. Though few recommend custom post type, as it has few benefits comparison to custom database table.
38) Can you host WordPress using  Amazon web services such as EC2, RDS, EBS etc?
Yes, you can host using Amazon web services.
39) Is there any way to write series in WordPress?
You can use organize series plugin to write series in wordpress.
40) What are the reasons why one should not hack WordPress core file?
The best reason not to hack the core files is that whatever you might be doing has to be reworked as a patch.

SET-2

Q: What is WordPress?
Ans: WordPress is an open source Content Management System which can be used to built websites and Blogs. WordPress was released in 2003 and it is based on PHP & MYSQL.
Q: How many tables default WordPress have? Can you name those default WordPress table?
Ans: The default version of WordPress is incorporated with 11 tables. They are-
  • wp_options
  • wp_users
  • wp_links
  • wp_commentmeta
  • wp_term_relationships
  • wp_postmeta
  • wp_posts
  • wp_term_taxonomy
  • wp_usermeta
  • wp_terms
  • wp_comments
Q: Tell me is a web site on WordPress secure?
Ans: Yes! A WordPress Website is completely secure from any unauthorized access. However the error may occur due to downloading the Plug-in and Tools from an unauthorized resource.
Q: What is the procedure to call a constructor for a parent class?
Ans: The command to call a constructor for a parent class is
parent::constructor($value)
Q: Can you answer that whether objects are passed by value or by reference?
Ans: All the objects are passed by Value.
Q: What is the limitation to the depth of your categories?
Ans: There is no limitation level to the depth.
Q: Can you override database values for your sit URLs in wp-config.php?
Ans: Yes, overriding of database values is possible.
Q: Is WordPress good for Google ranking and SEO?
Ans: Yes! WordPress was born with one of key features to drive the traffic called built-in SEO and it is the most considered point along with other features in this technology, which makes it popular worldwide. Search engine optimization is considered the best selling point of WordPress to boost the traffic over the web or in other words Google ranking. Although there are multiple CMSs, but they require an installed SEO extension, whether commercial or free, but WordPress is SEO-ready. It can further extend the SEO feature via a few Nice FREE SEO plugins, including All in one SEO and Yoast. These well-known & popular plug-ins help you rank your website’s on multiple search engines like Google, Bing and Yahoo.
Q: What is the basic difference between posts vs. Pages?
Ans: Posts and pages are the two content types used in WordPress. When WordPress is used as a blogging platform, majority of the content are posts. Posts are timed and are listed in chronological order with the latest posts on the top. The old posts are archived on the basis of month and year. Posts are meant to be shared and commented on.
Pages in WordPress, on the other hand, are static content that may include about us, contact us, privacy policies and others pages. The pages are timeless entries and do not have a date or month associated with them. For instance, even if you make changes to them, you will not have a Privacy policy page 2014 and Privacy policy page 2015 and so on. WordPress pages are not interactive and users do not share or comment on it.
Key differences enlisted
  • Posts are timely entries and pages are not tied with time.
  • Pages cannot be included in RSS feed, while posts can.
  • Posts are shared on social media and pages are not.
  • Posts are categorized on the basis of time, whereas, pages are hierarchical.
  • There is no custom template in posts but they are in the pages.
Q: State some of the basic features of WordPress?
Ans: Basic features of WordPress:
  • Posts are listed entries that are maintained in chronological order timely, but Pages are static and that are are not bounded with time.
  • Posts are for everyone means social, but in contrast Pages are NOT social. You can categorize Post accordingly, but Pages are maintained in hierarchical order.
  • Posts are displayed in RSS feed, but not Pages.
  • Pages are featured with custom template, but Posts are not.
The key features of WordPress are:
  • Typographical niceties
  • No rebuilding
  • WordPress Links
  • Comments
  • WordPress Themes
  • Cross-blog communication tools
  • XML-RPC interface
  • Password Protected Posts
  • Intelligent text formatting
  • Full user registration
  • Spam protection
  • Easy Importing
  • WordPress Pages
  • Bookmarklets
  • Easy installation and upgrades
  • Full standards compliance
  • Multiple authors
  • Workflow
Q: Can you give me a difference between characters 35 and x35?
Ans: These Both Characters are a way different from each other. The first character is defined as octal 35 whereas the second one is Hex 35.
Q: Should I use print “$a dollars” or “{$a} dollars” command to print out the value of dollars in this case?
Ans: In this case the braces will not affect the outcome as the variable is all by itself.
Q: Briefly explain the procedure to pass a variable by value in WordPress?
Ans: Passing a variable by value in WordPress is similar to as that in C++. We have to just add an ampersand in front of the variable to do the task.
$X= &$Y
Q: Tell me the method to define a constant?
Ans: We can define a constant by using the below provided command
define() directive
The example of defining a Constant is (“WEBGRANTH”, 100);
Q: Blog is a necessary part to be included in a WordPress Website?
Ans: No it is not a necessary part. Although WP was first designed as a platform for blogging but now it can be used for every genre of websites. Blogs are added in the website to provide valuable information to the visitor and for a better SEO.
Q: What is the simplest way to find out the number of parameters passed into a function?
Ans: It is really easy to find out the no. of parameters passed into the function by following the below provided command:
func_num_args()
Q: Can you tell me when you will use endif function to end the condition statement?
Ans: The endif function is used to end the conditional statement when the parent if is followed by : and the code is blocked without the use of any braces.
Q: What is the difference between starting a string with single quote and double quote? What you will use in general instance?
Ans: A data kept inside a single quoted string is not parsed for variable substitution where as when we initialize the string with double quote the data is parsed for variable substitution. If we don’t require variable substitution particularly then it is always preferred to use single quote as it is much speedy process.
Q: Can you briefly explain the ternary conditional operator in PHP language?
Ans: Ternary Condition is a very popular operator in PHP which evaluates the expression preceding the ?. If the condition is true then it executes the expression preceding : and If the condition is false then it executes the expression following :.
Q: Can you tell that whether the comparison of string “50ᕙ and integer 60 will work in PHP or not?
Ans: Yes it will work as the PHP will consider the comparators as Integer type and hence will compare 50 and 60.
Q: Briefly explain how include and require are different from each other?
Ans: Both include and require scans the program. If the require() function doesn’t find any file than the script will not execute. On the other hand if the include() file can’t find a file or encounter any error then the warning notification will be raised but the script will still execute.
Q: Let a program is trying to assign the value 09875 to a variable but it keeps coming up with a different value; Do you know why it is happening?
Ans: The error in the output is due to the fact that the interpreter declares a number as octal if it starts with 0.
Q: Briefly explain the difference between accessing a class method via -> and via ::?
Ans: When we access a class method via -> we will require object initialization but when we choose :: we can access the methods which performs static operation.

No comments:

Post a Comment