nerdexam
Microsoft

98-375 · Question #2

The variable named "ctx" is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);

The correct answer is C. a semi-circle at the given point. See the full explanation below for the reasoning.

Question

The variable named "ctx" is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);

Options

  • Aa circle at the given point
  • Ba square at the given point
  • Ca semi-circle at the given point
  • Da line from one point to another

How the community answered

(18 responses)
  • A
    6% (1)
  • B
    11% (2)
  • C
    78% (14)
  • D
    6% (1)

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice