Home / MCQ Bank / Computer
Computer Methods In Ruby Difficulty: Medium

What does the `protected` keyword do in Ruby?

Select the correct option to test your answer:

More Computer Questions

Which of the following is not a technique to avoid a collision? Which of the following layer protocols are responsible for user and the application programme support such as passwords, resource sharing, file transfer and network management? Choose the correct statement for the following code segment? bool check (int N) { if( N & (1 << i) ) return true; else return false; } What is encapsulation in Ruby classes? What will be the output of the following C++ function? int main() { register int i = 1; int *ptr = &i; cout << *ptr; return 0; }