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

Java - 2022

This document is an examination paper for a B.C.A. course focusing on Programming with Java, conducted in April 2022. It includes various sections with objective questions, brief answer questions, and programming tasks related to Java concepts such as inheritance, exception handling, applets, and event handling. The total marks for the examination are 70, and it is structured to assess students' understanding of Java programming fundamentals.

Uploaded by

Bipin Kadkotra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Java - 2022

This document is an examination paper for a B.C.A. course focusing on Programming with Java, conducted in April 2022. It includes various sections with objective questions, brief answer questions, and programming tasks related to Java concepts such as inheritance, exception handling, applets, and event handling. The total marks for the examination are 70, and it is structured to assess students' understanding of Java programming fundamentals.

Uploaded by

Bipin Kadkotra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

11111I1111111111111111111111111111111111111111111111111111111111111111111111111111111

·Olr-O:;3-1:Jl40~1"

DAF-003-2034001 Seat No. __


B. C. A. (Sem. IV) (CBCS) (W.E.F. 2019) Examination
April - 2022
CS-19 : Programming With Java

Faculty Code 003


Subject Code 2034001

1
Time : 2 -2 Hours] . [Tlital Marks : 70

(A) Attempt the following objective Question : 4


(l) Full form of .IDK.
(2) Full form of IDE.
(3) Full form of JRE.
(4) FuJI form of JVM.
(B) Answer in brief: (any One) 2
(1) What isWhitespace?
(2) What is Literal?
(C) Answer in brief: (any One) 3
(I) Write a program in Java to generate first n prune
numbers.
(2) What is Command Line Argument? Explain with
example.
(D) Answer in brief: (any One) 5
(1) Write a program of Jagged Array and explain it.
(2) Explain the Java Loop Statement and Write a program in
Java that calculate sum of I to lOusing do while loop.

2 (A) Attempt the following objective Question : 4


(1) Which keyword must be used to inherit a class?
(2) A class member declared protected becomes a member
of subclass of which type?
(3) The class that is being inherited or subclasses is called

(4) Java language supports __ ~..... type of inheritance.

DAF -003-2034001 ] 1 [ Contd ...


(B) Answer in brief : (any One) 2
(1) Explain any four string function in java.
(2) Why Wrapper Class is needed? Explain with Example.
(C) Answer in brief: (any One) 3
( 1) Write an application that illustrates method overriding
in the different packages.
(2) Explain Concept of User Defined Package in brief.
(D) Answer in brief: (any One) 5
(1) Write a Java program to demonstrate multiple
inheritances using interface.
(2) Write a program to calculate area of circle using
Constructor.

3 (A) Attempt the following objective Questions : 4


(I) Which of the following handles the exception when a
catch is not used?
(2) When does Exceptions in Java arises in code sequence?
(3) Which keywords is used to manually throw an exception?
(4) Which exceptions are thrown by the JVM?
(B) Answer in brief : (any One) 2
(l) What is Thread Life cycle? Explain it.
(2) What is Dcamon Thread?
(C) Answer in brief: (any One) 3
(1) Explain Synchronization in Thread.
/.

(2) Explain Try ... Catch Statement with suitable example.


(D) Answer in brief: (any One) 5
( J ) Write a program that executes two threads. One thread
will print the even numbers and the another thread will
print odd nvmbers from 1 to 50.
(2) Write a program in Java to create, write, modify. read
operations on a Text file.

4 (A) Attempt the following objective Questions: 4


(1) Which functions is called to display the output of an
applet?
(2) Which methods can be used to output a string in an
applet?
(3) Default layout manager for subclasses of "Window' is

(4) Which is the default Layout Manager for an Applet?


DAF-003-2034001 ] 2·,f [ Contd ...
(13) Answer in brief: (any One) 2
( 1) What is Graphics class?
(2) What is NO LAYOUT Manager?
(C) Answer in brief: (any One) 3
(l) Explain Applet Life Cycle in detail.
(2) Explain types of Layout Manager in detail.
(D) Answer in brief: (any One) 5
(1) Write a Java program compute factorial value using
Applet.
(2) Explain GridBagLayout with GridI3agConstraints In
detail.

5 (A) Attempt the following objective Question 4


(1 ) The SIze of a frame on the screen IS measured III

(2) Which methods can be used to know which key is


pressed?
(3) Which package provides many event classes and Listener
interfaces for event handling?
(4) By which method you can set or change the text in
a Label?
(B) Answer in brief: (any One) 2
(1) Difference between lFrame. lPanel.
(2) Difference between A WT and Swing Components.
(C) Answer in brief: (any One) 3
(1) Explain Event Delegation Model in detail.
(2) What is Adapter Classes? Explain Adapter Classes in
detail.
(0) Answer in brief: (any One) 5
(1) Write a calculator program using Java swing.
(2) Write a Program to demonstrate the menu using swing.

DAF-003-2034001 ] 3 [ 3410/92-65 ]

You might also like