eQuiz - Multiple choice test on Java Swing Practice - Part 2

  1. 14. Layout of a container có thể được dùng bởi sử dụng các phương pháp sau:
    1. setLayout (aLayoutManager)
    2. layout (aLayoutManager)
    3. addLayout (aLayoutManager)
    4. setLayoutManager (aLayoutManager)
  2. 15. Which layout should you use to organize components of a container in a tabular form?
    1. CardLayout
    2. BorederLayout
    3. FlowLayout
    4. GridLayout
  3. 16. How do you confirm where a component will be positioned using Flowlayout?
    1. North, South, East, Westlistener
    2. Assign a row / column grid reference
    3. Pass một số X
    4. Since nothing, the FlowLayout will position the component
  4. 17. Using a FlowLayout Manager, which of the following is correct way to add elements to a container.
    1. add (component);
    2. set (component);
    3. add (x, y, component);
    4. add ("Center", component);
  5. 18. What is the result of executing the following Java class:
     import java.awt. *; 
    public class FrameTest extends Frame {
    public FrameTest () {
    add (new Button ("First"));
    add (new Button ("Second"));
    add (new Button ("Third"));
    pack ();
    setVisible (true);
    }

    public static void main (String args []) {
    new FrameTest ();
    }}
    1. Only the "third" button is displayed.
    2. Một runtime exception được tạo (không thể xác định của layoutmanager).
    3. Only the "first" button is displayed.
    4. Only the "second" button is displayed.
  6. 19. Which method will cause a Frame to be displayed?
    1. show ()
    2. setVisible ()
    3. display()
    4. displayFrame ()
  7. 20. What class is the top of the AWT event hierarchy?
    1. java.awt.AWTEvent
    2. java.awt.Event
    3. java.util.eventObject
    4. javax.swing.Object
  8. 21. When two or more objects are added as listeners for cùng sự kiện, mà danh sách được đầu tiên để xử lý sự kiện?
    1. Đối tượng đầu tiên được thêm vào danh sách listener.
    2. Các đối tượng cuối cùng được thêm vào danh sách listener.
    3. Không có cách làm việc để xác định mà danh sách danh sách sẽ được tạo lại đầu.
    4. Không thể có nhiều hơn một danh sách danh sách cho sự kiện đưa ra.
  9. 22. All Applets must import java.applet and java.awt.
    1. True
    2. False
  10. 23. Heavyweight componants are not handled properly when they are placed inside the JScrollpanes viewport because .
    1. JScrollPane is a lightweight component.
    2. Viewport of JScrollPane which child scrollable clips, is lightweight
    3. None of the above.
    4. Either of the above.
  11. 24. Which method is used to đặt văn bản của một đối tượng Label?
    1. setText ()
    2. setLabel ()
    3. setTextLabel ()
    4. setLabelText ()
  12. 25. Which of the following may contain a bar menu?
    1. A panel
    2. A frame
    3. An applet
    4. A bar menu
  13. 26. Which of the following are methods of the Graphics class?
    1. drawRect ()
    2. drawImage ()
    3. drawPoint ()
    4. drawString ()
  14. 27. A field text has a biến-width font. Nó đã được tạo bởi yêu cầu textField ("iiiii"). What happens if you change the contents of the text field to "wwwww"?
    1. Text field becomes wider.
    2. The text field becomes narrower.
    3. The text field stays the same width; để xem một số nội bộ bạn sẽ có thể gỡ bỏ bởi dùng số và phím này.
    4. The text field stays the same width; để xem bản đầy đủ của bạn sẽ có thể gỡ bỏ bởi các văn bản Horizontal scroll bar.
5 ★ | 2 Vote

May be interested

  • eQuiz - Multiple choice quiz about JAVAeQuiz - Multiple choice quiz about JAVA
    following are multiple-choice questions related to java programming language, there will be 23 questions in total with no answer for each time. let's get started!
  • eQuiz - Multiple choice test on JDBC - Part 1eQuiz - Multiple choice test on JDBC - Part 1
    in the quiz below, we will introduce you to part 1 of the jdbc basic knowledge test series with 15 questions.
  • eQuiz - Quiz on Core Java - Part 2eQuiz - Quiz on Core Java - Part 2
    in the quiz below, you will be able to try out part 2 of the series related to core java - one of the most popular programming languages ​​today. in total, the test will have 15 questions in the form of multiple choice, with an unlimited response time ...
  • JAVA P8 test quizJAVA P8 test quiz
    if you are interested in learning about the java programming language, the following quiz of network administrator will provide you with a lot of useful knowledge for your learning.
  • Test on JAVA test on P9Test on JAVA test on P9
    unlike most common programming languages, instead of compiling the source code into machine code or interpreting source code when running, java is designed to compile the source code into bytecode, then bytecode will be run by the runtime environment. . to help you better understand this programming language, the following quiz of network administrator will give you lots of useful knowledge.
  • eQuiz - Multiple choice test on programming language C - part 1eQuiz - Multiple choice test on programming language C - part 1
    this is part 1 of a series of tests on knowledge of c programming language, in total there will be 15 questions with no time for answering each sentence.
  • eQuiz - VB.NET testing test - Part 2eQuiz - VB.NET testing test - Part 2
    in the previous article, i showed you the first part of the vb.net test. and this time, we will continue with part 2 of this popular quiz series on programming languages, the whole test will have 15 questions with unlimited response time.
  • eQuiz - Multiple choice test on C # - part 2eQuiz - Multiple choice test on C # - part 2
    we will continue with part 2 of the small test series on c #, there will be 15 questions in total with no time to answer each sentence.
  • eQuiz - Multiple choice test on OSI Model - part 2eQuiz - Multiple choice test on OSI Model - part 2
    this is part 2 of the osi model knowledge test, in total there will be 12 questions with no time for answering each sentence.
  • eQuiz - Multiple choice test on OSI Model - part 1eQuiz - Multiple choice test on OSI Model - part 1
    the osi model knowledge test, in total, there will be 12 questions with no time limit for answering each sentence.