Which of the following is NOT an OOP principle?

Java Unit 1

Quiz
•
Computers
•
University
•
Hard
Gunjan Verma
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Encapsulation
Abstraction
Compilation
Inheritance
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an object in Java?
a) A variable
b) An instance of a class
c) A function
d) A primitive data type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of encapsulation?
a) To allow direct access to all variables
b) To hide the implementation details of a class
c) To inherit properties from another class
d) To create multiple objects
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is polymorphism in Java?
a) Multiple classes with the same name
b) Ability of a variable to hold multiple types
c) Ability of a method to behave differently based on the object calling it
d) The use of multiple objects in a program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a characteristic of Java?
a) Platform independent
b) Supports multiple inheritance through classes
c) Object-oriented
d) Secure
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Java Virtual Machine (JVM)?
a) A compiler
b) A runtime environment for Java programs
c) A debugger
d) An integrated development environment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a single-line comment in Java?
a) /* comment */
b) // comment
c) -- comment
d) # comment
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Polymorphism

Quiz
•
University
15 questions
Object Oriented Programming MCQs

Quiz
•
University
15 questions
Basic Java Quiz

Quiz
•
University
10 questions
Topik 2: Ciri-ciri Object Oriented Programming (OOP)

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
C Programming - Basics 001

Quiz
•
University
10 questions
Unit 1 - Classes and Objects

Quiz
•
University
10 questions
Java Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade