Java Quiz

Java Quiz

Professional Development

14 Qs

quiz-placeholder

Similar activities

Python-Quiz-Basic-Datatypes

Python-Quiz-Basic-Datatypes

12th Grade - Professional Development

10 Qs

C Programming

C Programming

Professional Development

10 Qs

AULA DE CLASES CLASSDOJO

AULA DE CLASES CLASSDOJO

Professional Development

10 Qs

everisCodeFest 4

everisCodeFest 4

Professional Development

10 Qs

C Looping/Conditional MCQs

C Looping/Conditional MCQs

Professional Development

10 Qs

Lamda kifejezések C# nyelven 1.

Lamda kifejezések C# nyelven 1.

Professional Development

17 Qs

G Suite

G Suite

4th Grade - Professional Development

13 Qs

C Programming

C Programming

Professional Development

10 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Easy

Created by

Shabbeer Ahmed

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JVM is platform independent.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of this code is:

        int a = 10, b = 017, c = 0X3A;

        System.out.println (a + "," + b +"," + c);

   

10, 15, 58

10, 17, 13

10, 17, 0

10, 017, 0X3A

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of this code is:

        int x = 10;

        int y = 5;

        System.out.println(++x+(++y));

 

15

16

17

18

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of this code is:

        int x = 7;

        int y = 7;

        int z = x & y;

        System.out.println("z = " + z);

   

14

0

1

7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of this code is:

class Sample1{

    public static void main(String [] args){

        System.out.println("Inside main method line1");

    }

    static {

        System.out.println("Inside class line1");

    }

}

Inside main method line1

Inside class line1

Inside main method line1

Inside class line1

Inside class line1

Inside main method line1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of this code is:

Sample s = new Sample();

System.out.println(s instanceof Sample);

True

False

Compile Error

Runtime Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the cases, an object is eligible for Garbage Collection?

(a) Demo d;

(b) Demo d = new Demo();

(c) Demo d = new Demo(); d = null;

a , c

b

b,c

a,b,c

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?