On iPad:

If you can't drag and drop the objects in a code-building program/website, such as the App Lab on code.org, make sure AssistiveTouch is turned off. To turn off AssistiveTouch, go to Settings>Accessibility>Touch.