Semis

Semis

University

12 Qs

quiz-placeholder

Similar activities

java básico y pilas

java básico y pilas

University

15 Qs

exception

exception

University

10 Qs

Try Out UTS Pemrograman Visual 2

Try Out UTS Pemrograman Visual 2

University

10 Qs

Basics of JAVA

Basics of JAVA

University

11 Qs

Programming Java

Programming Java

9th Grade - University

11 Qs

Java Programming

Java Programming

University

10 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

Lesson 3: Boolean Logic and Logic Gates

Lesson 3: Boolean Logic and Logic Gates

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?