a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 114|回复: 1

[考试试题] JAVA认证历年真题:310-025精选题(40)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

 楼主| 发表于 2012-8-4 12:33:17 | 显示全部楼层

JAVA认证历年真题:310-025精选题(40)

176. Which of the following methods from the java.awt.Graphics class could be used to draw the outline of a rectangle with a single method call? Select all.
, w* ~$ J  f: }; P# pA. fillRect()
- C* J8 w7 j2 Z) ^6 z8 NB. drawRect()" q$ B6 Y# x- H5 k+ y/ j" U7 @9 g
C. fillPolygon()  u+ B0 X) u' D" n2 w% t' G) L
D. drawPolygon()
1 k2 |3 u9 I& R9 y* LE. drawLine()
6 L; B6 h# M# S9 \BD.  M2 h7 \8 K  K# {' a+ S
177. Of the following AWT classes, which one(s) are responsible for implementing the components layout? Select all.  y/ j: Y1 G. _" C# M
A. LayoutManager
+ q5 s* J3 I! w( TB. GridBagLayout( H3 Q3 y6 U2 m* w4 k! b
C. ActionListener! p) s3 e# Y1 l7 D
D. WindowAdapter
3 F% o3 ?( j0 [E. FlowLayout; Y% x2 p  j0 m  y+ ]5 ]
BE.% J5 N! U0 p) r! L/ A  G
178. A component that should resize vertically but not horizontally should be placed in:6 z3 G1 E" k, U
A. BorderLayout in the North or South location
. ^9 G4 a  X' [8 nB. FlowLayout as the first component
& \1 ~# i7 Y& z0 S7 [( gC. BorderLayout in the East or West location4 ]& B3 l' T! F# ^5 P! e0 U7 f
D. BorderLayout in the Center location0 b+ [1 w7 g! v* ]) Q
E. GridLayout
0 b- W8 J# F$ {  }- cC.1 L$ H. G  i, U$ P. O
179. What type of object is the parameter for all methods of the MouseListener interface?4 j/ B8 ]7 l% z' I; }% d0 F/ O; b) h4 S
Answer:: j/ V/ N/ B9 Q, ^' K
MouseEvent
/ G4 Y# l& a2 U180. What type of object is the parameter for all methods of the MouseMotionListener interface?0 P- x% j- d& l) e! Z. z8 d: E
Answer:3 G0 y! g$ r. v; o- p) [* d; o5 }
MouseEvent
1 H# u% ~+ s+ @8 z' z' o( N181. What type of object is the parameter for all methods of the KeyListener interface?3 g8 d  q  E' \, _; M8 U/ T7 @' U7 k
Answer:
" I8 H% R( k0 w, @: b: vKeyEvent
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-26 08:44 , Processed in 0.267278 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表