Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Java mid
1. Muhammad Ibrahim M.Sc Computer Science Qurtuba University Peshawar
QURTUBA UNIVESRSITY OF SCIENCE & INFORMATION TECHNOLOGY
Exam: MID TERM Semester: 4th Spring 2014
Program: MCS (E) Session: Fall-2012
SUBJECT: ADVANCE PROGRAMMING (JAVA) MAX MARKS: 20
TOTAL TIME: 2HRS DATE: 09-06-2014
Note: Attempt four questions. Q.1 is compulsory and to be attempted in 20 minutes.
Q1. Write short answers for the following
1. Define swing?
2. What are the differences between the two statements?
a. Import java.awt.*;
b. Import java.awt.event.*;
3. Define package? Write the name of at least three packages other than awt?
4. What are the rules for java naming conventions? Give examples of class and method’s
conventions.
5. What are the five steps proves of java code compilation and execution?
Q.2 a) Define layout?
b) Explain Border and Grid Layouts with the help of diagrammatic representation?
c) What do you know about JVM?
Q3. a) Define Interface?
b) Explain Action Listener Interface with the help of example?
c) What is the difference between stack and heap?
Q4. a) What are the different primitive data types in Java?
b) How Java is portable? Explain?
c) Write a program that will pass parameters to main?
Q5. a) How java handles “Click” event? Explain with the help of program?
b) Explain wrapper classes with the help of examples?