Java variables

Java variables

University

10 Qs

quiz-placeholder

Similar activities

Java1

Java1

University

10 Qs

D-Bug (C++)

D-Bug (C++)

University

15 Qs

Structures

Structures

12th Grade - University

10 Qs

Java Classes and Objects

Java Classes and Objects

University

5 Qs

JAVA UNIT 1 PART 2

JAVA UNIT 1 PART 2

University

15 Qs

C++ public single inheritance

C++ public single inheritance

University

12 Qs

Java Quiz based on array

Java Quiz based on array

University

15 Qs

Java Classes & Objects

Java Classes & Objects

University

5 Qs

Java variables

Java variables

Assessment

Quiz

Computers

University

Hard

Created by

Twins TR

Used 94+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

0

Garbage value

Compilation error

Runtime error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

0

Garbage value

Compilation error

Runtime error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The instance variables in b are given the same values as a

The instance variables in a are given the same values as b

a and b are considered to be the same object

None of the mentioned options

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A single class can have

only one instance

two instances

any number of instances

None of the mentioned options

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static means

Class Level

Object level

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Main method is static because to execute main method without creating object By JVM

Yes

No

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the ouput of the following code?

x=10 x=10

x=10 x=20

x=30 x=30

x=30 x=20

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?