Java Programming 2018 Question Paper — Government College of Engineer…
The 2018 Java Programming previous year question paper (Government College of Engineering and Technology, Jammu), with every question and its marks.
- University: Government College of Engineering and Technology, Jammu
- Subject: Java Programming
- Course: Java Programming
- Branch: COMPUTER ENGINEERING
- Year: 2018
- Paper: end-term
- Duration: 180 minutes
- Total marks: 100
Instructions
- Attempt Five questions in all selecting atleast Two questions from each section.
- All questions carry equal marks.
Questions
SECTION - A
- Q1. a) Write a program in Java to find factorial of a number. (10) b) Explain the following: (10) i) Command Line Arguments ii) Java Development Kit [20 marks]
- Q2. a) Explain the use of static members with suitable program. (10) b) What do you mean by abstraction, explain with help of a program. (10) [20 marks]
- Q3. Write a program to read 20 marks and store them in an array. Define your own exception. Make use of your exception when mark is less than zero and greater than 100. (20) [20 marks]
- Q4. a) What do you mean by threading? Explain the life cycle of a thread. (10) b) What are different features of constructor? Explain use of copy constructor. (10) [20 marks]
SECTION - B
- Q5. a) What is the use of interfaces? Explain with example how interfaces are implemented. (10) b) Write notes on: (10) i) HTML ii) AWT [20 marks]
- Q6. a) Explain life cycle of an applet. (10) b) Explain with example how applet is different from applications. (10) [20 marks]
- Q7. a) Explain different components used to create user interface. (10) b) What do you mean by event driven programming? Explain with example. (10) [20 marks]
- Q8. a) Create an applet to accept a flower name as a parameter and display it along with a message "is a beautiful flower", background colour should be light grey, text should be in Times New Roman font and font size 40. (10) b) What are the various user interface components? Explain with example. (10) [20 marks]
Related pages
Other years
- Java Programming 2018 question paper — end-term