Skip to main content

Fundamentals of Front End Development MCQs with Answers

Practice important Fundamentals of Front End Development MCQs with answers and explanations.

Multiple Choice Questions

Q1531: Fill in the blank: The font property in the canvas context defines the ______ for the text.
  • A: color
  • B: font size and style
  • C: position
  • D: text content
View Answer
B

Q1532: What method is used to draw text with a stroke on a canvas?
  • A: strokeText
  • B: fillText
  • C: drawText
  • D: setText
View Answer
A

Q1533: What property is used to define the font for text in HTML5 Canvas?
  • A: font
  • B: text
  • C: style
  • D: color
View Answer
A

Q1534: In the code example, what is the font size used for the stroked text?
  • A: 20px
  • B: 25px
  • C: 30px
  • D: 35px
View Answer
C

Q1535: How do you draw stroked text on a canvas?
  • A: ctx.strokeText("Some text",10,50)
  • B: ctx.fillText("Some text",10,50)
  • C: ctx.drawText("Some text",10,50)
  • D: ctx.setText("Some text",10,50)
View Answer
A

Q1536: Fill in the blank: To draw text with a stroke, you use the method ______.
  • A: strokeText
  • B: fillText
  • C: drawText
  • D: setText
View Answer
A

Q1537: Fill in the blank: The font property in the canvas context sets the ______ for text rendering.
  • A: color
  • B: font size and style
  • C: position
  • D: text content
View Answer
B

Q1538: What does SVG stand for?
  • A: Scalable Vector Graphics
  • B: Scalable Visual Graphics
  • C: Scaled Vector Graphics
  • D: Scaled Visual Graphics
View Answer
A

Q1539: Which element is used to contain SVG graphics in HTML5?
  • A:
  • B:
  • C:
  • D:
View Answer
A

Q1540: What does the cx attribute define in an SVG circle?
  • A: Center x-coordinate
  • B: Center y-coordinate
  • C: Radius of the circle
  • D: Stroke width
View Answer
A

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now