Total Pages : 3 MC(A)/UG/S-V/2018
End Semester Examination of Semester-V, 2018
Subject : BCA
Paper : BCA-502
Full Marks : 70
Time : 3 Hrs
The figures in the margin indicate the marks
corresponding to the question.
Candidates are requested to give their answers
in their own word as far as practicable.
Illustrate the answers wherever necessary.
Group_A
1. Answer any five out of eight questions : 2x5=10
i) Describe each word from the following statement:
Public static void main (String args[ ])
i) Why Java is platform independent?
iii) What is bytecode?
iv) Differentiate application programs and applet.
v) What is the difference between JDK and JVM?
vi) Why finalizeQ) method is used in Java?
vil) What are the difference between abstract class and
interface?
vill) Can we override private method in Java? Explain with
example.(2)
Group B
Answer any five out of seven questions : 4x5=20
2. What is meant by constructor? Write a simple example code
for construction.
3. What is the purpose of “super” keyword?
4. Write a JAVA program to calculate the area of different shapes
using method overloading.
5. What is a wrapper class? Give example.
6. What are local and remote applet?
7. Difference between method overloading and method overriding.
8. What is multithreading? What are the four steps for creating
a thread by extending the thread class?
Group C ,
Answer any four out of six questions: 10x4=40
9. i) How JAVA handles an exception? Explain with an
example.
fi) Differentiate between throw and throws. 24543
10. What is a package? How packages are created in JAVA?
Give an example to import user created package in another
program. 24246
11. Define interface. What are the similarities between interface
and class? Write a program to implement interface.
2+2+612.
13.
14,
)
i)
i)
ii)
i)
il)
(3)
Describe the life cycle of a thread.
Write a program of thread using yield(), stop() and sleep()
methods. 6+4
Write a java applet program to read two numbers and
show the sum of the two numbers in an applet screen.
Write down the output of the following code segment
System.out printin(“7 + 5 =” + 7 +5).
How an array is declared in JAVA?
WAP to perform bubble sort on a set of n elements.
248