problem 1: State whether the given statement are true or false:
a) The setColor( ) method sets the background color of canvas.
b) The new keyword is employed to make a graphics object.
c) Graphics class methods must be used in the init( ) method of the applet.
d) The getFont( ) method returns the present font.
problem 2: Answer the given problems:
a) Illustrate the difference between checkbox and checkbox group classes?
b) Define the term canvas, panel and container. Determine the similarities and dissimilarities, if any.
problem 3: prepare down an applet which displays a string in blue against the green background. Then reset the original background and foreground colors and display the string again. As well find out the amount of red, green and blue colors in the foreground color.
problem 4: Find out the font name, size and style of the string and change font to the TimesNewRoman, 28, bold and italicized.
problem 5: Make the given figures:
a) A line from (10, 10), to (50, 50).
b) A rectangle of width and height 40 pixels correspondingly from (10, 10).