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

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

Java (5th) May2018

This document is an examination paper for BCA students in Programming in Java, consisting of two sections: Section A with ten compulsory questions worth two marks each, and Section B with six questions worth ten marks each, from which students must attempt four. The questions cover various Java programming concepts, including object-oriented programming, looping statements, applets, graphics methods, and event handling. The exam is scheduled for 3 hours and has a maximum score of 60 marks.

Uploaded by

devgansrishti78
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)
9 views2 pages

Java (5th) May2018

This document is an examination paper for BCA students in Programming in Java, consisting of two sections: Section A with ten compulsory questions worth two marks each, and Section B with six questions worth ten marks each, from which students must attempt four. The questions cover various Java programming concepts, including object-oriented programming, looping statements, applets, graphics methods, and event handling. The exam is scheduled for 3 hours and has a maximum score of 60 marks.

Uploaded by

devgansrishti78
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

Roll No. Total No.

of Pages: 02
Total No. of Questions: 07

BCA (2011 & Onward) (Sem. – 5)


PROGRAMMING IN JAVA
M Code: 70629
Subject Code: BSBC-502
Paper ID: [B1155]
Time: 3 Hrs. Max. Marks: 60

INSTRUCTIONS TO CANDIDATES:
1. SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
2. SECTION-B contains SIX questions carrying TEN marks each and students have to
attempt any FOUR questions.

SECTION A

1. Briefly answer the following:


o m
a) Differentiate between Java and C++.
.r c m
p e
b) What do you mean by constructor overloading?

o
.r c
c) What are Final variables and methods?

d) What are Zagged arrays?

p a
r
e) What are Vectors in Java? What is its purpose?

b p e
a
f) Explain the term polymorphism?

rp
g) What is an abstract class?

h) Why Java is called platform independent?

i) What is Java virtual machine? b


j) What is a Package? What is the use of Packages in Java?

M-70629 Page 1 of 2
SECTION B

2. What is object-oriented programming? Discuss the basic concepts of object-oriented


programming.
3. What are the various looping statements available in Java? Discuss any one with suitable
example.
4. Create a Date class in Java having day, month and year data members. Create constructors
for initializing data members, functions for validating date, getting values of data members
and displaying the date.
5. Define an Applet. How is an Applet different from an application? Describe the lifecycle of
an applet.
6. Explain with examples, the various graphics methods supported by AWT. How color of an
object can be changed?

o m
7. Describe the Delegation Event Model. What are the Event Sources and Event Listeners?
Explain with an example Java code, how various mouse events are handled?

.r c m
p e o
p a .r c
b r p e
a
b rp

M-70629 Page 2 of 2

You might also like