Java Basics Quiz

Java Basics Quiz

University

20 Qs

quiz-placeholder

Similar activities

Spring Semester QUIZ 5

Spring Semester QUIZ 5

University

15 Qs

Java Debugging Questions - M

Java Debugging Questions - M

University

15 Qs

Java Programming Quiz

Java Programming Quiz

University

15 Qs

Intro to  Java

Intro to Java

University

15 Qs

Java Class and Object Quiz

Java Class and Object Quiz

University

15 Qs

Tech quiz Round 1

Tech quiz Round 1

University

15 Qs

Java Quiz1 @ VCE (CSE (AI&ML))

Java Quiz1 @ VCE (CSE (AI&ML))

University

15 Qs

oops

oops

University

16 Qs

Java Basics Quiz

Java Basics Quiz

Assessment

Quiz

Other

University

Hard

Created by

vaishu dharan

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is *not* a feature of Java?

Platform Independent

Compiled and Interpreted

Low-level language

Object-Oriented

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

JVM stands for:

Java Variable Machine

Java Visual Model

Java Virtual Machine

Java Value Method

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct syntax of the `main()` method in Java?

void public static main(String args[])

public static void main(String[] args)

public void static main(String args[])

main public static void(String[] args)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data type is used to store true/false values?

int

boolean

char

double

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used to compare two values for equality in Java?

=

==

!=

equals

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the following expression return: `5 > 3 && 2 < 4`?

true

false

1

0

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to define a constant in Java?

const

final

static

define

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?