1. Given the following Java code that paints this image, select the third vertex of the border that is painted. (10,12), - int[] x = (16, 22, 28, 30, 24, 10); int[] y (22, 20, 26, 18, 12, 12); g.setColor (new Color (17, 242, 44)); g.fill Poly (x, y, 6); g.setColor (Color.BLACK); g.drawPoly (x, y, 6); A. (24,12) B. (30,18) C. (10,12) D. (28,26) 2. What must be imported to get most graphics components? (16,22) An alternative Java statement that achieves exactly the same effect is: getContent Pane ().setBackground (new Color (--,--,--)) A. 250,00,250 B. 255,0,255 C. 255,00,255 D. 250,0,250 (24,12) (30,18) A. java.Graphics B. java.awt.* C. java.util. D. java.* 3. To set the background colour of a JApplet or a JFrame, the following Java statement could be used: getContent Pane ().setBackground (new Color (Oxff00ff)); (28,26) ...1/8

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
1. Given the following Java code that paints this image, select the third vertex of the border that
is painted.
int[] x = (16, 22, 28, 30, 24, 10);
int[] y (22, 20, 26, 18, 12, 12);
g.setColor (new Color (17, 242, 44));
g. fill Poly (x, y, 6);
=
g.setColor (Color.BLACK);
g.drawPoly (x, y, 6);
A. (24,12)
B. (30,18)
C. (10,12)
D. (28,26)
2. What must be imported to get most graphics components?
A. 250,00,250
B. 255,0,255
C. 255,00,255
D. 250,0,250
An alternative Java statement that achieves exactly the same effect is:
getContent Pane ().setBackground (new Color (--,--,--))
A. g.fillOval(20, 30, 35, 60);
B. g.fillOval (20, 30, 60, 35);
C. g.fillOval (35, 60, 20, 30);
D. g.fillOval(20, 30, 35, 60);
(10,12)
A. java.Graphics
B. java.awt.*
C. java.util.
D. java.*
3. To set the background colour of a JApplet or a JFrame, the following Java statement could
be used:
getContent Pane ().setBackground (new Color (0xff00ff));
4. Which of the painting statements would produce the oval shown in this image?
You can assume that the drawing colour has already been set to red
(20,30)
6. How many access modifiers are available in java?
(16,22)
A. 1
60
Û
136
A. Focus only on high-level details
B. Focus on low-level details at the appropriate time
C. Focus on low-level details first
D. Gives a good overview because low-level information is missing
35
(24,12)
5. The following statements correctly describe benefits of the technique called abstraction
except?
(30,18)
(28,26)
-...1/8
а
Transcribed Image Text:1. Given the following Java code that paints this image, select the third vertex of the border that is painted. int[] x = (16, 22, 28, 30, 24, 10); int[] y (22, 20, 26, 18, 12, 12); g.setColor (new Color (17, 242, 44)); g. fill Poly (x, y, 6); = g.setColor (Color.BLACK); g.drawPoly (x, y, 6); A. (24,12) B. (30,18) C. (10,12) D. (28,26) 2. What must be imported to get most graphics components? A. 250,00,250 B. 255,0,255 C. 255,00,255 D. 250,0,250 An alternative Java statement that achieves exactly the same effect is: getContent Pane ().setBackground (new Color (--,--,--)) A. g.fillOval(20, 30, 35, 60); B. g.fillOval (20, 30, 60, 35); C. g.fillOval (35, 60, 20, 30); D. g.fillOval(20, 30, 35, 60); (10,12) A. java.Graphics B. java.awt.* C. java.util. D. java.* 3. To set the background colour of a JApplet or a JFrame, the following Java statement could be used: getContent Pane ().setBackground (new Color (0xff00ff)); 4. Which of the painting statements would produce the oval shown in this image? You can assume that the drawing colour has already been set to red (20,30) 6. How many access modifiers are available in java? (16,22) A. 1 60 Û 136 A. Focus only on high-level details B. Focus on low-level details at the appropriate time C. Focus on low-level details first D. Gives a good overview because low-level information is missing 35 (24,12) 5. The following statements correctly describe benefits of the technique called abstraction except? (30,18) (28,26) -...1/8 а
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education