#include &lt;iostream&gt;    using namespace std;    class stu    &#123;        protected:        int rno;        public:        void get_no&#40;int a&#41;        &#123;            rno = a;        &#125;        void put_no&#40;void&#41;        &#123;        &#125;    &#125;;    class test:public stu    &#123;        protected:        float part1,part2;        public:        void get_mark&#40;float x, float y&#41;        &#123;            part1 = x;            part2 = y;        &#125;        void put_marks&#40;&#41;        &#123;        &#125;    &#125;;    class sports    &#123;        protected:        float score;        public:        void getscore&#40;float s&#41;        &#123;            score = s;        &#125;        void putscore&#40;void&#41;        &#123;        &#125;    &#125;;    class result: public test, public sports    &#123;        float total;        public:        void display&#40;void&#41;;    &#125;;    void result::display&#40;void&#41;    &#123;        total = part1 + part2 + score;        put_no&#40;&#41;;        put_marks&#40;&#41;;        putscore&#40;&#41;;        cout &lt;&lt; &quot;Total Score=&quot; &lt;&lt; total &lt;&lt; &quot;\n&quot;;    &#125;    int main&#40;&#41;    &#123;        result stu;        stu.get_no&#40;123&#41;;        stu.get_mark&#40;27.5, 33.0&#41;;        stu.getscore&#40;6.0&#41;;        stu.display&#40;&#41;;        return 0;    &#125;
A. 66.5
B. 64.5
C. 62.5
D. 60.5
Answer:A
#include &lt;iostream&gt;    using namespace std;    class stu    &#123;        protected:        int rno;        public:        void get_no&#40;int a&#41;        &#123;            rno = a;        &#125;        void put_no&#40;void&#41;        &#123;        &#125;    &#125;;    class test:public stu    &#123;        protected:        float part1,part2;        public:        void get_mark&#40;float x, float y&#41;        &#123;            part1 = x;            part2 = y;        &#125;        void put_marks&#40;&#41;        &#123;        &#125;    &#125;;    class sports    &#123;        protected:        float score;        public:        void getscore&#40;float s&#41;        &#123;            score = s;        &#125;        void putscore&#40;void&#41;        &#123;        &#125;    &#125;;    class result: public test, public sports    &#123;        float total;        public:        void display&#40;void&#41;;    &#125;;    void result::display&#40;void&#41;    &#123;        total = part1 + part2 + score;        put_no&#40;&#41;;        put_marks&#40;&#41;;        putscore&#40;&#41;;        cout &lt;&lt; &quot;Total Score=&quot; &lt;&lt; total &lt;&lt; &quot;\n&quot;;    &#125;    int main&#40;&#41;    &#123;        result stu;        stu.get_no&#40;123&#41;;        stu.get_mark&#40;27.5, 33.0&#41;;        stu.getscore&#40;6.0&#41;;        stu.display&#40;&#41;;        return 0;    &#125;
A. 66.5 B. 64.5 C. 62.5 D. 60.5
Explanation:In this program, We are passing the values by using different