Download PTU (Punjab Technical University) BSc IT (BCA) 5th Semester 74376 PROGRAMMING IN JAVA Last 10 Years 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 and 2010 Previous Question Papers.
Roll No. Total No. of Pages : 02
Total No. of Questions : 07
B.Sc.(IT) (2015 & Onward) (Sem.?5)
PROGRAMMING IN JAVA
Subject Code : BSIT-502
M.Code : 74376
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks
each.
2. SECTION-B contains SIX questions carrying TEN marks each and students have
to attempt any FOUR questions.
SECTION-A
1. Answer briefly :
a. Define Java Virtual Machine.
b. What are command line arguments?
c. Differentiate between while and do-while.
d. Write any two uses of constructors.
e. What is wrapper class?
f. Define interface.
g. Discuss briefly about Naming Convention while creating a Package.
h. Differentiate between Error and Exception.
i. What are Applets?
j. What is ActionListener?
FirstRanker.com - FirstRanker's Choice
1 | M-74376 (S3)-927
Roll No. Total No. of Pages : 02
Total No. of Questions : 07
B.Sc.(IT) (2015 & Onward) (Sem.?5)
PROGRAMMING IN JAVA
Subject Code : BSIT-502
M.Code : 74376
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks
each.
2. SECTION-B contains SIX questions carrying TEN marks each and students have
to attempt any FOUR questions.
SECTION-A
1. Answer briefly :
a. Define Java Virtual Machine.
b. What are command line arguments?
c. Differentiate between while and do-while.
d. Write any two uses of constructors.
e. What is wrapper class?
f. Define interface.
g. Discuss briefly about Naming Convention while creating a Package.
h. Differentiate between Error and Exception.
i. What are Applets?
j. What is ActionListener?
2 | M-74376 (S3)-927
SECTION-B
Q2 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.
Q3 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.
Q4 Explain the following by writing an appropriate java code :
a. Creating a Package.
b. Adding a Class to a Package.
Q5 a. State and explain the life cycle of an Applet.
b. What is meant by Graphics programming? Explain.
Q6 a. Demonstrate the use of try, catch and finally block.
b. Explain the application of AWT Package.
Q7 a. Discuss various mouse events along with their respective listeners.
b. Demonstrate the use of FilelnputStream and FileOutputStream by writing a java code
snippet.
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.
FirstRanker.com - FirstRanker's Choice
This post was last modified on 07 December 2019