Thanks to visit codestin.com
Credit goes to www.scribd.com

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

Semester End Examinations - May 2023: USN 1 M S

The document outlines the examination structure for the Basics of JAVA Programming course (PLC143) for various engineering programs at an autonomous institute. It includes instructions for candidates and a breakdown of questions across five units, covering topics such as data types, operators, constructors, inheritance, and exception handling in Java. The exam is scheduled for May 2023, with a maximum score of 100 marks and a duration of 3 hours.

Uploaded by

sujatahegde884
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)
11 views2 pages

Semester End Examinations - May 2023: USN 1 M S

The document outlines the examination structure for the Basics of JAVA Programming course (PLC143) for various engineering programs at an autonomous institute. It includes instructions for candidates and a breakdown of questions across five units, covering topics such as data types, operators, constructors, inheritance, and exception handling in Java. The exam is scheduled for May 2023, with a maximum score of 100 marks and a duration of 3 hours.

Uploaded by

sujatahegde884
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

PLC143

USN 1 M S
(Autonomous Institute, Affiliated to VTU)
(Approved by AICTE, New Delhi & Govt. of Karnataka)
Accredited by NBA & NAAC with ‘A+’ Grade

SEMESTER END EXAMINATIONS – MAY 2023

Created by trial version of DocuFreezer


B.E :- Common to CSE / ISE / CSE(CY) /
Program : Semester : I
AI & DS / BT / AI & ML / CSE (AI&ML) / CV
Course Name : Basics of JAVA Programming Max. Marks : 100
Course Code : PLC143 Duration : 3 Hrs

Instructions to the Candidates:


 Answer one full question from each unit.

UNIT - I
1. a) List the different types of data types and give an example for each data CO1 (10)
type.
b) Develop a Java program to find the largest and smallest element in an CO1 (10)
array.

2. a) Develop a java program to demonstrate the arithmetic operators and CO1 (10)
relation operators.
b) Define an Array and strings. Write syntax to create and initialize one and CO1 (10)
two dimensional arrays, give examples for each.

UNIT - II
3. a) List bitwise & logical operators. Give one example for each. CO2 (10)
b) Write a Java program to find sum and average of given elements of an CO2 (10)
array, int arr={3,5,6,-3,7} using for each loop.

4. a) Develop a java code to find the Fibonacci series, using the while & for CO2 (10)
loop.
b) Develop a java code to find the largest of 3 numbers using nested if and CO2 (10)
ternary operator.

UNIT - III
5. a) What is constructor? Can you overload constructors, write complete java CO3 (08)
program to demonstrate the same.
b) Define class and object. Write a Java program to demonstrate the CO3 (06)
creation of class and object.
c) Discuss how to hide instance variables of a class. CO3 (06)

6. a) Explain and write a java program to demonstrate method overloading. CO3 (08)
b) Write a java program to add two complex numbers. CO3 (06)
c) Write a note on static and final, Give example for each. CO3 (06)

UNIT- IV
7. a) What is inheritance and explain the different types of inheritance with an CO4 (10)
example.
b) Explain the use of super keyword with an example in java. CO4 (06)
c) Write a Java program to demonstrate the use of final keyword. CO4 (04)

Page 1 of 2
PLC143
8. a) Define and write a java code for method overriding. CO4 (10)
b) What is an abstract class? Write a Java program to illustrate an use of CO4 (10)
abstract class.

Created by trial version of DocuFreezer


UNIT - V
9. a) What are packages and explain the different access specifiers supported CO5 (10)
in java with respect to package with an example.
b) Can Java support multiple inheritance? Justify with an example. CO5 (10)

10. a) Define an interface called polygon with a method called area. Implement CO5 (08)
this interface to create different classes like square, rectangle and print
the area of square and rectangle.
b) Explain and write a syntax for try and catch to handle multiple CO5 (06)
exceptions.
c) Discuss throw and throws with an example. CO5 (06)

********************************

Page 2 of 2

You might also like