Semis

Semis

University

12 Qs

quiz-placeholder

Similar activities

Digital Electronics (Weekend Assignment - 1)

Digital Electronics (Weekend Assignment - 1)

University - Professional Development

15 Qs

Unit2 Java Viable

Unit2 Java Viable

University

9 Qs

PYTHON DAY 2

PYTHON DAY 2

University

12 Qs

PBD SK T5 - 1.3 Get Logik

PBD SK T5 - 1.3 Get Logik

1st Grade - Professional Development

8 Qs

DWES - Tema 2 Parte 1

DWES - Tema 2 Parte 1

12th Grade - University

10 Qs

Discrete Structure 2 Semi-Final Examination

Discrete Structure 2 Semi-Final Examination

University

15 Qs

Variablen und Vergleiche

Variablen und Vergleiche

University

10 Qs

CS 315 EXAM 1

CS 315 EXAM 1

University

10 Qs

Semis

Semis

Assessment

Quiz

Computers

University

Medium

Created by

Rod Puyat

Used 9+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What does the setText(String text) method do?

Sets the size of the JFrame window

Sets the text content of a text-based component

Sets the title of the JFrame window

Sets the location of the top-left corner of the JFrame window

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which method is used to set the title of the JFrame window?

setSize(int width, int height)

setTitle(String title)

setVisible(boolean visible)

setLayout(LayoutManager manager)

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How can you convert a String to an int in a JFrame form?

Integer.parseInt(userInput)

Boolean.parseBoolean(userInput)

Double.parseDouble(userInput)

Integer.toString(myInt)

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What does the setResizable(boolean resizable) method do?

Sets the title of the JFrame window

Sets the text content of a text-based component

Sets whether the JFrame window is resizable or not

Sets the location of the top-left corner of the JFrame window

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which method is used to add a component to the JFrame window?

remove(Component comp)

add(Component comp)

setDefaultCloseOperation(int operation)

setLayout(LayoutManager manager)

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How can you convert a double to a String in a JFrame form?

Integer.parseInt(userInput)

Integer.toString(myInt)

Double.toString(myValue)

Boolean.parseBoolean(userInput)

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What does the setDefaultCloseOperation(int operation) method do?

Sets the size of the JFrame window

Sets the title of the JFrame window

Sets the location of the top-left corner of the JFrame window

Sets the default operation when the user closes the JFrame window

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?