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

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

1. Browsers automatically show the different formats of rich media?
a) True
b) False
View Answer

Answer: b
Explanation: Instead browsers rely on additional programs known as players or plug-ins, and these players do not play every format (just as a DVD player would not be able to play a VHS video or a vinyl record). So, your choice of which format to use might be restricted by how many people have the player installed.

2. Which one of the following is wrong about <object> element?
a) It can tell about the name of the file and where to find it
b) It can tell about the format of the file
c) It can tell about the number of objects created
d) It can tell about the type of plug – in used to play the file
View Answer

Answer: c
Explanation: Inside the <object> element, you can use the <param> element to pass extra information to the player. For example, you might want to tell a player to start playing automatically when the page loads, rather than waiting for the user to press a play button.

3. Flash files get converted to which format when they are exported from the web?
a) .htm
b) .fla
c) .bat
d) .swf
View Answer

Answer: d
Explanation: Before you can use such a file on the Web you will have to export it in the .swf format. When files have been exported into the .swf format, they go by one of two names, either SWF files or Flash movies. Rather confusingly, they can be called Flash movies even if they do not contain any video.
advertisement
advertisement

4. Which of the following is true about .swf files?
a) The major browsers play SWF files by themselves
b) They rely on a free plug-in called the Flash Player
c) They need to be converted to .fla format to be played on web
d) Can only be played by pre-installed Flash Player
View Answer

Answer: b
Explanation: .swf files need a Flash Player or any other kind player which supports them. Flash started off to add animations into web pages, but quickly evolved to offer a high level of interactivity and the ability to deal with images, audio, and video. Not only is Flash widely used to add animation and interactivity to web pages, it’s also the most popular way of displaying audio and video within web pages.

5. <object> Element can contain?
a) Often contains an <embed> element
b) Often contains an <embed> element but with few exceptions
c) Often containing an <embed> element with strict <param> element
d) Often containing an <embed> element strictly following <param> element
View Answer

Answer: a
Explanation: an < object > element often contains an < embed > element, and this is no exception. You may have noticed that the < embed > element does not contain any < param > elements; rather, it uses attributes on the opening tag to provide the same information. The first attribute is an src attribute — just like the one used on the < img > element indicating where to find the Flash file.

6. How does a classid attribute help?
a) To specify which application should play the file
b) To give an id to every main class
c) To specify an application about which file should be played
d) To store the sequential orders of the files to be played
View Answer

Answer: a
Explanation: It is used to specify which application should a specific file be played in. It has different values for different type of players on web. If you wanted to play a file using the Windows Media plug – in, you would use a different value of 6BF52A52 -394A – 11D3 – B153 – 00C04F79FAA6.

7. What is the advantage of SWFObject?
a) It is better for search engines
b) Replaces <object> element automatically
c) Can disable a flash player
d) avoids XHMTL content to be complicated
View Answer

Answer: a
Explanation: It is also considered good for accessibility purposes. Search engines cannot index Flash content well, they will see the XHTML content that would have been replaced. If users have disabled Flash, there is alternative content for them.
advertisement

8. Which of the following is not required/taken under consideration to play a video on web?
a) File format
b) Plug-in
c) 1366 x 768 resolution
d) Browser
View Answer

Answer: c
Explanation: You need to choose the format of the video, and there are lots of different formats to choose from, including AVI, Flash Video, MPEG, QuickTime, and Windows Media. Different formats require different plug – ins to play the movie.

9. Which of the following is not a video format?
a) MPEG
b) WMV
c) Realvideo
d) MEP
View Answer

Answer: d
Explanation: MPEG is a format that takes its name from the group who developed it, the Motion Picture Experts Group. WMV or Windows Media Video is part of the Microsoft Windows Media suite, and requires Windows Media to play it. RealVideo was one of the first formats used for showing video online.
advertisement

10. What is the advantage of FLV format files?
a) FLV files compress well
b) They are can be bigger than in MPEG-1 format
c) They help in getting manually chosen by a desired application
d) They are better and faster than QuickTime
View Answer

Answer: a
Explanation: It costs less to run a web site that uses FLV than one using larger formats, because when you have a web site you are usually charged for bandwidth. When you upload a video the web site, it will get converted into the FLV format and play them in their own players.

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.