SlideShare a Scribd company logo
1 of 2
Download to read offline
D D1052 Pages: 2
Page 1 of 2
Reg No.:_______________ Name:__________________________
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FOURTH SEMESTER B.TECH DEGREE EXAMINATION(R&S), MAY 2019
Course Code: CS206
Course Name: OBJECT ORIENTED DESIGN AND PROGRAMMING (CS)
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions, each carries 3 marks. Marks
1 Explain the terms: Polymorphism and Encapsulation (3)
2 Consider a Banking System. Identify three entities in the system which can be
represented using classes and show the relationship between them using UML
class diagrams
(3)
3 Explain how objects are passed as function parameters with a suitable example. (3)
4 What are parameterized constructors? Is it possible to define a parameterized
constructor for a class without defining a parameter-less constructor?
(3)
PART B
Answer any two full questions, each carries 9 marks.
5 a) Draw Use case Diagram for online Pizza ordering system (6)
b) What is the role of Java Virtual Machine? (3)
6 a) Explain Object Oriented System Development Life Cycle. (4)
b) Write a Java program that accepts two three digit numbers as command line
arguments and find all palindrome numbers between them.
(5)
7 a) Explain method overloading with the help of an example. (3)
b) Define a class Queue for representing a queue data structure. The class must
define a default constructor, a parameterized constructor and functions for en-
queue, de-queue and display operations. Write a Java program to implement
this.
(6)
PART C
Answer all questions, each carries 3 marks.
8 What are packages? Explain how packages are created in Java. (3)
9 What are interfaces? How interfaces are used in Java? (3)
10 What are Checked Exceptions? Give an example. (3)
11 What are thread priorities? How can you assign priority values for threads
created in Java?
(3)
For More Visit : KtuQbank.com
D D1052 Pages: 2
Page 2 of 2
PART D
Answer any two full questions, each carries 9 marks.
12 a) Discuss the different access specifiers used in java. (4)
b) Explain how inheritance is implemented in Java. What is the use of ‘super’
keyword? Illustrate its usage with suitable examples.
(5)
13 a) Discuss about any two stream classes used in Java. (4)
b) Write a Java program to create two threads: One for displaying all odd numbers
between 1 and 100 and second thread for displaying all even numbers between 1
and 100.
(5)
14 a) What are abstract classes? (3)
b) Create a user defined Exception ‘InvalidNumberException’. Write a Java
program that computes the average of N positive numbers given as Command
Line Arguments. Raise the Exception ‘InvalidNumberException’ on reading a
negative number or zero as input.
(6)
PART E
Answer any four full questions, each carries 10 marks.
15 a) Explain Event Delegation model in Java. (6)
b) Discuss any four methods used for string processing in Java (4)
16 a) How can we pass parameters to an Applet? Explain with an example. (5)
b) Discuss how fonts are managed in AWT with suitable examples (5)
17 a) What are layout managers? Explain any one layout manager with an example. (5)
b) What are Adapter Classes? How do we make you adapter classes while
handling window events?
(5)
18 a) What are dynamic queries? Explain how they are processed with suitable
examples?
(5)
b) Explain the life cycle of an applet (5)
19 a) Discuss the different steps involved in establishing a JDBC connectivity and
query processing with a suitable example.
(7)
b) What are the differences between a Java applet and a Java application? (3)
20 a) What is the use of paint() method? How do we invoke it? (3)
b) Discuss any two AWT controls, the events generated by them and how they are
handled with suitable code fragments.
(7)
****
For More Visit : KtuQbank.com

More Related Content

What's hot

Interfaces and abstract classes
Interfaces and abstract classesInterfaces and abstract classes
Interfaces and abstract classesAKANSH SINGHAL
 
Smu bca sem 4 (old) fall 2014 solved assignments
Smu bca sem 4 (old) fall 2014  solved assignmentsSmu bca sem 4 (old) fall 2014  solved assignments
Smu bca sem 4 (old) fall 2014 solved assignmentssmumbahelp
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#Prasanna Kumar SM
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++ shammi mehra
 
[Question Paper] Advanced Java (75:25 Pattern) [April / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2016][Question Paper] Advanced Java (75:25 Pattern) [April / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2016]Mumbai B.Sc.IT Study
 
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016][Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]Mumbai B.Sc.IT Study
 
Abstract Class & Abstract Method in Core Java
Abstract Class & Abstract Method in Core JavaAbstract Class & Abstract Method in Core Java
Abstract Class & Abstract Method in Core JavaMOHIT AGARWAL
 
Grade 11 CS Review (unit 1)
Grade 11 CS Review (unit 1)Grade 11 CS Review (unit 1)
Grade 11 CS Review (unit 1)kcardinale113
 
OOM MCQ 2018
OOM  MCQ 2018OOM  MCQ 2018
OOM MCQ 2018lochan100
 
Refactoring Practice: Cleaner Code
Refactoring Practice: Cleaner CodeRefactoring Practice: Cleaner Code
Refactoring Practice: Cleaner CodeChloe Choi
 
Java and Data Structure (June - 2016) [Revised Course | Question Paper]
Java and Data Structure (June - 2016) [Revised Course | Question Paper]Java and Data Structure (June - 2016) [Revised Course | Question Paper]
Java and Data Structure (June - 2016) [Revised Course | Question Paper]Mumbai B.Sc.IT Study
 

What's hot (19)

Interfaces and abstract classes
Interfaces and abstract classesInterfaces and abstract classes
Interfaces and abstract classes
 
Smu bca sem 4 (old) fall 2014 solved assignments
Smu bca sem 4 (old) fall 2014  solved assignmentsSmu bca sem 4 (old) fall 2014  solved assignments
Smu bca sem 4 (old) fall 2014 solved assignments
 
Abstract class
Abstract classAbstract class
Abstract class
 
Xamarin: C# Methods
Xamarin: C# MethodsXamarin: C# Methods
Xamarin: C# Methods
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
 
Interface in java
Interface in javaInterface in java
Interface in java
 
Lecture 18
Lecture 18Lecture 18
Lecture 18
 
Structure and Enum in c#
Structure and Enum in c#Structure and Enum in c#
Structure and Enum in c#
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
 
[Question Paper] Advanced Java (75:25 Pattern) [April / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2016][Question Paper] Advanced Java (75:25 Pattern) [April / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2016]
 
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016][Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
Abstract Class & Abstract Method in Core Java
Abstract Class & Abstract Method in Core JavaAbstract Class & Abstract Method in Core Java
Abstract Class & Abstract Method in Core Java
 
Grade 11 CS Review (unit 1)
Grade 11 CS Review (unit 1)Grade 11 CS Review (unit 1)
Grade 11 CS Review (unit 1)
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
 
Interfaces c#
Interfaces c#Interfaces c#
Interfaces c#
 
OOM MCQ 2018
OOM  MCQ 2018OOM  MCQ 2018
OOM MCQ 2018
 
Refactoring Practice: Cleaner Code
Refactoring Practice: Cleaner CodeRefactoring Practice: Cleaner Code
Refactoring Practice: Cleaner Code
 
Java and Data Structure (June - 2016) [Revised Course | Question Paper]
Java and Data Structure (June - 2016) [Revised Course | Question Paper]Java and Data Structure (June - 2016) [Revised Course | Question Paper]
Java and Data Structure (June - 2016) [Revised Course | Question Paper]
 

Similar to Oop r&s may 2019 (2)

Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019ktuonlinenotes
 
Model questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semModel questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semNayanBakhadyo
 
B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
 
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
 
Page 1 of 4 ANSWER QUESTION 1 AND ANY OTHER FOUR .docx
Page 1 of 4  ANSWER QUESTION 1 AND ANY OTHER FOUR .docxPage 1 of 4  ANSWER QUESTION 1 AND ANY OTHER FOUR .docx
Page 1 of 4 ANSWER QUESTION 1 AND ANY OTHER FOUR .docxalfred4lewis58146
 
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]Mumbai B.Sc.IT Study
 
QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx
QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docxQUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx
QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docxcatheryncouper
 

Similar to Oop r&s may 2019 (2) (20)

Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019
 
Oop december 2018
Oop december 2018Oop december 2018
Oop december 2018
 
Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
 
Oop april 2018
Oop april 2018Oop april 2018
Oop april 2018
 
Model questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semModel questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-sem
 
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
 
B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2015) [Revised Course | Question Paper]
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 
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]
 
21PSP13-23-MQP-1.pdf
21PSP13-23-MQP-1.pdf21PSP13-23-MQP-1.pdf
21PSP13-23-MQP-1.pdf
 
Page 1 of 4 ANSWER QUESTION 1 AND ANY OTHER FOUR .docx
Page 1 of 4  ANSWER QUESTION 1 AND ANY OTHER FOUR .docxPage 1 of 4  ANSWER QUESTION 1 AND ANY OTHER FOUR .docx
Page 1 of 4 ANSWER QUESTION 1 AND ANY OTHER FOUR .docx
 
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
 
7th Semester Computer Science (2013-June) Question Papers
7th Semester Computer Science (2013-June) Question Papers7th Semester Computer Science (2013-June) Question Papers
7th Semester Computer Science (2013-June) Question Papers
 
7th cs june 2013
7th cs   june 20137th cs   june 2013
7th cs june 2013
 
2013-June: 7th Semester CSE Question Papers
2013-June: 7th  Semester CSE Question Papers2013-June: 7th  Semester CSE Question Papers
2013-June: 7th Semester CSE Question Papers
 
QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx
QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docxQUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx
QUESTION ONE (14 MARKS) compulsorya. Discuss the features of o.docx
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 

More from ktuonlinenotes

Module 1 uml - usecase digram
Module 1   uml - usecase digramModule 1   uml - usecase digram
Module 1 uml - usecase digramktuonlinenotes
 
Module 1 uml - interaction diagram
Module 1   uml - interaction diagramModule 1   uml - interaction diagram
Module 1 uml - interaction diagramktuonlinenotes
 
Lecture 4-oop class diagram
Lecture 4-oop class diagramLecture 4-oop class diagram
Lecture 4-oop class diagramktuonlinenotes
 
Lecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oopLecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oopktuonlinenotes
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oopktuonlinenotes
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopktuonlinenotes
 

More from ktuonlinenotes (6)

Module 1 uml - usecase digram
Module 1   uml - usecase digramModule 1   uml - usecase digram
Module 1 uml - usecase digram
 
Module 1 uml - interaction diagram
Module 1   uml - interaction diagramModule 1   uml - interaction diagram
Module 1 uml - interaction diagram
 
Lecture 4-oop class diagram
Lecture 4-oop class diagramLecture 4-oop class diagram
Lecture 4-oop class diagram
 
Lecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oopLecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oop
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oop
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oop
 

Recently uploaded

Education and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptxEducation and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptxraviapr7
 
Drug Information Services- DIC and Sources.
Drug Information Services- DIC and Sources.Drug Information Services- DIC and Sources.
Drug Information Services- DIC and Sources.raviapr7
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxSaurabhParmar42
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17Celine George
 
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptxPISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptxEduSkills OECD
 
How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17Celine George
 
How to Manage Cross-Selling in Odoo 17 Sales
How to Manage Cross-Selling in Odoo 17 SalesHow to Manage Cross-Selling in Odoo 17 Sales
How to Manage Cross-Selling in Odoo 17 SalesCeline George
 
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfMaximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfTechSoup
 
Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.EnglishCEIPdeSigeiro
 
5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...CaraSkikne1
 
3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptxmary850239
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxheathfieldcps1
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesMohammad Hassany
 
Practical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxPractical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxKatherine Villaluna
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxraviapr7
 
How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17Celine George
 
Benefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive EducationBenefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive EducationMJDuyan
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfYu Kanazawa / Osaka University
 
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxAUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxiammrhaywood
 

Recently uploaded (20)

Education and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptxEducation and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptx
 
Drug Information Services- DIC and Sources.
Drug Information Services- DIC and Sources.Drug Information Services- DIC and Sources.
Drug Information Services- DIC and Sources.
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptx
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17
 
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptxPISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
 
How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17
 
How to Manage Cross-Selling in Odoo 17 Sales
How to Manage Cross-Selling in Odoo 17 SalesHow to Manage Cross-Selling in Odoo 17 Sales
How to Manage Cross-Selling in Odoo 17 Sales
 
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfMaximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
 
Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.
 
5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...
 
3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptx
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming Classes
 
Practical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxPractical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptx
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptx
 
How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17
 
Benefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive EducationBenefits & Challenges of Inclusive Education
Benefits & Challenges of Inclusive Education
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
 
Finals of Kant get Marx 2.0 : a general politics quiz
Finals of Kant get Marx 2.0 : a general politics quizFinals of Kant get Marx 2.0 : a general politics quiz
Finals of Kant get Marx 2.0 : a general politics quiz
 
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxAUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
 

Oop r&s may 2019 (2)

  • 1. D D1052 Pages: 2 Page 1 of 2 Reg No.:_______________ Name:__________________________ APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY FOURTH SEMESTER B.TECH DEGREE EXAMINATION(R&S), MAY 2019 Course Code: CS206 Course Name: OBJECT ORIENTED DESIGN AND PROGRAMMING (CS) Max. Marks: 100 Duration: 3 Hours PART A Answer all questions, each carries 3 marks. Marks 1 Explain the terms: Polymorphism and Encapsulation (3) 2 Consider a Banking System. Identify three entities in the system which can be represented using classes and show the relationship between them using UML class diagrams (3) 3 Explain how objects are passed as function parameters with a suitable example. (3) 4 What are parameterized constructors? Is it possible to define a parameterized constructor for a class without defining a parameter-less constructor? (3) PART B Answer any two full questions, each carries 9 marks. 5 a) Draw Use case Diagram for online Pizza ordering system (6) b) What is the role of Java Virtual Machine? (3) 6 a) Explain Object Oriented System Development Life Cycle. (4) b) Write a Java program that accepts two three digit numbers as command line arguments and find all palindrome numbers between them. (5) 7 a) Explain method overloading with the help of an example. (3) b) Define a class Queue for representing a queue data structure. The class must define a default constructor, a parameterized constructor and functions for en- queue, de-queue and display operations. Write a Java program to implement this. (6) PART C Answer all questions, each carries 3 marks. 8 What are packages? Explain how packages are created in Java. (3) 9 What are interfaces? How interfaces are used in Java? (3) 10 What are Checked Exceptions? Give an example. (3) 11 What are thread priorities? How can you assign priority values for threads created in Java? (3) For More Visit : KtuQbank.com
  • 2. D D1052 Pages: 2 Page 2 of 2 PART D Answer any two full questions, each carries 9 marks. 12 a) Discuss the different access specifiers used in java. (4) b) Explain how inheritance is implemented in Java. What is the use of ‘super’ keyword? Illustrate its usage with suitable examples. (5) 13 a) Discuss about any two stream classes used in Java. (4) b) Write a Java program to create two threads: One for displaying all odd numbers between 1 and 100 and second thread for displaying all even numbers between 1 and 100. (5) 14 a) What are abstract classes? (3) b) Create a user defined Exception ‘InvalidNumberException’. Write a Java program that computes the average of N positive numbers given as Command Line Arguments. Raise the Exception ‘InvalidNumberException’ on reading a negative number or zero as input. (6) PART E Answer any four full questions, each carries 10 marks. 15 a) Explain Event Delegation model in Java. (6) b) Discuss any four methods used for string processing in Java (4) 16 a) How can we pass parameters to an Applet? Explain with an example. (5) b) Discuss how fonts are managed in AWT with suitable examples (5) 17 a) What are layout managers? Explain any one layout manager with an example. (5) b) What are Adapter Classes? How do we make you adapter classes while handling window events? (5) 18 a) What are dynamic queries? Explain how they are processed with suitable examples? (5) b) Explain the life cycle of an applet (5) 19 a) Discuss the different steps involved in establishing a JDBC connectivity and query processing with a suitable example. (7) b) What are the differences between a Java applet and a Java application? (3) 20 a) What is the use of paint() method? How do we invoke it? (3) b) Discuss any two AWT controls, the events generated by them and how they are handled with suitable code fragments. (7) **** For More Visit : KtuQbank.com