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

13 Question Bank

The document outlines the syllabus for the Object Oriented Programming Through Java course at Madanapalle Institute of Technology & Science for the academic year 2024-2025. It includes a detailed checklist of topics covered in five units, with both Part A and Part B questions designed to assess students' understanding of Java programming concepts. Key areas include OOP principles, data types, exception handling, multithreading, and practical programming assignments.

Uploaded by

mvignesh5756
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)
8 views4 pages

13 Question Bank

The document outlines the syllabus for the Object Oriented Programming Through Java course at Madanapalle Institute of Technology & Science for the academic year 2024-2025. It includes a detailed checklist of topics covered in five units, with both Part A and Part B questions designed to assess students' understanding of Java programming concepts. Key areas include OOP principles, data types, exception handling, multithreading, and practical programming assignments.

Uploaded by

mvignesh5756
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

MADANAPALLEINSTITUTEOF TECHNOLOGY &SCIENCE

(UGC-AUTONOMOUS INSTITUTION)
Affiliated to JNTUA,Ananthapuramu &Approved byAICTE,NewDelhi
NAAC Accredited with A+ Grade, NIRF India Rankings 2024 - Band: 201-300 (Engg.)
NBA Accredited - B.Tech. (CIVIL, CSE, ECE, EEE, MECH, CST), MBA & MCA
Checklist No: IQAC/24- 25/14.13

Department Of Computer Science & Engineering (Artificial Intelligence)

Academic Year: 2024-2025Year & SEM: II &IIClass: CAI-C


Name of the Course:Object Oriented Programming Through JavaCourse Code: 23CAI106
Name of the Faculty: Mrs V Nirupa

UNITI
Part A (1 Marks)
1. What are the four main principles of Object-Oriented Programming (OOP)?
2. Define type casting in Java.
3. List any three tokens in Java.
4. What is the purpose of the break statement in loops?
5. How is user input handled in Java?
6. What is the significance of command-line arguments in Java?
7. Differentiate between while and do-while loops.
8. Explain the use of escape sequences in Java with an example.
9. What are the types of comments in Java?
10. Why is programming style important in Java development?
Part B (10 Marks )
1. Write a Java program that demonstrates type casting (both implicit and explicit). Explain your
code.
2. Implement a Java program using command-line arguments to calculate the sum of two numbers.
3. Write a Java program that accepts user input for a student's details (name, age, marks) and
displays them in a structured format using escape sequences.
4. Compare and analyze the different types of loops in Java with suitable examples.
5. Given a scenario, analyze when to use break and continue statements in loops. Write a Java
program that demonstrates both.
6. Evaluate the differences between Java statements: sequential, conditional, and looping. Provide
relevant examples.
7. Evaluate the role of comments in improving program readability. Write a well-commented Java
program and justify the use of comments.
8. Explain in detail about data types in java programming language with example program.
9. Develop a Java program that simulates a simple menu-driven calculator using control statements.
10. Design and implement a Java program that accepts a list of numbers and prints only the even
numbers using the continue statement.
UNITII
Part A(1 Marks)
1. What is the purpose of a constructor in Java?
2. Define access control in Java classes.
3. What is the difference between a class and an object?
4. What does the static keyword do in a Java class?
5. How do you declare a nested class in Java?
6. What is the role of the this keyword in Java?
7. Differentiate between method overloading and constructor overloading.
8. What is the significance of the final keyword in Java classes and methods?
9. How are arguments passed in Java: by value or by reference?
10. What are recursive methods? Give an example.

Part B (10 Marks)


1. Design and implement a Java class to represent a Bank Account, including attributes like account
number, account holder name, and balance. Implement methods for deposit, withdrawal, and
displaying account details.
2. Explain access control in Java with examples for private, protected, public, and default access
modifiers.
3. Write a Java program that demonstrates constructor overloading using an example of a Student
class with multiple constructors.
4. Implement a Java program that demonstrates the use of the this keyword for differentiating
instance variables from method parameters.
5. Explain the concept of nested classes in Java. Write a program that uses a static nested class and
an inner class.
6. Differentiate between pass by value and pass by reference in Java. Demonstrate this with an
example program.
7. Implement a real-world model using classes and objects, such as a Library Management System
that includes classes for Book, Author, and Library.
8. Discuss method overloading in Java with a program that demonstrates overloading in a
MathOperations class.
9. Write a Java program that demonstrates recursion by calculating the factorial of a given number.
10. Develop a Car class with attributes like brand, model, and price. Implement methods to display
details and apply a discount based on a given condition.
11. Explain the importance of the final keyword in Java. Write a program that demonstrates the use of
a final class and a final method.
12. Create a Student Management System using classes in Java, focusing on encapsulation,
constructors, and method overloading.

UNIT III

Part A(1 Marks)


1. What is an array in Java?
2. How do you declare and initialize a one-dimensional array in Java?
3. What is method overriding in Java?
4. Define inheritance and its importance in Java.
5. What is the difference between abstract classes and interfaces?
6. What is the super keyword used for in inheritance?
7. List the types of inheritance supported in Java.
8. How does polymorphism work in Java?
9. What is an interface, and how is it different from a class?
10. Can an interface extend another interface? If yes, how?

Part B (10 Marks)


1. Write a Java program to demonstrate single and multi-dimensional arrays, performing operations
such as insertion and retrieval of elements.
2. Explain the types of inheritance in Java with suitable examples.
3. Implement method overriding using a real-world example, such as an Employee hierarchy with
subclasses for Manager and Developer.
4. Write a Java program demonstrating the use of the super keyword to call a superclass constructor
and method.
5. Develop a Java program that demonstrates polymorphism using an abstract class Vehicle with
subclasses Car and Bike.
6. Discuss the importance of abstract classes with a Java example where Animal is an abstract class,
and Dog and Cat are subclasses implementing different behaviors.
7. Write a Java program to implement and extend multiple interfaces in a real-world scenario, such
as a Person implementing both Employee and SportsPerson interfaces.
8. Explain the concept of interfaces and write a program demonstrating how an interface can be
implemented by multiple classes.
9. Compare final keyword usage in variables, methods, and classes with appropriate examples.
10. Create a university management system where Professor and Student classes inherit from a
common Person class and demonstrate method overriding.
11. Implement a multi-level inheritance hierarchy in Java and discuss its advantages and limitations.
12. Write a Java program that demonstrates nested interfaces and their usage in a real-world
application.
UNIT IV

Part A(1 Marks)


1. What is a package in Java?
2. How do you import a package in Java?
3. What are access modifiers, and how do they affect member access in a package?
4. What is the difference between throws and throw in Java?
5. Define exception handling and its importance in Java.
6. What are the different types of exceptions in Java?
7. What is the purpose of the finally block in exception handling?
8. How does multiple catch block handling work in Java?
9. What is the difference between byte stream classes and character stream classes?
10. How do you create a user-defined exception in Java?
Part B (10 Marks)
1. Write a Java program to create and use a custom package. Explain the importance of packages in
Java.
2. Explain access control in Java with respect to packages. Provide examples demonstrating private,
protected, public, and default access modifiers.
3. Implement a try-catch-finally mechanism in Java to handle an ArithmeticException. Explain how
each block works.
4. Demonstrate multiple catch clauses with a Java program that handles
ArrayIndexOutOfBoundsException and NullPointerException.
5. Write a Java program that implements nested try blocks and explain when they are useful.
6. Discuss the difference between checked and unchecked exceptions in Java with suitable examples.
7. Implement a user-defined exception in Java, where an exception is thrown if a user enters an
invalid age.
8. Explain the throws keyword in Java. Write a program where a method declares exceptions using
throws.
9. Write a Java program that demonstrates file handling using byte stream classes (reading and
writing to a file).
10. Write a Java program that demonstrates file handling using character stream classes (reading and
writing to a file).
11. Compare byte streams and character streams in Java and explain their use cases with examples.
12. Explain the importance of robust exception handling in Java. Provide best practices for writing
fault-tolerant code with relevant examples.

UNIT V
Part A (1 Marks)
1. What is the difference between String and StringBuffer in Java?
2. How can you compare two strings in Java?
3. What is the purpose of the CharSequence interface?
4. How do you extract a substring from a given string in Java?
5. What is multithreading, and why is it important?
6. What are the different states of a thread in Java?
7. How do you create a new thread in Java using the Thread class?
8. What is inter-thread communication, and why is it needed?
9. What is synchronization in multithreading?
10. What is Spring Boot, and why is it used in Java development?

Part B (10 Marks)


1. Write a Java program that demonstrates any six String handling functions.
2. Explain the difference between String, StringBuffer, and StringBuilder with suitable
examples.
3. Implement a multithreaded Java program where multiple threads perform different tasks
simultaneously.
4. Explain thread states in Java with a program that demonstrates thread lifecycle transitions.
5. Implement a Java program demonstrating inter-thread communication using wait(), notify(),
and notifyAll().
6. Write a Java program to suspend, resume, and stop threads using multithreading concepts.
7. Demonstrate synchronization in multithreading.
8. Explain the need for multithreading in multi-core processors with real-world examples.
9. Write a program to create multiple threads using both the Thread class and the Runnable
interface, explaining their differences.
10. Discuss the advantages and use cases of Spring Boot in Java application development.

Course Instructor Course Coordinator HOD

You might also like