D D4809 Pages: 2
Page 1 of 2
Reg No.:_______________ Name:__________________________
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FOURTH SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018
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 Briefly explain the primitive data types used in Java. (3)
2 Why Java is called pure object-oriented language? (3)
3 Explain how access modifiers are used to control the visibility of identifiers. (3)
4 Write a note on Java Virtual Machine. (3)
PART B
Answer any two full questions, each carries 9 marks
5 a) Draw the Use case diagram of a movie reservation system. (4)
b) Write a program to check whether a string is palindrome or not. The input is to
be accepted through command line parameter.
(5)
6 a) Describe the following statements in Java.:
i) switch and for ii) break and continue
(4)
b) Define a Java class having overloaded methods to calculate area of rectangle
and circle.
(5)
7 a) What is the use of constructor in Java? Give examples. (4)
b) Is it possible to create an object for class A using, A ob = new A(); if the class
contains only parameterized constructor? Why?
(5)
PART C
Answer all questions, each carries 3 marks
8 What is the use of interface in Java? Give example. (3)
9 With the help of examples, explain how inheritance is implemented in Java. (3)
10 Write a note on byte stream and character stream related classes. (3)
11 Define package. How is a class within a package compiled and executed? (3)
PART D
Answer any two full questions, each carries 9 marks
12 a) Explain the different ways of creating threads in Java. (4)
b) Write a Java program that accepts N integers through console and compute their
average.
(5)
13 Develop a java package named primepackage, with a class Prime containing a
static method that check whether a number is prime or not and returns that
information. Import this package in another class and use to check a number is
prime or not.
(9)
D D4809 Pages: 2
Page 2 of 2
14 What is exception? List any four exception classes in Java. Briefly explain
various exception handling keywords in Java, with examples.
(9)
PART E
Answer any four full questions, each carries 10 marks
15 a) Explain event handling in Java. (5)
b) Compare swing and AWT in Java. (5)
16 a) List any five event sources and their corresponding event types and listeners
used.
(5)
b) What is applet? Describe the structure of applet. (5)
17 Develop an applet that allows to input velocity in Kilometers/Hour, convert and
display in Meters/Second. Use AWT controls and event handling techniques.
(10)
18 a) Explain the tag used to pass parameters to an applet. (3)
b) How do you establish connection between a java program and database? Explain
the steps with sample code.
(7)
19 a) Write an applet which displays the character when a key is typed. Use event
handling mechanism.
(7)
b) What is meant by dynamic query? (3)
20 Write a Java application program that simulates a simple dictionary. There
exists a dictionary database and a table contain a set of English words and there
meaning. The program accepts an English word from the user, look up in the
database and retrieve the meaning, if available. The result is communicated back
to the user.
(10)
****

More Related Content

PDF
Oop sample ktu
PDF
Oop r&s may 2019 (2)
PDF
17432 object oriented programming
PDF
CMSC 350 PROJECT 1
DOC
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
DOC
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
PDF
Object Oriented Programming Lab Manual
PDF
Pcd201516
Oop sample ktu
Oop r&s may 2019 (2)
17432 object oriented programming
CMSC 350 PROJECT 1
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
Object Oriented Programming Lab Manual
Pcd201516

What's hot (16)

PPT
Introduction to Procedural Programming in C++
PDF
JDT Embraces Lambda Expressions - EclipseCon North America 2014
PDF
Cp manual final
PPS
C programming session 08
PPT
C++ OOP Implementation
PDF
Compiler Ggcc
PDF
Eclipse and Java 8 - Eclipse Day India 2013
PPT
What is new in J2SE 5
PPT
9781111530532 ppt ch13
DOCX
Cis 355 ilab 1 of 6
PPT
9781111530532 ppt ch05
PPT
9781111530532 ppt ch04
PPT
9781111530532 ppt ch03
PDF
E1
PPTX
Data structures and algorithms lab2
Introduction to Procedural Programming in C++
JDT Embraces Lambda Expressions - EclipseCon North America 2014
Cp manual final
C programming session 08
C++ OOP Implementation
Compiler Ggcc
Eclipse and Java 8 - Eclipse Day India 2013
What is new in J2SE 5
9781111530532 ppt ch13
Cis 355 ilab 1 of 6
9781111530532 ppt ch05
9781111530532 ppt ch04
9781111530532 ppt ch03
E1
Data structures and algorithms lab2
Ad

Similar to Oop april 2018 (20)

PDF
Oop r&s may 2019
PDF
Oop december 2018
PDF
Oop suplemnertary september 2019
PDF
Oop july 2017
DOC
Core java msc
DOCX
Mcs 024 assignment solution (2020-21)
DOCX
Question bank
DOCX
Mit103 object oriented programming
PDF
Java Programming.pdf
PDF
Object oriented programming -QuestionBank
PDF
Java Programming.pdf
PDF
Guia de Estudo OCA Java SE 5 - SE6
PDF
Oop question-bank
PDF
0502 Object Oriented Programming Through Java Set1
PDF
0502 Object Oriented Programming Through Java Set1
PDF
core java material.pdf
DOCX
Mcs 024 assignment solution (2020-21)
PDF
7th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
PDF
66781291 java-lab-manual
PDF
Devry CIS 355A Full Course Latest
Oop r&s may 2019
Oop december 2018
Oop suplemnertary september 2019
Oop july 2017
Core java msc
Mcs 024 assignment solution (2020-21)
Question bank
Mit103 object oriented programming
Java Programming.pdf
Object oriented programming -QuestionBank
Java Programming.pdf
Guia de Estudo OCA Java SE 5 - SE6
Oop question-bank
0502 Object Oriented Programming Through Java Set1
0502 Object Oriented Programming Through Java Set1
core java material.pdf
Mcs 024 assignment solution (2020-21)
7th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
66781291 java-lab-manual
Devry CIS 355A Full Course Latest
Ad

More from ktuonlinenotes (6)

PDF
Module 1 uml - usecase digram
PDF
Module 1 uml - interaction diagram
PDF
Lecture 4-oop class diagram
PDF
Lecture1 cst205 cst281-oop
PDF
Lecture 2 cst 205-281 oop
PDF
Lecture 3 cst205 cst281-oop
Module 1 uml - usecase digram
Module 1 uml - interaction diagram
Lecture 4-oop class diagram
Lecture1 cst205 cst281-oop
Lecture 2 cst 205-281 oop
Lecture 3 cst205 cst281-oop

Recently uploaded (20)

PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Computer Architecture Input Output Memory.pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
semiconductor packaging in vlsi design fab
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
FORM 1 BIOLOGY MIND MAPS and their schemes
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Hazard Identification & Risk Assessment .pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
Introduction to pro and eukaryotes and differences.pptx
Computer Architecture Input Output Memory.pptx
What if we spent less time fighting change, and more time building what’s rig...
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
HVAC Specification 2024 according to central public works department
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
semiconductor packaging in vlsi design fab
Share_Module_2_Power_conflict_and_negotiation.pptx
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
B.Sc. DS Unit 2 Software Engineering.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
AI-driven educational solutions for real-life interventions in the Philippine...

Oop april 2018

  • 1. D D4809 Pages: 2 Page 1 of 2 Reg No.:_______________ Name:__________________________ APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY FOURTH SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018 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 Briefly explain the primitive data types used in Java. (3) 2 Why Java is called pure object-oriented language? (3) 3 Explain how access modifiers are used to control the visibility of identifiers. (3) 4 Write a note on Java Virtual Machine. (3) PART B Answer any two full questions, each carries 9 marks 5 a) Draw the Use case diagram of a movie reservation system. (4) b) Write a program to check whether a string is palindrome or not. The input is to be accepted through command line parameter. (5) 6 a) Describe the following statements in Java.: i) switch and for ii) break and continue (4) b) Define a Java class having overloaded methods to calculate area of rectangle and circle. (5) 7 a) What is the use of constructor in Java? Give examples. (4) b) Is it possible to create an object for class A using, A ob = new A(); if the class contains only parameterized constructor? Why? (5) PART C Answer all questions, each carries 3 marks 8 What is the use of interface in Java? Give example. (3) 9 With the help of examples, explain how inheritance is implemented in Java. (3) 10 Write a note on byte stream and character stream related classes. (3) 11 Define package. How is a class within a package compiled and executed? (3) PART D Answer any two full questions, each carries 9 marks 12 a) Explain the different ways of creating threads in Java. (4) b) Write a Java program that accepts N integers through console and compute their average. (5) 13 Develop a java package named primepackage, with a class Prime containing a static method that check whether a number is prime or not and returns that information. Import this package in another class and use to check a number is prime or not. (9)
  • 2. D D4809 Pages: 2 Page 2 of 2 14 What is exception? List any four exception classes in Java. Briefly explain various exception handling keywords in Java, with examples. (9) PART E Answer any four full questions, each carries 10 marks 15 a) Explain event handling in Java. (5) b) Compare swing and AWT in Java. (5) 16 a) List any five event sources and their corresponding event types and listeners used. (5) b) What is applet? Describe the structure of applet. (5) 17 Develop an applet that allows to input velocity in Kilometers/Hour, convert and display in Meters/Second. Use AWT controls and event handling techniques. (10) 18 a) Explain the tag used to pass parameters to an applet. (3) b) How do you establish connection between a java program and database? Explain the steps with sample code. (7) 19 a) Write an applet which displays the character when a key is typed. Use event handling mechanism. (7) b) What is meant by dynamic query? (3) 20 Write a Java application program that simulates a simple dictionary. There exists a dictionary database and a table contain a set of English words and there meaning. The program accepts an English word from the user, look up in the database and retrieve the meaning, if available. The result is communicated back to the user. (10) ****