亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mockcert06.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
 8.     Button b = new Button("Where am I?");
 9.     Panel p1 = new Panel();
10.     p1.setLayout(
11.       new FlowLayout(FlowLayout.LEFT));
12.     Panel p2 = new Panel();
13.     p2.setLayout(new BorderLayout());
14.     Panel p3 = new Panel();
15.     p3.setLayout(new GridLayout(3, 2));
16.
17.     p1.add(b);
18.     p2.add(p1, BorderLayout.NORTH);
19.     p3.add(p2);
20.     add(p3);
21.   }
22.
23.   public static void main(String args[]) {
24.     Q6 that = new Q6();
25.     that.setVisible(true);
26.   }
27. }

Only One: 
1) The button is just wide enough and tall enough to encompass its label.
2) The button is just wide enough to encompass its label; its height is the entire height of the frame.
3) The button is just tall enough to encompass its label; its width is the entire width of the frame.
4) The button is just wide enough to encompass its label, and its height is approximately half the frame's height.
5) The button's height is approximately half the frame's height. Its width is approximately half the frame's width.


Question 82
===========================================================
An application has a frame that uses a Border layout manager. Why is it probably not a good idea to put a vertical scroll bar at North in the frame?

Only One: 
1) The scroll bar's height would be its preferred height, which is not likely to be high enough.
2) The scroll bar's width would be the entire width of the frame, which would be much wider than necessary.
3) Both A and B.
4) Neither A nor B. There is no problem with the layout as described.


Question 83
===========================================================
What is the default layout manager for an applet?

Only One: 
1) FlowLayout
2) BorderLayout
3) GridLayout
4) GridBagLayout


Question 84
===========================================================
True or false: If a frame uses a Grid layout manager and does not contain any panels or other containers, then all the components within the frame are the same width and height.

Only One: 
1) True
2) False


Question 85
===========================================================
True or false: If a frame uses its default layout manager and does not contain any panels, then all the components within the frame are the same width and height.

Only One: 
1) True
2) False


Question 86
===========================================================
True or false: With a Border layout manager, the component at Center gets all the space that is left over, after the components at North and South have been considered.

Only One: 
1) True
2) False


Question 87
===========================================================
True or false: With a Grid layout manager, the preferred width of each component is honored, while height is dictated; if there are too many components to fit in a single row, additional rows are created.

Only One: 
1) True
2) False


Question 88
===========================================================
Which layout manager or managers lays components so only one is visible at a time.

Mutiple: 
1) Flow
2) Border
3) Grid
4) GridBag
5) Card


Question 89
===========================================================
Which layout manager or managers is organized as rows and columns where those rows and columns are of potentially unequal sizes.

Mutiple: 
1) Flow
2) Border
3) Grid
4) GridBag
5) Card


Question 90
===========================================================
Which layout manager or managers can simulate at least two other layout managers.

Mutiple: 
1) Flow
2) Border
3) Grid
4) GridBag
5) Card


Question 91
===========================================================
True or false: The event delegation model, introduced in release 1.1 of the JDK, is fully compatible with the 1.0 event model.

Only One: 
1) True
2) False


Question 92
===========================================================
Which statement or statements are true about the code listed below?

1. public class MyTextArea extends TextArea {
2.   public MyTextArea(int nrows, int ncols) {
3.     enableEvents(AWTEvent.TEXT_EVENT_MASK);
4.   }
5.
6.   public void processTextEvent(TextEvent te) {
7.     System.out.println("Processing a text event.");
8.   }
9. }

Mutiple: 
1) The source code should appear in a file called MyTextArea.java.
2) Between lines 2 and 3, a call should be made to super(nrows, ncols) so that the new component will have the correct size.
3) At line 6, the return type of processTextEvent() should be declared boolean, not void.
4) Between lines 7 and 8, the following code should appear: return true;
5) Between lines 7 and 8, the following code should appear: super.processTextEvent(te);


Question 93
===========================================================
Which statement or statements are true about the code listed below?

 1. public class MyFrame extends Frame {
 2.   public MyFrame(String title) {
 3.     super(title);
 4.     enableEvents(AWTEvent.WINDOW_EVENT_MASK);
 5.   }
 6.
 7.   public void processWindowEvent(WindowEvent e) {
 8.     System.out.println(
 9.         "Processing a window event.");
10.   }
11. }

Mutiple: 
1) Adding a Window listener to an instance of MyFrame will result in a compiler error.
2) Adding a Window listener to an instance of MyFrame will result in the throwing of an exception at runtime.
3) Adding a Window listener to an instance of MyFrame will result in code that compiles cleanly and executes without throwing an exception.
4) A Window listener added to an instance of MyFrame will never receive notification of Window events.


Question 94
===========================================================
Which statement or statements are true about the code fragment listed below? (Assume that classes F1 and F2 both implement the FocusListener interface.)

1. TextField tf = new TextField("Not tricky");
2. FocusListener flis1 = new F1();
3. FocusListener flis2 = new F2();
4. tf.addFocusListener(flis1);
5. tf.addFocusListener(flis2);

Mutiple: 
1) Lines 2 and 3 generate compiler errors.
2) Line 5 throws an exception at runtime.
3) The code compiles cleanly and executes without throwing an exception.


Question 95
===========================================================
Which statement or statements are true about the code fragment listed below? (Assume that classes F1 and F2 both implement the FocusListener interface.)

1. TextField tf = new TextField("Not tricky");
2. FocusListener flis1 = new F1();
3. FocusListener flis2 = new F2();
4. tf.addFocusListener(flis1);
5. tf.addFocusListener(flis2);
6. tf.removeFocusListener(flis1);

Mutiple: 
1) Lines 2 and 3 generate compiler errors.
2) Line 6 generates a compiler error.
3) Line 5 throws an exception at runtime.
4) Line 6 throws an exception at runtime.
5) The code compiles cleanly and executes without throwing an exception.


Question 96
===========================================================
Which statement or statements are true about the code fragment listed below?

1. class MyListener
2. extends MouseAdapter implements MouseListener {
3.   public void mouseEntered(MouseEvent mev) {
4.     System.out.println("Mouse entered.");
5.   }
6. }

Mutiple: 
1) The code compiles without error and defines a class that could be used as a Mouse listener.
2) The code will not compile correctly, because the class does not provide all the methods of the MouseListener interface.
3) The code compiles without error. The words implements MouseListener can be removed from line 2 without affecting the code's behavior in any way.
4) The code compiles without error. During execution, an exception will be thrown if a component uses this class as a Mouse listener and receives a mouse-exited event


Question 97
===========================================================
Which statement or statements are true about the code fragment listed below? (Hint: The ActionListener and ItemListener interfaces each define a single method.)

 1. class MyListener implements
 2.   ActionListener, ItemListener {
 3.   public void actionPerformed(ActionEvent ae) {
 4.     System.out.println("Action.");
 5.   }
 6.
 7.   public void itemStateChanged(ItemEvent ie) {
 8.     System.out.println("Item");
 9.   }
10. }

Mutiple: 
1) The code compiles without error and defines a class that could be used as an Action listener or as an Item listener.
2) The code generates a compiler error on line 2.
3) The code generates a compiler error on line 7.


Question 98
===========================================================
Which statement or statements are true about the code fragment listed below?

1. class MyListener extends MouseAdapter, KeyAdapter {
2.   public void mouseClicked(MouseEvent mev) {
3.     System.out.println("Mouse clicked.");
4.   }
5.
6.   public void keyPressed(KeyEvent kev) {
7.     System.out.println("KeyPressed.");
8.   }
9. }

Mutiple: 
1) The code compiles without error and defines a class that could be used as a Mouse listener or as a Key listener.
2) The code generates a compiler error on line 1.
3) The code generates a compiler error on line 6.


Question 99
===========================================================
A component subclass that has executed enableEvents() to enable processing of a certain kind of event cannot also use an adapter as a listener for the same kind of event.

Only One: 
1) True
2) False


Question 100
===========================================================
Assume that the class AcLis implements the ActionListener interface. The code fragment below constructs a button and gives it four Action listeners. When the button is pressed, which Action listener is the first to get its actionPerformed() method invoked?

 1. Button btn = new Button("Hello");
 2. AcLis a1 = new AcLis();
 3. AcLis a2 = new AcLis();
 4. AcLis a3 = new AcLis();
 5. AcLis a4 = new AcLis();
 6. btn.addActionListener(a1);
 7. btn.addActionListener(a2);
 8. btn.addActionListener(a3);
 9. btn.addActionListener(a4);
10. btn.removeActionListener(a2);
11. btn.removeActionListener(a3);
12. btn.addActionListener(a3);
13. btn.addActionListener(a2);

Only One: 
1) a1 gets its actionPerformed() method invoked first.
2) a2 gets its actionPerformed() method invoked first.
3) a3 gets its actionPerformed() method invoked first.
4) a4 gets its actionPerformed() method invoked first.
5) It is impossible to know which listener will be first.


Question 101
===========================================================
A text field is constructed and then given a foreground color of white and a 64-point bold serif font. The text field is then added to an applet that has a foreground color of red, background color of blue, and 7-point plain sans-serif font. Which one statement below is true about the text field?

Only One: 
1) Foreground color is black, background color is white, font is 64-point bold serif.
2) Foreground color is red, background color is blue, font is 64-point bold serif.
3) Foreground color is red, background color is blue, font is 7-point bold serif.
4) Foreground color is white, background color is blue, font is 7-point bold serif.
5) Foreground color is white, background color is blue, font is 64-point bold serif.


Question 102
===========================================================
You have a check box in a panel; the panel is in an applet. The applet contains no other components. Using setFont(), you give the applet a 100-point font, and you give the panel a 6-point font. Which statement or statements below are correct?

Mutiple: 
1) The check box uses a 12-point font.
2) The check box uses a 6-point font.
3) The check box uses a 100-point font.
4) The check box uses the applet's font, because you can't set a font on a panel.
5) he check box uses the panel's font, because you did not explicitly set a font for the check box.


Question 103
===========================================================
You have a check box in a panel; the panel is in an applet. The applet contains no other components. Using setFont(), you give the applet a 100-point font. Which statement or statements below are correct?

Mutiple: 
1) The check box uses a 12-point font.
2) The check box uses a 6-point font.
3) The check box uses a 100-point font.
4) The check box uses the applet's font.
5) The check box uses the panel's font, because you did not explicitly set a font for the check box.


Question 104
===========================================================
You want to construct a text area that is 80 character-widths wide and 10 character-heights tall. What code do you use?

Only One: 
1) new TextArea(80, 10)
2) new TextArea(10, 80)


Question 105
===========================================================
You construct a list by calling new List(10, false). Which statement or statements below are correct? (Assume that layout managers do not modify the list in any way.)

Mutiple: 
1) The list has 10 items.
2) The list supports multiple selection.
3) The list has up to 10 visible items.
4) The list does not support multiple selection.
5) The list will acquire a vertical scroll bar if needed.


Question 106
===========================================================
A text field has a variable-width font. It is constructed by calling new TextField("iiiii"). What happens if you change the contents of the text field to "wwwww"? (Bear in mind that i is one of the narrowest characters, and w is one of the widest.)

Only One: 
1) The text field becomes wider.
2) The text field becomes narrower.
3) The text field stays the same width; to see the entire contents you will have to scroll by using the -> and - keys.
4) The text field stays the same width; to see the entire contents you will have to scroll by using the text field's horizontal scroll bar.


Question 107
===========================================================
Which of the following may a menu contain? (Choose all that apply.)

Mutiple: 
1) A separator
2) A Checkbox
3) A Menu
4) A Button
5) A Panel


Question 108
===========================================================
Which of the following may contain a MenuBar? (Choose all that apply.)

Mutiple: 
1) A Panel
2) A Frame
3) An Applet
4) A MenuBar


Question 109
===========================================================
Your application constructs a frame by calling Frame f = new Frame();, but when you run the code, the frame does not appear on the screen. What code will make the frame appear? (Choose one.)

Only One: 
1) f.setSize(3

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影免费在线观看网站| 国产精品久久久久一区二区三区 | 丝袜国产日韩另类美女| 一区免费观看视频| 中文字幕一区视频| 亚洲精品美国一| 亚洲自拍都市欧美小说| 亚洲成人av在线电影| 亚洲3atv精品一区二区三区| 日本成人在线不卡视频| 美女网站色91| 国产成人精品免费在线| 成人一级片网址| 99re在线视频这里只有精品| 日本丰满少妇一区二区三区| 欧美午夜精品一区二区蜜桃 | 麻豆精品蜜桃视频网站| 老司机免费视频一区二区| 激情综合色丁香一区二区| 国产一区二区三区久久悠悠色av| 国产成人精品网址| 91黄色激情网站| 91精品国产综合久久久久久久久久 | 丝袜美腿亚洲色图| 国产资源在线一区| 99re热这里只有精品免费视频| 欧美色精品天天在线观看视频| 8x8x8国产精品| 国产农村妇女毛片精品久久麻豆 | 国产日韩高清在线| 亚洲啪啪综合av一区二区三区| 亚洲自拍都市欧美小说| 麻豆91精品91久久久的内涵| 福利91精品一区二区三区| 欧美在线观看视频一区二区 | 国产69精品久久久久毛片| 91麻豆精品秘密| 日韩午夜小视频| 自拍偷拍国产精品| 精品写真视频在线观看| 在线看不卡av| 国产亚洲一区二区三区四区 | 午夜激情综合网| 成人精品鲁一区一区二区| 欧美顶级少妇做爰| 国产精品成人免费| 国产资源在线一区| 欧美精品日韩精品| 亚洲乱码国产乱码精品精可以看| 久久99精品国产.久久久久| 欧美在线免费观看亚洲| 国产欧美一区二区精品久导航| 亚洲成人av一区| 一本大道久久a久久精二百| 久久久久久久久久久99999| 视频一区视频二区中文| 91麻豆视频网站| 国产精品久久久一区麻豆最新章节| 麻豆91在线看| 日韩亚洲欧美成人一区| 亚洲v日本v欧美v久久精品| 91亚洲精华国产精华精华液| 日本一区二区三区国色天香| 国产中文一区二区三区| 精品福利一区二区三区免费视频| 天天操天天干天天综合网| 在线观看亚洲精品| 亚洲精品国产一区二区精华液| 粉嫩绯色av一区二区在线观看| wwww国产精品欧美| 久久国产精品色婷婷| 91精品国产欧美日韩| 亚洲国产cao| 欧美夫妻性生活| 日韩精品成人一区二区在线| 欧美精品1区2区| 日本91福利区| 精品理论电影在线| 国产最新精品精品你懂的| 精品国产91乱码一区二区三区 | 最好看的中文字幕久久| 91丨九色丨黑人外教| 亚洲精品久久久久久国产精华液| 94-欧美-setu| 亚洲图片欧美综合| 欧美一区二区久久久| 精品在线免费视频| 欧美国产禁国产网站cc| 不卡av电影在线播放| 亚洲私人黄色宅男| 欧美精品视频www在线观看| 视频一区在线播放| 久久夜色精品国产噜噜av| 成人性生交大片免费| 一区二区三区欧美亚洲| 欧美福利视频导航| 丁香另类激情小说| 亚洲美女偷拍久久| 日韩一卡二卡三卡国产欧美| 国产ts人妖一区二区| 136国产福利精品导航| 欧美日韩精品高清| 国产呦萝稀缺另类资源| 专区另类欧美日韩| 日韩免费性生活视频播放| 成人爽a毛片一区二区免费| 亚洲成人免费电影| 欧美国产国产综合| 欧美精品丝袜久久久中文字幕| 国产成人欧美日韩在线电影| 夜色激情一区二区| 精品福利av导航| 欧美色视频在线| 成人性生交大片免费看中文网站| 性久久久久久久久| 国产亚洲精品免费| 欧美性高清videossexo| 国产激情视频一区二区三区欧美| 亚洲人亚洲人成电影网站色| 欧美一区二区三区免费大片| www.亚洲免费av| 久久成人免费日本黄色| 一区二区三区中文字幕电影| 久久精品日韩一区二区三区| 欧美日韩精品是欧美日韩精品| 成人国产一区二区三区精品| 麻豆久久久久久| 香蕉影视欧美成人| 亚洲精品福利视频网站| 中文字幕第一区综合| 久久综合成人精品亚洲另类欧美 | 看电视剧不卡顿的网站| 亚洲欧美电影一区二区| 国产日韩av一区| 精品福利视频一区二区三区| 欧美日韩成人激情| 一本大道久久精品懂色aⅴ| 成人av在线电影| 国产凹凸在线观看一区二区| 久久电影网站中文字幕| 免费在线一区观看| 日韩成人免费电影| 亚洲v中文字幕| 爽好久久久欧美精品| 亚州成人在线电影| 亚瑟在线精品视频| 亚洲成人免费视频| 天天免费综合色| 麻豆精品在线播放| 精品亚洲aⅴ乱码一区二区三区| 另类的小说在线视频另类成人小视频在线 | 91在线观看视频| 成人av在线电影| 色综合久久久久综合体桃花网| 99精品久久免费看蜜臀剧情介绍| 风间由美一区二区av101| 成人h动漫精品| 色综合久久综合网97色综合| 欧美中文字幕一二三区视频| 欧美日韩一区成人| 欧美另类z0zxhd电影| 91精品国产91久久久久久一区二区 | 五月婷婷色综合| 免费高清成人在线| 国产麻豆一精品一av一免费| 大胆欧美人体老妇| 91玉足脚交白嫩脚丫在线播放| 91精彩视频在线观看| 69精品人人人人| 欧美成人精品二区三区99精品| 国产欧美精品一区二区色综合朱莉 | 免费观看久久久4p| 国产麻豆午夜三级精品| 91在线精品一区二区| 欧美日韩电影一区| 欧美成人一区二区| 欧美激情资源网| 一区二区三区久久久| 久久国产精品第一页| 91一区一区三区| 欧美一区二区二区| 日本一区二区不卡视频| 一二三区精品福利视频| 国产在线一区二区综合免费视频| www.亚洲激情.com| 欧美一区二区播放| 欧美激情一区在线观看| 天天影视网天天综合色在线播放| 国产又粗又猛又爽又黄91精品| 91色.com| 精品久久一二三区| 亚洲精品一二三| 国产一区二区在线视频| 在线观看欧美精品| 久久亚洲精华国产精华液 | 欧美电影影音先锋| 国产精品三级电影| 免费成人美女在线观看| 在线看国产日韩| 国产日产精品一区|