0% found this document useful (0 votes)
15 views13 pages

oopsUNIT 1

Uploaded by

manthra arumugam
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)
15 views13 pages

oopsUNIT 1

Uploaded by

manthra arumugam
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/ 13

ARASU ENGINEERING COLLEGE, KUMBAKONAM

DEPARTMENT OF COMPUTR SCIENCE AND ENGINEERING


Academic year 2023-2024 (ODD SEMESTER)

Year/ Sem/ Branch : II /III / BIOMEDICAL AND ENGINEERING


Subject code and Name : CS3391 & OBJECT ORIENTED PROGRAMMING
QUESTION BANK
UNIT I
PART-A

1. What is java virtual machine? [CO1,LOT,K1]

2. What are the features of java. [CO1,LOT,K1]

3. Define Objects and classes in java?. [CO1,LOT,K1]

4. What is abstract class? [CO1,LOT,K2]

5. What is meant by private access specifier? [CO1,HOT,K5]

6. What is the difference between constructor and method? [CO1,LOT,K1]

7. What is package?. [CO1,LOT,K1]

8. List any four java Doc Comments? [CO1,LOT,K1]

9. Explain the term CLASSPATH [CO1,LOT,K1]

10. What are the classes important in OO methodology? [CO1,LOT,K1]

11. What is the difference between static and non static variable?? [CO1,LOT,K1]

12. Define encapsulation? [CO1,LOT,K1]

13. Define constructor? [CO1,LOT,K1]

14. What is Array. [CO1,LOT,K1]

15. Give the syntax for one dimensional Array? [CO1,LOT,K1]

16 What are the features of java language? [CO1,LOT,K1]

17 Define abstraction [CO1,LOT,K2]


18 What is polymorphism [CO1,LOT,K2]

19 Write the syntax for declaration of class and creation of objects? [CO1,LOT,K2]

20 Define Encapsulation [CO1,LOT,K1]

21 What are the data types supported in java ? [CO1,LOT,K3]

22 What is Inheritance? What are its types? [CO1,LOT,K1]

23 Define class [CO1,LOT,K2]

24 What do you mean by Dynamic Initialization? [CO1,LOT,K1]

25 What do you mean by Variable? What are the rules for variable declaration? [CO1,LOT,K1]

What are the steps for execution of a java program? [CO1,LOT,K2]


26

27 What do you mean by Bytecode? What is JVM and JIT? [CO1,LOT,K3]

28 What are the different datatypes in java? [CO1,LOT,K1]

29 What is Garbage collection? [CO1,LOT,K1]

30 What is passed by reference? [CO1,LOT,K1]

What is Constructors in Java? What are its types? [CO1,LOT,K1]


31

What is array? How to declare array and how to allocate the memory to for
32 array? [CO1,LOT,K1]

Explain how to declare Two Dimensional array? [CO1,LOT,K2]


33

What are public static void main(String args[]) and System.out.println() ? [CO1,LOT,K1]
34

What is down casting? [CO1,LOT,K3]


34

What are types of Constructors? [CO1,LOT,K1]


36

What's the difference between an interface and an abstract class? [CO1,LOT,K2]


37

38 What is static methods in Java? [CO1,LOT,K1]

What are the control flow statements in java? [CO1,LOT,K1]


39

PART-B
1 Explain the features of OOPS [CO1,HOT,K4]

2 What is data type? Explain the various data types available in java [CO1,HOT,K4]

3. Define control statements? Explain the types of control statements available [CO1,HOT,K4]
in java
4. [CO1,HOT,K4]
Define operator? Explain the types of operators with example java program?

5. What is constructor in java? Explain with example in detail. [CO1,HOT,K4]


Differentiate between object oriented programming and procedure oriented
6. programming [CO1,HOT,K4]
Write a java program to find the greatest of three number
7. i) Describe the typical java program structure.
ii)Explain the general java program compilation and execution [CO1,HOT,K4]

8. What are the different data types in JAVA? Explain each of them with [CO1,HOT,K4]
example

9. Discuss in detail the access specifiers available in Java [CO1,HOT,K4]

10. Explain in detail the various operators in Java. [CO1,HOT,K4]

11. Explain in detail about static variable and static method in Java with [CO1,HOT,K4]
example

DEPARTMENT OF COMPUTR SCIENCE AND ENGINEERING


Academic year 2023-2024 (ODD SEMESTER)
Year/ Sem/ Branch : II /III / BIOMEDICAL AND ENGINEERING
Subject code and Name : CS3391 & OBJECT ORIENTED PROGRAMMING
QUESTION BANK
UNIT II
PART-A

[CO2,LOT,K1]
1 What is interface mention its use?

2 [CO2,LOT,K1]
Write a syntax for interface

3 [CO2,LOT,K1]
What is the purpose of nested interface?

4 [CO2,LOT,K2]
Define the term inheritance?

5 [CO2,HOT,K5]
.Explain the use of extend keyword with suitable example
6
[CO2,LOT,K1]
What is the use of super keyword?

7 [CO2,LOT,K1]
Differentiate inheritance and polymorphism

8 [CO2,LOT,K1]
What is the purpose of final Keyword

9 [CO2,LOT,K1]
What is meant by dynamic method dispatch?

10 [CO2,LOT,K1]
State the method overriding in java

11 [CO2,LOT,K1]
.Define Abstract class

12 [CO2,LOT,K1]
What is object class?

13 What are the difference between method overloading and method overrriding? [CO2,LOT,K1]

14 What is multilevel inheritance? [CO2,LOT,K1]

15 What is packages in java? [CO2,LOT,K1]

Define super class and subclass? [CO2,LOT,K1]


16

17 What are the four types of access modifiers? [CO2,LOT,K1]

What is meant by Binding, Static binding, Dynamic binding? [CO2,LOT,K1]


18

What is extending interface? [CO2,LOT,K1]


19
Brief Inner class in Java with its syntax. [CO2,LOT,K1]
20

What is protected class in Java? [CO2,LOT,K2]


21

What is a constructor in a class? [CO2,LOT,K2]


22

Why creating an object of the sub class invokes also the constructor of the [CO2,LOT,K4]
23
super class?
What are inner class and anonymous class? [CO2,LOT,K3]
24

What is interface and state its use? [CO2,LOT,K4]


25

What modifiers may be used with top-level class? [CO2,LOT,K4]


26

27 Define Package [CO2,LOT,K5]

How interfaces can be extended? [CO2,LOT,K2]


28

What is extending interface? [CO2,LOT,K1]


29

What is interface and state its use? [CO2,LOT,K1]


30

What is a base class? [CO2,LOT,K2]


31

PART-B
1 What is meant by package? How it is created and implemented in java. [CO2,HOT,K4]

2 Explain in detail as how inheritance is supported in java with Examples [CO2,HOT,K4]

3. [CO2,HOT,K4]
Explain the concept of Abstract class with Example

4. [CO2,HOT,K4]
Write short note on i)final with inheritance, ii)super Keyword

5. What is interface?Write a java program to illustrate the use of interface.Give


[CO2,HOT,K4]
the java Example Program
i)Write a java programs for library interface with drawbook() returnbook() and
6. checkstatus() methods [CO1,HOT,K3]
ii)Explain Method overloading with an example
What are the advantages of using packages?
7. ii)IIIustrate how to add classes in a packages and how to access these classes [CO2,HOT,K4]
in another package
8. Explain the concept of inheritance with suitable examples [CO2,HOT,K4]

9. Explain interfaces with example [CO2,HOT,K4]

10. [CO2,HOT,K4]
Explain about the object and abstract classes with the syntax

11. Explain the java program to demonstrate the Objects as Parameters –


[CO2,HOT,K4]
Returning Objects

DEPARTMENT OF COMPUTR SCIENCE AND ENGINEERING


Academic year 2023-2024 (ODD SEMESTER)

Year/ Sem/ Branch : II /III / BIOMEDICAL AND ENGINEERING


Subject code and Name : CS3391 & OBJECT ORIENTED PROGRAMMING
QUESTION BANK
UNIT III
PART-A

1 What is Exception ?Give example [CO3,LOT,K1]

2 What are stack trace Elements? [CO3,LOT,K1]

3 What is compile time and run time errors [CO3,LOT,K2]

4 What is the use of try, catch keywords? [CO3,LOT,K2]

5 What is the difference between throw and throws [CO3,HOT,K2]

6 What is Array index Out Of Bounds Exception?- [CO3,LOT,K1]

7 What is the need of multiple catch [CO3,LOT,K3]

8 What is Wrappers? [CO3,LOT,K1]

9 Sketch life cycle of thread? [CO3,LOT,K6]

10 What is thread? [CO3,LOT,K1]

11 What is Auto boxing? [CO3,LOT,K1]

12 Define multithreading [CO3,LOT,K1]

13 What is inter thread communicatiom [CO3,LOT,K1]

14 What is resuming [CO3,LOT,K1]

15 Define suspending [CO3,LOT,K1]

16 Write a python program to finding roots of quadratic equation. [CO3,LOT,K1]

17 Define iteration and it’s types. [CO3,LOT,K1]

18 Draw the flowchart of chained conditional execution. [CO3,HOT,K5]


19 What is meant by functional composition? [CO3,LOT,K1]

20 What is user define functions and mention it’s types? [CO3,LOT,K1]

21 Define Arithmetic Exception with example [CO3,LOT,K1]

What are the types of errors? [CO3,LOT,K1]


22

23 Draw the exception hierarchy [CO3,LOT,K6]

24 Name any four java built in exceptions. [CO3,LOT,K3]

What is chained exception? [CO3,LOT,K4]


25

What is the use of finally exception? [CO3,LOT,K1]


26

What is difference between final, finally and finalize in Java? [CO3,LOT,K3]


27

What is OutOfMemoryError in Java? [CO3,LOT,K1]


28

29 What do you mean by Thread Scheduling? [CO3,LOT,K1]

What are the various states of a thread? [CO3,LOT,K1]


30

PART-B

1 Explain different types of exception in java. [CO3,HOT,K4]

2 [CO3,HOT,K4]
With suitable java program explain user defined exception handling

3 What is thread? Explain its states and method [CO3,HOT,K4]

4 [CO3,HOT,K4]
Write the example java program for multithreading and Auto boxing

5 Explain the concept of priorities and synchronizing with example java


[CO3,HOT,K5]
program.

6 Explain inter thread communication and suspending, resuming and


[CO3,HOT,K4]
stopping threads.
7 Describe the life cycle of thread and various thread methods [CO3,HOT,K6]

8 Write a calculator program using exceptions and functions [CO3,HOT,K3]

9 Write programs to illustrate arithmetic exception, Array Index Out Of


[CO3,HOT,K4]
Bounds Exception and Number Format Exception

10 Explain in detail Chained exception with an example program [CO3,HOT,K4]

DEPARTMENT OF COMPUTR SCIENCE AND ENGINEERING


Academic year 2023-2024 (ODD SEMESTER)
Year/ Sem/ Branch : II /III / BIOMEDICAL AND ENGINEERING
Subject code and Name : CS3391 & OBJECT ORIENTED PROGRAMMING
QUESTION BANK
UNIT IV
PART-A

1 What is character stream? [CO4,LOT,K1]

2 What is Stream? [CO4,LOT,K1]

3 Define Byte stream in java. [CO4,LOT,K1]

4 What is mean by filter stream? [CO4,LOT,K2]

5 What is Generic Method? [CO4,HOT,K5]

6 Define Generic classes in java. [CO4,LOT,K1]

7 Define string Buffer Class. [CO4,LOT,K1]

8 What is Byte Stream? [CO4,LOT,K1]

9 What is input stream and output stream in java? [CO4,LOT,K1]

10 Write a syntax for Reading and Writing files in java? [CO4,LOT,K1]

11 What is Bounded Types in java? [CO4,LOT,K1]

12 Define String class [CO4,LOT,K1]

13 Define String Buffer class in java. [CO4,LOT,K1]

14 What an I/O filter? [CO4,LOT,K1]

What is the use of java console class? [CO4,LOT,K2]


15

State the classes used to read file in java. [CO4,LOT,K3]


16

State the two challenges of generic programming in virtual machines. [CO4,LOT,K3]


17

When to use bounded type parameter? [CO4,LOT,K4]


18

How to declare a java generic bounded type parameter? [CO4,LOT,K3]


19
What are the restrictions on generics? [CO4,LOT,K1]
20

Difference between String and StringBuffer. [CO4,LOT,K1]


21

22 Different between capacity and length method in string buffer [CO4,LOT,K1]

PART-B

1 Explain streams and I/O with Examples in java [CO4,HOT,K4]

2 Write a java program to demonstrate how to read and write data to a file [CO4,HOT,K4]

3 [CO4,HOT,K4]
Explain in detail about Generic classes and methods with examples

4 [CO4,HOT,K4]
Write short note on Restrictions and limitations

5 Explain string Buffer class with Example program [CO4,HOT,K4]

6 Explain string Buffer class with Example program [CO4,HOT,K4]

7 i)Explain string buffer class with example


[CO4,HOT,K4]
ii) ouline parameter type bounds with an example
Apply the string handling functions to do the following operations
8 i)Compare the two strings. [CO4,HOT,K4]
ii) Reverse the String.”Happy
9 Explain the all the string operators with syntax and example [CO4,HOT,K4]

10 Explain in detail about generic classes and methods in java with suitable [CO4,HOT,K4]
example.
11 What are the restrictions are considered to use java generics effectively?
[CO4,HOT,K4]
Explain in detail

DEPARTMENT OF COMPUTR SCIENCE AND ENGINEERING


Academic year 2023-2024 (ODD SEMESTER)
Year/ Sem/ Branch : II /III / BIOMEDICAL AND ENGINEERING
Subject code and Name : CS3391 & OBJECT ORIENTED PROGRAMMING
QUESTION BANK
UNIT V
PART-A

1 Difference between swing and AWT? [CO5,LOT,K1]

2 What is Scroll bar [CO5,LOT,K1]

3 What is the difference between scroll bar and scroll pane? [CO5,LOT,K2]

4 What is Choice and list? [CO5,LOT,K2]

5 What is the purpose of the enableEvents() method? [CO5,HOT,K5]

6 What class is the top of the AWT Event [CO5,LOT,K1]

7 Define Events? [CO5,LOT,K4]

8 How can I create my own GUI components? [CO5,LOT,K1]

9 What is an Event Listener? [CO5,LOT,K1]

10 What is Border pane [CO5,LOT,K1]

11 Write note on tree in Swings? [CO5,LOT,K1]

12 What is the uses of Layout managers in swing? [CO5,LOT,K1]

13 Define Grid pane [CO5,LOT,K4]

14 Define Stack pane. [CO5,LOT,K4]

15 What is Listener? [CO5,LOT,K1]

List out some of the important features of JavaFX. [CO5,LOT,K1]


16
What do you mean by Scene Graph [CO5,LOT,K1]
17
Define Prism [CO5,LOT,K2]
18
List out the Lifecycle of JavaFX Application [CO5,LOT,K6]
19
What are the three main aspects of user interface? [CO5,LOT,K2]
20
list of commonly used controls while the GUI is designed using JavaFX. [CO5,LOT,K2]
21
What is the difference between radio button and ListView? [CO5,LOT,K1]
22

23 List out various Layout panes (classes) provided by JavaFX. [CO5,LOT,K1]

What do mean by Event Handling ? [CO5,LOT,K1]


24

PART-B

1 List and explain the important features of JavaFX [CO5,HOT,K4]

2 [CO5,HOT,K4]
Explain the JavaFX Architecture in details
3 Explain the following control with an example,CheckBox, [CO5,HOT,K4]
ToggleButton, RadioButtons
Explain the following control with an example, ListView,
4 [CO5,HOT,K4]
ComboBox , ChoiceBox, Scroll pane

Write a JavaFX program to create a registration form, which


5 demonstrates controls in JavaFX such as Date Picker, Radio
[CO5,HOT,K4]
Button, Toggle Button, Check Box, List View, Choice List,
etc
Write a JavaFX program to demonstrates following layouts such
6 as HBox, VBox, Border Pane, Stack Pane, Text Flow,
[CO5,HOT,K4]
Anchor Pane, Title Pane, Grid Pane, Flow Panel

7 Explain the Event Handling with example. [CO5,HOT,K4]


Write a Java program to create a menu bar and add menu to it
8 and also add menuitems to the menu: [CO5,HOT,K4]

You might also like