
Java Unit 1
Authored by Gunjan Verma
Computers
University

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
30 sec • 1 pt
Which of the following is NOT an OOP principle?
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
13 questions
Instalacion de Equipos #1
Quiz
•
9th Grade - University
15 questions
AWS ACF Módulo 2 - Economia e Faturamento na Nuvem
Quiz
•
University
10 questions
TH2 - Electrónica
Quiz
•
University
10 questions
System Integration and Arch Exam 2
Quiz
•
University
15 questions
INTRODUTION TO COMPUTER
Quiz
•
University
10 questions
Montaje y Mantenimiento de Equipos
Quiz
•
12th Grade - University
10 questions
C1_M06
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade