Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
а
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education