nerdexam
Microsoft

98-375 · Question #19

Which two outcomes will this code fragment accomplish? (Each correct answer presents a complete solution. Choose two.)

The correct answer is A. On pre-HTML5 browsers, the happy.wav file will not play, and instead Hello World will be B. On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello. Audio on the Web Until now, there has not been a standard for playing audio files on a web page. Today, most audio files are played through a plug-in (like flash). However, different browsers may have different plug-ins. HTML5 defines a new element which specifies a standard…

Understanding Game Programming

Question

Which two outcomes will this code fragment accomplish? (Each correct answer presents a complete solution. Choose two.)

Options

  • AOn pre-HTML5 browsers, the happy.wav file will not play, and instead Hello World will be
  • BOn an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello
  • COn an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello
  • Don pre-HTMLS browsers, the happy.wav file will play and Hello World will be hidden.

How the community answered

(36 responses)
  • A
    75% (27)
  • C
    17% (6)
  • D
    8% (3)

Explanation

Audio on the Web Until now, there has not been a standard for playing audio files on a web page. Today, most audio files are played through a plug-in (like flash). However, different browsers may have different plug-ins. HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element. Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the <audio> element. <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element.

Topics

#HTML5 audio#browser compatibility#fallback content#media elements

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice