a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 115|回复: 1

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

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

使用道具 举报

 楼主| 发表于 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.
8 v( O2 Y$ {8 @2 z4 K0 M6 {7 i, aA. fillRect()9 ?' z( d4 [9 k% v5 i; Q
B. drawRect()
; A9 r* c. P5 s' U3 x3 NC. fillPolygon()
6 X% @- w9 Y- j5 r% ]* ?D. drawPolygon()7 n' N# Z! L- e3 P
E. drawLine()- G7 M9 q1 G: X6 y9 S7 ^2 {
BD.
- O9 O6 q6 i; w6 {0 p% a177. Of the following AWT classes, which one(s) are responsible for implementing the components layout? Select all.
8 z2 ^0 H3 z( d! \  r9 E  ]A. LayoutManager
$ J+ W: E; Z* `# X2 m% u+ tB. GridBagLayout) d$ ?8 P# {0 G) w
C. ActionListener
! T0 W# W) P& gD. WindowAdapter
: V& J$ i' f. j7 L! TE. FlowLayout9 u) J  |% g9 Y4 f
BE.8 M5 [; b$ t0 j5 q
178. A component that should resize vertically but not horizontally should be placed in:
) ?* r; M$ }* i$ C: ]A. BorderLayout in the North or South location* ~7 Z! w- r+ R# a. ^8 |* n
B. FlowLayout as the first component
, D  E& ]4 P( O; Z& B5 Q. kC. BorderLayout in the East or West location
' m& P6 i8 ^2 R( ^( s* |* DD. BorderLayout in the Center location
4 d6 d" ]# N& Q" }E. GridLayout( g, Z. e- J% l3 X( n- ~
C.8 J; ]2 b4 n% k6 U+ g
179. What type of object is the parameter for all methods of the MouseListener interface?
) a4 G5 e/ }: J, CAnswer:
" ]$ o; i" z; l; K9 c9 nMouseEvent
/ W1 ~, Q3 R; N180. What type of object is the parameter for all methods of the MouseMotionListener interface?; d) W, V( G/ v4 C9 l
Answer:2 `& r+ _) S7 q4 U
MouseEvent6 d! s+ Z3 y: g8 v  w
181. What type of object is the parameter for all methods of the KeyListener interface?9 f3 j* R  ]4 Z' ~  @" M
Answer:
: W0 h, i$ e# Q2 bKeyEvent
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-10 17:02 , Processed in 0.231417 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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