Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Chapter: 136
Q1541:
In the SVG rectangle example, what does width="300" define?
A. Width of the rectangle
B. Height of the rectangle
C. Stroke width
D. Fill color
Correct Answer:
A
Chapter: 136
Q1542:
What attribute is used to create rounded corners in an SVG rectangle?
A. rx and ry
B. x and y
C. width and height
D. stroke-width
Correct Answer:
A
Chapter: 136
Q1543:
Fill in the blank: In SVG, the <polygon> element is used to draw ______.
A. Rectangles
B. Circles
C. Polygons
D. Lines
Correct Answer:
C
Chapter: 136
Q1544:
What is the primary difference between SVG and Canvas?
A. SVG is resolution dependent; Canvas is resolution independent
B. SVG supports event handlers; Canvas does not
C. SVG graphics are drawn pixel by pixel; Canvas remembers drawn shapes
D. Canvas graphics are resolution independent; SVG is resolution dependent
Correct Answer:
B
Chapter: 136
Q1545:
Fill in the blank: SVG is well-suited for applications with large rendering areas, such as ______.
A. graphic-intensive games
B. video playback
C. web maps
D. text rendering
Correct Answer:
C
Chapter: 137
Q1546:
What does multimedia include?
A. Only pictures
B. Only sound
C. Pictures, music, sound, videos, animations
D. Only videos
Correct Answer:
C
Chapter: 137
Q1547:
Which video format is developed by the Xiph.Org Foundation?
A. MP4
B. WebM
C. Ogg
D. AVI
Correct Answer:
C
Chapter: 137
Q1548:
What file extension is commonly used for MPEG-4 videos?
A. .ogg
B. .webm
C. .mp4
D. .wav
Correct Answer:
C
Chapter: 137
Q1549:
Which audio format is known for good compression and high quality?
A. WAV
B. Ogg
C. MP3
D. AIFF
Correct Answer:
C
Chapter: 137
Q1550:
Fill in the blank: HTML5 supports video formats including MP4, WebM, and ______.
A. AVI
B. FLV
C. Ogg
D. MOV
Correct Answer:
C
Chapter: 137
Q1551:
Which multimedia element is not supported by HTML5?
A. Videos
B. Text
C. Animations
D. Sounds
Correct Answer:
B
Chapter: 137
Q1552:
Fill in the blank: The .wav file format is developed by ______.
A. IBM and Microsoft
B. Mozilla and Google
C. Xiph.Org Foundation
D. Moving Pictures Expert Group
Correct Answer:
A
Chapter: 138
Q1553:
What does the controls attribute add to the <video> element?
A. Video playback speed
B. Video controls (play, pause, volume)
C. Video resolution
D. Video source list
Correct Answer:
B
Chapter: 138
Q1554:
Which attribute allows a video to start automatically?
A. controls
B. autoplay
C. loop
D. preload
Correct Answer:
B
Chapter: 138
Q1555:
Fill in the blank: The <source> element inside <video> tags specifies the ______.
A. video controls
B. video dimensions
C. video file source and type
D. video playback settings
Correct Answer:
C
Chapter: 138
Q1556:
What is displayed between the <video> and </video> tags if the video element is not supported?
A. A placeholder image
B. Text indicating browser does not support video
C. Video controls
D. Video dimensions
Correct Answer:
B
Chapter: 138
Q1557:
Which method re-loads the audio/video element?
A. load
B. play
C. pause
D. ended
Correct Answer:
A
Chapter: 138
Q1558:
What property sets or returns the volume of the audio/video?
A. volume
B. currentTime
C. duration
D. autoplay
Correct Answer:
A
Chapter: 138
Q1559:
Fill in the blank: The play() method ______.
A. Starts playing the audio/video
B. Pauses the audio/video
C. Stops the audio/video
D. Re-loads the audio/video
Correct Answer:
A
Chapter: 138
Q1560:
What file formats are currently supported by the <video> element?
A. MP3, WAV, Ogg
B. MP4, WebM, Ogg
C. AVI, MOV, FLV
D. MP4, AVI, MKV
Correct Answer:
B