Thursday, May 10, 2012

HCL Technologies magento interview questions

Recently my friends went for interview for magento developer profile at HCL, where they were asked several questions like below. I will keep updating this post regularly.

1.WHAT IS module conflicts?
Ans: when two modules override same controller then module conflict arises.

2. How can we remove module conflict?

Ans: http://www.magestore.com/blog/2011/12/21/magento-methods-to-resolve-the-module-conflicts-in-magento/


3.What is code pool?

 Ans: it is a concept to pull the code in magento structured format.
 magento
     |_app
         |_code
              |_community
              |_core
              |_local
              
              
              
4. Can we override Community Module?

Ans: yes we can override to the local.

5.What is Module conflict?

Ans: We install one module(Extension Conflict) to findout that Class which is Conflict. We have to written only one config file for both module.

6. Difference between javascript and jquery?

javascript: it is Client side scripting/programming language.
Jquery: Jquery is library buit in javascript.

7. Final Class && Abstract Class

Ans:Final Class: A Class which Can't be inherited by other class, that class is called final class.

You all knows that final class is inbuilt in java. But in C++ you have to create final class.Two types of Final class, you can create . One who want to create object of final class on Heap and other who wants to create object of Final class on stack.

=>It makes use of private constructor, virtual inheritance and friend class.
=>In place of priavte constructor, use private Destructor. Because Constructor can be overloaded and Destructor can'nt be overloaded.


8. why Interface used.?

9.can used Protected Class outside Function.?

10.CURL & Php.ini

11. .htaccss

12. database engine

13. Primary key and Unique Key

14. EAV Concept

15.what is mage regisry? How we register a variable?

Ans: http://blog.chapagain.com.np/magento-how-to-set-and-get-registry/