Please answer all questions Question 5 of 16 1.0 Points Which applet method is c
ID: 3814225 • Letter: P
Question
Please answer all questions
Question 5 of 16
1.0 Points
Which applet method is called automatically when the applet needs to redraw itself? _________________ .
A. init
B. main
C. paint
D. exit
E. applet
Question 6 of 16
1.0 Points
Question 7 of 16
1.0 Points
Question 8 of 16
1.0 Points
Question 6 of 16
1.0 Points
The drawLine, drawRect and drawOval methods take four parameters. True FalseQuestion 7 of 16
1.0 Points
The drawLine, drawRect and drawOval methods are all void methods. True FalseQuestion 8 of 16
1.0 Points
The drawString method is a value-returning method. True FalseExplanation / Answer
Answer:
5) init
init This method is intended for whatever initialization is needed for your applet. It is called after the param tags inside the applet tag have been processed
6) True
The drawLine( ) method takes four arguments – the x- and y- coordinates of the line’s starting point, and the x- and y- coordinates of the line’s ending point.
Ex: pen.drawLine(10,10,100,200) draws a straight line that starts from position 10,10 to position 100,200.
*.The drawRect( ) method is used to draw the outline of a rectangle. This method takes four arguments. The first two arguments represent the x and y coordinates of the starting point, the last two argument represent the width and height of the rectangle.
Ex: drawRect(20,100,200,10) draws a rectangle that begins at position 20,100 and is 200 pixels wide by 10 pixels tall.
The drawOval( ) method is used to draw ovals using the same four arguments that rectangles use.
7) True
8)
False
Draws the specified text string at the specified location with the specified Brush and Font objects.
Return Value
This method does not return a value.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.