Multiple choice

What is the syntax of drawLine() method of Canvas?

  1. g.drawLine(0, 4, 5, 16);

  2. canvas.drawLine(56, 0, 56, 100, paint);

  3. drawLine(4, 5, 6, 7);

  4. drawLines(x[], y[], count);

  5. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

canvas.drawLine(56, 0, 56, 100, paint); is valid in android.