This document contains a midterm exam for a Java programming course. It has two sections - Section A contains 10 short answer questions worth 2 marks each. Section B contains 2 long answer questions worth 10 marks each. Students must answer all questions in Section A and choose any two from Section B. The exam tests students' knowledge of key Java concepts like the difference between Java and C++, polymorphism, the Java virtual machine, classes vs objects, inheritance, and operators.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
100 views
Java MST
This document contains a midterm exam for a Java programming course. It has two sections - Section A contains 10 short answer questions worth 2 marks each. Section B contains 2 long answer questions worth 10 marks each. Students must answer all questions in Section A and choose any two from Section B. The exam tests students' knowledge of key Java concepts like the difference between Java and C++, polymorphism, the Java virtual machine, classes vs objects, inheritance, and operators.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
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?