SlideShare a Scribd company logo
1 of 5
QUESTION ONE (14 MARKS) compulsory
a. Discuss the features of object oriented programming
languages.
[5 marks]
b. A perfect square is a number that can be expressed as the
product of two equal integers. Draw a flowchart, and write a
corresponding class oriented program to check if any entered
number is a perfect square integer number.
[6 marks]
c. The world is experiencing paradigm shift from structured
programming approach to object oriented programming
approach. Explain the reasons that justify this scenario.
[3 marks]
QUESTION TWO (14 MARKS)
a. Explain the relationship between C and C++ programming.
[2 marks]
b. A class is required to determine the number of bytes for each
data type entered into the program. Write a class oriented
program that displays the corresponding bytes for each data
type in the program.
[6 marks]
QUESTION THREE (14 MARKS)
a. Explain how reusability is achieved in object oriented
programming.
[2 marks]
b. By use of an example, explain how single inheritance can be
achieved in the program
[6 marks]
c. How is pass by reference implemented in the program. Write
a function oriented program to compute the compound interest
for the sum invested for any number of years using the concept
of pass by value.
[6 marks]
QUESTION FOUR (14 MARKS)
a. How are control structures important in program
development? Explain
[2 marks]
b. goto control structure is not widely used in programming.
Justify the statement. [2 marks]
c. With the help of syntax and a flowchart, explain the switch
case control structure.
[5 marks]
i. Switch case control structure
d. Using the do … while loop control structure, write a class
oriented program to find the sum of the digits of any input
integer number.
[5 marks]
QUESTION FIVE (14 MARKS)
a. Discuss the importance of arrays in a program.
[2 marks]
.
b. With the help of syntax, explain how arrays are initialized
outside the class. [3 marks]
c. Write a class oriented program to display an identity matrix
of order 3.
[6 marks]
d. Discuss any three rules for overloading operators in a
program.
[3 marks]
.
QUESTION SIX (14 MARKS)
a. With the help of an example, discuss how user defined data
types are initialized in object oriented programming.
[5 marks]
b. Write short notes on the following types of constructors:
[3 marks]
i. Parameterized constructors
ii. Default constructors
c. How is an exception handled in C++? Explain by use of the
syntax and an example of class oriented program.
[6 marks]
QUESTION SEVEN (14 MARKS)
a. Write a menu driven program that performs the following:
[14 marks]
i. Checks if any entered number is a palindrome number
ii. Checks if any entered number is an Armstrong number
iii. Checks if any entered number is a prime number.
start
Page 3 of 3

More Related Content

Similar to QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx

17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12Aditi Bhushan
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetionsmshoaib15
 
Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019ktuonlinenotes
 
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014][Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014]Mumbai B.Sc.IT Study
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignmentKuntal Bhowmick
 
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...
An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...
An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...Ann Wera
 
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]Mumbai B.Sc.IT Study
 
[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...Mumbai B.Sc.IT Study
 
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014][Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014]Mumbai B.Sc.IT Study
 

Similar to QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx (20)

17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
 
Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019
 
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014][Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014]
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignment
 
OOP.docx
OOP.docxOOP.docx
OOP.docx
 
2013-June: 5th Semester CSE / ISE Question Papers
2013-June: 5th  Semester CSE / ISE Question Papers2013-June: 5th  Semester CSE / ISE Question Papers
2013-June: 5th Semester CSE / ISE Question Papers
 
5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers
 
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
 
E1
E1E1
E1
 
Oop december 2018
Oop december 2018Oop december 2018
Oop december 2018
 
An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...
An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...
An ANSI C Superset for Vector and Superscalar Computers and Its Retargetable ...
 
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
 
[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [April...
 
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014][Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2014]
 

More from catheryncouper

1-Racism Consider the two films shown in class Night and Fog,.docx
1-Racism Consider the two films shown in class Night and Fog,.docx1-Racism Consider the two films shown in class Night and Fog,.docx
1-Racism Consider the two films shown in class Night and Fog,.docxcatheryncouper
 
1-2 December 2015 Geneva, SwitzerlandWHO INFORMAL CO.docx
1-2 December 2015      Geneva, SwitzerlandWHO INFORMAL CO.docx1-2 December 2015      Geneva, SwitzerlandWHO INFORMAL CO.docx
1-2 December 2015 Geneva, SwitzerlandWHO INFORMAL CO.docxcatheryncouper
 
1-httpfluoridealert.orgresearchersstateskentucky2-.docx
1-httpfluoridealert.orgresearchersstateskentucky2-.docx1-httpfluoridealert.orgresearchersstateskentucky2-.docx
1-httpfluoridealert.orgresearchersstateskentucky2-.docxcatheryncouper
 
1. Consider our political system today, in 2019. Which groups of peo.docx
1. Consider our political system today, in 2019. Which groups of peo.docx1. Consider our political system today, in 2019. Which groups of peo.docx
1. Consider our political system today, in 2019. Which groups of peo.docxcatheryncouper
 
1-Ageism is a concept introduced decades ago and is defined as .docx
1-Ageism is a concept introduced decades ago and is defined as .docx1-Ageism is a concept introduced decades ago and is defined as .docx
1-Ageism is a concept introduced decades ago and is defined as .docxcatheryncouper
 
1. Create a PowerPoint PowerPoint must include a minimum of.docx
1. Create a PowerPoint PowerPoint must include a minimum of.docx1. Create a PowerPoint PowerPoint must include a minimum of.docx
1. Create a PowerPoint PowerPoint must include a minimum of.docxcatheryncouper
 
1. Compare vulnerable populations. Describe an example of one of the.docx
1. Compare vulnerable populations. Describe an example of one of the.docx1. Compare vulnerable populations. Describe an example of one of the.docx
1. Compare vulnerable populations. Describe an example of one of the.docxcatheryncouper
 
1. Complete the Budget Challenge activity at httpswww.federa.docx
1. Complete the Budget Challenge activity at httpswww.federa.docx1. Complete the Budget Challenge activity at httpswww.federa.docx
1. Complete the Budget Challenge activity at httpswww.federa.docxcatheryncouper
 
1. Connections between organizations, information systems and busi.docx
1. Connections between organizations, information systems and busi.docx1. Connections between organizations, information systems and busi.docx
1. Connections between organizations, information systems and busi.docxcatheryncouper
 
1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx
1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx
1-Experiences with a Hybrid Class Tips And PitfallsCollege .docxcatheryncouper
 
RefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docx
RefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docxRefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docx
RefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docxcatheryncouper
 
Reconciling the Complexity of Human DevelopmentWith the Real.docx
Reconciling the Complexity of Human DevelopmentWith the Real.docxReconciling the Complexity of Human DevelopmentWith the Real.docx
Reconciling the Complexity of Human DevelopmentWith the Real.docxcatheryncouper
 
Reexamine the three topics you picked last week and summarized. No.docx
Reexamine the three topics you picked last week and summarized. No.docxReexamine the three topics you picked last week and summarized. No.docx
Reexamine the three topics you picked last week and summarized. No.docxcatheryncouper
 
ReconstructionDatesThe Civil War_________ Recons.docx
ReconstructionDatesThe Civil War_________   Recons.docxReconstructionDatesThe Civil War_________   Recons.docx
ReconstructionDatesThe Civil War_________ Recons.docxcatheryncouper
 
Record, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docx
Record, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docxRecord, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docx
Record, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docxcatheryncouper
 
REE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docx
REE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docxREE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docx
REE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docxcatheryncouper
 
Reasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docx
Reasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docxReasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docx
Reasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docxcatheryncouper
 
Recognize Strengths and Appreciate DifferencesPersonality Dimens.docx
Recognize Strengths and Appreciate DifferencesPersonality Dimens.docxRecognize Strengths and Appreciate DifferencesPersonality Dimens.docx
Recognize Strengths and Appreciate DifferencesPersonality Dimens.docxcatheryncouper
 
Real-World DecisionsHRM350 Version 21University of Phoe.docx
Real-World DecisionsHRM350 Version 21University of Phoe.docxReal-World DecisionsHRM350 Version 21University of Phoe.docx
Real-World DecisionsHRM350 Version 21University of Phoe.docxcatheryncouper
 
Real Clear PoliticsThe American Dream Not Dead –YetBy Ca.docx
Real Clear PoliticsThe American Dream Not Dead –YetBy Ca.docxReal Clear PoliticsThe American Dream Not Dead –YetBy Ca.docx
Real Clear PoliticsThe American Dream Not Dead –YetBy Ca.docxcatheryncouper
 

More from catheryncouper (20)

1-Racism Consider the two films shown in class Night and Fog,.docx
1-Racism Consider the two films shown in class Night and Fog,.docx1-Racism Consider the two films shown in class Night and Fog,.docx
1-Racism Consider the two films shown in class Night and Fog,.docx
 
1-2 December 2015 Geneva, SwitzerlandWHO INFORMAL CO.docx
1-2 December 2015      Geneva, SwitzerlandWHO INFORMAL CO.docx1-2 December 2015      Geneva, SwitzerlandWHO INFORMAL CO.docx
1-2 December 2015 Geneva, SwitzerlandWHO INFORMAL CO.docx
 
1-httpfluoridealert.orgresearchersstateskentucky2-.docx
1-httpfluoridealert.orgresearchersstateskentucky2-.docx1-httpfluoridealert.orgresearchersstateskentucky2-.docx
1-httpfluoridealert.orgresearchersstateskentucky2-.docx
 
1. Consider our political system today, in 2019. Which groups of peo.docx
1. Consider our political system today, in 2019. Which groups of peo.docx1. Consider our political system today, in 2019. Which groups of peo.docx
1. Consider our political system today, in 2019. Which groups of peo.docx
 
1-Ageism is a concept introduced decades ago and is defined as .docx
1-Ageism is a concept introduced decades ago and is defined as .docx1-Ageism is a concept introduced decades ago and is defined as .docx
1-Ageism is a concept introduced decades ago and is defined as .docx
 
1. Create a PowerPoint PowerPoint must include a minimum of.docx
1. Create a PowerPoint PowerPoint must include a minimum of.docx1. Create a PowerPoint PowerPoint must include a minimum of.docx
1. Create a PowerPoint PowerPoint must include a minimum of.docx
 
1. Compare vulnerable populations. Describe an example of one of the.docx
1. Compare vulnerable populations. Describe an example of one of the.docx1. Compare vulnerable populations. Describe an example of one of the.docx
1. Compare vulnerable populations. Describe an example of one of the.docx
 
1. Complete the Budget Challenge activity at httpswww.federa.docx
1. Complete the Budget Challenge activity at httpswww.federa.docx1. Complete the Budget Challenge activity at httpswww.federa.docx
1. Complete the Budget Challenge activity at httpswww.federa.docx
 
1. Connections between organizations, information systems and busi.docx
1. Connections between organizations, information systems and busi.docx1. Connections between organizations, information systems and busi.docx
1. Connections between organizations, information systems and busi.docx
 
1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx
1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx
1-Experiences with a Hybrid Class Tips And PitfallsCollege .docx
 
RefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docx
RefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docxRefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docx
RefereanceSpectra.jpgReactionInformation.jpgWittigReacti.docx
 
Reconciling the Complexity of Human DevelopmentWith the Real.docx
Reconciling the Complexity of Human DevelopmentWith the Real.docxReconciling the Complexity of Human DevelopmentWith the Real.docx
Reconciling the Complexity of Human DevelopmentWith the Real.docx
 
Reexamine the three topics you picked last week and summarized. No.docx
Reexamine the three topics you picked last week and summarized. No.docxReexamine the three topics you picked last week and summarized. No.docx
Reexamine the three topics you picked last week and summarized. No.docx
 
ReconstructionDatesThe Civil War_________ Recons.docx
ReconstructionDatesThe Civil War_________   Recons.docxReconstructionDatesThe Civil War_________   Recons.docx
ReconstructionDatesThe Civil War_________ Recons.docx
 
Record, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docx
Record, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docxRecord, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docx
Record, Jeffrey. The Mystery Of Pearl Harbor. Military History 2.docx
 
REE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docx
REE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docxREE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docx
REE6932_Case Study 2 Outline.docxCase Study 2The Holt Lunsf.docx
 
Reasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docx
Reasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docxReasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docx
Reasons for Not EvaluatingReasons from McCain, D. V. (2005). Eva.docx
 
Recognize Strengths and Appreciate DifferencesPersonality Dimens.docx
Recognize Strengths and Appreciate DifferencesPersonality Dimens.docxRecognize Strengths and Appreciate DifferencesPersonality Dimens.docx
Recognize Strengths and Appreciate DifferencesPersonality Dimens.docx
 
Real-World DecisionsHRM350 Version 21University of Phoe.docx
Real-World DecisionsHRM350 Version 21University of Phoe.docxReal-World DecisionsHRM350 Version 21University of Phoe.docx
Real-World DecisionsHRM350 Version 21University of Phoe.docx
 
Real Clear PoliticsThe American Dream Not Dead –YetBy Ca.docx
Real Clear PoliticsThe American Dream Not Dead –YetBy Ca.docxReal Clear PoliticsThe American Dream Not Dead –YetBy Ca.docx
Real Clear PoliticsThe American Dream Not Dead –YetBy Ca.docx
 

Recently uploaded

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 

Recently uploaded (20)

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 

QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx

  • 1. QUESTION ONE (14 MARKS) compulsory a. Discuss the features of object oriented programming languages. [5 marks] b. A perfect square is a number that can be expressed as the product of two equal integers. Draw a flowchart, and write a corresponding class oriented program to check if any entered number is a perfect square integer number. [6 marks] c. The world is experiencing paradigm shift from structured programming approach to object oriented programming approach. Explain the reasons that justify this scenario. [3 marks] QUESTION TWO (14 MARKS) a. Explain the relationship between C and C++ programming.
  • 2. [2 marks] b. A class is required to determine the number of bytes for each data type entered into the program. Write a class oriented program that displays the corresponding bytes for each data type in the program. [6 marks] QUESTION THREE (14 MARKS) a. Explain how reusability is achieved in object oriented programming. [2 marks] b. By use of an example, explain how single inheritance can be achieved in the program [6 marks] c. How is pass by reference implemented in the program. Write a function oriented program to compute the compound interest for the sum invested for any number of years using the concept of pass by value.
  • 3. [6 marks] QUESTION FOUR (14 MARKS) a. How are control structures important in program development? Explain [2 marks] b. goto control structure is not widely used in programming. Justify the statement. [2 marks] c. With the help of syntax and a flowchart, explain the switch case control structure. [5 marks] i. Switch case control structure d. Using the do … while loop control structure, write a class oriented program to find the sum of the digits of any input integer number. [5 marks] QUESTION FIVE (14 MARKS)
  • 4. a. Discuss the importance of arrays in a program. [2 marks] . b. With the help of syntax, explain how arrays are initialized outside the class. [3 marks] c. Write a class oriented program to display an identity matrix of order 3. [6 marks] d. Discuss any three rules for overloading operators in a program. [3 marks] . QUESTION SIX (14 MARKS) a. With the help of an example, discuss how user defined data types are initialized in object oriented programming. [5 marks] b. Write short notes on the following types of constructors: [3 marks] i. Parameterized constructors ii. Default constructors
  • 5. c. How is an exception handled in C++? Explain by use of the syntax and an example of class oriented program. [6 marks] QUESTION SEVEN (14 MARKS) a. Write a menu driven program that performs the following: [14 marks] i. Checks if any entered number is a palindrome number ii. Checks if any entered number is an Armstrong number iii. Checks if any entered number is a prime number. start Page 3 of 3