Object Oriented Programming - Classes

1:  

Class A

{ public :

A(void)

{cout <<  "Howzaht" ; }

~ A(void)

{cout << "whatizit " ; }

};

class B:A

{ public:

 ~ B (void)

{

cout  << "WYSIWYG" ;

}

cout << "YACC" ; 

}

};

 

The declaration B x; 

A.

prints Howzhat WYSIWYG YACC Whatizit

B.

prints nothing

C.

prints YACC Whatizit Howzhat WYSIWYG

D.

none of the above

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



2:  

Class A

{ public :

A(void)

{cout <<  "Howzaht" ; }

~ A(void)

{cout << "whatizit " ; }

};

class B:A

{ public:

 ~ B (void)

{

cout  << "WYSIWYG" ;

}

cout << "YACC" ; 

}

};

If the main function has the two statements
B x ;
cout  << " done" ;
the output will be  

A.

Howzhat WYSIWYG YACC Whatizi t done

B.

Howzhat WYSIWYG done YACC Whatizit

C.

Yl>.CC Whatizit Howzhat WYSIWYG done

D.

none of the above

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



3:  

Let class APE be a friend of class SAPIEN. Let class HUMAN be a child class of SAPIEN and let MONKEY be a child class of APE. Then    

A.

SAPIEN is not a friend of APE

B.

APE is not a friend of HUMAN

C.

MONKEY is not a friend of SAPIEN

D.

All of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



4:  

A class having no name    

A.

cannot be passed as an argument

B.

cannot have a constructor

C.

cannot have a destructor

D.

All of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



5:  

For a method to be an interface between the outside world and a class, it has to be declared    

A.

private

B.

protected

C.

public

D.

external

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:




Syllabus covered in this section is-

  • O-O Programming Concepts , Class object instantiation
  • Inheritance, polymorphism and overloading
  • C++ Prograinming - Elements of C++, Tokens,
  • Identifters Variables and constants, data, types
  • Operators, Control, statements
  • Functions
  • Parameter passing
  • Class and objects
  •  Constructors and destructors
  •  Overloading,  Inheritance,
  • Templates, Exception handling

This Section covers OOPS Questions Answers .These questions can be used for the preparation of various competitive and academic exams like

  • UGC NET Computer Science
  • Pre PhD Entrance Exam
  • DOEACC Exams
  • Kendriya Vidyalaya Sangathan Entrance Test
  • Undergraduate Computer Science  Course
  • GATE Computer Science
  • Post Graduate Computer Science Exam
  •  PhD Entrance Exam
  • Computer Engineering

Who can benefit

  • Object Oriented Programming Questions Answers can be used by any student who is preparing for PhD entrance exam, pre PhD entrance exam, entrance exam  or any other such exam.
  • Any student who is preparing for DOEACC exams can also use OOPS questions answers for preparation of his exams.
  • OOPS mcq can be useful for the students who are pursuing any undergraduate or post graduate degree in computer science like BE, ME , Btech, Mtech, .BSc, MSc, BCA, MCA, BS, MS  or any other such degree
  • OOPS mcq with answers and explanation can also be useful for the students who are preparing for any competitive exam or recruitment exams like GATE Computer Science, UGC NET Computer Science, Kendriya Vidyalaya Sangathan PGT exam, PSU, IES or any other such exam.
  • OOPS multiple choice questions answers  can also be used by any candidate who wants to gain credits in OOPS in BS Computer science or MS Computer science,
  • You can download OOPS mcq pdf from this site.
  • You can get access to OOPS multiple choice questions answers EBook.

Various Search Terms Used For This Section Are

  • OOPS Quiz Questions With Answers

  • OOPS Exam Questions Answers

  • OOPS Mcq Questions Answers

  • OOPS Mcq Pdf Download

  • C++ Questions Answers

  • C++ Programming Questions Answers