Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
8 views
Object Oriented Programming
Object oriented
Uploaded by
emmanuelbro090
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Object Oriented Programming For Later
Download
Save
Save Object Oriented Programming For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
8 views
Object Oriented Programming
Object oriented
Uploaded by
emmanuelbro090
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Object Oriented Programming For Later
Carousel Previous
Carousel Next
Save
Save Object Oriented Programming For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 4
Search
Fullscreen
504429448 St Mount Kenya ) University UNIVERSITY EXAMINATION 2019/2020 ‘SCHOOL OF COMPUTING AND INFORMATICS DEPARTMENT OF INFORMATION TECHNOLOGY BACHELOR OF INFORMATION TECHNOLOGY REGULAR UNIT CODE: BIT3106 UNIT TITLE: OBJECT ORIENTED PROGRAMMING T DATE: DECEMBER, 2019 (MAIN EXAM ‘TIME: 2 HOURS INSTRUCTIONS: ANSWER ALL QUESTIONS IN SECTION A AND ANY OTHER TWO QUESTIONS IN SECTION B SECTION A QUESTION 1 (30 MARKS) Lar-Boplain how Object Oriented Programming iffer from Procedural Programming? (4 Marks) {oY Explain the types of vatlableas: (6 Marks) sed in C++ programming language ©) Using a C++ program, Show the two wa in which constants are declared (6 Marks) ) Write 2 C++ program that stores the integers 0 through 4 in an array. It then outputs the contents of the array elements ir reverse order. Use a for loop. (6 Marks) «) Explain the term class as used in Object Oriented Programming, (4 Marks) Paper One Pagel4). Define the following terms as used in Object Oriented Programming: ’) Polymorphism ii) Inheritance (4 Marks) ‘QUESTION 2 (20 MARKS) 2) Give any five reasons for adopting Object Oriented Programming in program development. (5 Marks) b) With the use of appropriate sketches, demonstrate /nheritance as used in Object Oriented Programming, (5 Marks) ©) Using the loops and conditional statement write a java program to display the following (20 Marks) 10 UESTION 3 (20 MARKS) 2) Explain each of the following terms as used in Object Oriented Programming languages: i) Abstract class, (3 Marks) il) Size of (3 Marks) 'b) What is a control structure in programming? (4 Marks) i Design and writ a java program that allow the user o enter the mastn kg) and Height{ in metres), the program then comoute the body mass index (BMI) of Patient in hospital and output appropiate interpretation using the following table. (10 Marks) Pape On Page?Note The formulas mass(kg) BMI = (height(m)) [BMI RANGE-kg/m* interpretation loss than 15 seccianeensiaiiaa | Veryseverely underweight | I a butless than 160 | Severely underweight “Wom 160butTes than 385 idiimpn | ‘om 185 but ess than 25.0 Normal (healthy weight) [from 250 but less than 30.0 ‘Overweight [over30—— ee QUESTION 4 (20 MARKS) a) Define the term identifier and state any three rues to follow when naming an identifier (4 Marks) +b) Using appropriate examples differentiate between the following as used in object oriented programming i ii) Aclass and an objec ii) Alocal and a global variable (Marks) «) Asalesman for an insurance company earnsa basic salary, a house allowance and 2 commission of 59 for each policy sold. The basic salary is taxed at a rate of 30% ‘and the commission is taxed at a rate of 8.5%. Design an algorithm and write a C program that will accept the basic salary, the house allowance and the total policies sold by a salesman, the solution should determine and output the gross pay, total tax deductions and the net pay. (10 Marks) Page 3QUESTION 5 (20 MARKS) a) Write a C++ program using for loop tha: descending order. ill display integers 1 through 20 in (10 Marks) ») Write @ C++ program that requests a stucent’s age from the user. The program should accept positive age only. Ifthe user enters a negative number, the program should throw an exception, and display a sting or message. (20 Marks) Paged \
You might also like
Ics 2201 Object Oriented Programming Ii
PDF
No ratings yet
Ics 2201 Object Oriented Programming Ii
4 pages
OOP 2017july
PDF
No ratings yet
OOP 2017july
4 pages
29-4-21 SCS 202-OBJECT ORIENTED PROGRAMMING-1
PDF
No ratings yet
29-4-21 SCS 202-OBJECT ORIENTED PROGRAMMING-1
3 pages
CIT-3153-OBJECT-ORIENTED-PROGRAMMING-I
PDF
No ratings yet
CIT-3153-OBJECT-ORIENTED-PROGRAMMING-I
4 pages
Lab-4 Journal-04-21032023-112323am
PDF
No ratings yet
Lab-4 Journal-04-21032023-112323am
2 pages
CIT 108
PDF
No ratings yet
CIT 108
3 pages
2017july (3)
PDF
No ratings yet
2017july (3)
5 pages
2021 N
PDF
No ratings yet
2021 N
4 pages
Bit 2108 Bbit 203 Bac 2101 Bisf 2101 BSD 2102 Object Oriented Programming
PDF
No ratings yet
Bit 2108 Bbit 203 Bac 2101 Bisf 2101 BSD 2102 Object Oriented Programming
2 pages
Kca University Object Oriented Programming Take Away Cat: Variance
PDF
No ratings yet
Kca University Object Oriented Programming Take Away Cat: Variance
3 pages
d5
PDF
No ratings yet
d5
2 pages
SIT 121 OOP MAIN
PDF
No ratings yet
SIT 121 OOP MAIN
3 pages
d2
PDF
No ratings yet
d2
2 pages
Department of Computing: CS 212: Object Oriented Programming
PDF
No ratings yet
Department of Computing: CS 212: Object Oriented Programming
6 pages
C++ Theory Papers
PDF
No ratings yet
C++ Theory Papers
20 pages
Valley View University: Cosc221 Programming With C++
PDF
No ratings yet
Valley View University: Cosc221 Programming With C++
4 pages
ES203 Practical Workbook OOP C++
PDF
No ratings yet
ES203 Practical Workbook OOP C++
22 pages
Ics 2104 Object Oriented Programming I
PDF
No ratings yet
Ics 2104 Object Oriented Programming I
3 pages
CIT-3153-OBJECT-ORIENTED-PROGRAMMING-I.docx
PDF
No ratings yet
CIT-3153-OBJECT-ORIENTED-PROGRAMMING-I.docx
3 pages
Ics 2104 Object Oriented Programming I
PDF
No ratings yet
Ics 2104 Object Oriented Programming I
3 pages
Question Paper - Oop
PDF
No ratings yet
Question Paper - Oop
13 pages
CSE201 - CIA 1 - GRP A - Key
PDF
No ratings yet
CSE201 - CIA 1 - GRP A - Key
3 pages
Computer 2 Exam
PDF
No ratings yet
Computer 2 Exam
4 pages
Sample Question Paper: Employee Employee Name, Employee ID Getdata, Putdata
PDF
No ratings yet
Sample Question Paper: Employee Employee Name, Employee ID Getdata, Putdata
7 pages
Pre-University Q.N Paper C++
PDF
No ratings yet
Pre-University Q.N Paper C++
1 page
Lab Task Latest v2
PDF
No ratings yet
Lab Task Latest v2
9 pages
BIT 123 Object Oriented Programming MS
PDF
No ratings yet
BIT 123 Object Oriented Programming MS
18 pages
ICS 2104 Object Oriented Programming I
PDF
No ratings yet
ICS 2104 Object Oriented Programming I
2 pages
Ooad
PDF
No ratings yet
Ooad
2 pages
Ics 2104 Object Oriented Programming I
PDF
No ratings yet
Ics 2104 Object Oriented Programming I
2 pages
List of Experiments OOPM
PDF
No ratings yet
List of Experiments OOPM
4 pages
Test2 Answerscheme
PDF
No ratings yet
Test2 Answerscheme
7 pages
pyq oops ru
PDF
No ratings yet
pyq oops ru
12 pages
Jaipur National University, Jaipur: School of Distance Education & Learning
PDF
No ratings yet
Jaipur National University, Jaipur: School of Distance Education & Learning
2 pages
Lab Cycle BCA II Semester Course Code: 15CSA191 Course Title: Object Oriented Programming Using C++ Lab Lab Cycle 1
PDF
No ratings yet
Lab Cycle BCA II Semester Course Code: 15CSA191 Course Title: Object Oriented Programming Using C++ Lab Lab Cycle 1
3 pages
compsci
PDF
No ratings yet
compsci
5 pages
Eeb315 Final Exam 2016 PDF
PDF
No ratings yet
Eeb315 Final Exam 2016 PDF
6 pages
Object Oriented Programming Using C++
PDF
No ratings yet
Object Oriented Programming Using C++
2 pages
final oops assignment
PDF
No ratings yet
final oops assignment
2 pages
116 HW1
PDF
No ratings yet
116 HW1
4 pages
Ics 2104 Object Oriented Programming I
PDF
No ratings yet
Ics 2104 Object Oriented Programming I
4 pages
C++ Assignments
PDF
No ratings yet
C++ Assignments
36 pages
Ics 2104 Eit 4108 Object Oriented Programming Fundamentals of Object Oriented Programming (1)
PDF
No ratings yet
Ics 2104 Eit 4108 Object Oriented Programming Fundamentals of Object Oriented Programming (1)
2 pages
Labtask Oop
PDF
No ratings yet
Labtask Oop
6 pages
Ics 2104 Westlands 2015 August-1
PDF
No ratings yet
Ics 2104 Westlands 2015 August-1
3 pages
Assignment on BMI
PDF
No ratings yet
Assignment on BMI
3 pages
Time Allowed: Three Hours 15 June, 2016, 9am-12 Noon: Instructions To Candidates
PDF
No ratings yet
Time Allowed: Three Hours 15 June, 2016, 9am-12 Noon: Instructions To Candidates
3 pages
CMT 211 PT
PDF
No ratings yet
CMT 211 PT
3 pages
1.3 C+++ Sagar Rohiikka
PDF
No ratings yet
1.3 C+++ Sagar Rohiikka
12 pages
B.B.A (C.a) 2013 Pattern - Organized
PDF
No ratings yet
B.B.A (C.a) 2013 Pattern - Organized
5 pages
Dot NET Exam Analysis
PDF
No ratings yet
Dot NET Exam Analysis
6 pages
CS131 - Assignment 1 - Fall'24
PDF
No ratings yet
CS131 - Assignment 1 - Fall'24
3 pages
CS131 - Assignment 1 - Fall'24.
PDF
No ratings yet
CS131 - Assignment 1 - Fall'24.
10 pages
Object Oriented Programmingthrough C++ March 2021
PDF
No ratings yet
Object Oriented Programmingthrough C++ March 2021
4 pages
Practical File Oops
PDF
No ratings yet
Practical File Oops
41 pages
Lab Oriented Programming and C++
PDF
No ratings yet
Lab Oriented Programming and C++
86 pages