Quiz 2 Java GUI

Quiz 2 Java GUI

University

10 Qs

quiz-placeholder

Similar activities

OOPJ- Data Types-Java

OOPJ- Data Types-Java

University

10 Qs

Microsoft Excel Basics

Microsoft Excel Basics

5th Grade - University

10 Qs

Topic 4-2: Multiple if-else and switch-case

Topic 4-2: Multiple if-else and switch-case

University

10 Qs

Introdução a Programação

Introdução a Programação

University

12 Qs

Internet and mobile programming 5

Internet and mobile programming 5

University

11 Qs

Code Craft : Java & Web Quiz"

Code Craft : Java & Web Quiz"

University

15 Qs

Java GUI

Java GUI

University

15 Qs

GUI Quiz

GUI Quiz

University

10 Qs

Quiz 2 Java GUI

Quiz 2 Java GUI

Assessment

Quiz

Computers

University

Medium

Created by

Angeline pang

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose that you create an application in which you instantiate a JFrame named frame1 and a JLabel named label1. Which of the following statements within the application adds label1 to frame1?

label1.add(frame1);

frame1.add(label1);

this.add(label1);

two of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The package used for using graphical classes is

awt

util

lang

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The basic container for java graphical programs is

Panel

Button

Frame

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you change the text of a label to the text contained by an integer named num;

label.setText(num);

label.updateText(num);

label.setTest("num");

label.setText(num+ "");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What object type handles Java's layouts?

Layout Manager

Layout Scheduler

Layout Operator

Layout Director

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of one of the following package does not contain GUI components?

java.applet

java.awt

javax.swing

java.io

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a GUI component (such as a button) placed into a JFrame?

insert( Component c )

add( Component c)

draw( Component c )

put( Component c )

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?