SlideShare a Scribd company logo
1 of 19
Solve The Following Expressions
1)3 + 3 + “six” + (3 + 3) * 3 % 3
2)(11 != 7 + 4 || 3 * 2 <= 39 % 10) == false
3)54 % 10 + 8 * 3 % 9
6Six0
False
10
If/Else Simulation
What Output Does The Following Code Produce?
int x = 7;
int y = 5;
int z = 1;
if (x >= y) {
Console.WriteLine(“You Totally Got This!”);
if (z < y) {
x = y;
z = x;
z = 7;
}
}
Console.WriteLine(“The value of x, y, z: ” + x + “ ” + y + “ ” + z);
You Totally Got This!
The value of x, y, z: 5 5 7
Parameter Mystery
What Output Does The Following Code Produce?
Console.WriteLine
Fix The Errors
public class amiright {
public void string[]args {
identifier = ‘TINA’;
Symbol = ‘’r”;
int age = 78;
CallME(78);
}
static void CALLME(identifier,int age) {
Console.WriteLine(My name is name identifier and I am age years
old.);
}
}
Solution For Previous Problem
While Loop Simulation
What Output Does The Following Code Produce?
Console.WriteLine
Array Simulation
What Output Does The Following Code Produce?
Given a Problem, Write The Code
Write Code that:
1. Generates 3 random numbers within the range of 12 to 100
2. If the sum of the 3 numbers is divisible by 4…
a) set variable y to 4;
b) print “I’m divisible by 2” 2 times
3. If the number is divisible by 2…
a) set variable x to 12
b) print “I’m divisible by 4” 4 times
4. Otherwise, print “I’m boring” 5 times
Solve The Following Expressions
1)3 * 2 + 4 + "+" + 2 + 3 * 4
2)2.3 * 3 + 19 / 5 / 2 + 6.0 / 5
3)108 / 20 * 3 / 4 / 2.0 + 1.0 / 2
“10+212”
9.1
2.0
While Loop Simulation
What Output Does The Following Code Produce?
Console.WriteLine
16 3 16
3 2 4
0 0 7
3 -2 4
Define the 4 Principles of Object Oriented
Programming
Fix The Errors
Void static IMerrorFrEe {
for{i < 10}
Console.Line(Yaa, this can’t be right);
}
true return;
}
Solution For Previous Problem
Given A Problem, Write The Code
If/Else Simulation
What Output Does The Following Code Produce?
Console.WriteLine
12 13
14 5
10 8
5 41
Given a Problem, Write The Code
Write a static method named xo that accepts an integer size as a parameter and
prints a square of size by size characters where ‘x’ is the first and last character on
each line and ‘o’ is inside size number of times.
Example 1:
xo(5);
Output:
xooooox
xooooox
xooooox
xooooox
xooooox
Example 2:
xo(3);
Output:
xooox
xooox
xooox
Example 3:
xo(1);
Output:
xox
Parameter Mystery
What Output Does The Following Code Produce?
Given a Problem, Write The Code

More Related Content

What's hot

Ques c++ minhnd
Ques c++   minhndQues c++   minhnd
Ques c++ minhndCongdat Le
 
End of chapter problem 1
End of chapter problem 1End of chapter problem 1
End of chapter problem 1wkhairil80
 
Devry ecet 105 week 5 homework new
Devry ecet 105 week 5 homework newDevry ecet 105 week 5 homework new
Devry ecet 105 week 5 homework newBartholomee
 
Bitwise Operations in Programming
Bitwise Operations in ProgrammingBitwise Operations in Programming
Bitwise Operations in ProgrammingSvetlin Nakov
 
11th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 201311th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 2013Harish Gyanani
 
Ramco Sample Paper 2003
Ramco  Sample  Paper 2003Ramco  Sample  Paper 2003
Ramco Sample Paper 2003ncct
 
Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSESujata Regoti
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSESujata Regoti
 
Sample presentation slides template
Sample presentation slides templateSample presentation slides template
Sample presentation slides templateValerii Klymchuk
 
Puzzle Solving Using Model Checking
Puzzle Solving Using Model Checking Puzzle Solving Using Model Checking
Puzzle Solving Using Model Checking Anit Thapaliya
 
Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013eadeane
 
1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professionalIsabella789
 

What's hot (20)

Ques c++ minhnd
Ques c++   minhndQues c++   minhnd
Ques c++ minhnd
 
Exercises
ExercisesExercises
Exercises
 
End of chapter problem 1
End of chapter problem 1End of chapter problem 1
End of chapter problem 1
 
Doc 20180130-wa0006
Doc 20180130-wa0006Doc 20180130-wa0006
Doc 20180130-wa0006
 
Devry ecet 105 week 5 homework new
Devry ecet 105 week 5 homework newDevry ecet 105 week 5 homework new
Devry ecet 105 week 5 homework new
 
Bitwise Operations in Programming
Bitwise Operations in ProgrammingBitwise Operations in Programming
Bitwise Operations in Programming
 
C # (2)
C # (2)C # (2)
C # (2)
 
11th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 201311th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 2013
 
Ramco Sample Paper 2003
Ramco  Sample  Paper 2003Ramco  Sample  Paper 2003
Ramco Sample Paper 2003
 
Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSE
 
Quiz 10 cp_sol
Quiz 10 cp_solQuiz 10 cp_sol
Quiz 10 cp_sol
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSE
 
Sample presentation slides template
Sample presentation slides templateSample presentation slides template
Sample presentation slides template
 
Digital Search Tree
Digital Search TreeDigital Search Tree
Digital Search Tree
 
Puzzle Solving Using Model Checking
Puzzle Solving Using Model Checking Puzzle Solving Using Model Checking
Puzzle Solving Using Model Checking
 
Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013
 
1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional
 
.net progrmming part2
.net progrmming part2.net progrmming part2
.net progrmming part2
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
Doc 20180130-wa0004
Doc 20180130-wa0004Doc 20180130-wa0004
Doc 20180130-wa0004
 

Similar to Review

C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyC++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyGrejoJoby1
 
Review questions and answers
Review questions and answersReview questions and answers
Review questions and answersIIUM
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2Abdul Haseeb
 
FITC '14 Toronto - Technology, a means to an end
FITC '14 Toronto - Technology, a means to an endFITC '14 Toronto - Technology, a means to an end
FITC '14 Toronto - Technology, a means to an endThibault Imbert
 
Technology: A Means to an End with Thibault Imbert
Technology: A Means to an End with Thibault ImbertTechnology: A Means to an End with Thibault Imbert
Technology: A Means to an End with Thibault ImbertFITC
 
Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Rapita Systems Ltd
 
Optimization in the world of 64-bit errors
Optimization  in the world of 64-bit errorsOptimization  in the world of 64-bit errors
Optimization in the world of 64-bit errorsPVS-Studio
 
Analysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsAnalysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsPVS-Studio
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)jahanullah
 

Similar to Review (20)

ES2015 Quiz
ES2015 QuizES2015 Quiz
ES2015 Quiz
 
C-LOOP-Session-2.pptx
C-LOOP-Session-2.pptxC-LOOP-Session-2.pptx
C-LOOP-Session-2.pptx
 
Mcq cpup
Mcq cpupMcq cpup
Mcq cpup
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
 
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyC++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
 
Review questions and answers
Review questions and answersReview questions and answers
Review questions and answers
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
 
FITC '14 Toronto - Technology, a means to an end
FITC '14 Toronto - Technology, a means to an endFITC '14 Toronto - Technology, a means to an end
FITC '14 Toronto - Technology, a means to an end
 
Technology: A Means to an End with Thibault Imbert
Technology: A Means to an End with Thibault ImbertTechnology: A Means to an End with Thibault Imbert
Technology: A Means to an End with Thibault Imbert
 
Python for Beginners(v2)
Python for Beginners(v2)Python for Beginners(v2)
Python for Beginners(v2)
 
901131 examples
901131 examples901131 examples
901131 examples
 
Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 
JavaScript 101
JavaScript 101JavaScript 101
JavaScript 101
 
Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage"
 
Ansi c
Ansi cAnsi c
Ansi c
 
Optimization in the world of 64-bit errors
Optimization  in the world of 64-bit errorsOptimization  in the world of 64-bit errors
Optimization in the world of 64-bit errors
 
Loops
LoopsLoops
Loops
 
Analysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsAnalysis of Microsoft Code Contracts
Analysis of Microsoft Code Contracts
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)
 

More from Skillspire LLC (20)

Logistics
LogisticsLogistics
Logistics
 
Introduction to analytics
Introduction to analyticsIntroduction to analytics
Introduction to analytics
 
Lecture 31
Lecture 31Lecture 31
Lecture 31
 
Lecture 30
Lecture 30Lecture 30
Lecture 30
 
Lecture 29
Lecture 29Lecture 29
Lecture 29
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
 
Lecture 24
Lecture 24Lecture 24
Lecture 24
 
Lecture 23 p1
Lecture 23 p1Lecture 23 p1
Lecture 23 p1
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
Lecture 17
Lecture 17Lecture 17
Lecture 17
 
Lecture 16
Lecture 16Lecture 16
Lecture 16
 
Lecture 15
Lecture 15Lecture 15
Lecture 15
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 

Recently uploaded

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
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
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
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
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
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
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
 

Recently uploaded (20)

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
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
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
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
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
 
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
 
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...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Review

  • 1.
  • 2. Solve The Following Expressions 1)3 + 3 + “six” + (3 + 3) * 3 % 3 2)(11 != 7 + 4 || 3 * 2 <= 39 % 10) == false 3)54 % 10 + 8 * 3 % 9 6Six0 False 10
  • 3. If/Else Simulation What Output Does The Following Code Produce? int x = 7; int y = 5; int z = 1; if (x >= y) { Console.WriteLine(“You Totally Got This!”); if (z < y) { x = y; z = x; z = 7; } } Console.WriteLine(“The value of x, y, z: ” + x + “ ” + y + “ ” + z); You Totally Got This! The value of x, y, z: 5 5 7
  • 4. Parameter Mystery What Output Does The Following Code Produce? Console.WriteLine
  • 5. Fix The Errors public class amiright { public void string[]args { identifier = ‘TINA’; Symbol = ‘’r”; int age = 78; CallME(78); } static void CALLME(identifier,int age) { Console.WriteLine(My name is name identifier and I am age years old.); } }
  • 7. While Loop Simulation What Output Does The Following Code Produce? Console.WriteLine
  • 8. Array Simulation What Output Does The Following Code Produce?
  • 9. Given a Problem, Write The Code Write Code that: 1. Generates 3 random numbers within the range of 12 to 100 2. If the sum of the 3 numbers is divisible by 4… a) set variable y to 4; b) print “I’m divisible by 2” 2 times 3. If the number is divisible by 2… a) set variable x to 12 b) print “I’m divisible by 4” 4 times 4. Otherwise, print “I’m boring” 5 times
  • 10. Solve The Following Expressions 1)3 * 2 + 4 + "+" + 2 + 3 * 4 2)2.3 * 3 + 19 / 5 / 2 + 6.0 / 5 3)108 / 20 * 3 / 4 / 2.0 + 1.0 / 2 “10+212” 9.1 2.0
  • 11. While Loop Simulation What Output Does The Following Code Produce? Console.WriteLine 16 3 16 3 2 4 0 0 7 3 -2 4
  • 12. Define the 4 Principles of Object Oriented Programming
  • 13. Fix The Errors Void static IMerrorFrEe { for{i < 10} Console.Line(Yaa, this can’t be right); } true return; }
  • 15. Given A Problem, Write The Code
  • 16. If/Else Simulation What Output Does The Following Code Produce? Console.WriteLine 12 13 14 5 10 8 5 41
  • 17. Given a Problem, Write The Code Write a static method named xo that accepts an integer size as a parameter and prints a square of size by size characters where ‘x’ is the first and last character on each line and ‘o’ is inside size number of times. Example 1: xo(5); Output: xooooox xooooox xooooox xooooox xooooox Example 2: xo(3); Output: xooox xooox xooox Example 3: xo(1); Output: xox
  • 18. Parameter Mystery What Output Does The Following Code Produce?
  • 19. Given a Problem, Write The Code