Core Java Quiz

Core Java Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

Kuis 1 Pretest

Kuis 1 Pretest

10th Grade

10 Qs

CodeHS 4.2 Classes vs. Objects

CodeHS 4.2 Classes vs. Objects

9th - 12th Grade

7 Qs

BAB IV MATERI 14 Latihan PBO 1

BAB IV MATERI 14 Latihan PBO 1

10th Grade

6 Qs

JAVA OOPS

JAVA OOPS

8th - 12th Grade

10 Qs

Object Oriented Programming in Java

Object Oriented Programming in Java

10th Grade

13 Qs

JavaScript Review Quiz

JavaScript Review Quiz

10th Grade

13 Qs

Intro to JavaScript

Intro to JavaScript

9th - 12th Grade

12 Qs

Core Java Quiz

Core Java Quiz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Chandra Sekhar

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is object-oriented programming?

Object-oriented programming is a programming paradigm that organizes data and behavior into reusable structures called objects.

Object-oriented programming is a programming paradigm that does not support code reusability.

Object-oriented programming is a programming paradigm that uses only functions and procedures.

Object-oriented programming is a programming paradigm that focuses on procedural programming.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the four main principles of object-oriented programming?

encapsulation, inheritance, polymorphism, and encapsulation

encapsulation, inheritance, polymorphism, and encapsulation

encapsulation, inheritance, polymorphism, and encapsulation

encapsulation, inheritance, polymorphism, and abstraction

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a class in Java?

A class in Java is a data type used to store multiple values.

A class in Java is a built-in function that performs a specific task.

A class in Java is a keyword used to define a method.

A class in Java is a blueprint or template for creating objects.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in Java?

An object in Java is a data type.

An object in Java is an instance of a class.

An object in Java is a method.

An object in Java is a variable.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a class and an object?

A class is a blueprint or template for creating objects, while an object is an instance of a class.

A class is used to define functions, while an object is used to store data.

A class is a specific type of object.

A class and an object are the same thing.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inheritance in Java?

Inheritance in Java is a mechanism where one class inherits the properties and behaviors of another class.

Inheritance in Java is a feature that allows a class to have multiple superclasses.

Inheritance in Java is a process of creating multiple instances of a class.

Inheritance in Java is a way to create new classes from existing classes.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is polymorphism in Java?

Polymorphism in Java is a technique that allows a method to be overridden in different ways by different classes.

Polymorphism in Java allows objects of different classes to be treated as objects of a common superclass.

Polymorphism in Java refers to the ability of an object to take on many forms.

Polymorphism in Java is a feature that allows one interface to be implemented by multiple classes.

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?