Download PTU B-Tech CSE-IT 2020 Dec 5th Sem 70595 Programming In Java Question Paper

Download PTU (I.K.Gujral Punjab Technical University (IKGPTU)) B-Tech (Bachelor of Technology) (CSE-IT)- Computer Science Engineering -Information Technology 2020 December 5th Sem 70595 Programming In Java Previous Question Paper

Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Tech. (IT) (2012 to 2017) (Sem.?5)
PROGRAMMING IN JAVA
Subject Code : BTIT-502
M.Code : 70595
Time : 3 Hrs. Max. Marks : 60
INST RUCT ION TO CANDIDAT ES :
1 .
SECT ION-A is COMPULSORY cons is ting of TEN questions carrying TWO marks
each.
2 .
SECT ION-B c ontains F IVE questions c arrying FIVE marks eac h and s tud ents
have to atte mpt any FOUR q ues tions.
3 .
SECT ION-C contains THREE questions carrying T EN marks e ach and s tudents
have to atte mpt any T WO questio ns.
SECTION-A
Answer briefly :
1)
Why Java is called platform independent language?
2)
What is abstract class?
3)
What is a reference variable in java?
4)
What is the purpose of garbage collector in java?
5)
What is the need of super keyword?
6)
What is run time exception? Give example.
7)
What is the difference between process and a thread in java?
8)
What is JDBC?
9)
Define server socket.
10) What are command line arguments in java?
1 | M-70595
(S2)-1119

SECTION-B
11) Write a program in java to print first five elements of a Fibonacci series using for loop.
12) What is multithreading? How java implements its thread model?
13) Write a program in java to copy the string from one file into another file.
14) Explain briefly about the access modifiers in java and their usage.
15) Write a program to demonstrate the different types of inheritance in java.
SECTION-C
16) What is exception handling? Discuss different types of exceptions and Write a java
program to illustrate the use of try and multi-catch statement.
17) What are different types of operators used in java? Write a program in java to demonstrate
the concept operator precedence.
18) a) Write a short note on :
a. Applet
b. Importing of package
c. "this" keyword
b) Write a short note on :
a. Method overloading
b. Finalize method
c. Type casting
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.
2 | M-70595
(S2)-1119

This post was last modified on 13 February 2021