...
August 29, 2024

OOPS

Question 146 Which of the following is/are true about packages in Java? 1) Every class is part of some package 2) All classes in a file […]
August 29, 2024

OOPS

Question 147 Give the output #include using namespace std; class Base { Public: int x,y; Public: Base(int i, int j) { x=i;y=j; } }; class Derived:public […]
August 29, 2024

OOPS

Question 148 Which one of the following are essential features of object oriented language? Abstraction and encapsulation Strictly-typed Type-safe property coupled with sub-type rule Polymorphism in […]
August 29, 2024

OOPS

Question 149 Consider the following C++ function f() : unsigned int f(unsigned int n) { unsigned int b=0; while(n) { b+=n&1; n>>=1; } return b; } […]