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
Reset
Showing 10 questions
logo
🎓 WB JECA MCA📅 Year: 2025📚 Computer🏷 Object Oriented Programming OOPs

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
🎓 WB JECA MCA📅 Year: 2025📚 Computer🏷 Object Oriented Programming OOPs

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
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

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

1
2
3
4

logo
🎓 WB JECA MCA📅 Year: 2025📚 Computer🏷 Object Oriented Programming OOPs

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
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

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
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

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

1
2
3
4

logo
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

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
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

Identify the incorrect constructor type:

1
2
3
4

logo
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

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

1
2
3
4

logo
🎓 WB JECA MCA📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

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...