java吧 关注:1,249,241贴子:12,731,057
  • 5回复贴,共1

求大神做做这几道题。。。求求

只看楼主收藏回复

Exercise/Homework EH36
Q1: In the Java coordinate system, the point (0, 0) is:
a. The lower-right corner of the screen.
b. The upper-right corner of the screen.
c. The lower-left corner of the screen.
d. The upper-left corner of the screen.
Ans:
Q2: The fact that class Graphics is abstract contributes to Java’s portability because:
a. drawing is performed differently on every platform that supports Java. A subclass of Graphics must be created that implements the drawing capabilities of the current platform.
b. objects of non-abstract classes can only be instantiated on the Windows platform.
c. drawing should not be performed on non-Linux platforms.
d. Class Graphics is not abstract.
Ans:
Q3: Which of the following statements about the Graphics object is true?
A. The Graphics object is an argument to class Component’s repaint method.
B. The Graphics object is instantiated by the user.
C. The Graphics object is the argument to an application’s paintComponent method.
D. The Graphics class is abstract.
E. The Graphics object manages a graphics context.
a. A, C, E.
b. A, C, D, E.
c. A, B, D, E.
d. All are true.
Ans:
Q4: Which of the following are valid Java statements, or groups of statements?
A. Color c = new Color( 0, 255, 0 );
B. Color c = new Color( 0.0f, 1.0f, 0.0f );
C. Color c = new Color( 0.0d, 1.0d, 0.0d );
D. setGreen( c.getGreen() - 2 );
a. All of the above.
b. A, B, C.
c. A, B, D.
d. A, B.
Ans:
Q5: The JColorChooser dialog allows colors to be chosen by all but which of the following?
a. Swatches.
b. Hue, saturation, brightness.
c. Gradient, cycle, brightness.
d. Red, Green, Blue.
Ans:
Q6: Which of the following are valid Font constructors?
A. Font f = new Font();
B. Font f = new Font( "Serif", Font.Bold + Font.Italic, 19 );
C. Font f = new Font( Font.Bold, 20, "SansSerif" );
D. Font f = new Font( 20, Font.Bold, "Monospaced" );
a. A and B.
b. B and C.
c. B.
d. D.
Ans:
Q7: Method getFont of class Graphics returns:
a. the current font name as a string.
b. the font size in points.
c. a Graphics object representing the current font.
d. a Font object representing the current font.
Ans:
Q8: Which of the following is correct for font metrics?
a. height = descent + ascent + leading.
b. The amount the character dips below the baseline is the ascent.
c. The amount the character can be above the baseline is the leading.
d. The amount the character rises above the baseline is the descent.
Ans:
Q9: Class FontMetrics declares methods that can be used to obtain the following font metrics:
a. ascent, descent and height.
b. ascent, descent and leading.
c. height and leading.
d. All of the above.
Ans:


1楼2016-04-03 00:25回复


    来自iPhone客户端2楼2016-04-06 22:26
    回复
      原谅我4级未过


      IP属地:江西来自Android客户端3楼2016-04-06 22:40
      回复
        怎么全是GUI的题目


        IP属地:山东4楼2016-04-06 22:49
        收起回复


          来自iPhone客户端5楼2016-04-08 10:40
          回复