SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
Q2. Find the output: (6 points) 1) What will be the output of the following program? (1 point)
Public class College Public static void main Student]/ student = new Student[2]; student [0]=
new Student(); student[0] name = "Klan"; student[0]. name = "Klan"; student[0].name = "Katty";
student [1]= new Student (; student [1]. name = "Manna"; for (int i=0;i<2;i++) i
System.out.print(student[i].name + ); 1 1 class Student | String name; a) Klan Manna - b) Katty
Katty c) Katty Manna - d) Compilation Error or Runtime Error 2) What will be the output of the
following program? (1 point) public class College I public static void main(String[] args) I
Student[] student = new Student[1]: student [0]= new Student ( ); student[0].name = "Klan":
student[0].marks =92; student [0]. section = ' A ' for (int i=0;i<1;i++ ) System.out.print(student[i]
name +7); System.out.print(student[i]. marks +"" ); System.out.print(student[i].section);
3) What will be the output of the following program? (I poin) LinkedList mylist " new
LinkedList(): mylist.AddHead(3); mylist.AddTail(1); mylist.AddTail(5); mylist.DeleteHead();
mylist.AddHead(4); mylist.DeleteTail(); mylist.AddHead(9); mylist.AddTail(2);
mylist.DeleteHead(); mylist.AddTail(6); mylist.Delete Tail(); mylist.AddHead(7); mylist.Print();
a) 9412 b) 7416 c) 7412 d) 3412
4) What will be the output of the following. hay coles) (3 purints) class Employred int empld;
String name; Public void setData(intc, String d)} empldac; name =; public void show Data0!
System.out, print("Empld = "+empld + " * +* Finployce Name * *+natne)s System.out.println();
1 1 class Main| public static void main(String args[l) / /create array of employee object.
Employee[ obj = new Employee[3] : //create actual employee object
obj[0]=newEmployee(obj[1]=newEmployee(0obj[2]=newEmployee( //assign data to employee
objects obj [0]. setData( (01, Sami ); obj 1] setData( 22, Donatid ) obj[2] setData( (03, Larry );

Contenu connexe

Similaire à Q2. Find the output (6 points) 1) What will be the output of.pdf

Java language fundamentals
Java language fundamentalsJava language fundamentals
Java language fundamentalsKapish Joshi
 
OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++ OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++ Dev Chauhan
 
Java Programs Lab File
Java Programs Lab FileJava Programs Lab File
Java Programs Lab FileKandarp Tiwari
 
Riga DevDays 2017 - The hitchhiker’s guide to Java class reloading
Riga DevDays 2017 - The hitchhiker’s guide to Java class reloadingRiga DevDays 2017 - The hitchhiker’s guide to Java class reloading
Riga DevDays 2017 - The hitchhiker’s guide to Java class reloadingAnton Arhipov
 
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Udayan Khattry
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docxrosemarybdodson23141
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...MaruMengesha
 
Object Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsObject Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsMuhammadTalha436
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013Syahriha Ruslan
 
Java assignment 1
Java assignment 1Java assignment 1
Java assignment 1Daman Toor
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docxrafbolet0
 
java slip for bachelors of business administration.pdf
java slip for bachelors of business administration.pdfjava slip for bachelors of business administration.pdf
java slip for bachelors of business administration.pdfkokah57440
 
Inheritance and-polymorphism
Inheritance and-polymorphismInheritance and-polymorphism
Inheritance and-polymorphismUsama Malik
 

Similaire à Q2. Find the output (6 points) 1) What will be the output of.pdf (20)

sample_midterm.pdf
sample_midterm.pdfsample_midterm.pdf
sample_midterm.pdf
 
C#
C#C#
C#
 
Oops Quiz
Oops QuizOops Quiz
Oops Quiz
 
Introduction to-java
Introduction to-javaIntroduction to-java
Introduction to-java
 
Java and j2ee_lab-manual
Java and j2ee_lab-manualJava and j2ee_lab-manual
Java and j2ee_lab-manual
 
Java language fundamentals
Java language fundamentalsJava language fundamentals
Java language fundamentals
 
OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++ OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++
 
Java Programs Lab File
Java Programs Lab FileJava Programs Lab File
Java Programs Lab File
 
Riga DevDays 2017 - The hitchhiker’s guide to Java class reloading
Riga DevDays 2017 - The hitchhiker’s guide to Java class reloadingRiga DevDays 2017 - The hitchhiker’s guide to Java class reloading
Riga DevDays 2017 - The hitchhiker’s guide to Java class reloading
 
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
 
Object Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsObject Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ Exams
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
 
Java Quiz
Java QuizJava Quiz
Java Quiz
 
Java assignment 1
Java assignment 1Java assignment 1
Java assignment 1
 
Object calisthenics
Object calisthenicsObject calisthenics
Object calisthenics
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
 
java slip for bachelors of business administration.pdf
java slip for bachelors of business administration.pdfjava slip for bachelors of business administration.pdf
java slip for bachelors of business administration.pdf
 
Inheritance and-polymorphism
Inheritance and-polymorphismInheritance and-polymorphism
Inheritance and-polymorphism
 

Plus de amadonaicreations

Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf
 Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf
Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdfamadonaicreations
 
Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf
 Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf
Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdfamadonaicreations
 
Q4- Knowing that Li�s are regular languages, what can you tell about .pdf
 Q4- Knowing that Li�s are regular languages, what can you tell about .pdf Q4- Knowing that Li�s are regular languages, what can you tell about .pdf
Q4- Knowing that Li�s are regular languages, what can you tell about .pdfamadonaicreations
 
Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf
 Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf
Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdfamadonaicreations
 
Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf
 Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf
Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdfamadonaicreations
 
Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf
 Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf
Q3 Design a FSM that accepts a stream of bits at its input X and its.pdfamadonaicreations
 
Q2) There are many factors that impact aircraft maintenance cost and .pdf
 Q2) There are many factors that impact aircraft maintenance cost and .pdf Q2) There are many factors that impact aircraft maintenance cost and .pdf
Q2) There are many factors that impact aircraft maintenance cost and .pdfamadonaicreations
 
Q2 We throw three dice and multiply three numbers that show up. Each.pdf
 Q2 We throw three dice and multiply three numbers that show up. Each.pdf Q2 We throw three dice and multiply three numbers that show up. Each.pdf
Q2 We throw three dice and multiply three numbers that show up. Each.pdfamadonaicreations
 
Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf
 Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf
Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdfamadonaicreations
 
Q1. Entity Relationship Model Warming up [3 points] Consider the fo.pdf
 Q1. Entity Relationship Model  Warming up [3 points] Consider the fo.pdf Q1. Entity Relationship Model  Warming up [3 points] Consider the fo.pdf
Q1. Entity Relationship Model Warming up [3 points] Consider the fo.pdfamadonaicreations
 
Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf
 Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf
Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdfamadonaicreations
 
Proteins fold into complex three-dimensional shapes. The function is .pdf
 Proteins fold into complex three-dimensional shapes. The function is .pdf Proteins fold into complex three-dimensional shapes. The function is .pdf
Proteins fold into complex three-dimensional shapes. The function is .pdfamadonaicreations
 
Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf
 Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf
Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdfamadonaicreations
 
Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf
 Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf
Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdfamadonaicreations
 
Problems (Show all your work step by step) 1. Suppose that tastes are.pdf
 Problems (Show all your work step by step) 1. Suppose that tastes are.pdf Problems (Show all your work step by step) 1. Suppose that tastes are.pdf
Problems (Show all your work step by step) 1. Suppose that tastes are.pdfamadonaicreations
 
Problem Solving Questions. Show your computations step by step. Order.pdf
 Problem Solving Questions. Show your computations step by step. Order.pdf Problem Solving Questions. Show your computations step by step. Order.pdf
Problem Solving Questions. Show your computations step by step. Order.pdfamadonaicreations
 
Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf
 Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf
Problem 8 Henrico County (suburban Richmond) is in the process of co.pdfamadonaicreations
 
Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf
 Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf
Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdfamadonaicreations
 
Question 22 Which of the following is true about transferring for Wes.pdf
 Question 22 Which of the following is true about transferring for Wes.pdf Question 22 Which of the following is true about transferring for Wes.pdf
Question 22 Which of the following is true about transferring for Wes.pdfamadonaicreations
 
Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf
 Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf
Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdfamadonaicreations
 

Plus de amadonaicreations (20)

Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf
 Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf
Q5. Dimension Reduction (16 points) Consider 4 data points in the 2-d.pdf
 
Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf
 Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf
Q6 You have constructed phospholipid vesicles that contain Na+K+ pu.pdf
 
Q4- Knowing that Li�s are regular languages, what can you tell about .pdf
 Q4- Knowing that Li�s are regular languages, what can you tell about .pdf Q4- Knowing that Li�s are regular languages, what can you tell about .pdf
Q4- Knowing that Li�s are regular languages, what can you tell about .pdf
 
Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf
 Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf
Q5 Provide your feedback to the following 5 statements, (20 points) 1.pdf
 
Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf
 Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf
Q4. Mitosis is one of the stages of the cell cycle. The diagram repre.pdf
 
Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf
 Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf
Q3 Design a FSM that accepts a stream of bits at its input X and its.pdf
 
Q2) There are many factors that impact aircraft maintenance cost and .pdf
 Q2) There are many factors that impact aircraft maintenance cost and .pdf Q2) There are many factors that impact aircraft maintenance cost and .pdf
Q2) There are many factors that impact aircraft maintenance cost and .pdf
 
Q2 We throw three dice and multiply three numbers that show up. Each.pdf
 Q2 We throw three dice and multiply three numbers that show up. Each.pdf Q2 We throw three dice and multiply three numbers that show up. Each.pdf
Q2 We throw three dice and multiply three numbers that show up. Each.pdf
 
Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf
 Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf
Problen 620 Computing the 0.9 Percent Medicare Inx for High-incomt Ta.pdf
 
Q1. Entity Relationship Model Warming up [3 points] Consider the fo.pdf
 Q1. Entity Relationship Model  Warming up [3 points] Consider the fo.pdf Q1. Entity Relationship Model  Warming up [3 points] Consider the fo.pdf
Q1. Entity Relationship Model Warming up [3 points] Consider the fo.pdf
 
Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf
 Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf
Pseudo-random numbers Randomly generating numbers is a crucial subrou.pdf
 
Proteins fold into complex three-dimensional shapes. The function is .pdf
 Proteins fold into complex three-dimensional shapes. The function is .pdf Proteins fold into complex three-dimensional shapes. The function is .pdf
Proteins fold into complex three-dimensional shapes. The function is .pdf
 
Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf
 Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf
Project Part 3 Obtaining Evidence from an ISP Scenario D&B has been.pdf
 
Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf
 Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf
Prof. Umut Oguzoglu, Head, Dept. of Economics claims that the student.pdf
 
Problems (Show all your work step by step) 1. Suppose that tastes are.pdf
 Problems (Show all your work step by step) 1. Suppose that tastes are.pdf Problems (Show all your work step by step) 1. Suppose that tastes are.pdf
Problems (Show all your work step by step) 1. Suppose that tastes are.pdf
 
Problem Solving Questions. Show your computations step by step. Order.pdf
 Problem Solving Questions. Show your computations step by step. Order.pdf Problem Solving Questions. Show your computations step by step. Order.pdf
Problem Solving Questions. Show your computations step by step. Order.pdf
 
Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf
 Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf
Problem 8 Henrico County (suburban Richmond) is in the process of co.pdf
 
Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf
 Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf
Problem 5-10AB Gross profit method LO P4 Wayward Company wants to pre.pdf
 
Question 22 Which of the following is true about transferring for Wes.pdf
 Question 22 Which of the following is true about transferring for Wes.pdf Question 22 Which of the following is true about transferring for Wes.pdf
Question 22 Which of the following is true about transferring for Wes.pdf
 
Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf
 Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf
Question 21 Whut is the ourpote of Drveloping Oreanizational Stru.pdf
 

Dernier

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 

Dernier (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Q2. Find the output (6 points) 1) What will be the output of.pdf

  • 1. Q2. Find the output: (6 points) 1) What will be the output of the following program? (1 point) Public class College Public static void main Student]/ student = new Student[2]; student [0]= new Student(); student[0] name = "Klan"; student[0]. name = "Klan"; student[0].name = "Katty"; student [1]= new Student (; student [1]. name = "Manna"; for (int i=0;i<2;i++) i System.out.print(student[i].name + ); 1 1 class Student | String name; a) Klan Manna - b) Katty Katty c) Katty Manna - d) Compilation Error or Runtime Error 2) What will be the output of the following program? (1 point) public class College I public static void main(String[] args) I Student[] student = new Student[1]: student [0]= new Student ( ); student[0].name = "Klan": student[0].marks =92; student [0]. section = ' A ' for (int i=0;i<1;i++ ) System.out.print(student[i] name +7); System.out.print(student[i]. marks +"" ); System.out.print(student[i].section); 3) What will be the output of the following program? (I poin) LinkedList mylist " new LinkedList(): mylist.AddHead(3); mylist.AddTail(1); mylist.AddTail(5); mylist.DeleteHead(); mylist.AddHead(4); mylist.DeleteTail(); mylist.AddHead(9); mylist.AddTail(2); mylist.DeleteHead(); mylist.AddTail(6); mylist.Delete Tail(); mylist.AddHead(7); mylist.Print(); a) 9412 b) 7416 c) 7412 d) 3412 4) What will be the output of the following. hay coles) (3 purints) class Employred int empld; String name; Public void setData(intc, String d)} empldac; name =; public void show Data0! System.out, print("Empld = "+empld + " * +* Finployce Name * *+natne)s System.out.println(); 1 1 class Main| public static void main(String args[l) / /create array of employee object. Employee[ obj = new Employee[3] : //create actual employee object obj[0]=newEmployee(obj[1]=newEmployee(0obj[2]=newEmployee( //assign data to employee objects obj [0]. setData( (01, Sami ); obj 1] setData( 22, Donatid ) obj[2] setData( (03, Larry );