2022 BCA 5th Semester Java Programming Question Paper | PYQPress


This page contains the 2022 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, DEC-2022
PAPER-II
JAVA PROGRAMMING
Time: 3 Hours           Pass Marks: 31.5          Maximum Marks: 70

Note: Answer any five questions in which question 1 is compulsory. Each question carries 14 marks.
  1. OBJECTIVE. (Each contains 1 mark)
    1. Which of these components are used in a Java pro-gram for compilation, debugging, and execution?
        a. JDK
        b. JVM
        c. JRE
        d. JIT
    2. Which of these literals can be contained in a float data type variable?
        a. 3.4e+050
        b. 1.7e + 308
        c. -3.4e+038
        d. - 1.7e + 308
    3. What is BigDecimal.ONE?
        a. it is a custom-defined statement
        b. it is a wrong statement
        c. It is a static variable that has a value of 1 on a scale of 0.
        d. It is a static variable that has a value of I on a scale of 10
    4. When an expression consists of int, double. long, float. then the entire expression will get promoted into a data type that is:
        a. float
        b. double
        c. int
        d. long
    5. Which of the following operators can operate on a Boolean variable?
        a. &&
        b. =
        c. ?:
        d. +=
    6. What will be the output of the following Java program?
              class Output
             {
                   public static void main(String args[])
                  {
                         int p = 1
                         int q = 2
                         int r = 3
                         p |=4
                         q >>=1;
                         p ^ ^ =r;
                         System.out.println ( mathfrak q +"n + mathfrak q +"""+r);
                    }
              }
        a. 336
        b. 234
        c. 223
        d. 316
    7. What is it called when the child object also gets killed when the parent object is killed in the program?
        a. Encapsulation
        b. Aggregation
        c. Association
        d. Composition
    8. Out of these methods of the String class, which one can be used for testing the strings for equality?
        a. isequals()
        b. equals()
        c. isequal()
        d. equal()
    9. Out of these, which one is the correct way of calling a constructor that has no parameters of the superclass A by the subclass B?
        a. superclass.(); 
        b. super(void);
        c. super (); 
        d. super.A ();
    10. Out of these methods of the Object class, which one can clone an object?
        a. Object clone ()
        b. Object copy ()
        c. clone ()
        d. copy ()

  2. Define C++. Discuss the features of C ++.

  3. Write a note on JAVA virtual machine.

  4. Differentiate between One Dimensional and Two Dimensional Arrays.

  5. Write a note on Assessing Interface Variables.

  6. Define Synchronization. Write a note on thread Exceptions.

  7. Give an account on Applets Life Cycle.

  8. Differentiate between Extending Interface and Implementing Interface.

  9. Explain Applets to HTML file.

  10. Explain Creating threads.
***

Quick Links