Quiz on OOPs- Day 1 (30-01-2025)

Quiz
•
Computers
•
University
•
Medium
Ragini Kumari
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which one of the following are essential features of an object-oriented programming language?
Abstraction and encapsulation
Strictly-typedness
Polymorphism in the presence of inheritance
Type-safe property coupled with sub-type rule
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following languages supports polymorphism but not the classes?
Ada
C++
C#
Java
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following program fragment?
Class P { void f(int i) { print(i); } } Class Q subclass of P { void f(int i) { print(2*i); } }
P x = new Q(); Q y = new Q(); P z = new Q(); x.f(1); ((P)y).f(1); z.f(1);
1 2 2
1 1 1
2 2 2
1 2 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which feature of OOP indicates code reusability?
Polymorphism
Inheritance
Encapsulation
Abstraction
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which one of the following are essential features of object-oriented language?
Polymorphism in the presence of inheritance
Type-safe property coupled with sub-type rule
Strictly-typed
Abstraction and encapsulation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is associated with objects?
Identity
Behaviour
State
All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What can you say about the following two statements regarding abstraction and encapsulation?
I. Abstraction allows us to focus on what something does without considering the complexities of how it works. II. Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
Only I is correct.
Only II is correct.
Both I and II are correct.
Neither I nor II is correct.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Polymorphism

Quiz
•
University
9 questions
Inheritance + java

Quiz
•
University
10 questions
INTRODUCTION TO OOPS

Quiz
•
University
15 questions
Object Oriented Programming Quiz

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
Unit 1 - Classes and Objects

Quiz
•
University
6 questions
Difficult Round

Quiz
•
University
15 questions
Class Diagrams

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University