Search Header Logo

Summative Test in CP(Java)

Authored by Simple Self

Computers

12th Grade

Used 8+ times

Summative Test in CP(Java)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following is NOT a top-level container in Java Swing?

        JFrame               

        JDialog

JPanel   

JWindow

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What is the primary purpose of a LayoutManager in Swing?

To handle events        

To manage the size and position of components

To paint components

To handle data input

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which class is used to create a simple button in Swing?

JTextfield          

JButton             

JLabel

 JCheckBox

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which component is best suited for displaying a list of selectable items?

JComboBox

JTree

 JList

JProgressBar

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which component provides a scrollable view of a large component?

JWindow

JDialog

JScrollPane

JPanel

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is used to create a menu bar in a Swing application?

JMenuBar

JMenu

JMenuItem

JPopupMenu

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component is best for displaying a single line of non-editable text?

JTextField

JTextArea

JLabel

JPasswordField

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?