(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
- Previous: (a) Explain the concept of Entropy in information theory. How does it quantify the uncertainty of a random message source? (b) Compare…
- Next: (a) Define a graph and explain the concepts of degree, path, cycle, and connectedness in an undirected graph: Differentiate between…
- All questions in BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC)