OOP with Java

OOP with Java

University

12 Qs

quiz-placeholder

Similar activities

Java - Nivelamento

Java - Nivelamento

University

15 Qs

Java

Java

University

11 Qs

Java_ScriptES

Java_ScriptES

8th Grade - University

15 Qs

BCSC0006 - Quiz 1 - Arrays

BCSC0006 - Quiz 1 - Arrays

University

10 Qs

502 - Informática V - Módulo 2 (Programación)

502 - Informática V - Módulo 2 (Programación)

University

15 Qs

Programming Quiz

Programming Quiz

University

10 Qs

JAVA I/O

JAVA I/O

University

10 Qs

Round 4 - Harvest

Round 4 - Harvest

University

15 Qs

OOP with Java

OOP with Java

Assessment

Quiz

Computers

University

Hard

Created by

RR14CS001 VEERASINGH

Used 2+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 10 pts

What is the use of final keyword in Java?

When a class is made final, a subclass of it can not be created.

When a method is final, it can not be overridden.

When a variable is final, it can be assigned value only once.

All of the above

2.

MULTIPLE SELECT QUESTION

2 mins • 10 pts

Size of int in Java is

8 bits

16 bits

32 bits

48 bits

3.

MULTIPLE SELECT QUESTION

2 mins • 10 pts

When is the object created with new keyword?

At compile time

At run time

Depends on the code

At execution time

4.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

Identify the corrected definition of a package.

A package is a collection of editing tools

A package is a collection of classes

A package is a collection of classes and interfaces

A package is a collection of interfaces

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Java is a platform independent programming language

True

False

6.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

What is a correct difference between print() and println()?

print() prints the output and move to new line, println() prints the output and stays on same line

print() prints the output and stays on same line, println() prints the output and move to new line

None of the given

Both of the given

7.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

What is meaning * in import statement?

To import selected classes from a package

To import all classes from a package

To import all classes from a package and multiply it

None of the given

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?