0% found this document useful (0 votes)
31 views4 pages

CS3391 QB Igce

Uploaded by

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

CS3391 QB Igce

Uploaded by

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CS3391 OBJECT ORIENTED PROGRAMMING

UNIT I INTRODUCTION TO OOP AND JAVA


Overview of OOP – Object oriented programming paradigms – Features of Object Oriented
Programming – Java Buzzwords – Overview of Java – Data Types, Variables and Arrays –
Operators – Control Statements – Programming Structures in Java – Defining classes in Java –
Constructors-Methods -Access specifiers - Static members- Java Doc comments

PART-A

1. Compare class and object.


2. List the various access specifiers supported by OOPS.
3. Illustrate constructors in Java.
4. Express a simple Java Program to find the given number is
Prime or not.
5. List out the type of Arrays
6. Define static variable and static method
7. Illustrate with example what is meant by parameter passing constructor
8. What are the control flow statements in java?

PART B

1. Explain OOPS and its features


2. Define and explain the control flow statements in Java withsuitable examples
3. Explain with example passing objects as parameters to methods and returning objects
from methods in Java
4. Explain a Java program to find a smallest number in the given array by creating one
dimensional array and two dimensional array using new operator
5. Discuss in detail the access specifiers available in Java
6. What are the different data types in JAVA? Explain each of them with example
7. Explain in detail about static variable and static method in Java with example?
8. Explain the control structures in java.

UNIT II INHERITANCE, PACKAGES AND INTERFACES


Overloading Methods – Objects as Parameters – Returning Objects –Static, Nested and Inner
Classes. Inheritance: Basics– Types of Inheritance -Super keyword -Method Overriding –
Dynamic Method Dispatch –Abstract Classes – final with Inheritance. Packages and Interfaces:
Packages – Packages and Member Access –Importing Packages – Interfaces

PART-A
1. Identify what are the two ways of using super keyword.
2. Give the use of final keyword.
3. Differentiate method overloading and overriding
4. Define interface and write the syntax of the interface.
5. Express what Dynamic Binding is.
6. Describe whether you can have an inner class inside a methodand what variables can
you access.
7. Differentiate between abstract class and interface.
8. Point out what are inner class and anonymous class.
9. What are the four types of access modifiers?

PART-B
1. Consider a class student.Inherit this class in UG Student and PG Student. Also inherit
students into local and non-local students.Define five Local UG Students with a
constructor assuming all classes have a constructor
2. Explain the concept of inheritance with suitable examples
3. What is a Package? What are the benefits of using packages? Write down the steps in
creating a package and using it in a java program with an example.
4. Define inner classes. How to access object state using inner classes? Give an
Example.
5. Differentiate method overloading and method overriding. Explain both with an example
6. program.
7. (i) Explain briefly on final keyword. (7)
(ii) Explain the concept of abstract class with an example. (6)
8. Explain the java program to demonstrate the Objects as Parameters – Returning Objects

UNIT III EXCEPTION HANDLING AND MULTITHREADING


Exception Handling basics – Multiple catch Clauses – Nested try Statements – Java’s Built-in
Exceptions – User defined Exception. Multithreaded Programming: Java Thread Model–Creating
a Thread and Multiple Threads – Priorities – Synchronization – Inter Thread Communication-
Suspending –Resuming, and Stopping Threads –Multithreading. Wrappers – Auto boxing
PART A
1. Define Arthmetic Exception with example
2. What are the types of errors?
3. Draw the exception hierarchy
4. What is chained exception?
5. Compare throw and throws.
6. What is difference between final, finally and finalize in Java?
7. What is meant by Multitasking?
8. Difference between multi-threading and multi-tasking?

PART-B
1. (a)Discuss about try, catch and finally keywords in exception handling with an
example. (8)
(b)List and explain data types and their corresponding wrapper class.
2. Explain in detail the important methods of Java Exception Class.
3. Explain in detail Chained exception with an example program and also explain in
detail the various exception types with its hierarchy.
4. Write programs to illustrate arithmetic exception, ArrayIndexOutOfBounds Exception
and NumberFormat Exception.
5. Write a java program for inventory problem to illustrate the usage of thread
synchronized keyword and inter thread communication process. They have three
classes called consumer, producer and stock.
6. Describe the life cycle of thread and various thread methods

UNIT IV I/O, GENERICS, STRING HANDLING


I/O Basics – Reading and Writing Console I/O – Reading and Writing Files. Generics: Generic
Programming – Generic classes – Generic Methods – Bounded Types – Restrictions and
Limitations. Strings: Basic String class, methods and String Buffer Class

PART A

1. What are input and output streams?


2. What is a byte stream in java?
3. Define stream.
4. What are the two useful methods to create directories?
5. What is the use of java console class?
6. State the two challenges of generic programming in virtual machines
7. How to create generic class?
8. How to declare a java generic bounded type parameter?
9. What are the restrictions on generics?
10. Different between capacity and length method in string buffer

PART B
1. Explain in detail about generic classes and methods in java with suitable example.
2. Describe briefly about generics with wildcards.
3. What are the restrictions are considered to use java generics effectively? Explain in
detail.
4. Explain the all the string operators with syntax and example
5. Explain the string comparison methods with an example.
6. Explain the string method for searching and modifying the string.
7. Explain the string buffer methods with an example.
8. Create a Central Library management system with libraries in different locations in a
city.Each library can order a book from the central library and give it to the requesting
customers.Availability of that book should be updated on each lending. Consider each
library as a thread that requests for a book for purchase from the cental library. If the
requested book count is less than zero, then central library provides an appropriate
message to the appropriate requesting library.Implement using Multithreading
UNIT V JAVAFX EVENT HANDLING, CONTROLS AND COMPONENTS
JAVAFX Events and Controls: Event Basics – Handling Key and Mouse Events. Controls:
Checkbox, ToggleButton – RadioButtons – ListView – ComboBox – ChoiceBox – Text Controls
– ScrollPane. Layouts – FlowPane – HBox and VBox – BorderPane – StackPane – GridPane.
Menus – Basics – Menu – Menu bars – MenuItem

PART A
1. What is JavaFX?
2. List out some of the important features of JavaFX
3. What do you mean by Scene Graph
4. What is the difference between radio button and ListView?
5. What do you mean by Layout.
6. What are the properties of FlowPane?
7. What are the properties of BorderPane?
8. What are the different classification of event?
9. What are the method are available in Menu?
10. What do mean by Event Handling ?

PART B
1. List and explain the important features of JavaFX
2. Explain the JavaFX Architecture in details.
3. Explain the JavaFX Application Structure in detail
4. Explain the following control with an example,CheckBox, ToggleButton,
RadioButtons,
5. Explain the following control with an example, ListView, ComboBox , ChoiceBox,
Scroll panes
6. Write a JavaFX program to create a registration form, which demonstrates controls in
JavaFX such as Date Picker, Radio Button, Toggle Button, Check Box, List View,
Choice List, etc.
7. Write a JavaFX program to demonstrates following layouts such as HBox, VBox,
Border Pane, Stack Pane, Text Flow, Anchor Pane, Title Pane, Grid Pane, Flow Panel
8. Explain the Event Handling with example.
9. Write a Java program to create a menu bar and add menu to it and also add
menuitems to the menu.

You might also like