Q: Which of the following plug-in can’t be embedded by
Solution: All the browsers support
Q: What is the prefix of all the browser-specific functions?
Solution: It is a convention that all of the browser specific functions have the prefix ‘”NPN” and all of the plug-in specific functions have the prefix “NPP”. Gecko calls plug-in API function NP_Initialize at the time when plug-in code first loaded.
Q: When is the instance created, which plug-in API function is called?
Solution: NPP_New function is called by the browser when an instance is created. There can exist multiple instances of the same plug-in. There are two conditions for it first if there are multiple embedded objects on a single page, second if several browser windows are open.
Q: Which function will be called when the last instance of a plug-in is deleted?
Solution: When the last instance of a plug-in is deleted Gecko calls the function NP_Shutdown. The plug-in code is unloaded from memory. Plug-ins consume no resources when not loaded, it only consumes a little disk space.
Q: When the user leaves instance’s page which function is called?
Solution: When the user leaves instance’s page or closes its window a plug-in instance is deleted. Then Gecko calls the function NPP_Destroy to inform plug-in that the instance is being deleted. Plug-in API calls and callbacks use main Navigator thread.
Q: Which of the following is not the directory in Windows for plug-ins?
Solution: When Gecko based browser starts, it checks certain directories for plugins. Windows have MOZ_PLUGIN_PATH, Profile directoryplugins, %APPDAT%/Mozillaplugins, Plug-ins with toolkit bundles, HKEY_CURRENT_USERSoftwareMozillaPlugins*Path are some of the directories in windows.
Q: Which of the following is not the directory in Mac OS X for plug-ins?
Solution: /Library/Internet Plug-Ins, ~/Library/Internet Plug-Ins, Plug-ins with the toolkit bundles, /System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources, Profile directory/plugins are some of the directories in Mac OS X for plug-ins.
Q: Which of the following is not a directory in Linux for plug-ins?
Solution: Profile directory/plugins, /usr/lib64/Mozilla/plugins, /usr/lib/Mozilla/plugins, ~/.mozilla/plugins are some of the directories in Linux for using plug-ins. /usr/lib64/firefox/plugins is for 64-bit Firefox.
Q: Which of the following plug-in file type is used in MS Windows?
Solution: The plug-in file type depends on the platform. The file type in MS Windows is .DLL which is Dynamic Link Library files. Unix has .SO or .DSO files which are shared objects. MAC OS X has file PPC/x86/Universal loadable Mach-O bundle.
Q: The plug-in DLL can’t contain ______________
Solution: The plug-in DLL should contain FileExtents which specifies file extensions, ProductName which is for plug-in name, Language for the language which is in use, FileDescription for the description, MIMEType for the MIME types, FileOpenName for file open template.
You Have Score    | /10 |