2021 BCA 5th Semester Java Programming Question paper | PYQPress


This page contains the 2021 BCA 5th Semester Java Programming question paper of Purnea University. The question paper includes multiple choice questions, short answer questions and long theory questions based on the latest syllabus. This PYQ is helpful for BCA students preparing for their semester examinations.

PU5-BCA-02
B.C.A. (VTH-SEMESTER)
END SEMESTER EXAMINATION, DECEMBER 2021
PAPER-II
(JAVA PROGRAMMING)
Time: 3 Hours                 Pass Marks: 31.5                Maximum marks: 70

Note: Candidates are required to give their answer in their own words as far as practicable. All questions carry equal marks. Answer any five questions in which Question No. 1 is compulsory.
  1. Choose the correct answer from the following:
    (i) What is used to compile, debug and execute a Java program
         a. JVM
         b. JDK
         c. JRE
         d. JIT
    (ii) Extension of Java code file is
         a. .txt
         b. .js
         c. .class
         d. .Java
    (iii) Which of these is used to define interface in Java
         a. intf
         b. Intf
         c. interface
         d. Interface
    (iv) Which of the following is not an access specifier in Java
         a. Private
         b. Protected
         c. Void
         d. Public
    (v) Which of the following option leads to the portability and security of Java?
         a. Bytecode is executed by JVM
         b. The applet makes the Java code secure and portable
         c. Use of exception handling
         d. Dynamic binding between objects
    (vi) Which one is a template for creating different objects?
         a. An Array
         b. A class
         c. Interface
         d. Method
    (vii) Multiline comment is created using
         a. //
         b. /**/
         c. <!-- -->
         d. All of these
    (viii) What is the entry point of a program in Java?
         a. main() method
         b. The first line of code
         c. Last line of code
         d. main class
    (ix) Can the main() method be overloaded in Java?
         a. Yes
         b. No
    (x) Which keyword in java is used for exception handling?
         a. exep
         b. excepHand
         c. throw
         d. All of these
    (xi) Which class in Java is used to take input from the user?
         a. Scanner
         b. Input
         c. Applier
         d. None of these
    (xii). Method used to take a string as input in Java?
         a. next()
         b. nextLine()
         c. Both A. and B.
         d. None of these
    (xiii) Which of the following is the correct syntax to create a variable in Java?
         a. var name;
         b. int name;
         c. var name int;
         d. All of these
    (xiv) What is type casting in Java?
         a. It is converting type of a variable from one type to another
         b. Casting variable to the class
         c. Creating a new variable
         d. All of these

  2. Define Java. Discuss the features of Java.

  3. Describe at least 10 keywords used in Java with their functions.

  4. Discuss various data types used in Java programming with examples.

  5. Define and discuss arithmetic operators and relational operators used in Java.

  6. What is a class? Write a program in Java to explain the concept of class and objects.

  7. Define Inheritance. Explain different types of Inheritance with examples.

  8. Discuss various looping statements in Java with the help of examples.

  9. What is Local and remote Applets? Explain Applet life cycle.

  10. Write short notes on any two of the following:
    a. Constructor
    b. Method overloading and overriding
    c. Abstract Methods and Classes
    d. Threads
    e. Visibility control.
***

Quick Links