SlideShare a Scribd company logo
In programming for readability, what is meant by in-line comments? Provide an example that
includes the key elements.
Solution
IN-LINE COMMENTS
Insert comments that describe the purpose of the business function and your intended approach.
Using comments will make future maintenance and enhancement of the function easier.
Use this checklist for inserting comments:
Always use the /*comment */ style. The use of // comments is not portable.
Precede and align comments with the statements they describe.
Comments should never be more that 80 characters wide.
This example shows the correct way to insert block and inline comments into code:

More Related Content

More from sumit082

In the following lines what was used to compare and contrast Heavena.pdf
In the following lines what was used to compare and contrast Heavena.pdfIn the following lines what was used to compare and contrast Heavena.pdf
In the following lines what was used to compare and contrast Heavena.pdf
sumit082
 
In the following list, identify each item as operating (O), investin.pdf
In the following list, identify each item as operating (O), investin.pdfIn the following list, identify each item as operating (O), investin.pdf
In the following list, identify each item as operating (O), investin.pdf
sumit082
 
In the first quarter of 2009, President Obama pushed his massive fis.pdf
In the first quarter of 2009, President Obama pushed his massive fis.pdfIn the first quarter of 2009, President Obama pushed his massive fis.pdf
In the first quarter of 2009, President Obama pushed his massive fis.pdf
sumit082
 
In the example of the Falkland Island incident, why did the British .pdf
In the example of the Falkland Island incident, why did the British .pdfIn the example of the Falkland Island incident, why did the British .pdf
In the example of the Falkland Island incident, why did the British .pdf
sumit082
 
In the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdf
In the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdfIn the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdf
In the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdf
sumit082
 
in the decade of 1980 the average number of cases of diphitheria rep.pdf
in the decade of 1980 the average number of cases of diphitheria rep.pdfin the decade of 1980 the average number of cases of diphitheria rep.pdf
in the decade of 1980 the average number of cases of diphitheria rep.pdf
sumit082
 
In the autumn of 2003, the National Safe Kids Campaign conducted a s.pdf
In the autumn of 2003, the National Safe Kids Campaign conducted a s.pdfIn the autumn of 2003, the National Safe Kids Campaign conducted a s.pdf
In the autumn of 2003, the National Safe Kids Campaign conducted a s.pdf
sumit082
 
In the columns below, indicate whether each transaction caused and i.pdf
In the columns below, indicate whether each transaction caused and i.pdfIn the columns below, indicate whether each transaction caused and i.pdf
In the columns below, indicate whether each transaction caused and i.pdf
sumit082
 
In the case People for the Ethical Treatment of Animals V Daughney .pdf
In the case People for the Ethical Treatment of Animals V Daughney .pdfIn the case People for the Ethical Treatment of Animals V Daughney .pdf
In the case People for the Ethical Treatment of Animals V Daughney .pdf
sumit082
 
In the case of interest income from state and Federal bonds, which a.pdf
In the case of interest income from state and Federal bonds, which a.pdfIn the case of interest income from state and Federal bonds, which a.pdf
In the case of interest income from state and Federal bonds, which a.pdf
sumit082
 
in the book complexity and the nexus of leadership, what is the .pdf
in the book complexity and the nexus of leadership, what is the .pdfin the book complexity and the nexus of leadership, what is the .pdf
in the book complexity and the nexus of leadership, what is the .pdf
sumit082
 
In the accumulation phase of the investor life cycleA. investors .pdf
In the accumulation phase of the investor life cycleA. investors .pdfIn the accumulation phase of the investor life cycleA. investors .pdf
In the accumulation phase of the investor life cycleA. investors .pdf
sumit082
 
In the 1970s, information technology was primarily concerned with __.pdf
In the 1970s, information technology was primarily concerned with __.pdfIn the 1970s, information technology was primarily concerned with __.pdf
In the 1970s, information technology was primarily concerned with __.pdf
sumit082
 
In the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdf
In the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdfIn the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdf
In the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdf
sumit082
 
In recent years, a growing array of entertainment options competes f.pdf
In recent years, a growing array of entertainment options competes f.pdfIn recent years, a growing array of entertainment options competes f.pdf
In recent years, a growing array of entertainment options competes f.pdf
sumit082
 
In terms of information systems security, a risk is defined as which.pdf
In terms of information systems security, a risk is defined as which.pdfIn terms of information systems security, a risk is defined as which.pdf
In terms of information systems security, a risk is defined as which.pdf
sumit082
 
in recent general election there are arguements among strategists an.pdf
in recent general election there are arguements among strategists an.pdfin recent general election there are arguements among strategists an.pdf
in recent general election there are arguements among strategists an.pdf
sumit082
 

More from sumit082 (17)

In the following lines what was used to compare and contrast Heavena.pdf
In the following lines what was used to compare and contrast Heavena.pdfIn the following lines what was used to compare and contrast Heavena.pdf
In the following lines what was used to compare and contrast Heavena.pdf
 
In the following list, identify each item as operating (O), investin.pdf
In the following list, identify each item as operating (O), investin.pdfIn the following list, identify each item as operating (O), investin.pdf
In the following list, identify each item as operating (O), investin.pdf
 
In the first quarter of 2009, President Obama pushed his massive fis.pdf
In the first quarter of 2009, President Obama pushed his massive fis.pdfIn the first quarter of 2009, President Obama pushed his massive fis.pdf
In the first quarter of 2009, President Obama pushed his massive fis.pdf
 
In the example of the Falkland Island incident, why did the British .pdf
In the example of the Falkland Island incident, why did the British .pdfIn the example of the Falkland Island incident, why did the British .pdf
In the example of the Falkland Island incident, why did the British .pdf
 
In the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdf
In the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdfIn the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdf
In the early 1990s, Cranston Dispensers, Inc. was quick to realize t.pdf
 
in the decade of 1980 the average number of cases of diphitheria rep.pdf
in the decade of 1980 the average number of cases of diphitheria rep.pdfin the decade of 1980 the average number of cases of diphitheria rep.pdf
in the decade of 1980 the average number of cases of diphitheria rep.pdf
 
In the autumn of 2003, the National Safe Kids Campaign conducted a s.pdf
In the autumn of 2003, the National Safe Kids Campaign conducted a s.pdfIn the autumn of 2003, the National Safe Kids Campaign conducted a s.pdf
In the autumn of 2003, the National Safe Kids Campaign conducted a s.pdf
 
In the columns below, indicate whether each transaction caused and i.pdf
In the columns below, indicate whether each transaction caused and i.pdfIn the columns below, indicate whether each transaction caused and i.pdf
In the columns below, indicate whether each transaction caused and i.pdf
 
In the case People for the Ethical Treatment of Animals V Daughney .pdf
In the case People for the Ethical Treatment of Animals V Daughney .pdfIn the case People for the Ethical Treatment of Animals V Daughney .pdf
In the case People for the Ethical Treatment of Animals V Daughney .pdf
 
In the case of interest income from state and Federal bonds, which a.pdf
In the case of interest income from state and Federal bonds, which a.pdfIn the case of interest income from state and Federal bonds, which a.pdf
In the case of interest income from state and Federal bonds, which a.pdf
 
in the book complexity and the nexus of leadership, what is the .pdf
in the book complexity and the nexus of leadership, what is the .pdfin the book complexity and the nexus of leadership, what is the .pdf
in the book complexity and the nexus of leadership, what is the .pdf
 
In the accumulation phase of the investor life cycleA. investors .pdf
In the accumulation phase of the investor life cycleA. investors .pdfIn the accumulation phase of the investor life cycleA. investors .pdf
In the accumulation phase of the investor life cycleA. investors .pdf
 
In the 1970s, information technology was primarily concerned with __.pdf
In the 1970s, information technology was primarily concerned with __.pdfIn the 1970s, information technology was primarily concerned with __.pdf
In the 1970s, information technology was primarily concerned with __.pdf
 
In the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdf
In the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdfIn the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdf
In the 1980 census, Booneville had 3428 residents, and in the 1990 c.pdf
 
In recent years, a growing array of entertainment options competes f.pdf
In recent years, a growing array of entertainment options competes f.pdfIn recent years, a growing array of entertainment options competes f.pdf
In recent years, a growing array of entertainment options competes f.pdf
 
In terms of information systems security, a risk is defined as which.pdf
In terms of information systems security, a risk is defined as which.pdfIn terms of information systems security, a risk is defined as which.pdf
In terms of information systems security, a risk is defined as which.pdf
 
in recent general election there are arguements among strategists an.pdf
in recent general election there are arguements among strategists an.pdfin recent general election there are arguements among strategists an.pdf
in recent general election there are arguements among strategists an.pdf
 

Recently uploaded

BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 

Recently uploaded (20)

BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 

In programming for readability, what is meant by in-line comments P.pdf

  • 1. In programming for readability, what is meant by in-line comments? Provide an example that includes the key elements. Solution IN-LINE COMMENTS Insert comments that describe the purpose of the business function and your intended approach. Using comments will make future maintenance and enhancement of the function easier. Use this checklist for inserting comments: Always use the /*comment */ style. The use of // comments is not portable. Precede and align comments with the statements they describe. Comments should never be more that 80 characters wide. This example shows the correct way to insert block and inline comments into code: