SlideShare a Scribd company logo
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?

More Related Content

What's hot

DTCP2023 Fundamentals of Programming
DTCP2023 Fundamentals of ProgrammingDTCP2023 Fundamentals of Programming
DTCP2023 Fundamentals of Programming
Khirulnizam Abd Rahman
 
computer programming and utilization
computer programming and utilization computer programming and utilization
computer programming and utilization
Kargathara Vishal
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
vishal choudhary
 
Java J2EE by Fairline
Java J2EE by FairlineJava J2EE by Fairline
Java J2EE by Fairline
Pranjalisoni1
 
Video caption generation via seq-to-seq model (TensorFlow implementation)
Video caption generation via seq-to-seq model (TensorFlow implementation)Video caption generation via seq-to-seq model (TensorFlow implementation)
Video caption generation via seq-to-seq model (TensorFlow implementation)
Chun-Min Chang
 
core java syllabus
core java syllabuscore java syllabus
core java syllabus
Sabyasachi Mohanty
 
Bca1020 programming in c
Bca1020  programming in cBca1020  programming in c
Bca1020 programming in c
smumbahelp
 

What's hot (7)

DTCP2023 Fundamentals of Programming
DTCP2023 Fundamentals of ProgrammingDTCP2023 Fundamentals of Programming
DTCP2023 Fundamentals of Programming
 
computer programming and utilization
computer programming and utilization computer programming and utilization
computer programming and utilization
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
 
Java J2EE by Fairline
Java J2EE by FairlineJava J2EE by Fairline
Java J2EE by Fairline
 
Video caption generation via seq-to-seq model (TensorFlow implementation)
Video caption generation via seq-to-seq model (TensorFlow implementation)Video caption generation via seq-to-seq model (TensorFlow implementation)
Video caption generation via seq-to-seq model (TensorFlow implementation)
 
core java syllabus
core java syllabuscore java syllabus
core java syllabus
 
Bca1020 programming in c
Bca1020  programming in cBca1020  programming in c
Bca1020 programming in c
 

Similar to Java mid

Network programming-mid
Network programming-midNetwork programming-mid
Network programming-mid
Jawad Shinwari
 
Mca 204
Mca 204Mca 204
Mca 204
smumbahelp
 
Oop r&s may 2019
Oop r&s may 2019Oop r&s may 2019
Oop r&s may 2019
ktuonlinenotes
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)
ktuonlinenotes
 
Top 10 Interview Questions For Java
Top 10 Interview Questions For JavaTop 10 Interview Questions For Java
Top 10 Interview Questions For Java
EME Technologies
 
4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf
amitbhachne
 
Class test 1 sample and suggestive questions
Class test 1 sample and suggestive questionsClass test 1 sample and suggestive questions
Class test 1 sample and suggestive questions
Kuntal Bhowmick
 
B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)
B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)
B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)
Assistant Professor, Shri Shivaji Science College, Amravati
 
Let's talk about Certifications
Let's talk about CertificationsLet's talk about Certifications
Let's talk about Certifications
José Maria Silveira Neto
 
37 Java Interview Questions
37 Java Interview Questions37 Java Interview Questions
37 Java Interview Questions
Arc & Codementor
 
Bca5010 web design
Bca5010  web designBca5010  web design
Bca5010 web designsmumbahelp
 
Assignement 4
Assignement 4Assignement 4
Assignement 4
vishal choudhary
 
1st assign.docx
1st assign.docx1st assign.docx
1st assign.docx
Mani Deep Karumanchi
 
B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]
Mumbai B.Sc.IT Study
 
Cs141 mid termexam v1
Cs141 mid termexam v1Cs141 mid termexam v1
Cs141 mid termexam v1
Fahadaio
 
JAVA.pptx
JAVA.pptxJAVA.pptx
JAVA.pptx
SohamMathur1
 
Assignment6pdf__2024_01_29_101_17_37.pdf
Assignment6pdf__2024_01_29_101_17_37.pdfAssignment6pdf__2024_01_29_101_17_37.pdf
Assignment6pdf__2024_01_29_101_17_37.pdf
mnatsu0432
 
Lecture-1.pptx
Lecture-1.pptxLecture-1.pptx
Lecture-1.pptx
AyushRaghbotra
 
Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)
smumbahelp
 
Corejavacoursesyllabus 140226051356-phpapp01
Corejavacoursesyllabus 140226051356-phpapp01Corejavacoursesyllabus 140226051356-phpapp01
Corejavacoursesyllabus 140226051356-phpapp01
Sandeep Vishwakarma
 

Similar to Java mid (20)

Network programming-mid
Network programming-midNetwork programming-mid
Network programming-mid
 
Mca 204
Mca 204Mca 204
Mca 204
 
Oop r&s may 2019
Oop r&s may 2019Oop r&s may 2019
Oop r&s may 2019
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)
 
Top 10 Interview Questions For Java
Top 10 Interview Questions For JavaTop 10 Interview Questions For Java
Top 10 Interview Questions For Java
 
4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf
 
Class test 1 sample and suggestive questions
Class test 1 sample and suggestive questionsClass test 1 sample and suggestive questions
Class test 1 sample and suggestive questions
 
B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)
B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)
B.Sc. III(VI Sem) Question Bank Advance Java(Unit:1,2, and 5)
 
Let's talk about Certifications
Let's talk about CertificationsLet's talk about Certifications
Let's talk about Certifications
 
37 Java Interview Questions
37 Java Interview Questions37 Java Interview Questions
37 Java Interview Questions
 
Bca5010 web design
Bca5010  web designBca5010  web design
Bca5010 web design
 
Assignement 4
Assignement 4Assignement 4
Assignement 4
 
1st assign.docx
1st assign.docx1st assign.docx
1st assign.docx
 
B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]
B.Sc.IT: Semester – V (April – 2014) [Revised Course | Question Paper]
 
Cs141 mid termexam v1
Cs141 mid termexam v1Cs141 mid termexam v1
Cs141 mid termexam v1
 
JAVA.pptx
JAVA.pptxJAVA.pptx
JAVA.pptx
 
Assignment6pdf__2024_01_29_101_17_37.pdf
Assignment6pdf__2024_01_29_101_17_37.pdfAssignment6pdf__2024_01_29_101_17_37.pdf
Assignment6pdf__2024_01_29_101_17_37.pdf
 
Lecture-1.pptx
Lecture-1.pptxLecture-1.pptx
Lecture-1.pptx
 
Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)
 
Corejavacoursesyllabus 140226051356-phpapp01
Corejavacoursesyllabus 140226051356-phpapp01Corejavacoursesyllabus 140226051356-phpapp01
Corejavacoursesyllabus 140226051356-phpapp01
 

Recently uploaded

急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 

Recently uploaded (20)

急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 

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?