SlideShare a Scribd company logo
1 of 25
Download to read offline
OBJECT ORIENTED
PROGRAMMING WITH C++
IN OBJECT ORIENTED PROGRAMMING THE PROGRAM IS DIVIDED
INTO ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.
A. class
B. object
C. function
D. none of these
2
THE PROCESS BY WHICH OBJECTS OF ONE CLASS ACQUIRE THE
PROPERTIES OF OBJECTS OF ANOTHER CLASS IS CALLED
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ .
A. abstraction
B. inheritance
C. encapsulation
D. polymorphism
3
IN OOP WHICH COCEPT PROVIDES THE IDEA OF REUSABILITY.
A. abstraction
B. inheritance
C. encapsulation
D. polymorphism
4
THE PROCESS OF MAKING AN OPERATOR TO EXHIBIT DIFFERENT
BEHAVIORS IN DIFFERENT INSTANCES IS CALLED ‐‐‐‐‐.
A. function overloading
B. operator overloading
C. inheritance
D. none of these
5
THE PROCESS OF MAKING A FUNCTION TO EXHIBIT DIFFERENT
BEHAVIORS IN DIFFERENT INSTANCES IS CALLED ‐‐‐‐‐.
A. function overloading
B. operator overloading
C. inheritance
D. none of these
6
OBJECTS COMMUNICATE WITH ONE ANOTHER BY USING
‐‐‐‐‐‐‐‐‐‐.
A. message passing
B. operator overloading
C. inheritance
D. both a & b
7
THROUGH ‐‐‐‐‐‐‐‐ WE CAN ELIMINATE REDUNDANT CODE AND
EXTEND THE USE OF EXISTING CLASS.
A. INHERITANCE
B. OPERATOR OVERLOADING
C. ENCAPSULATION
D. BOTH A & B
8
THE ‐‐‐‐‐‐‐‐‐ PRINCIPLE HELPS THE PROGRAMMER TO BUILD
SECURE PROGRAMS.
A. OPERATOR OVERLOADING
B. ENCAPSULATION
C. DATA HIDING
D. POLYMORPHISM
9
WHAT ARE THE BASIC RUN TIME ENTITIES IN AN OBJECT
ORIENTED PROGRAM?
A. OBJECTS
B. FUNCTIONS
C. DATA
D. NONE OF THESE
10
OOPS FOLLOWS ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ APPROACH DURING
PROGRAM DESIGN.
A. TOP DOWN
B. BOTTOM ‐UP
C. BOTH A & B
D. NONE OF THESE
11
THE TECHNIQUE OF HIDING INTERNAL DETAILS IN AN OBJECT IS
CALLED‐‐‐‐‐
A. ENCAPSULATION
B. FUNCTIONS
C. ABSTRACTION
D. INHERITANCE
12
CLASSES ARE ‐‐‐‐‐‐‐‐ DATATYPE.
A. DERIVED
B. USER‐DEFINED
C. BUILT‐IN
D. BOTH A & C
13
‐‐‐‐‐‐‐‐‐‐ PROVIDES INTERFACE BETWEEN THE OBJECT’S DATA
AND PROGRAM.
A. OBJECT
B. FUNCTIONS
C. CLASS
D. POLYMORPHISM
14
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ REFERS TO THE LINKING OF PROCEDURE CALL
TO THE CODE TO BE EXECUTED IN RESPONSE TO THECALL.
A. POLYMORPHISM
B. FUNCTIONS
C. DYNAMIC BINDING
D. OBJECT
15
A ‐‐‐‐‐‐‐‐ FOR AN OBJECT IS A REQUEST FOR EXECUTION OF A
PROCEDURE.
A. OBJECT
B. FUNCTIONS
C. DYNAMIC BINDING
D. MESSAGE
16
THE << OPERATOR IS KNOWN AS‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.
A. PUT TO
B. GET FROM
C. INSERTION
D. BOTH A & C
17
THE >> OPERATOR IS KNOWN AS‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.
A. PUT TO
B. GET FROM
C. EXTRACTION
D. BOTH B & C
18
‐‐‐‐‐‐‐‐ CONTAINS FUNCTION PROTOTYPE FOR THE STANDARD
INPUT AND OUTPUT FUNCTIONS.
A. IOMANIP.H
B. IOSTREAM.H
C. STDLIB.H
D. BOTH A & B
19
IN C++ DEFAULT RETURN TYPE FOR ALL THE FUNCTIONS IS
‐‐‐‐‐‐‐‐‐.
A. INT
B. VOID
C. FLOAT
D. NONE OF THESE
20
TNE MULTIPLE USE OF INPUT AND OUTPUT OPERATOR IS CALLED
…………….
A. POLYMORPHISM
B. INHERITANCE
C. CASCADING
D. NONE OF THESE.
21
WHICH OF THE FOLLOWING IS NOT A FEATURE OF OOPS.
A. POLYMORPHISM
B. INHERITANCE
C. DYNAMIC BINDING
D. NONE OF THESE.
22
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ RELATIONSHIP INDICATES THAT THE CHANGE TO
AN INDEPENDENT THING WILL AFFECT THEDEPENDENT THING.
A. INHERITANCE
B. DEPENDENCY
C. ASSOCIATION
D. AGGREGATION
23
FIND THE FALSE STATEMENT FROM THE FOLLOWING
A. AN IDENTIFIER IN C++ IS DEFINED AS AN UNLIMITED SEQUENCE OF CHARACTERS.
B. THE FIRST CHARACTER MUST BE AN ALPHABET FOLLOWED BY DIGITS OR UNDERSCORE OR ALPHABETS.
C. IDENTIFIERS ARE NOT CASE SENSITIVE.
D. YOU CAN USE BOTH UPPERCASE AND LOWER CASE ALPHABETS IN THE SAME IDENTIFIER.
24
WHICH ONE IS THE OBJECT ORIENTED PROGRAMMING
LANGUAGE?
25
A. Cobol
B. C
C. C++
D. both C & C++

More Related Content

Similar to Object oriented programming with c++

Sample Lab Manual Word Edited aaaaaaaaaaaaaaa
Sample Lab Manual Word Edited aaaaaaaaaaaaaaaSample Lab Manual Word Edited aaaaaaaaaaaaaaa
Sample Lab Manual Word Edited aaaaaaaaaaaaaaa
XEON14
 
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALCs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
Prabhu D
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
alkhdkh970970
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
nhyt6666789
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
bhggg777
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
nbghjuyt654
 
Labsheet1 stud
Labsheet1 studLabsheet1 stud
Labsheet1 stud
rohassanie
 

Similar to Object oriented programming with c++ (20)

02 Ebook 77 Examples and Exercises of C Programming.pdf
02 Ebook 77 Examples and Exercises of C Programming.pdf02 Ebook 77 Examples and Exercises of C Programming.pdf
02 Ebook 77 Examples and Exercises of C Programming.pdf
 
ICFAI Projects and Operations Management - Solved assignments and case study ...
ICFAI Projects and Operations Management - Solved assignments and case study ...ICFAI Projects and Operations Management - Solved assignments and case study ...
ICFAI Projects and Operations Management - Solved assignments and case study ...
 
Sample Lab Manual Word Edited aaaaaaaaaaaaaaa
Sample Lab Manual Word Edited aaaaaaaaaaaaaaaSample Lab Manual Word Edited aaaaaaaaaaaaaaa
Sample Lab Manual Word Edited aaaaaaaaaaaaaaa
 
GCP-Professional-Cloud-Developer-Exam-v22.2.1_139-taqwlj.pdf
GCP-Professional-Cloud-Developer-Exam-v22.2.1_139-taqwlj.pdfGCP-Professional-Cloud-Developer-Exam-v22.2.1_139-taqwlj.pdf
GCP-Professional-Cloud-Developer-Exam-v22.2.1_139-taqwlj.pdf
 
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALCs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
 
Executable Specifications in Action
Executable Specifications in ActionExecutable Specifications in Action
Executable Specifications in Action
 
Executable Specifications in Action
Executable Specifications in ActionExecutable Specifications in Action
Executable Specifications in Action
 
The road to continuous deployment (PHPCon Poland 2016)
The road to continuous deployment (PHPCon Poland 2016)The road to continuous deployment (PHPCon Poland 2016)
The road to continuous deployment (PHPCon Poland 2016)
 
Call
CallCall
Call
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
 
Iscom 471 final exam
Iscom 471 final examIscom 471 final exam
Iscom 471 final exam
 
Labsheet1 stud
Labsheet1 studLabsheet1 stud
Labsheet1 stud
 
C test
C testC test
C test
 
Vb.net
Vb.netVb.net
Vb.net
 
H2O World - Building a Smarter Application - Tom Kraljevic
H2O World - Building a Smarter Application - Tom KraljevicH2O World - Building a Smarter Application - Tom Kraljevic
H2O World - Building a Smarter Application - Tom Kraljevic
 
Openshift operator insight
Openshift operator insightOpenshift operator insight
Openshift operator insight
 

More from Mohammad Usman (10)

AI open tools for Research.pptx
AI open tools for Research.pptxAI open tools for Research.pptx
AI open tools for Research.pptx
 
data analytics.pptx
data analytics.pptxdata analytics.pptx
data analytics.pptx
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
Dynamic memory allocation
Dynamic memory allocationDynamic memory allocation
Dynamic memory allocation
 
Career Guide
Career GuideCareer Guide
Career Guide
 
C areer banner
C areer bannerC areer banner
C areer banner
 
Career counselling banner
Career counselling bannerCareer counselling banner
Career counselling banner
 
Career ccc
Career cccCareer ccc
Career ccc
 
Career ccc hindi
Career ccc hindiCareer ccc hindi
Career ccc hindi
 
Literacy for or_against_the_poor_seminar
Literacy for or_against_the_poor_seminarLiteracy for or_against_the_poor_seminar
Literacy for or_against_the_poor_seminar
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Object oriented programming with c++

  • 2. IN OBJECT ORIENTED PROGRAMMING THE PROGRAM IS DIVIDED INTO ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. A. class B. object C. function D. none of these 2
  • 3. THE PROCESS BY WHICH OBJECTS OF ONE CLASS ACQUIRE THE PROPERTIES OF OBJECTS OF ANOTHER CLASS IS CALLED ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ . A. abstraction B. inheritance C. encapsulation D. polymorphism 3
  • 4. IN OOP WHICH COCEPT PROVIDES THE IDEA OF REUSABILITY. A. abstraction B. inheritance C. encapsulation D. polymorphism 4
  • 5. THE PROCESS OF MAKING AN OPERATOR TO EXHIBIT DIFFERENT BEHAVIORS IN DIFFERENT INSTANCES IS CALLED ‐‐‐‐‐. A. function overloading B. operator overloading C. inheritance D. none of these 5
  • 6. THE PROCESS OF MAKING A FUNCTION TO EXHIBIT DIFFERENT BEHAVIORS IN DIFFERENT INSTANCES IS CALLED ‐‐‐‐‐. A. function overloading B. operator overloading C. inheritance D. none of these 6
  • 7. OBJECTS COMMUNICATE WITH ONE ANOTHER BY USING ‐‐‐‐‐‐‐‐‐‐. A. message passing B. operator overloading C. inheritance D. both a & b 7
  • 8. THROUGH ‐‐‐‐‐‐‐‐ WE CAN ELIMINATE REDUNDANT CODE AND EXTEND THE USE OF EXISTING CLASS. A. INHERITANCE B. OPERATOR OVERLOADING C. ENCAPSULATION D. BOTH A & B 8
  • 9. THE ‐‐‐‐‐‐‐‐‐ PRINCIPLE HELPS THE PROGRAMMER TO BUILD SECURE PROGRAMS. A. OPERATOR OVERLOADING B. ENCAPSULATION C. DATA HIDING D. POLYMORPHISM 9
  • 10. WHAT ARE THE BASIC RUN TIME ENTITIES IN AN OBJECT ORIENTED PROGRAM? A. OBJECTS B. FUNCTIONS C. DATA D. NONE OF THESE 10
  • 11. OOPS FOLLOWS ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ APPROACH DURING PROGRAM DESIGN. A. TOP DOWN B. BOTTOM ‐UP C. BOTH A & B D. NONE OF THESE 11
  • 12. THE TECHNIQUE OF HIDING INTERNAL DETAILS IN AN OBJECT IS CALLED‐‐‐‐‐ A. ENCAPSULATION B. FUNCTIONS C. ABSTRACTION D. INHERITANCE 12
  • 13. CLASSES ARE ‐‐‐‐‐‐‐‐ DATATYPE. A. DERIVED B. USER‐DEFINED C. BUILT‐IN D. BOTH A & C 13
  • 14. ‐‐‐‐‐‐‐‐‐‐ PROVIDES INTERFACE BETWEEN THE OBJECT’S DATA AND PROGRAM. A. OBJECT B. FUNCTIONS C. CLASS D. POLYMORPHISM 14
  • 15. ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ REFERS TO THE LINKING OF PROCEDURE CALL TO THE CODE TO BE EXECUTED IN RESPONSE TO THECALL. A. POLYMORPHISM B. FUNCTIONS C. DYNAMIC BINDING D. OBJECT 15
  • 16. A ‐‐‐‐‐‐‐‐ FOR AN OBJECT IS A REQUEST FOR EXECUTION OF A PROCEDURE. A. OBJECT B. FUNCTIONS C. DYNAMIC BINDING D. MESSAGE 16
  • 17. THE << OPERATOR IS KNOWN AS‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. A. PUT TO B. GET FROM C. INSERTION D. BOTH A & C 17
  • 18. THE >> OPERATOR IS KNOWN AS‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. A. PUT TO B. GET FROM C. EXTRACTION D. BOTH B & C 18
  • 19. ‐‐‐‐‐‐‐‐ CONTAINS FUNCTION PROTOTYPE FOR THE STANDARD INPUT AND OUTPUT FUNCTIONS. A. IOMANIP.H B. IOSTREAM.H C. STDLIB.H D. BOTH A & B 19
  • 20. IN C++ DEFAULT RETURN TYPE FOR ALL THE FUNCTIONS IS ‐‐‐‐‐‐‐‐‐. A. INT B. VOID C. FLOAT D. NONE OF THESE 20
  • 21. TNE MULTIPLE USE OF INPUT AND OUTPUT OPERATOR IS CALLED ……………. A. POLYMORPHISM B. INHERITANCE C. CASCADING D. NONE OF THESE. 21
  • 22. WHICH OF THE FOLLOWING IS NOT A FEATURE OF OOPS. A. POLYMORPHISM B. INHERITANCE C. DYNAMIC BINDING D. NONE OF THESE. 22
  • 23. ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ RELATIONSHIP INDICATES THAT THE CHANGE TO AN INDEPENDENT THING WILL AFFECT THEDEPENDENT THING. A. INHERITANCE B. DEPENDENCY C. ASSOCIATION D. AGGREGATION 23
  • 24. FIND THE FALSE STATEMENT FROM THE FOLLOWING A. AN IDENTIFIER IN C++ IS DEFINED AS AN UNLIMITED SEQUENCE OF CHARACTERS. B. THE FIRST CHARACTER MUST BE AN ALPHABET FOLLOWED BY DIGITS OR UNDERSCORE OR ALPHABETS. C. IDENTIFIERS ARE NOT CASE SENSITIVE. D. YOU CAN USE BOTH UPPERCASE AND LOWER CASE ALPHABETS IN THE SAME IDENTIFIER. 24
  • 25. WHICH ONE IS THE OBJECT ORIENTED PROGRAMMING LANGUAGE? 25 A. Cobol B. C C. C++ D. both C & C++