0% found this document useful (0 votes)
7 views

JP Lab Internal -I

The document outlines the lab internal examination for II B. Tech II Semester students at BVRIT Hyderabad College of Engineering for Women, scheduled for February 21, 2025. It includes a series of programming tasks in Java, covering topics such as encapsulation, method overloading, inheritance, abstract classes, and exception handling. The exam consists of eight questions, each with multiple parts focusing on different programming concepts.

Uploaded by

23wh1a1206
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

JP Lab Internal -I

The document outlines the lab internal examination for II B. Tech II Semester students at BVRIT Hyderabad College of Engineering for Women, scheduled for February 21, 2025. It includes a series of programming tasks in Java, covering topics such as encapsulation, method overloading, inheritance, abstract classes, and exception handling. The exam consists of eight questions, each with multiple parts focusing on different programming concepts.

Uploaded by

23wh1a1206
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

BVRIT HYDERABAD College of Engineering for Women

(Autonomous)
Nizampet Road, Bachupally, Hyderabad-500090
Department Of IT
II B. Tech II Semester I Lab Internal Examinations, February - 2025
Date: 21/02/2025 Duration :2Hr Max Marks: 10

1. a) Write a Java program for finding factorial of a given number using encapsulation .
b) Write a Java program to illustrate method overloading.

2. a) Write a Java program to create a student array for taking input roll number, name and
student marks for 5 students and print their total marks and average marks.
b) Write a Java program to illustrate constructor overloading.

3. a) Write a Java program to illustrate Single Inheritance.


b) Write a Java program to create an abstract class named Shape that contains two integers and
an empty method named print Area (). Provide three classes named Rectangle, Triangle, and
Circle such that each one of the classes extends the class Shape. Each one of the classes
contains only the method print Area () that prints the area of the given shape.

4. a)Write a Java program to illustrate Multilevel Inheritance ?


b) Write a Java program that demonstrates the use of concat(), equals(), compareTo(), and
indexOf() methods on a given string.

5. a)Write a Java Program for Guessing Game Using Conditional and Iterative Statements.
( Generate the random number and guess the number from user i/p whether it is correct or not )
b) Write a program to illustrate user defined exception that checks the internal External marks if
the internal marks are greater than 40 it raise the exception “internal Marks are exceed”, if the
external marks are greater than 60 exception is raised and Display the message the “external
marks are exceed.

6. a) Write a Java program with an abstract class Shape that has an abstract method calculateArea().
Implement subclasses Rectangle and Circle with appropriate implementations of
calculateArea().
b) Also, demonstrate method overloading by creating multiple versions of a displayShapeInfo()
method.

7. a) Write a Java program to illustrate Hierarchical Inheritance ?


b) Write a Program on a simple calculator using switch statements.

8. a)Write a Java program to illustrate Multiple Inheritance ?


b) Write a Java program for BMI Calculator Using Operators and Conditional Statements.

Internal Examiner HoD

You might also like