Semis

Semis

University

12 Qs

quiz-placeholder

Similar activities

Programación unidad 3

Programación unidad 3

University

16 Qs

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

Segundo Parcial FM - QB

Segundo Parcial FM - QB

University

17 Qs

Java Code Questions

Java Code Questions

9th Grade - University

11 Qs

Java Certification

Java Certification

9th Grade - University

11 Qs

Java Their

Java Their

9th Grade - University

11 Qs

OOPJ- Data Types-Java

OOPJ- Data Types-Java

University

10 Qs

GUI Quiz

GUI Quiz

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?