Semis

Semis

University

12 Qs

quiz-placeholder

Similar activities

Data Science Essential Pre-Test

Data Science Essential Pre-Test

University - Professional Development

15 Qs

Foundations of Programming

Foundations of Programming

University

15 Qs

Unit 24 - Java Basics

Unit 24 - Java Basics

University

10 Qs

Alghorithma

Alghorithma

12th Grade - University

10 Qs

JAVASCRIPT.QUIZ

JAVASCRIPT.QUIZ

University

15 Qs

Web Browsers

Web Browsers

University

15 Qs

IC3 Digital Literacy

IC3 Digital Literacy

University

15 Qs

Frame and Label

Frame and Label

University

16 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?