Java 2
Java 2
Instructions:
1. Allquestions are compulsory unless and otherwise stated.
2. Bold figres to the right ofevery question are the maximum marks for
that question.
3. Candidates are advised to attempt questions in order.
zero.
4. Ansvers written illegibly are likely to be marked
S. Use ofscientific calculators, Log tables, Mollier Charts
is allowed.
6. Draw neat and labeled diagramns wherever necessary.
(5)
Q.1. Fill in the blanks.
together
1. the technique of binding both data and functions
is
a) Class b) Array
d) ) None
c) Encapsulation
The full form of IDE is
2
b)integrateddevelopment environment
a) integrated deployment environment environment
d) imported development
c) ) integrated data entity
into machine code
3 JVM is used to convert
b) arrayList
a) text d) instructions
c) Byte Code using the
are found and fixed
4. The java program's bugs b) JRE
a) JVM d) JDK
c) Java Debugger to constructor of the parent class
5. In Java, keyword is used for call the
b) byte
a) super d) abstract
c) enum
(5)
Q.2. State True/False.
string functions.
1. java. Lang packages contain
Java
2 Interfaces can be instantiated in program is called a Token
smallest meaningful element of a Java
3. The
& output operations in Java.
4. Streams is used to perform all input objects.
to behave differently for different
5. Polymorphism allows a function
(10)
any 5)
Q.3. Answer the following. (Solve
independent language?
1. Why is Java a platform
Java.
List types of inheritance in
2. Define Inheritance.
in java.
3. Write a note on Scanner class
arithmetic operators in Java.
4. Explain different
use of this keyword in java?
S. What is the 1/2
6. List any 4
features of Java.
440-18/BCA-440-20/BCA-CS-440-20) ALDII
(BCA-
Java/ JavaProgramming
(Solve any 6)
Q. 4. Answer the following in detail. (30)
Write any two
access specifiers with suitable example
try, catch & finally block
1
22
440-18/BCA-440-2O/BCA-CS-440-20) ALDIII
Java/ Java Programming (BCA-
CB
60:40
TILAK MAHARASHTRA
VIDYAPEETH, PUNE
BACHELOR OF COMPUTER
SPECIALIZATION IN APPLICATIONS (B.C.A.)
CYBER SECURITY (CS)
EXAMINATION: DECEMBER -
2022
-
SEMESTER IV
Sub: Java / Java Programming
(BCA- 440-18/BCA-440-20/BCA-CS-440-20)
Date :21/12/2022
Total Marks : 0 Time: 2.00 pm to 4.30 pm
Instructions:
1. All questions are
compulsory unless and otherwise
2. Bold stated.
jigures to the right of every question are the maximum
3.
Candidates are advised to attempt marks for that questiOM.
4. Answers
questions in order.
written illegibly are likely to be marked zero.
5. Use
ofscientific calculators, Log tables, Mollier
6. Draw neat Charts allowed.
and labeled diagrams wherever necessary.
Q.2. (5)
State True/False.
1.
Write in Detail about class in Java.
Write in detail about Jump statement.
2.
What is multithreaded programming in
3. detail.
4.
What is Applet programming? Explain in detail.
5.
What is AWT explain in detail?
6.
What is exception handling explain in detail?
7.
What is event handling explain in detail?
Instructions:
1. All questions are compulsory unless and otherwise stated.
2. Bold figures to the right of every question are the maximum marks for that question.
3. Candidates are advised to attempt questions in order.
4. Answers written illegibly are likely to be marked zero.
5. Use ofscientificcalculators, L og tables, Mollier Charts is allowed.
6. Draw neat and labelled diagranns wherever necessary.
(10)
TILAK MAHARASHTRA
BACHELOR OF COMPUTER VIDYAPEETH, PNE CS/CB
EXAMINATION: APPLICATIONS (B.C.A.)
DECEMBER
FOURTH SEMESTER -2019
Sub: Java (BCA –
10/12/2019 431/441)
Date : Total Marks : 60
Instructions: Time: 02.00 pm to 4.30 pm
1Al auestions are compulsory tunless
2. Boldfigures to the right of and
Candidates are every questionotherwise stated.
are the maximunm
advised to attenpt questions marks for that question.
4.
Answvers written illegibly are in order.
TIse of scientific likelyto be marked zero.
calculators, Log tables,
Draw neat and Mollier Charts is
labelled diagrams allowed.
wherever necessary.
0.1., Fll in the blanks.
A
iava file with extension (5)
a) HTML tag
.class' contains.
c) java source code b) java bytecode
which of the following is d) None of the above
valid specifier with the
a) public main) method.
c) protected b) private
d) default
what is the return type
3. of a method that does not return any
a) int value?
c) void b) float
d) double
A
Which type of inheritance in Java
programming is not supported ?
a) multiple inheritance using classes
b) multiple inheritance using
interfaces
c) multilevel inheritance
d) single inheritance
5. If there is a try block, then
a) there should be catch block b) there may not be any catch block
c) there should be a finally block d) there may be multiple catch blocks
Q.1:
Fill in the blanks.
The basic language
functions in java are (5)
stored in a package
a) java.util called
c) java.applet b) java.awt
2. To implement an interface include d) java.lang
the
a) extends clause in the class definition.
c) implements b) import
3. Java implements d) export
strings as objects of type
a) String
c) double b) int
4. supports a buffered input stream. d) byte
a) StreamReader
b) BufferedReader
c) StreamWriter
5. d) Bufferedwriter
A class that is inherited is
called the
a) Super class
b) sub class
c) inner class
d) None of above
Q.2. State True/False.
1. We make use (5)
of the keyword extends to inherit a class.
2. The body
of a loop can be empty in java.
3. Constructors
always have a return type.
4. Classes which implement interfaces cannot
have additional member of their own.
J. A string is less than another string, if it comes before the other in dictionary order.
22
6.
Draw
blanks.
Fill in the
applet is a dynamic program which is active onthe
Q.1. (5)
1. An Computer.
a) Server b) Client
c) Bytecode d) JVM
simultaneously.
2. A class can implements more than one interface
3. System.err is object of type InputStream.
4. Applets contain the main() method.
occurs.
to an integer, truncation
5 When floating point value is assigned
(10)
Q.3. Answer the following. (Solve any 5)
1. What is mean by Dynamic method dispatch?
2 What is an Exception?
3 What is the use of the wait() method?
literals supported by java. 1/2
T
List the various types of
any 6)
Q.4. Answer the following in detail. (Solve (30)
cxample.
What is inner class? Explain it with
2. Explain Object oricnted programming. Describe 1n brief the 0OPs princinlee
3. Explain try, catch and finally block along with
example.
4. Explain layouts from AWT.
Give the difference in between Call by value and Call by reference
6. Write short on
a)lcons in Swing
b) Labels in Swing
7. What is an Array in Java? Describe how arrays can be initialized in java.
3. Event listeners
package. any interface are by fault.
methods defined in overridden
4. Al the
that a method cannot be
-- keyword indicates
s The
ajava source file
should be
called. as -
6. The
extension of
methods dynamically at run time this is
calls to the
7. Java resolves the
(5)
(Solve any 5)
B) State True/False. same signature
methods in the class have to have
1. All the overloaded corresponding finally block only
must have
2. Every try block values in Java
operator cannot be used with integer
3. The % one object acquires the properties of
4. Inheritance is
the process by which
another object. declaration
an initialization value at the time of
every value gets
5. In Java,
depending on its data type. execution of the
method defined in them for
must have main()
6. Applets is Java
program. an exception explicitly.
Java program to throw
7.
The throw keyword is used in (10)
any 5)
C) Answer the following. (Solve
Explain how it provides portability in Java?
code?
I. What is byte
2. What is an abstract class
? Explain with example
I/2
CA-421) AE /I
(Solve any 6)
following in detail.constructors in Java. (30)
Answer the
Q.2. Explain various
types of
1. in Java.
Explain OOP principles catch blocks in exception handling in Java.
2. use of multiple try
Explain the inheritance in Java.
3. types of
various clase
4. Explain String. Explain methods of the
class
5. Explain the an example.
are inner classes ? Give
6. What event listener? Give an example each.
What are
event source and
event,
7.
detail.
Answer the following in (30)
Q.3.
Explain different data
types available in Java. What is automatic type
1.
conversion in Java ?
2 Write a program to deinonstrate
use of different types of constructors in Java
a perfect number or not
Write a program to check if the given number is
3
22
Java (BCA-421)AE
/III
CS/CB
VIDYAPEETH. PUNE
TILAK MAHARASHTRA (B.C.A.)
BACHELOR OF COMPUTER APPLICATIONS
EXAMINATION: APRIL/MAY 2019
FOURTH SEMESTER
Sub: JAVA(BCA-436/447)
Total Marks
:
60 Time: 10.00 am to 5.00 pm
:25/04/2019
Date
ofmarks is as follows.
Instruction: Bifurcation CS/CB
Total Marks 60
Programme 25
Programme 2 25
Viva 10
an employee
1. Writeaprogram to accept
following information about
-Cut-
no.s and remove the occurrence of the given no from
1. Write a program to accept array of 10
the array.
-Cut-
a
1.Write a program to create an applet to accept string in textbox and change all
a the letters in d
--Cut
.
1. Writea program to create an applet When we click inside an applet at 2 different places the
program draws a line from point(xl,yl) to point (x2,y2).
2. Write a program to print the sum of all the odd no.s between 1-100.
JAVA (BCA-436/447)
1/2
VIDYAPEETH, PUNE.
TILAKMAHARASHTRA
COMMPUTERAPPLICATIONS (B.C.A.)
BACHELOR OF DECEMBER 2023
EXAMINATION:
SEMESTER Programminot
BCA-446-18/BCA-447] Lab- Java
FORTH
BCA-CS-446-20/ Lab-Java
Sub:- (BCA-446-20/ Time: 10:00 am to 5:00
pm
: 30/60
Total Marks
Date : 13/12/2023
60Marks
marks is ns follows
Instruction: Bifurcation of Marks 30Marks batch2015 to 2019)
Total (or
20
. 15
Programme 20
.
Progranme 20
Viva
string.
alternate character from a given
program to display zero then throw
)Write a java
from a user, if it is
program to accept a number then
2)Write a java Zero'". If it is non-numeric
Number is is
userdefined Exception otherwise check whether it
is Invalid"
generate an erorNumber
palindrome or not.
Cone
shape. Drive three classes sphere.
abstract class
1) Write a Java program Create
it.
and cylinder from volume of all (use method overriding)
Calculate Area and
pattern
program in Java to display following
2) Write a
55555
4444
333
22
1
--CUT
Fahrenheit
convert the temperature in Centigrade to
1) Writea Java program to
method.
create an interface Shape with the getArea)
program to Shape
Write a Java
Circle, and Triangle that implement the
Rectangle,
2) Create three classes method for each of the three
classes.
interface. Implement the
getArea)
-CUT-
a prime nunber or not.
program to check whether the given integer is
Writea Java
user
user,
it is greater than 1000 then throw
program to accept a number from If number.
) Write a java otherwise display the factors of that
out of Range"
defined exception "Number is
(Use static keyword)
---CUT
a JPanel.
1) Write a Java Swing program to create a single ball bouncing Inside
Boundng Ball
-CUT
Write a Java program to simulate traffic signal using multithreading.
22
A-446-20/ BCA-CS-446-20/ BCA-446-18/BCA-447]Lab- Java Programming