Home / MCQ Bank / Computer
Computer Classes And Objects In Ruby

Which keyword is used to refer to the current instance of a class in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • self

Related Computer Questions

Which function is used to insert an element into heap? What will be the output of the following C++ code? #include <typeinfo> #include <iostream> using namespace std; class A { public: virtual ~A(); }; int main() { A* a = NULL; try { cout << typeid(*a).name() << endl; } catch (bad_typeid) { cout << "Object is NULL" << endl; } } ______ will produce a sequential vector c( (1,2,3,4,5,6,7,8,9)). Which of the following data structures can be used to implement a deque? Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively. What is the number of multiplications required to multiply the two matrices?