Java Quiz 2

Java Quiz 2

University

8 Qs

quiz-placeholder

Similar activities

S&T Quiz Bee - Round 2

S&T Quiz Bee - Round 2

University

10 Qs

Jetpack Workshop

Jetpack Workshop

University

10 Qs

introduction to computer graphics

introduction to computer graphics

University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Let's Play Together

Let's Play Together

University - Professional Development

10 Qs

Git & GitHub

Git & GitHub

University

10 Qs

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

Chapter 11 Quizz

Chapter 11 Quizz

University

10 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