For More Quiz Questions click here to download Global Quiz on Google PlayStore

NATIONAL OPEN UNIVERSITY OF NIGERIA

UNIVERSITY VILLAGE, PLOT 91, CASDASTRAL ZONE, NNAMDI AZIKIWE EXPRESS WAY, JABI, ABUJA.
FACULTY OF SCIENCES
OCTOBER 2019 EXAMINATION

COURSE CODE: CIT383
COURSE TITLE: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
COURSE CREDIT: 2 UNITS
TIME ALLOWED: 2 HOURS
INSTRUCTION: ANSWER QUESTION 1 AND ANY OTHER THREE (3) QUESTIONS


Question 1
(a) i. Discuss the concept of object as it relates to OOP? (3 marks)
ii. What are the effects of new operator and finalise () method on Java object. (2 marks)
(b) i. Mention two differences between the declarations of interfaces and abstract classes. (2 marks)
ii. Describe a typical abstract method for Java class. (2 marks)
(c) i. What is an instance variable? (2 marks)
ii. Mention two differences between local and instance variables. (2 marks)
(d) i. Briefly explain the concept of modular programming? (2 marks)
ii. State one advantage and disadvantage of modular programming. (2 marks)
(e) i. Briefly explain the difference between composition and aggregation with an example.
(3 marks)
ii. Briefly describe static method. (2 marks)
(f) Why is it illegal to use abstract keyword on static method? (3 marks)
[25 marks]


Question 2
(a) i. Define class within the context of Java programming concept? (4 marks)
ii. Briefly explain the general syntax for a class in OOP? (3 marks)
(b) Describe four (4) rules guiding the formation of abstract data type. (4 marks)
(c) Mention four (4) advantages of using interface in a program. (4 marks)
[15 marks]

Question 3
(a) i. Briefly describe message passing in pure OOP? (4 marks)
ii. List four examples of message passing styles. (2 marks)
(b) Describe the three (3) access modifiers that are explicitly declared by Java programmer?(3 marks)
(c) Write a Java class called FactorialFinder that computes and displays the factorial of a number. The class should declare and use a method called factorialCalculator, which should accept an integer number for the factorial computation and return the answer of the computation. (6 marks)
[15 marks]


Question 4
(a) i. Describe encapsulation as one of the concepts in OOP. (4 marks)
ii. Write a Java class named Student that has one-member field called height, which is double data type. The implementation of the class should encapsulate the member field. (3 marks)
(b) i. Briefly describe accessor and mutator methods? (3 marks)
ii. State two differences between constructor and other typical method. (3 marks)
(c) Differentiate between subclass and superclass. (2 marks)
[15 marks]


Question 5
(a) i. Explain inheritance within the context of OOP concept? (4 marks)
ii. List three (3) benefits of inheritance? (3 marks)
(b) i. What is a no argument constructor? (4 marks)
ii. Outline two (2) differences between a no argument and default constructors? (2 marks)
(c) Enumerate two (2) advantages of abstraction to programmer. (2 marks)
[15 marks]


For More Quiz Questions click here to download Global Quiz on Google PlayStore


Select NOUN Past Questions & Answers by Faculties

Sciences

National Open University of Nigeria (NOUN) Faculty of Sciences Past Questions and Answers.

Education

National Open University of Nigeria (NOUN) Faculty of Education Past Questions and Answers.

Arts & Social Sciences

National Open University of Nigeria (NOUN) Faculty of Arts and Social Sciences Past Questions and Answers.

Law

National Open University of Nigeria (NOUN) Faculty of Law Past Questions and Answers.

Management Sciences

National Open University of Nigeria (NOUN) Faculty of Management Sciences Past Questions and Answers.

Health Sciences

National Open University of Nigeria (NOUN) Faculty of Health Sciences Past Questions and Answers.

Agriculture Sciences

National Open University of Nigeria (NOUN) Faculty of Agricultural Sciences Past Questions and Answers.

Select Project Topics & Materials by Categories

Accounting

Universities, Polytechnic's and Colleges of Education Accounting Project Topics and Materials.

Biology

Universities, Polytechnic's and Colleges of Education Biology Project Topics and Materials.

Business Education

Universities, Polytechnic's and Colleges of Education Business Education Project Topics and Materials.

Chemistry

Universities, Polytechnic's and Colleges of Education Chemistry Project Topics and Materials.

Computer Science

Universities, Polytechnic's and Colleges of Education Computer Science Project Topics and Materials.

Criminology & Security

Universities, Polytechnic's and Colleges of Education Criminology & Security Project Topics and Materials.

Economics

Universities, Polytechnic's and Colleges of Education Economics Project Topics and Materials.

Education

Universities, Polytechnic's and Colleges of Education Education Project Topics and Materials.

English/Linguistic

Universities, Polytechnic's and Colleges of Education English/Linguistic Project Topics and Materials.

Entrepreneurship

Universities, Polytechnic's and Colleges of Education Entrepreneurship Project Topics and Materials.

Environmental Science

Universities, Polytechnic's and Colleges of Education Environmental Science Project Topics and Materials.

Law

Universities, Polytechnic's and Colleges of Education Law Project Topics and Materials.

Marketing

Universities, Polytechnic's and Colleges of Education Marketing Project Topics and Materials.

Physics

Universities, Polytechnic's and Colleges of Education Physics Project Topics and Materials.

Political Science

Universities, Polytechnic's and Colleges of Education Political Science Project Topics and Materials.

Public Administration

Universities, Polytechnic's and Colleges of Education Public Administration Project Topics and Materials.

How to login to NOUN Elearn Portal

You can now use you matric number to login as your username and  password in a lowercase.

https://elearn.nouedu2.net/login/

Note that you are to change your passw...

Facebook posts