Date of exam: - Date of exam: -
MID TERM EXAMINATION MID TERM EXAMINATION
BSBC502 (programing in java) BSBC502 (programing in java)
BCA 5th semester BCA 5th semester
Uni. Roll No………………….. Uni. Roll No…………………..
Max Marks: 40 Max Marks: 40
Time Allowed: 2hrs Time Allowed: 2hrs
NOTE: 1. The student should not write anything on the question NOTE: 1. The student should not write anything on the question
paper. paper.
2. Attempt all the questions from section A & Any 2 2. Attempt all the questions from section A & Any 2 questions
questions from section B. from section B.
SECTION- A
SECTION- A (10 * 2)
(10 * 2) Q1
Q1
1. Differentiate between Java and C++.? 1. Differentiate between Java and C++?
2. Explain the term polymorphism? 2. Explain the term polymorphism?
3. What is Java virtual machine? 3. What is Java virtual machine?
4. Explain JDK? 4. Explain JDK?
5. Write the structure of a typical Java program? 5. Write the structure of a typical Java program?
6. What is the difference between a class and an 6. What is the difference between a class and an object??
object?? 7. What is Inheritance? What are the different forms?
7. What is Inheritance? What are the different forms of Inheritance in Java?
inheritance in Java? 8. What is CLASSPATH?
8. What is CLASSPATH? 9. How do you define a class in Java?
10. Why java is called platform independent language?
9. How do you define a class in Java?
10. Why java is called platform independent language? SECTION-B (2*10)
SECTION- B ( 2*10) Q2 What is object-oriented programming? Discuss the basic
concepts of object-oriented programming.
Q2 What is object-oriented programming? Discuss the basic .
concepts of object-oriented programming. Q3 What are the various operators available in Java?
. Discuss each with an example?
Q3 What are the various operators available in Java?
Discuss each with an example? Q4. Write a program using operator and math function?
Q4. Write a program using operator and math function?