Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. In case of non-static member functions how many maximum object arguments a unary operator overloaded function can take?
Correct Answer is : x = x & (-x)
2. In case of non-static member functions how many maximum object arguments a binary operator overloaded function can take?
Correct Answer is : octal, decimal, character, hexadecimal
3. In the case of friend operator overloaded functions how many maximum object arguments a unary operator overloaded function can take?
Correct Answer is : ANDing integer ‘a’ with ‘true’ :8
4. In the case of friend operator overloaded functions how many maximum object arguments a binary operator overloaded function can take?
Correct Answer is : -1 1
5. What is the output of the following C++ code?
#include
#include
using namespace std;
class A
{
static int a;
public:
void show()
{
a++;
cout<<"a: "<