0% found this document useful (0 votes)
7 views2 pages

Question Bank

The document is a question bank for the Computer Science and Engineering department at Sai Vidya Institute of Technology, covering various modules related to Java programming. It includes questions on Object Oriented Programming, data types, loops, arrays, classes, inheritance, exception handling, and multithreading. Each question is associated with specific course outcomes (COs) for assessment purposes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Question Bank

The document is a question bank for the Computer Science and Engineering department at Sai Vidya Institute of Technology, covering various modules related to Java programming. It includes questions on Object Oriented Programming, data types, loops, arrays, classes, inheritance, exception handling, and multithreading. Each question is associated with specific course outcomes (COs) for assessment purposes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Sri Sai Vidya Vikas Shikshana Samithi ®

SAI VIDYA INSTITUTE OF TECHNOLOGY


Approved by AICTE, New Delhi, Affiliated to VTU, Recognized by Govt. of Karnataka
Accredited by NBA, New Delhi (CSE, ISE, ECE)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
RAJANUKUNTE, BENGALURU 560 064, KARNATAKA
Phone: 080-28468191/96/97/98 *E-mail: [email protected] * URL www.saividya.ac.in

Question Bank

Sl. No Module-1 CO’s


1 What is Object Oriented Programming? Describe 3 OOP’s Principles with examples. C01
2 What are Primitive datatypes? Explain any 2 datatypes with java program. C01
3 Compare while and do-while loop with java program. C01
4 What are Arrays? Describe one-dimension and multi-dimensional arrays with example C01
5 Describe Jump statements with Java Program. C01
6 Describe Lexical issues in Java. C01
Explain the following C01
7 a. i)>> ii) & iii) >>> iv) <<=
8 Explain the type inference with local variables C01
9 Explain Arithmetic and Logical Operators with an example Program. C01

Sl. No Module-2 CO’s


1 Explain class with an example. C02
2 Illustrate the general structure of Methods with an example program. C02
3 Discuss the terms with example C02
a)static Methods in an Interface b) Using final with Inheritance
4 Develop a stack class to hold a maximum of 10 integers with suitable methods. C02
Develop a JAVA main method to illustrate Stack operations.
5 Explain the use of this in JAVA with an example C02
6 Explain the various access specifiers in Java. C02
7 What are constructors? Explain two types of constructors with an example program. C02
8 Define recursion. Write a recursive program to find nth Fibonacci number. C02
9 Explain Method Overloading with an example. C02

Sl. No Module-3 CO’s


1 What is single-level inheritance? Write a Java program to implement single-level C03
inheritance.
2 What is the importance of the super keyword in inheritance? Illustrate with a suitable C03
example.
3 What is abstract class and abstract method? Explain with an example. C03
4 Write a Java program to implement multilevel inheritance with 3 levels of hierarchy. C03
5 Define interface and explain default Interface Methods? C03
6 Explain the method overriding with a suitable example. C03
7 What is abstract class and abstract method? Explain with an example. C03
8 Explain Static methods in an interface. C03
Sri Sai Vidya Vikas Shikshana Samithi ®
SAI VIDYA INSTITUTE OF TECHNOLOGY
Approved by AICTE, New Delhi, Affiliated to VTU, Recognized by Govt. of Karnataka
Accredited by NBA, New Delhi (CSE, ISE, ECE)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
RAJANUKUNTE, BENGALURU 560 064, KARNATAKA
Phone: 080-28468191/96/97/98 *E-mail: [email protected] * URL www.saividya.ac.in

9 Explain dynamic method and dispatch with example. C03

Sl. No Module-4 CO’s


1 Define package. Explain the steps involved in creating a user-defined package with an C04
example
2 What is an Exception? Explain different exception handling mechanism mechanism C04
3 Explain the procedure of creating own exception with example code. C04
4 Explain the concept of importing packages in Java and provide an example C04
demonstrating the usage of the import statement
5 How do you create your own exception class? Explain with a program C04
6 Demonstrate the working of a nested try block with an example C04
7 Describe chained Exceptions. C04
8 Develop a JAVA program to create an interface Resizable with methods C04
resizeWidth(int width) and resizeHeight(int height) that allow an object to be resized.
Create a class Rectangle that implements the Resizable interface and implements the
resize methods.

Sl. No Module-5 CO’s


1 What do you mean by a thread? Explain the different ways of creating threads. C05
2 What is the need of synchronization? Explain with an example how synchronization C05
is implemented in JAVA.
3 Discuss values() and value Of() methods in Enumerations with suitable examples. C05
4 What is multithreading? Write a program to create multiple threads in JAVA. C05
5 Explain with an example how inter-thread communication is implemented in JAVA. C05
6 Explain auto-boxing/unboxing in expressions. C05
7 Demonstrate Interthread communication with example program. C05
8 Describe Java Thread Model. C05
9 Develop a program to create a class MyThread in this class a constructor, call the C05
base class constructor, using super and start the thread. The run method of the class
starts after this. It can be observed that both main thread and created child thread are
executed concurrently.

Course Coordinator HOD

You might also like