WB JECA MCA Object Oriented Programming OOPs Previous Year Questions (PYQs)

WB JECA MCA Object Oriented Programming OOPs Previous Year Questions (PYQs)

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
logo

Find the output from the following C++ code snippet: 
class A 
public: void show()
cout<<"Class A "; 
}; 
class B: public A 
public: void show()
A::show(); 
cout<<"Class B"; 
}; 
int main()
B obj; 
obj.show(); 
}

1
2
3
4

logo

What will be the output of this program? 
#include using namespace std; 
class Test 
public: static int x; 
Test()
x++; 
void display()
cout<

1
2
3
4

logo

How many parameters does a default constructor require ? 
(A) 1
(B) 2 
(C) 0
(D) 3

1
2
3
4

logo

What is the output of the following C++ code? 
#include using namespace std; 
class Base 
public: virtual void show()
cout<<"Base"; 
}; 
class Derived: public Base 
public: void show() 
override{ cout<<"Derived"; } 
}; 
int main()
Base* ptr; 
Derived d; 
ptr=&d; 
ptr->show(); 
return 0; 
}

1
2
3
4

logo

The keyword friend does not appear in
(A) the class allowing access to another class.
(B) the class desiring access to another class.
(C) the private section of a class.
(D) the public section of a class.

1
2
3
4

logo

Which among the following can’t be used for polymorphism?

1
2
3
4

logo

If a file has read and write permission for the owner, then the octal representation of the permissions will be:

1
2
3
4

logo

Identify the incorrect constructor type:

1
2
3
4

logo

Making class members inaccessible to nonmember functions is an example of:

1
2
3
4

logo

Which is the correct statement about operator overloading ?

1
2
3
4

WB JECA MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

WB JECA MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...