Analog clock hour needle puzzle

Question : In an analog clock for 25 minutes duration how much does the hour hand will move ? ?? ???? …….. ??????   Answer : 12.5  degree . Explanation : Analog clock is 360 degree. For 60 minutes the hour hand will move 30 degree. So for 30 minutes the hour hand will move … Continue Reading

Apple puzzle, interview question.

Question: There are 6 people sitting in a room around the table. On top of the table there is a basket with 6 apple in it. All person took one apple each but still one apple was left in the basket. How !! ?? thinking ???   still thinking ???   the answer is very … Continue Reading

How to reverse a number in php without built in functions

A Simple PHP Home work code that returns the reverse of a given number,

The Logic here is simple. First get the given number and extract the final digit. Initially the reverse of the number will be zero, on each iteration multiply the reverse with 10 and add the modulus result.

What is the use of session_id() in PHP ?

Overview of session_id in PHP The session_id() is one of the in built functions in PHP.  Almost in all Framework’s and CMS’s it has been utilized to find the current session.  In this tutorial we will see how to utilize this session_id() in small applications apart from Framework and CMS.  Generally the session_id() will be … Continue Reading

Javascript Event Delegation Model

JavaScript is the main part of web development. Even you can optimize the performance of java script in the web for higher efficiency.  Javascript Event Delegation Model model can be implemented for avoiding events to occur recursively through out the HTML Element. The best example for event delegation is if you are creating HTML element dynamically … Continue Reading