171. Which methods does java.lang.Math include for trigonometric computations? A. sin()3 D$ v; x& ?* i1 r) b/ D
B. cos()
5 W# [; X: ^9 h$ z3 v' ?C. tan()6 M8 Q! Y9 E0 y$ R
D. aSin()) O. E1 e) t5 q6 C( Y b* L
E. Cos()
# K0 d, s" }* W. mF. aTan()
$ e4 j: D! N% n* FG. toDegree()
4 o% i- X) G6 ~% qABC.
9 ]8 I# H8 E3 @. y4 j8 d/ O5 Y172. This piece of code:
, i: P" b1 ~7 iTextArea ta = new TextArea ( 10, 3 );8 \0 G; [& r0 a" J1 y& q& A8 r
Produces (select all correct statements):& T! ^8 H3 X; q
A. a TextArea with 10 rows and up to 3 columns5 G6 v; _0 H0 c
B. a TextArea with a variable number of columns not less than 10 and 3 rows" i: b) O& o( V! t
C. a TextArea that may not contain more than 30 characters
/ _$ d- q, Q9 n6 c7 T- p1 LD. a TextArea that can be edited
/ w; D7 S; R# W/ j7 E OAD.% ^: V! I% W2 `0 n* S/ V7 Y
173. In the list below, which subclass(es) of Component cannot be directly instantiated: b5 f. Q% I/ f ]7 y7 |
A. Panel
& l8 {2 a# r6 l: o1 Q3 IB. Dialog0 `6 P# |5 G3 W/ U7 b
C. Container5 J2 l# ^6 m) g% X! |
D. Frame
* j: J" C2 I, cC.
6 ?, b& l" a$ V174. Of the five Component methods listed below, only one is also a method of the class MenuItem. Which one?
$ a: p/ u, T* t, ?2 eA.setVisible (boolean b): F: U% b4 g' u! u- H B! E1 i
B.setEnabled (boolean b)- Z r( n# R6 C0 |% u4 ^. D+ M
C.getSize ()
! h6 N; m9 j* `) k! @$ I* d( PD.setForeground (Color c)9 J* h: C, ^/ h6 T, |
E.setBackground (Color c)) Q1 D0 l1 j8 i% J+ l) Y' o/ T: ~
B.
; M. z+ W1 R! K* Y S* l175. If a font with variable width is used to construct the string text for a column, the initial size of the column is:6 E& [8 g4 j6 ]4 B
A. determined by the number of characters in the string, multiplied by the width of a character in this font4 L0 O8 c8 J) J! C! @
B. determined by the number of characters in the string, multiplied by the average width of a character in this font
" G |* N, L/ D; K, C) {C. exclusively determined by the number of characters in the string F0 b# b! W& M& x7 j
D. undetermined: ?5 f" C1 U. z! m. Z
B. |