SlideShare a Scribd company logo
11.What will be the output of the following program when the button is clicked?
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim letter As String
Dim sr As IO.StreamReader = IO.File.OpenText("DATA.TXT")
Do While sr.Peek <> -1
letter = sr.ReadLine
txtBox.Text &= letter
Do While (sr.Peek <> -1) And (letter <> "*")
letter = sr.ReadLine
Loop
Loop
End Sub
Assume the 12 lines of the file DATA.TXT contain the following data: a, b, c, *, d, *, e, f, g, h,
*, i.
Solution
The output is abcbccdefghfghghhi
11-What will be the output of the following program when the button is.docx

More Related Content

More from todd511

12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx
12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx
12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx
todd511
 
13- Use the table below to write the name of the polymer and its use-.docx
13- Use the table below to write the name of the polymer and its use-.docx13- Use the table below to write the name of the polymer and its use-.docx
13- Use the table below to write the name of the polymer and its use-.docx
todd511
 
12- Which of the following is a current liability- A) Preferred divid.docx
12- Which of the following is a current liability-  A) Preferred divid.docx12- Which of the following is a current liability-  A) Preferred divid.docx
12- Which of the following is a current liability- A) Preferred divid.docx
todd511
 
12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx
12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx
12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx
todd511
 
12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx
12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx
12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx
todd511
 
13- What is a cyber-attack- Give two examples of politically motivated.docx
13- What is a cyber-attack- Give two examples of politically motivated.docx13- What is a cyber-attack- Give two examples of politically motivated.docx
13- What is a cyber-attack- Give two examples of politically motivated.docx
todd511
 
13- An ester-containing lipid has four types of components (an alcohol.docx
13- An ester-containing lipid has four types of components (an alcohol.docx13- An ester-containing lipid has four types of components (an alcohol.docx
13- An ester-containing lipid has four types of components (an alcohol.docx
todd511
 
1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx
1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx
1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx
todd511
 
19- All forms of energy- a) Either have the potential to move mass thr.docx
19- All forms of energy- a) Either have the potential to move mass thr.docx19- All forms of energy- a) Either have the potential to move mass thr.docx
19- All forms of energy- a) Either have the potential to move mass thr.docx
todd511
 
19- Which of the following should exhibit resonance- HCN CF4 BH3 SO2.docx
19- Which of the following should exhibit resonance-  HCN CF4 BH3 SO2.docx19- Which of the following should exhibit resonance-  HCN CF4 BH3 SO2.docx
19- Which of the following should exhibit resonance- HCN CF4 BH3 SO2.docx
todd511
 
19- (TCO 5) A minor review is (Points - 5) done as part of a majo.docx
19- (TCO 5) A minor  review is (Points - 5)     done as part of a majo.docx19- (TCO 5) A minor  review is (Points - 5)     done as part of a majo.docx
19- (TCO 5) A minor review is (Points - 5) done as part of a majo.docx
todd511
 
18- An independent auditor must have which of the following- A- A ba.docx
18- An independent auditor must have which of the following-   A- A ba.docx18- An independent auditor must have which of the following-   A- A ba.docx
18- An independent auditor must have which of the following- A- A ba.docx
todd511
 
16- Gwen the following information- calculate- a- Gross domestic produ.docx
16- Gwen the following information- calculate- a- Gross domestic produ.docx16- Gwen the following information- calculate- a- Gross domestic produ.docx
16- Gwen the following information- calculate- a- Gross domestic produ.docx
todd511
 
11-What is wrong with the following program that intends to calculate.docx
11-What is wrong with the following program that intends to calculate.docx11-What is wrong with the following program that intends to calculate.docx
11-What is wrong with the following program that intends to calculate.docx
todd511
 
16- Which of the following is not true with respect to the auditors-'.docx
16- Which of the following is not true with respect to the auditors-'.docx16- Which of the following is not true with respect to the auditors-'.docx
16- Which of the following is not true with respect to the auditors-'.docx
todd511
 

More from todd511 (15)

12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx
12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx
12- Heavy Rain Corporation just paid a dividend of $5-00 per share- an.docx
 
13- Use the table below to write the name of the polymer and its use-.docx
13- Use the table below to write the name of the polymer and its use-.docx13- Use the table below to write the name of the polymer and its use-.docx
13- Use the table below to write the name of the polymer and its use-.docx
 
12- Which of the following is a current liability- A) Preferred divid.docx
12- Which of the following is a current liability-  A) Preferred divid.docx12- Which of the following is a current liability-  A) Preferred divid.docx
12- Which of the following is a current liability- A) Preferred divid.docx
 
12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx
12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx
12- Mayberry engaged Williams as her agent-It was mutually agreed that.docx
 
12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx
12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx
12- Cholesteroi- of th a- a steroidb- a triterpenoidboth a and b Part.docx
 
13- What is a cyber-attack- Give two examples of politically motivated.docx
13- What is a cyber-attack- Give two examples of politically motivated.docx13- What is a cyber-attack- Give two examples of politically motivated.docx
13- What is a cyber-attack- Give two examples of politically motivated.docx
 
13- An ester-containing lipid has four types of components (an alcohol.docx
13- An ester-containing lipid has four types of components (an alcohol.docx13- An ester-containing lipid has four types of components (an alcohol.docx
13- An ester-containing lipid has four types of components (an alcohol.docx
 
1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx
1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx
1S- N-N-diethyl-m-tolumide (DEET) is the active ingredient in many mos.docx
 
19- All forms of energy- a) Either have the potential to move mass thr.docx
19- All forms of energy- a) Either have the potential to move mass thr.docx19- All forms of energy- a) Either have the potential to move mass thr.docx
19- All forms of energy- a) Either have the potential to move mass thr.docx
 
19- Which of the following should exhibit resonance- HCN CF4 BH3 SO2.docx
19- Which of the following should exhibit resonance-  HCN CF4 BH3 SO2.docx19- Which of the following should exhibit resonance-  HCN CF4 BH3 SO2.docx
19- Which of the following should exhibit resonance- HCN CF4 BH3 SO2.docx
 
19- (TCO 5) A minor review is (Points - 5) done as part of a majo.docx
19- (TCO 5) A minor  review is (Points - 5)     done as part of a majo.docx19- (TCO 5) A minor  review is (Points - 5)     done as part of a majo.docx
19- (TCO 5) A minor review is (Points - 5) done as part of a majo.docx
 
18- An independent auditor must have which of the following- A- A ba.docx
18- An independent auditor must have which of the following-   A- A ba.docx18- An independent auditor must have which of the following-   A- A ba.docx
18- An independent auditor must have which of the following- A- A ba.docx
 
16- Gwen the following information- calculate- a- Gross domestic produ.docx
16- Gwen the following information- calculate- a- Gross domestic produ.docx16- Gwen the following information- calculate- a- Gross domestic produ.docx
16- Gwen the following information- calculate- a- Gross domestic produ.docx
 
11-What is wrong with the following program that intends to calculate.docx
11-What is wrong with the following program that intends to calculate.docx11-What is wrong with the following program that intends to calculate.docx
11-What is wrong with the following program that intends to calculate.docx
 
16- Which of the following is not true with respect to the auditors-'.docx
16- Which of the following is not true with respect to the auditors-'.docx16- Which of the following is not true with respect to the auditors-'.docx
16- Which of the following is not true with respect to the auditors-'.docx
 

Recently uploaded

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 

Recently uploaded (20)

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 

11-What will be the output of the following program when the button is.docx

  • 1. 11.What will be the output of the following program when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim letter As String Dim sr As IO.StreamReader = IO.File.OpenText("DATA.TXT") Do While sr.Peek <> -1 letter = sr.ReadLine txtBox.Text &= letter Do While (sr.Peek <> -1) And (letter <> "*") letter = sr.ReadLine Loop Loop End Sub Assume the 12 lines of the file DATA.TXT contain the following data: a, b, c, *, d, *, e, f, g, h, *, i. Solution The output is abcbccdefghfghghhi