(a) Define constructor, destructor, and copy constructor in object-oriented programming context. (b) Write a program in C++ to check whether a given…

(a) Define constructor, destructor, and copy constructor in object-oriented programming context.

(b) Write a program in C++ to check whether a given number is prime or not?

(c) Prove that a graph G is chordal if and only if every minimal separator of G is a clique.

(d) Define complement of a graph. Prove that for any graph of six vertices, either the graph or its complement contains a triangle.

From the BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC) exam, question 109 of 123.

More from this paper