0% found this document useful (0 votes)
7 views2 pages

University Examinations: 2023/2024 Examination For Bachelor of Arts Regular Ict 2012 Object Oriented Programming DATE: AUGUST, 2024 Time: 2 Hours

The document outlines the examination structure for a Bachelor of Arts course in Object-Oriented Programming (OOP) for the academic year 2023/2024. It includes five questions covering topics such as the principles of OOP, program structure, conditional and iteration structures, encapsulation, and functions. Students are required to answer Question One and any two additional questions within a two-hour time frame.

Uploaded by

2401457
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

University Examinations: 2023/2024 Examination For Bachelor of Arts Regular Ict 2012 Object Oriented Programming DATE: AUGUST, 2024 Time: 2 Hours

The document outlines the examination structure for a Bachelor of Arts course in Object-Oriented Programming (OOP) for the academic year 2023/2024. It includes five questions covering topics such as the principles of OOP, program structure, conditional and iteration structures, encapsulation, and functions. Students are required to answer Question One and any two additional questions within a two-hour time frame.

Uploaded by

2401457
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIVERSITY EXAMINATIONS: 2023/2024

EXAMINATION FOR BACHELOR OF ARTS

REGULAR

ICT 2012 OBJECT ORIENTED PROGRAMMING

DATE: AUGUST, 2024 TIME: 2 HOURS

INSTRUCTIONS: Answer Question One and Any Other Two Questions

QUESTION ONE (20 MARKS)

i. Define Object-Oriented Programming (OOP) and explain its importance in software


development. (5 marks)
ii. Explain the four main principles of OOP (Encapsulation, Abstraction, Inheritance, and
Polymorphism) with examples. (5 marks)
iii. Describe the format of a simple object-oriented program. (5 marks)
iv. Discuss how OOP concepts can enhance code reusability and maintainability. Provide
relevant examples. (5 marks)

QUESTION TWO (15 MARKS)

i. Outline the structure of an OOP program using a specific programming language. (3


marks)
ii. Define and provide examples for Data Types and Identifiers. (3 marks)
iii. Discuss the rules governing identifiers and their significance in programming. (3 marks)
iv. Explain the difference between variables and constants with examples. (3 marks)
v. Describe the concept of type conversion and type casting in OOP. (3 marks)

QUESTION THREE (15 MARKS)

i. Differentiate between conditional and iteration structures in OOP. (5 marks)

1
ii. Explain the use of if and switch statements with examples. (5 marks)
iii. Describe the different iteration structures (the while loop, the do-while loop, and the for
loop) and their use cases. (5 marks)

QUESTION FOUR (15 MARKS)

i. Explain the concept of encapsulation and its importance in OOP. (3 marks)


ii. Describe the different types of classes and their functions. (3 marks)
iii. Discuss the visibility of class members (private, public, and static) with examples. (3
marks)
iv. Explain the process of declaring a class and creating objects as instances of a class. (3
marks)
v. Discuss how to access members from objects and the importance of encapsulation in this
context. (3 marks)

QUESTION FIVE (15 MARKS)

i. Differentiate between user-defined and inbuilt functions in OOP. (3 marks)


ii. Explain the concept of function overloading with examples. (3 marks)
iii. Discuss the importance of function prototypes and function calls by reference and by
value. (3 marks)
iv. Describe the concept of recursion and provide an example of its use in OOP. (3 marks)
v. Explain the concept of function templates and their significance in OOP. (3 marks)

You might also like