Roll No. Total No. of Pages : 02
Total No. of Questions : 09
--- Content provided by FirstRanker.com ---
BMCI (2014 & Onwards) (Sem.-4)PROGRAMMING IN JAVA
Subject Code : BSBC-502
M.Code : 72805
Time : 3 Hrs. Max. Marks : 60
--- Content provided by FirstRanker.com ---
INSTRUCTIONS TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains FIVE questions carrying FIVE marks each and students have to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions.
SECTION-A
--- Content provided by FirstRanker.com ---
- Answer briefly :
- Differentiate between Java and C++.
- What do you mean by constructor overloading?
- What are Final variables and methods?
- What are Jagged arrays?
- What are Vectors in Java? What is its purpose?
- Explain the term polymorphism.
- What is an abstract class?
- Why Java is called platform independent?
- What is Java virtual machine?
- What is the use of Graphics class in Java?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
- Discuss the structure of a typical Java program with an example.
- What is an Interface in Java? How is multiple inheritances using interfaces implemented in Java?
- What is an exception? How is it different from an error?
- Write a recursive program in Java to calculate the factorial of a given number.
- Explain Action Listener in Java with an example.
--- Content provided by FirstRanker.com ---
SECTION-C
- What are the various data types available in Java? Discuss each with an example.
- Create an applet that receives two numeric values as input from the user and then displays the sum, difference and product of these on the screen. Write a sample HTML page to include this applet.
- What is a Stream? Describe the major tasks of input and output stream classes. Discuss and distinguish between them.
--- Content provided by FirstRanker.com ---
NOTE : Disclosure of identity by writing mobile number or making passing request on any page of Answer sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU BMCI 2020 March Previous Question Papers