单项选择题
Which statements concerning the effect of the statement gfx.drawRect(5, 5, 10, 10) are true, given that gfx is a reference to a valid Graphics object?()
A.The rectangle drawn will have a total width of 5 pixels.
B.The rectangle drawn will have a total height of 6 pixels.
C.The rectangle drawn will have a total width of 10 pixels.
D.The rectangle drawn will have a total height of 11 pixels.
点击查看答案&解析
相关考题
-
单项选择题
What will be written to the standard output when the following program is run?() public class Qcb90 { int a; int b; public void f() { a = 0; b = 0; int[] c = { 0 }; g(b, c); System.out.println(a + " " + b + " " + c[0] + " "); } public void g(int b, int[] c) { a = 1; b = 1; c[0] = 1; } public static void main(String args[]) { Qcb90 obj = new Qcb90(); obj.f(); } }
A.0 0 0
B.0 0 1
C.0 1 0
D.1 0 0
E.1 0 1 -
单项选择题
What will be written to the standard output when the following program is run?() public class Q8499 { public static void main(String args[]) { double d = -2.9; int i = (int) d; i *= (int) Math.ceil(d); i *= (int) Math.abs(d); System.out.println(i); } }
A.12
B.18
C.8
D.9
E.27 -
填空题
Whatisthenameofthemethodthatthreadscanusetopausetheirexecutionuntilsignalledtocontinuebyanotherthread?()Fillinthenameofthemethod(donotincludeaparameterlist).
