Java Quiz 2

Java Quiz 2

University

8 Qs

quiz-placeholder

Similar activities

PDSB 210622

PDSB 210622

University - Professional Development

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

HEAP TREE

HEAP TREE

University

11 Qs

Access

Access

10th Grade - University

11 Qs

Mrs O's Computer Architecture Quiz

Mrs O's Computer Architecture Quiz

KG - University

13 Qs

MEDIA LITERACY SKILLS AND EXAMINING THE MEDIA

MEDIA LITERACY SKILLS AND EXAMINING THE MEDIA

University

10 Qs

Firewall & IDS

Firewall & IDS

University

10 Qs

Revision Gr2-2025

Revision Gr2-2025

3rd Grade - University

12 Qs

Java Quiz 2

Java Quiz 2

Assessment

Quiz

Computers

University

Hard

Created by

Imran Khan

Used 3+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these packages contains all the classes and methods required for event handling in Java?

java.awt

java.event

java.applet

java.awt.event

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is an event in delegation event model used by Java programming language?

An event is a class used for defining object, to create events

An event is an object that describes a state change in a source

An event is an object that describes a state change in processing

An event is an object that describes any change by the user and system

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Method are used to register a keyboard event listener.

KeyListener()

addKistener()

addKeyListener()

eventKeyboardListener()

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is a listener in context to event handling?

A listener is a object that is notified when an event occurs

A listener is a variable that is notified when an event occurs

A listener is a method that is notified when an event occurs

None of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

class Main {

 public static void main(String args[]){

   final int i;

   i = 20;

   System.out.println(i);

 }

}

20

0

Compiler Error

Garbage value

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Derived::show() called

Base::show() called

Compiler Error

Exception

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these are types of multitasking?

Process based

Thread based

Process and Thread based

None of the mentioned

8.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Thread priority in Java is?

Integer

Float

double

long