Search Header Logo

Java Basic Programming Quiz

Authored by H E Suryavanshi

Computers

University

Used 60+ times

Java Basic Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a JAVA keyword?

native

assert

transient

constant

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A class variable is a variable which is .....

declared inside class but not within any class method

the word static comes before the variable type

a variable that any method in class can access

All of the given

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The size of the 'long' data type in bits is .....

8-bit

16-bit

32-bit

64-bit

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

The given code will give following result

"Hello"

Hello

Compile-time error

Run-time error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will be the output of the given code?

5 4

4 5

4 4

5 5

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Total number of primitive data types in Java are ....?

5

6

7

8

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following below resides in heap memory in java?

class

instance variable

object

method

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?