171. Which methods does java.lang.Math include for trigonometric computations? A. sin()0 U; M7 Z& b: W0 s- d$ Z% W
B. cos()6 P" m+ M: U+ Y5 X1 Q d) F
C. tan()2 y6 g1 t I; `6 J1 k% R2 P
D. aSin()
7 `+ R- P7 ]! \# U& c! wE. Cos()( r4 W D. K/ n' A, U
F. aTan()
0 @: P e# G9 {: rG. toDegree()5 H8 ]# n) ? k5 F; H
ABC.* s5 w0 Z; d0 m' W- I6 m
172. This piece of code:6 e2 [1 O/ a+ B6 a
TextArea ta = new TextArea ( 10, 3 );0 S: c4 c4 S7 r2 t+ I
Produces (select all correct statements):! Y+ x! H9 i( v2 C' ~1 E
A. a TextArea with 10 rows and up to 3 columns
5 ]0 p: ?: E: U0 l k0 KB. a TextArea with a variable number of columns not less than 10 and 3 rows$ {+ K: O" q! k" v5 t& `
C. a TextArea that may not contain more than 30 characters; d0 c' g7 m2 K% b8 E' t
D. a TextArea that can be edited
+ ?5 m% t2 `* g6 h; ]AD.
- H) Z; c) f0 N) x, q4 A173. In the list below, which subclass(es) of Component cannot be directly instantiated:$ n Q. E% @1 c6 k$ E1 x* c
A. Panel
6 H0 y( c' [8 @9 M- u1 R. {B. Dialog" f7 ^8 Q: ]8 G# M9 B
C. Container
# U4 b8 K+ L1 z8 C7 ND. Frame
% P; `6 u7 H- J+ d$ _/ k" iC.3 e& L4 b; j: P
174. Of the five Component methods listed below, only one is also a method of the class MenuItem. Which one?6 }8 D( q0 [ P" z% a4 `
A.setVisible (boolean b)1 I4 L: O* V4 c' y' q3 p; M
B.setEnabled (boolean b)
8 |# ]+ v" o# W4 s& a: mC.getSize ()
$ O& U7 N6 v# }6 y+ tD.setForeground (Color c)
- x" A6 \6 d0 |9 ~" e5 P+ P7 Q: ]E.setBackground (Color c)
4 z6 f w$ S6 m- F) U8 uB.
5 U. j6 S5 h2 P0 Z175. If a font with variable width is used to construct the string text for a column, the initial size of the column is:
. y2 t2 i! g6 ?0 r2 SA. determined by the number of characters in the string, multiplied by the width of a character in this font9 c) o- h& n7 s; g `6 a" u/ B2 R
B. determined by the number of characters in the string, multiplied by the average width of a character in this font ]$ V' p- u- n' z- H4 F6 D
C. exclusively determined by the number of characters in the string& b+ S, z8 |4 B& n
D. undetermined. P b! T0 n2 {# A& ~- e8 ? h
B. |