Search Header Logo

Java Variables, Class and Objects

Authored by ALDO STALIN J L

Computers

University

Used 14+ times

Java Variables, Class and Objects
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which declaration will throw an error?

double num = 8;

int averageGrade = 89.7;

boolean done = false;

String done = "true";

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of the these variables allowed in java.

Local Variables

Instance Variables

Static Variables

All the above

none of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

sum is 1020

sum is 30

airthmetic error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

40

30

20

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

-10

10

error

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

predict output

Could not find or load main class sample

Could not find or load main class Hai

printed Hai

file name class name must me same

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

At the end of this fragment of code what is r1.count value?

10

-5

6

7

8

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?

Discover more resources for Computers