Test Series - html

Test Number 59/72

Q: Which of the following plug-in can’t be embedded by  element?
        
A. Java applets
B. Flash players
C. PDF readers
D. Map
Solution: All the browsers support  element. It also defines an embedded object within the HTML document. It is used for embedding plug-ins like PDF readers, Flash Players, Java applets in the web page.
               
        
Q: What is the prefix of all the browser-specific functions?
A. NPP
B. UPP
C. NPN
D. GPN
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?
A. NPP_Destroy
B. NPP_New
C. NP_Shutdown
D. NP_Initialize
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?
A. NPP_Destroy
B. NP_Initialize
C. NPP_New
D. NP_Shutdown
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?
A. NPP_New
B. NPP_Destroy
C. NP_Shutdown
D. NP_Initialize
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?
A. Profile directory/Library/Internet
B. MOZ_PLUGIN_PATH
C. HKEY_CURRENT_USER
D. ~/Library/Internet 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?
A. /Library/Internet
B. ~/Library/Internet
C. Profile directory
D. MOZ_PLUGIN_PATH
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?
A. ~/.mozilla/plugins
B. /usr/lib64/Mozilla/plugins
C. profile directory
D. /Library/Internet 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?
A. .DLL
B. .SO
C. .DSO
D. PPC
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 ______________
A. Language
B. ProductName
C. FileDescription
D. DirectoryName
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