
OPP Revision Unit I & II
Authored by Vidhi Pitroda
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of an abstract class in Java?
To provide a complete implementation
To provide partial implementation
To define a contract for subclasses
To allow instantiation of objects
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare an abstract method?
abstract
final
static
void
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? class A { void display() { System.out.println("Hello"); } } A a = new A(); a.display();
Hello
Error
Hello World
Nothing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about interfaces in Java?
Interfaces can be instantiated
Interfaces can have constructors
Interfaces can contain instance fields
Interfaces can extend multiple other interfaces
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'super' keyword in Java?
To define a new class
To access private members of a class
To call a method from the parent class
To create a new instance of a class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if a subclass does not implement all abstract methods of its superclass?
The superclass will be ignored
The subclass will compile successfully
The subclass must also be declared abstract
The program will run with errors
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about packages is true?
Packages are not necessary in Java
Packages cannot be nested
Packages help avoid naming conflicts
Packages can only contain classes
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
40 questions
Review Periklanan Digital
Quiz
•
University
40 questions
QUIZ SA 314
Quiz
•
University
35 questions
Google Sheet
Quiz
•
10th Grade - University
30 questions
Empowerment Technologies Long Quiz
Quiz
•
12th Grade - University
35 questions
Kiến thức về thông tin và dữ liệu (Lớp 10)
Quiz
•
10th Grade - University
40 questions
AI U1 and U2
Quiz
•
University
30 questions
UTS Enterprise Architecture
Quiz
•
University
40 questions
Latihan Soal Sistem Komputer - Kelas 7
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University