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

Assignment 1

Assignment

Uploaded by

Nikhil Mahajan
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)
26 views4 pages

Assignment 1

Assignment

Uploaded by

Nikhil Mahajan
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/ 4

RN SHETTY TRUST®

RNS INSTITUTE OF TECHNOLOGY


Autonomous Institution Affiliated to VTU, Recognized by GOK, Approved by AICTE
(NAAC ‘A+ Grade’ Accredited, NBA Accredited (UG - CSE, ECE, ISE, EIE and EEE)
Channasandra, Dr. Vishnuvardhan Road, Bengaluru - 560 098
Ph:(080)28611880,28611881 URL: www.rnsit.ac.in

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING

ASSIGNMENT 1

SUBJECT CODE AND TITLE BCS306A- OOP with Java


SCHEME 2022 BATCH 2023-27
SEMESTER& SECTION III
FACULTY NAME AND
DESIGNATION Ms. Kavitha B
DATE OF 30 .09.2024 DATE OF SUBMISSION 15.10.2023
ANNOUNCEMENT

Q.No. Question RBT* COs


1 List and explain the features of Java programming language. L2 CO1

2 Discuss various data types used in Java. L1 CO1

3 What is type Conversion and Casting? Explain automatic type L2 CO1


promotion in expressions with rules and a demo program
4 Explain scope and lifetime of variables with suitable examples L1 CO1
5 What are the different types of operators available in java? L1 CO1
6 How to create an object? What happens when multiple objects are L3 CO2
created for a same class
7 Write a short note on L1 CO2
a. New keyword
b. this keyword
c. Garbage Collector
8 Explain Method overloading with an example program. L3 CO2

9 Write short notes on L1 CO2


a. Final()
b. Nested and Innerclasses
10 Write a note on access specifiers in Java with example program l2 CO3

1
RN SHETTY TRUST®
RNS INSTITUTE OF TECHNOLOGY
Autonomous Institution Affiliated to VTU, Recognized by GOK, Approved by AICTE
(NAAC ‘A+ Grade’ Accredited, NBA Accredited (UG - CSE, ECE, ISE, EIE and EEE)
Channasandra, Dr. Vishnuvardhan Road, Bengaluru - 560 098
Ph:(080)28611880,28611881 URL: www.rnsit.ac.in

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING

Q.No. Group 1-Question RBT* COs


1 Explain three OOPs principles. L1 CO1

2 Write a note on L1 CO1


a.Java class libraries b.Literals
3 Write short notes on L1 CO2
c. Final()
d. Nested and Innerclasses
4 classBox L3 CO2
{
int width,height,depth;
}
Add a method to the above class to compute volume of the box. The
program should output volume of the box and it should also make
useof overloaded constructor to initialize dimensions.
5 Discuss the behavior of constructors when there is a multilevel L4 CO3
inheritance. Give appropriate code to illustrate the process.

Q.No. Group 2-Question RBT* COs


1 What are Keywords and Identifiers?List the rules to write an L1 CO1
identifiers
2 What is object reference variable? Explain with suitable example. L1 CO2
3 Write short notes on L1 CO2
Final()
Nested and Innerclasses
4 With suitable example explain i)if else ii) for L2 CO1

5 Create an abstract class called Employee. Include the members: L3 CO3


Name, EmpID and an abstract method cal_sal(). Create two inherited
classes SoftwareEng(with the members basic and DA) and
HardwareEng(with members basic and TA). Implement run time
polymorphism (dynamicmethod dispatch) to display salary of
different employees by creating array of references to superclass.

2
RN SHETTY TRUST®
RNS INSTITUTE OF TECHNOLOGY
Autonomous Institution Affiliated to VTU, Recognized by GOK, Approved by AICTE
(NAAC ‘A+ Grade’ Accredited, NBA Accredited (UG - CSE, ECE, ISE, EIE and EEE)
Channasandra, Dr. Vishnuvardhan Road, Bengaluru - 560 098
Ph:(080)28611880,28611881 URL: www.rnsit.ac.in

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING

Q.No. Group 3-Question RBT* COs


1 With suitable example explain i)if ii) for L2 CO1

2 What are the different types of operators available in java? L1 CO1

3 Write a program to find sum of n natural numbers except those L2 CO1


which are divisible by3.
4 Write a java program to Reverse a Number in Java L3 CO1

5 Create an abstract class called Employee. Include the members: L3 CO3


Name, EmpID and an abstract method cal_sal(). Create two inherited
classes SoftwareEng(with the members basic and DA)and
HardwareEng(with members basic and TA). Implement runtime
polymorphism (dynamic method dispatch) to display salary of
different employees by creating array of references to superclass.

Q.No. Group 4-Question RBT* COs


1 Write a note on L1 CO1
a.Java class libraries b.Literals
2 Write a program to find sum of n natural numbers except those L2 CO1
which are divisible by3.
3 Write a program to display prime numbers from 1 to 100. L2 CO1

4 What is object reference variable? Explain with suitable example. L1


CO2
5 Create an abstract class called Employee. Include the members: L3 CO3
Name, EmpID and an abstract method cal_sal(). Create two inherited
classes SoftwareEng(with the members basic and DA) and
HardwareEng(with members basic and TA). Implement runtime
polymorphism (dynamic methoddispatch) to display salary of
different employees by creating Array of references to superclass.
Q.No. Group 5-Question RBT* COs
1 Explain array declaration and initialization in Java with suitable L2 CO1
Examples
2 Write a short note on Break and continue L1 CO1

3 Demonstrate the use of overloaded constructor to find the volume of L4 co2


a box
4 Create an abstract class called Employee. Include the members: L3 CO3
Name, EmpID and an abstract method cal_sal(). Create two inherited
classes SoftwareEng(with the members basic and DA) and
HardwareEng(with members basic and TA). Implement runtime
polymorphism(dynamic method dispatch) to display salary of
different employees by creating array of references to superclass.
5 Explain Recurssion with an example program L3 CO2

3
RN SHETTY TRUST®
RNS INSTITUTE OF TECHNOLOGY
Autonomous Institution Affiliated to VTU, Recognized by GOK, Approved by AICTE
(NAAC ‘A+ Grade’ Accredited, NBA Accredited (UG - CSE, ECE, ISE, EIE and EEE)
Channasandra, Dr. Vishnuvardhan Road, Bengaluru - 560 098
Ph:(080)28611880,28611881 URL: www.rnsit.ac.in

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING

Q.No. Group 6-Question RBT* COs


1 What are multi-dimensional arrays?Explain with examples L1 CO1

2 Explain the different types of iteration statements and selections L1 CO1


Statements with an example
3 Differentiate between call by value and call by reference using L2 CO2
suitable java program
4 Create an abstract class called Employee. Include the members: L3 CO3
Name, EmpID and an abstract method cal_sal(). Create two inherited
classes SoftwareEng(with the members basic and DA) and
HardwareEng(with members basic and TA). Implement runtime
polymorphism (dynamic method dispatch) to display salary of
different employees by creating array of references to superclass.
5 Explain Recurssion with an example program L3 CO2

Course Coordinator Module Coordinator Program Coordinator/ HOD

You might also like