ExamVeda
Login
Home
21
What is the purpose of the self keyword in Ruby?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
22
What is the significance of the attr_writer method in Ruby classes?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
23
What does the term "inheritance" mean in Object-Oriented Programming?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
24
Which concept in Object-Oriented Programming allows objects of different classes to be treated as objects of a common superclass?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
25
What is the primary purpose of a constructor in a Ruby class?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
26
In Ruby, which keyword is used to define a private method?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
27
What is the main advantage of using encapsulation in Object-Oriented Programming?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
28
What does the term "polymorphism" refer to in Object-Oriented Programming?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
29
What is the purpose of the extend keyword in Ruby?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
30
What is the main purpose of using abstraction in Object-Oriented Programming?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board