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

Java (5th) Dec2018

This document is an examination paper for the subject 'Programming in Java' for BCA students, detailing the structure and instructions for the exam. It consists of two sections: Section A, which is compulsory with ten brief-answer questions, and Section B, which contains six questions where students must answer four. The paper includes questions on Java programming concepts, features, operators, interfaces, exceptions, applets, and graphics methods.

Uploaded by

navpreetkaur5625
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) Dec2018

This document is an examination paper for the subject 'Programming in Java' for BCA students, detailing the structure and instructions for the exam. It consists of two sections: Section A, which is compulsory with ten brief-answer questions, and Section B, which contains six questions where students must answer four. The paper includes questions on Java programming concepts, features, operators, interfaces, exceptions, applets, and graphics methods.

Uploaded by

navpreetkaur5625
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

22967 22967 22967 22967 22967 22967 22967 22967 22967

22967 Roll No.


22967 22967 22967 22967 22967 Total22967
No. of Pages
22967 : 02 22967

Total No. of Questions : 07


BCA (2013 & Onward) (Sem.–5)
22967 22967 22967 22967 22967 22967 22967 22967 22967
PROGRAMMING IN JAVA
Subject Code : BSBC-502
Paper ID : [B1155]
22967 22967 22967 22967 22967 22967 22967 22967 22967
Time : 3 Hrs. Max. Marks : 60

INSTRUCTION TO CANDIDATES :
22967 22967 22967 22967 22967 22967 22967 22967 22967
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2. SECTION-B contains SIX questions carrying T EN marks each and a student has
to attempt any FOUR questions.
22967 22967 22967 22967 22967 22967 22967 22967 22967

SECTION-A
22967 22967 22967
Q1. Answer briefly :
22967 22967

o m 22967 22967 22967 22967

22967 22967 22967 22967


.r c
a) Write the structure of a typical Java program.
22967 22967 22967 22967 22967

e
b) How command line arguments are passed in a Java program?
p m
pa o
.r c
22967 22967 c) What 22967
is the difference between a class
22967 22967 and an object?
22967 22967 22967 22967

22967 22967 22967


br
d) How arrays are declared in a Java program?
22967
e) What are parameterised constructors?
22967

p e
22967 22967 22967 22967

p a
22967 22967
f) What are overriding methods?
22967 22967 22967

g) When do we use protected access specifier? br 22967 22967 22967 22967

h) What is an Applet? How is an applet different from an application?


22967 22967 22967 22967 22967 22967 22967 22967 22967

i) What is Inheritance? What are the different forms of inheritance in Java?

22967 22967 j) What 22967


is CLASSPATH?
22967 22967 22967 22967 22967 22967

22967 22967 22967 22967 22967 22967 22967 22967 22967

1 | M-70629 (S3)-401

22967 22967 22967 22967 22967 22967 22967 22967 22967

22967 22967 22967 22967 22967 22967 22967 22967 22967


22967 22967 22967 22967 22967 22967 22967 22967 22967

SECTION-B
22967 22967 22967 22967 22967 22967 22967 22967 22967

Q2. Discuss the salient features of Java programming language. How Java is different from C
and C++?
22967 22967 22967 22967 22967 22967 22967 22967 22967
Q3. What are the various operators available in Java? Discuss each with an example.

Q4. a) What is Interface in Java? How is interface implemented?


22967 22967 22967 22967 22967 22967 22967 22967 22967

b) What is an abstract class? What is its use in Java?

22967 Q5. What is 22967


22967 an Exception?22967
What are the types of exceptions?
22967 22967 Discuss
22967 in detail 22967
exception 22967
handling in Java.

Q6. Create an applet that receives three numeric values as input from the user and then displays
22967 22967 22967 22967 22967 22967 22967 22967 22967
the largest of these on the screen. Write a sample HTML page to include this applet.

Q7. Explain with examples the various methods supported by the Graphics class.
22967 22967 22967 22967 22967

o m 22967 22967 22967 22967

22967 22967 22967 22967


.r c
22967 22967 22967 22967 22967

p e m
pa o
.r c
22967 22967 22967 22967 22967 22967 22967 22967 22967

22967 22967 22967


br 22967 22967

p
22967 e 22967 22967 22967

p a
22967 22967 22967 22967 22967

br 22967 22967 22967 22967

22967 22967 22967 22967 22967 22967 22967 22967 22967

22967 22967 22967 22967 22967 22967 22967 22967 22967

22967 22967 22967 22967 22967 22967 22967 22967 22967

2 | M-70629 (S3)-401

22967 22967 22967 22967 22967 22967 22967 22967 22967

22967 22967 22967 22967 22967 22967 22967 22967 22967

You might also like