Java Basic Programming Quiz

Java Basic Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Java Basics 1

Java Basics 1

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

OOP

OOP

University

13 Qs

Java Programming

Java Programming

University

15 Qs

Java Architecture

Java Architecture

University

10 Qs

Third Year Placement Training Revision Test

Third Year Placement Training Revision Test

University

10 Qs

OOPJ #1

OOPJ #1

University

10 Qs

Java Basic Programming Quiz

Java Basic Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

H E Suryavanshi

Used 51+ times

FREE Resource

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

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?