Download PTU (Punjab Technical University) B.Tech (Bachelor of Technology) / BE (Bachelor of Engineering) 2021 January IT 5th Sem 78258 Programming In Java Previous Question Paper
Total No. of Pages : 02
Total No. of Questions : 18
B.T ech. (IT ) (Sem.?5)
PROGRAMMING IN JAVA
Subject Code : BTIT-503-18
M.Code : 78258
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)
What is JVM?
2)
What are limitations of Java programming language?
3)
Why Java is platform independent language?
4)
Define abstraction.
5)
What is the difference between final and finally?
6)
Why Java does not support multiple inheritance?
7)
What is the need of super keyword in Java?
8)
What are checked exceptions?
9)
What is difference between thread and a process?
10) What is a Socket and advantages of Java Sockets?
1 | M-78258
(S2)-112
SECTION-B
11) Explain the steps involved in creating and executing a Java program.
12) Write a program in Java to demonstrate Constructors.
13) Explain about interfaces. How they are different from the abstract classes?
14) Explain Multithreading. How Java implements its Thread model?
15) What is an Applet? How applets are different from standalone Java application
programs? Discuss.
SECTION-C
16) Explain in detail that makes Java the most popular, preferable language over the years.
17) What is function overloading? Is operator overloading is possible in Java? Write a
program to show the concept of Function overloading using inheritance.
18) What are packages? What is the utility of packages? How packages are created, imported,
and used? Discuss with the help of an example. Also discuss package access protection.
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-78258
(S2)-112
This post was last modified on 26 June 2021