HTML APIs


  1. For single locations on a map, we use the overlay for _______.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Marker specifies the single locations on the map. It can also display custom icon images. A series of straight lines on a map can be specified by Polyline. A series of a straight line with the “closed” shape is defined by Polygon.


  1. How many kinds of map does Geo support?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Geo supports 3 different kinds of interactive map like OpenStreeMap, Google Maps, a hybrid map that is Google Map with OpenStreetMap tiles placed on it, these maps are loaded in 3 different HTML elements.



  1. Windowless plug-in will not call ____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Windowless plugin can call Netscape methods like NPN_InvalidateRegion, NPN_ForceRedraw, NPN_InvalidateRect. NPN_InvalidateRegion is used for invalidate an area in windowless plug-in before refreshing or repeating.


  1. The browser will not call the plug-in _________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Browser calls various plug-in methods like NPP_Print, NPP_SetWindow, NPP_SetValue, NPP_HandleEvent, NPP_GetValue. NPP_SetValue is for setting the browser information, for delivering platform-specific event to instance browser calls NPP_HandleEvent method.



  1. Which of the following method is not associated to handling the memory ________________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    There are three methods used in memory handling in plug-ins. NPN_MemFree method is used to free memory allocated. NPN_MemAlloc method is used to allocate memory from the browser. NPN_MemFlush is used to free memory in Mac OS only.