Question
Question 1 of 16 1.0 Points An applet is an extension of the JApplet class. True False Reset Selection Question 2 of 16 1.0 Points
Question 1 of 16 1.0 Points An applet is an extension of the JApplet class.
| |||
Question 2 of 16 1.0 Points The JApplet class is the javax.swing package.
| |||
Question 3 of 16 1.0 Points The main method is used in applets.
| |||
Question 4 of 16 1.0 Points Which package is the Graphics class part of? _________________ .A. javax.swing B. java.swing C. java.awt D. javax.awt E. java.graphics Reset Selection | |||
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 Reset Selection | |||
Question 6 of 16 1.0 Points The drawLine, drawRect and drawOval methods take four parameters.
| |||
Question 7 of 16 1.0 Points The drawLine, drawRect and drawOval methods are all void methods.
| |||
Question 8 of 16 1.0 Points The drawString method is a value-returning method.
| |||
Question 9 of 16 1.0 Points The coordinate (0,0) represents which point in a window? _________________ . A.the upper right corner B.the upper left corner C.the lower right corner D.the lower left corner E. the center of the window Reset Selection | |||
Question 10 of 16 1.0 Points In the method call drawRect( 10, 20, 100, 200 ), 100 and 200 represent, respectively _________________ A.The x and y coordinates of the top left corner of the rectangle being drawn B. The x and y coordinates of the bottom right corner of the rectangle being drawn C. The x and y coordinates of the top right corner of the rectangle being drawn D. the width and height of the rectangle being drawn E. the height and the width of the rectangle being drawn Reset Selection | |||
Question 11 of 16 1.0 Points In the method call drawRect( 10, 20, 100, 200 ), 10 and 20 represent, respectively _________________ A.The x and y coordinates of the top left corner of the rectangle being drawn B. The x and y coordinates of the bottom right corner of the rectangle being drawn C. The x and y coordinates of the top right corner of the rectangle being drawn D. the width and the height of the rectangle being drawn E. the height and the width of the rectangle being drawn Reset Selection | |||
Question 12 of 16 1.0 Points The Color class contains Color constants
| |||
Question 13 of 16 1.0 Points Black has RGB values 0,0,0
| |||
Question 14 of 16 1.0 Points The RGB values of Color.GREEN are _________________ A.0,255,0 B. 255,0,0 C. 0,255,0 D. 0,0,0 E. 255,255,255 Reset Selection | |||
Question 15 of 16 1.0 Points The RGB values of Color.ORANGE are _________________ A.255,0,0 B.255,200,0 C.255,0,200 D.0,0,0 E. 255,255,255 Reset Selection | |||
Question 16 of 16 1.0 Points Using the Color constructor Color( int rr, int gg, int bb ), how many color combinations can you instantiate?A. 255 B. 3 C. around 16 million D. around 1,000 E. around 65,000 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started