Q136 What should you use to position a Button within an application Frame so that the size of the Button is NOT affected by the Frame size?
. Q5 I. ^3 ^ s$ y A a FlowLayout" P/ K( Z8 U! ^9 k
B a GridLayout
% ~7 T: |8 I+ f! f. b$ M" I* l C the center area of a BorderLayout1 ^6 P, ~: s' i
D the East or West area of a BorderLayout
' ~8 U2 a' z5 C' y E the North or South area of a BorderLayout
. ~5 Q: G/ g9 X( q, t( ?1 H Q137 What is the output of the following program?
, O, a/ g$ I! ` class Outer {$ ]9 Y8 R5 y& [ P/ [
String s = “Outer”;2 I- a" J0 p, s+ x/ p2 ~* s* ~
public static void main (String [] args)+ C H6 X7 i+ S1 k7 C: F
{( N- D" w: r4 a9 e* }2 Y" [$ ?
new Outer().new Inner();
7 M K! Y$ l; f; a! `9 d' ]; k }
) N+ Q& T. R) V4 V Outer () { j! Q, u' A% Y8 f" ^, ~6 U( a- w0 |
System.out.print(s);
- l6 o" Z; Z2 m0 Y6 D0 m }' i8 K; a! y) J' l" b
class Inner {% }' t4 @ V; q; m O' i$ s' E
String s = “Inner”;7 P! y/ s) O9 d2 J, P! W" R
Inner() {0 R3 {* m' C9 F6 r' B! F9 [7 z
System.out.print(s);
6 `! i9 C$ F) }3 u2 U } q9 R3 Q3 \: a$ ?" M' r0 Z1 u+ t
}) X" c1 h6 b% ]5 B% Z
}3 b& C1 N+ `# u4 ~# w! D. c8 C
A Outer
+ M1 j) s& z, m a5 E6 w$ `+ Y B Inner" M/ S* y/ o% J/ Y' l" V/ N
C OuterInner7 x, d: ], u9 i$ c" u d
D InnerOuter
2 s3 a: E6 n9 w2 {7 _% f. m Q138 Which of the following are true? O: \6 N9 H% z o# b9 ]% {+ M+ u+ f% ?
A Any Unicode character is represented using 16 bits.
. [2 I, _2 k# z& I B Seven bits are needed to represent any ASCII character.3 \1 k0 G& J: D& ~, P2 v( N
C UTF-8 characters are represented using only eight bits.
: R/ [8 {, A5 u: |4 m D UTF-16 characters are represented using only 16 bits.
. h$ w1 Z- y6 a3 G Q136 A
1 E. s3 X$ M- p6 A1 z/ t Q137 C0 a% q/ n4 Q8 W- |; `0 }0 {7 c; z
Q138 AB |