SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
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 );

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Kürzlich hochgeladen (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
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...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

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 );