
OPP Revision Unit I & II

Quiz
•
Information Technology (IT)
•
University
•
Medium
Vidhi Pitroda
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
Midterm Examination-ICSC0113- OS

Quiz
•
University
30 questions
UAS STRUKTUR DATA REGULER

Quiz
•
University
30 questions
Quiz sobre Arquitetura em Camadas

Quiz
•
University
30 questions
UNIT-4-EXCEPTION-HANDLING & I/O BASICS

Quiz
•
University
40 questions
Infinity Code Nexus

Quiz
•
University
30 questions
Enterprise Integration and JSON Quiz

Quiz
•
University
34 questions
Quiz sobre Frameworks Front-end

Quiz
•
University
40 questions
Cong nghe web XML gemini

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University