Search Header Logo

Javaquiz

Authored by Mukesh Otwani

Computers

Professional Development

Used 11+ times

Javaquiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is not a Java feature?

Object-oriented

Use of pointers

Portable

Dynamic and Extensible

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the extension of byte code files?

.java

.class

.byte

.js

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Output of below code

int a=10;

int b=a++;

System.out.println(b);

10

11

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Output of below code

int a=10;

int b=++a;

System.out.println(b);

10

11

12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of the below statement

public static void main(String[] args) {

int x=5;

{

int y = 6;

System.out.print(x + " " + y);

}

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

}

Runtime error

Compilation error

5656

565

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of the below code

class Box{

int width;

int height;

int length;

}

public class Day1 {

public static void main(String[] args) {

Box obj = new Box();

obj.width = 10;

obj.height = 2;

obj.length = 10;

int y = obj.width * obj.height *obj.length;

System.out.print(y);

}

400

100

200

Runtime Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these keywords is used to define interfaces in Java?

interface

Interface

InterFace

Access all questions and much more by creating a free account

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?