This download link is referred from the post: PTU B.Sc IT (BCA) Last 10 Years 2010-2020 Previous Question Papers || Punjab Technical University
Total No. of Pages : 02
Roll No.
Total No. of Questions : 07
--- Content provided by FirstRanker.com ---
B.Sc.(IT) (2015 & Onward) (Sem.-5)
PROGRAMMING IN JAVA
Subject Code : BSIT-502
M.Code: 74376
Time: 3 Hrs.
--- Content provided by FirstRanker.com ---
Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains SIX questions carrying TEN marks each and students have to attempt any FOUR questions.
SECTION-A
--- Content provided by FirstRanker.com ---
- Answer briefly :
- Define Java Virtual Machine.
- What are command line arguments?
- Differentiate between while and do-while.
- Write any two uses of constructor.
- What is wrapper class?
- Define interface.
- Discuss briefly about Naming Convention while creating a Package.
- Differentiate between Error and Exception.
- What are Applets?
- What is ActionListener?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
- a. What are Java Tokens? Discuss the basic structure of a Java program.
b. Write a Java program to check whether a number is Prime or not. Also explain its output. - a. What is meant by method overloading? Explain with the help of suitable example.
b. Differentiate between Array and String. Also write a program for simple inheritance. - Explain the following by writing an appropriate java code :
a. Creating a Package.
b. Adding a Class to a Package. - a. State and explain the life cycle of an Applet.
b. What is meant by Graphics programming? Explain. - a. Demonstrate the use of try, catch and finally block.
b. Explain the application of AWT Package. - a. Discuss various mouse events along with their respective listeners.
--- Content provided by FirstRanker.com ---
b. Demonstrate the use of FileInputStream and FileOutputStream by writing a java code snippet.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
NOTE : Disclosure of Identity by writing Mobile No. or Making of 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 B.Sc IT (BCA) Last 10 Years 2010-2020 Previous Question Papers || Punjab Technical University