This page contains the 2023 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
BCA (SEMESTER-VTH)
END SEMESTER EXAMINATION, DECEMBER-2023
(JAVA PROGRAMMING)
PAPER-II
Time: 3 Hours Passing Marks: 31.5 Maximum Marks: 70
Note:- Answer any five questions in which question 1 is
compulsory. Each question carries 14 marks.
- OBJECTIVE. (Each contains 1 mark)(i) In java, jar stands for(a) Java Archive Runner(b) Java Application Resource(c) Java Application Runner(d) None of the above(ii) Evaluate the following Java expression, if x = 3 , y = 5 and z = 10z= ++z+z++;(a) 22(b) 23(c) 20(d) 21(iii) Which of the following for loop declaration is not valid?(a) For (int i = 99 i >= 0; i / 9 )For (int i = 7 i <= 77 i +=7 )(c) For (int i = 20 i >= 2; - - i )(d) For (int i = 2 i <= 20 i =2^ * i)(iv) How to compile java code in command prompt?(a) Javac filename.java(b) Java filename.java(c) Javac filename(d) Java filename(v) Which method is called only once during the run time of your applet?(a) Stop()(b) Paint ()(c) Init()(d) Destroy()(vi) How many threads can be executed at a time?(a) Only one thread(b) Multiple threads(c) Only main (main () method) thread(d) Two threads(vii) Which of the following is not a keyword in Java?(a) Assert(b) Boolean(c) AbstractFinalize(viii) Java Source Code is compiled intoObj(b) Source Code(c) Byte Code(d). Exe(ix) Which of the following is required to view an applet?(a) JCM(b) JDM(JVM(d) Java Class(x) Applets are designed to be embedded within an(a) Java Script(b) CSS(c) HTML(d) SQL
- Explain the concept of inheritance in Java.
- How do you understand by class and object in Java ? Explain with suitable example.
- Discuss the various types of operators that is used in Java programming.
- Why Java is known as Platform Independent. Justify your answer.
- Explain how will you create a simple applet to display the "Hello Word" message in Java.
- What are the packages used in Java ? Illustrate with appropriate example.
- Discuss the various types of Loops that is utilized in Java programming.
- How to declare and initialize the two Dimensional Array in the Java.
- Give an account on Life Cycle of a Thread with suitable example.
- How to implement runnable Interfaces in Java?
- Write a program to implement a thread in Java.
***