Java Programming Quiz

Java Programming Quiz

University

18 Qs

quiz-placeholder

Similar activities

Geeks for Geeks PCCOER Info Session CP Quiz

Geeks for Geeks PCCOER Info Session CP Quiz

University

20 Qs

Java - Nivelamento

Java - Nivelamento

University

15 Qs

Quiz 2 PBO

Quiz 2 PBO

University

20 Qs

js basics

js basics

4th Grade - University

18 Qs

Test de Programación en JAVA EPLP123-1

Test de Programación en JAVA EPLP123-1

University

15 Qs

JAVA Basics Quiz

JAVA Basics Quiz

University

20 Qs

'C'Programming Basics - Prepared by Feroz Khan A.B

'C'Programming Basics - Prepared by Feroz Khan A.B

University

15 Qs

Quiz PBO SIA

Quiz PBO SIA

University

20 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

vanathi mathiyazhagan

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary feature of Java that allows it to run on any device?

Platform Independence

Robustness

Multithreading

Object-Oriented

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type in Java?

int

String

char

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does JVM stand for?

Java Visual Machine

Java Virtual Machine

Java Variable Method

Java Verified Model

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a class in Java?

define

struct

class

object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: System.out.println(5 + 3);?

5 + 3

53

8

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following access modifiers allows visibility to subclasses?

Default

Private

Public

Protected

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'final' keyword in Java?

To handle exceptions

To declare constants

To create threads

To define interfaces

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?