Web Technology Questions and Answers – Adding Flash, Video and Audio to Web Page – 2

This set of Web Technology Multiple Choice Questions & Answers (MCQs) focuses on “Adding Flash, Video and Audio to Web Page – 2”.

1. The format which doesn’t need a special plug-in is?
a) Windows Media Audio
b) QuickTime
c) Wave
d) Real Audio
View Answer

Answers: c
Explanation: Windows Media Audio, which requires the Windows Media plug-in. QuickTime, which requires the QuickTime plug-in. Real Audio, which requires the Real Media plug – in.

2. Which audio format is needed to prevent from passing an audio file to another user?
a) DRM
b) MIDI
c) WAVE
d) MP3
View Answer

Answer: a
Explanation: If you need to control the number of times users can play the file, or prevent them from passing an audio file to another user, then you might need to consider audio formats that allow for Digital Rights Management or DRM (such as Windows Media Audio or Real Audio).

3. What does < a href=”test.mp3” > test mp3 < /a > help to perform?
a) the browser plays the MP3 files in the browser’s default media player
b) the browser converts a file to MP3 format
c) the browser plays the MP3 files directly
d) the browser opens the specified MP3 link
View Answer

Answer: a
Explanation: The drawback with these kind of techniques is that you have no control over the appearance of the player’s interface. Therefore, a lot of people again turn to Flash when they want to create a player for audio files.
advertisement
advertisement

4. The code below uses which attributes?

       < object type=”application/x-shockwave-flash” width=400height=170
                   data=”mp3_player.swf?playlist_url=playlist.xspf” >
                   < param name=”movie” value=”mp3_player.swf?playlist_url=playlist.xspf” / >
       < /object >

a) Type, height and width attributes
b) Only the type attiribute
c) Type, height, width and data attributes
d) Height and width attributes
View Answer

Answer: c
Explanation: A type attribute, indicating that the player is a Flash movie. The height and width attributes, indicating how much space this player will take up. A data attribute, which tells the browser where to find the Flash movie that plays the MP3 files.

5. Flash MP3 players allows you to control?
a) Setting a list of tracks to play (rather than just one track)
b) Allows to change the browser it has to be played in
c) Allows to change the attributes in the code with one-click option
d) Allows to play an MP3 up to a certain period of time
View Answer

Answer: a
Explanation: Some Flash MP3 players allow you to control such things as: The colors of the player Setting a list of tracks to play (rather than just one track) Whether to automatically start the MP3 playing when the page is loaded.
advertisement

6. The < object > element can carry what kind of attribute(s)?
a) height and weight attributes
b) Universal attributes
c) classid and tabindex attributes
d) hspace and vspace attributes
View Answer

Answer: b
Explanation: The < object > element can carry all the universal attributes, the UI event attributes, and the following attributes: archive, border, classid, codebase, codetype, data, declare, height, width, hspace, vspace, name, standby, tabindex, usemap.

7. What is a codebase attribute?
a) Specifies the base URL where a plug-in can be downloaded
b) Specifies the MIME type of the application or code required to play the file
c) Provides a name that can be used to refer to the object, in particular for use in scripts
d) Indicates the tab index of the object within a page
View Answer

Answer: a
Explanation: If the browser does not have the required plug – in (or other code) required to display the file specified in the < object > element, then the codebase attribute specifies the base URL where a plug – in can be downloaded. The idea is that if the browser cannot display the file it will offer the user the option to download the necessary files.
advertisement

8. What is a data attribute?
a) If the object has a file to process or play, then it specifies the URL for that file
b) It helps to create content for a file
c) data attribute shows the data present/created
d) Tells the maximum amount of data that can be stored on a browser
View Answer

Answer: a
Explanation: This is similar to the src attribute that is used on the < img > element, and the value can be a relative URL. Here is a URL to an MP3: data=http://www.example.com/mp3s/newsong.mp3

9. What is a <param> element?
a) To read the parameters from an object
b) Just to declare parameters in the code
c) Used to pass parameters to an object
d) It helps in exchanging of parameter values
View Answer

Answer: c
Explanation: The kinds of parameters an object requires depend upon what the object does; for example, if an object has to load a Flash MP3 player into the page, you will probably need to specify where the MP3 file can be found.

10. What does a valuetype object do?
a) This specifies the MIME type of the content being used in the object
b) Act as a name/value pair
c) Indicates that the object is an image map containing defined areas
d) If your object accepts parameters, it indicates whether the parameter will be a file, URL, or indeed another object.
View Answer

Answer: d
Explanation: If your object accepts parameters, then the valuetype attribute indicates whether the parameter will be a file, URL, or indeed another object. Data, ref-The parameter value is a URL, object are the possible values for it.

Sanfoundry Global Education & Learning Series – Web Technology.

To practice all areas of Web Technology, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.