SlideShare a Scribd company logo
1 of 2
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.docxtodd511
 
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-.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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.docxtodd511
 
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-'.docxtodd511
 

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

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxCeline George
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIagpharmacy11
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Celine George
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 

Recently uploaded (20)

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 

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