SlideShare a Scribd company logo
1 of 1
Download to read offline
Based on Java code segment below: SET 1 int a=5 while (a>=0){ System.out.print (a); a=a+2; }
(a) State and explain the type of programming error consist in the java segment. [2 Marks] (b)
Rewrite the Java segment to remove the error consists in the coding. (1 Mark)

More Related Content

More from advanibagco

Barilla un fabricante de pasta italiano lanz un programa .pdf
Barilla un fabricante de pasta italiano lanz un programa .pdfBarilla un fabricante de pasta italiano lanz un programa .pdf
Barilla un fabricante de pasta italiano lanz un programa .pdfadvanibagco
 
Banks securitize assets by combining debt instruments and st.pdf
Banks securitize assets by combining debt instruments and st.pdfBanks securitize assets by combining debt instruments and st.pdf
Banks securitize assets by combining debt instruments and st.pdfadvanibagco
 
Bamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdf
Bamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdfBamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdf
Bamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdfadvanibagco
 
Bank X and Bank Y are two of the top 5 banks operating in Za.pdf
Bank X and Bank Y are two of the top 5 banks operating in Za.pdfBank X and Bank Y are two of the top 5 banks operating in Za.pdf
Bank X and Bank Y are two of the top 5 banks operating in Za.pdfadvanibagco
 
Bank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdf
Bank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdfBank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdf
Bank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdfadvanibagco
 
Balangta ekonominin uzun dnem dengede olduunu varsayalm A.pdf
Balangta ekonominin uzun dnem dengede olduunu varsayalm A.pdfBalangta ekonominin uzun dnem dengede olduunu varsayalm A.pdf
Balangta ekonominin uzun dnem dengede olduunu varsayalm A.pdfadvanibagco
 
Bal arlarnda Apis mellifera yiyecek aramaya gei koloniy.pdf
Bal arlarnda  Apis mellifera  yiyecek aramaya gei koloniy.pdfBal arlarnda  Apis mellifera  yiyecek aramaya gei koloniy.pdf
Bal arlarnda Apis mellifera yiyecek aramaya gei koloniy.pdfadvanibagco
 
Balangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdf
Balangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdfBalangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdf
Balangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdfadvanibagco
 
b Mr Senabe is a senior teacher in a Senior Secondary S.pdf
b Mr Senabe is a senior teacher in a Senior Secondary S.pdfb Mr Senabe is a senior teacher in a Senior Secondary S.pdf
b Mr Senabe is a senior teacher in a Senior Secondary S.pdfadvanibagco
 
Bacteria sense and respond to various signals in their envir.pdf
Bacteria sense and respond to various signals in their envir.pdfBacteria sense and respond to various signals in their envir.pdf
Bacteria sense and respond to various signals in their envir.pdfadvanibagco
 
Background This case study presents a 68year old righthan.pdf
Background This case study presents a 68year old righthan.pdfBackground This case study presents a 68year old righthan.pdf
Background This case study presents a 68year old righthan.pdfadvanibagco
 
Baklk sistemi tanmann biyolojik sonular unlar ierebilir .pdf
Baklk sistemi tanmann biyolojik sonular unlar ierebilir  .pdfBaklk sistemi tanmann biyolojik sonular unlar ierebilir  .pdf
Baklk sistemi tanmann biyolojik sonular unlar ierebilir .pdfadvanibagco
 
Background You are the Quality Manager at ZAPO a manufactu.pdf
Background You are the Quality Manager at ZAPO a manufactu.pdfBackground You are the Quality Manager at ZAPO a manufactu.pdf
Background You are the Quality Manager at ZAPO a manufactu.pdfadvanibagco
 
Background Evidence of Evolution When Charles Darwin first p.pdf
Background Evidence of Evolution When Charles Darwin first p.pdfBackground Evidence of Evolution When Charles Darwin first p.pdf
Background Evidence of Evolution When Charles Darwin first p.pdfadvanibagco
 
Baary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdf
Baary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdfBaary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdf
Baary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdfadvanibagco
 
B4 110ltCOOgB2gt One iogic function that is used for a.pdf
B4 110ltCOOgB2gt One iogic function that is used for a.pdfB4 110ltCOOgB2gt One iogic function that is used for a.pdf
B4 110ltCOOgB2gt One iogic function that is used for a.pdfadvanibagco
 
B1 Describe the rock cycle How does this cycle relate to t.pdf
B1 Describe the rock cycle How does this cycle relate to t.pdfB1 Describe the rock cycle How does this cycle relate to t.pdf
B1 Describe the rock cycle How does this cycle relate to t.pdfadvanibagco
 
B4 10 One logic function that is used for a variety of p.pdf
B4 10  One logic function that is used for a variety of p.pdfB4 10  One logic function that is used for a variety of p.pdf
B4 10 One logic function that is used for a variety of p.pdfadvanibagco
 
B The Paris Agreement is a global plan to address climate c.pdf
B The Paris Agreement is a global plan to address climate c.pdfB The Paris Agreement is a global plan to address climate c.pdf
B The Paris Agreement is a global plan to address climate c.pdfadvanibagco
 
b The Philadelphia chromosome is a very small aberrant chr.pdf
b The Philadelphia chromosome is a very small aberrant chr.pdfb The Philadelphia chromosome is a very small aberrant chr.pdf
b The Philadelphia chromosome is a very small aberrant chr.pdfadvanibagco
 

More from advanibagco (20)

Barilla un fabricante de pasta italiano lanz un programa .pdf
Barilla un fabricante de pasta italiano lanz un programa .pdfBarilla un fabricante de pasta italiano lanz un programa .pdf
Barilla un fabricante de pasta italiano lanz un programa .pdf
 
Banks securitize assets by combining debt instruments and st.pdf
Banks securitize assets by combining debt instruments and st.pdfBanks securitize assets by combining debt instruments and st.pdf
Banks securitize assets by combining debt instruments and st.pdf
 
Bamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdf
Bamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdfBamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdf
Bamllklar elerken veya bir sosyal a olutururken aadakiler ge.pdf
 
Bank X and Bank Y are two of the top 5 banks operating in Za.pdf
Bank X and Bank Y are two of the top 5 banks operating in Za.pdfBank X and Bank Y are two of the top 5 banks operating in Za.pdf
Bank X and Bank Y are two of the top 5 banks operating in Za.pdf
 
Bank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdf
Bank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdfBank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdf
Bank of Montreal v Duguid 2000 47 OR 3d 737 CA 12000.pdf
 
Balangta ekonominin uzun dnem dengede olduunu varsayalm A.pdf
Balangta ekonominin uzun dnem dengede olduunu varsayalm A.pdfBalangta ekonominin uzun dnem dengede olduunu varsayalm A.pdf
Balangta ekonominin uzun dnem dengede olduunu varsayalm A.pdf
 
Bal arlarnda Apis mellifera yiyecek aramaya gei koloniy.pdf
Bal arlarnda  Apis mellifera  yiyecek aramaya gei koloniy.pdfBal arlarnda  Apis mellifera  yiyecek aramaya gei koloniy.pdf
Bal arlarnda Apis mellifera yiyecek aramaya gei koloniy.pdf
 
Balangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdf
Balangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdfBalangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdf
Balangta Vakflarn dnya apndaki tm programlar iin Kdeml.pdf
 
b Mr Senabe is a senior teacher in a Senior Secondary S.pdf
b Mr Senabe is a senior teacher in a Senior Secondary S.pdfb Mr Senabe is a senior teacher in a Senior Secondary S.pdf
b Mr Senabe is a senior teacher in a Senior Secondary S.pdf
 
Bacteria sense and respond to various signals in their envir.pdf
Bacteria sense and respond to various signals in their envir.pdfBacteria sense and respond to various signals in their envir.pdf
Bacteria sense and respond to various signals in their envir.pdf
 
Background This case study presents a 68year old righthan.pdf
Background This case study presents a 68year old righthan.pdfBackground This case study presents a 68year old righthan.pdf
Background This case study presents a 68year old righthan.pdf
 
Baklk sistemi tanmann biyolojik sonular unlar ierebilir .pdf
Baklk sistemi tanmann biyolojik sonular unlar ierebilir  .pdfBaklk sistemi tanmann biyolojik sonular unlar ierebilir  .pdf
Baklk sistemi tanmann biyolojik sonular unlar ierebilir .pdf
 
Background You are the Quality Manager at ZAPO a manufactu.pdf
Background You are the Quality Manager at ZAPO a manufactu.pdfBackground You are the Quality Manager at ZAPO a manufactu.pdf
Background You are the Quality Manager at ZAPO a manufactu.pdf
 
Background Evidence of Evolution When Charles Darwin first p.pdf
Background Evidence of Evolution When Charles Darwin first p.pdfBackground Evidence of Evolution When Charles Darwin first p.pdf
Background Evidence of Evolution When Charles Darwin first p.pdf
 
Baary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdf
Baary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdfBaary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdf
Baary belirleyecek kilit oyuncularn kimler olduunu belirledi.pdf
 
B4 110ltCOOgB2gt One iogic function that is used for a.pdf
B4 110ltCOOgB2gt One iogic function that is used for a.pdfB4 110ltCOOgB2gt One iogic function that is used for a.pdf
B4 110ltCOOgB2gt One iogic function that is used for a.pdf
 
B1 Describe the rock cycle How does this cycle relate to t.pdf
B1 Describe the rock cycle How does this cycle relate to t.pdfB1 Describe the rock cycle How does this cycle relate to t.pdf
B1 Describe the rock cycle How does this cycle relate to t.pdf
 
B4 10 One logic function that is used for a variety of p.pdf
B4 10  One logic function that is used for a variety of p.pdfB4 10  One logic function that is used for a variety of p.pdf
B4 10 One logic function that is used for a variety of p.pdf
 
B The Paris Agreement is a global plan to address climate c.pdf
B The Paris Agreement is a global plan to address climate c.pdfB The Paris Agreement is a global plan to address climate c.pdf
B The Paris Agreement is a global plan to address climate c.pdf
 
b The Philadelphia chromosome is a very small aberrant chr.pdf
b The Philadelphia chromosome is a very small aberrant chr.pdfb The Philadelphia chromosome is a very small aberrant chr.pdf
b The Philadelphia chromosome is a very small aberrant chr.pdf
 

Recently uploaded

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
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...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 

Based on Java code segment below SET 1 int a5 while agt.pdf

  • 1. Based on Java code segment below: SET 1 int a=5 while (a>=0){ System.out.print (a); a=a+2; } (a) State and explain the type of programming error consist in the java segment. [2 Marks] (b) Rewrite the Java segment to remove the error consists in the coding. (1 Mark)