Object Oriented Programming Basics
Read carefully before answering
← Back
Help
⏱
00:00
🌙
Login
Question 1
1 / 10
What is a class in OOP?
OOP में class क्या होती है?
A
Blueprint for creating objects
B
A function
C
A variable
D
A loop
Question 2
2 / 10
An object is best described as:
Object को सबसे अच्छा कैसे वर्णित किया जा सकता है?
A
Instance of a class
B
A method
C
A data type
D
A compiler
Question 3
3 / 10
Which OOP concept binds data and methods together?
कौन सा OOP concept data और methods को एक साथ बाँधता है?
A
Encapsulation
B
Inheritance
C
Polymorphism
D
Abstraction
Question 4
4 / 10
Which concept allows a class to acquire properties of another class?
कौन सा concept एक class को दूसरी class के गुण प्राप्त करने देता है?
A
Inheritance
B
Encapsulation
C
Abstraction
D
Overloading
Question 5
5 / 10
What is polymorphism?
Polymorphism क्या है?
A
Ability of one interface to represent many forms
B
Code duplication
C
Data hiding
D
Single inheritance
Question 6
6 / 10
Which access modifier makes class members accessible everywhere?
कौन सा access modifier class members को हर जगह accessible बनाता है?
A
public
B
private
C
protected
D
default
Question 7
7 / 10
Which keyword is used to create an object?
Object बनाने के लिए कौन सा keyword उपयोग होता है?
A
new
B
class
C
this
D
void
Question 8
8 / 10
Method overloading means:
Method overloading का अर्थ क्या है?
A
Same method name with different parameters
B
Different method name
C
Overriding parent method
D
Using interfaces
Question 9
9 / 10
Which OOP principle hides implementation details?
कौन सा OOP सिद्धांत implementation details को छिपाता है?
A
Abstraction
B
Inheritance
C
Polymorphism
D
Encapsulation
Question 10
10 / 10
Which keyword refers to the current object?
कौन सा keyword current object को संदर्भित करता है?
A
this
B
super
C
static
D
void
⭐ Mark
Save & Next →
Submit Quiz
Total Questions
10
1
2
3
4
5
6
7
8
9
10
Answered
Marked
Not Visited
Instructions:
Navigation between questions is allowed. Your answers are auto-saved instantly.