
Duck Debugging
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Easy
Roy Duguid
Used 3+ times
FREE Resource
25 Slides • 8 Questions
1
2
Homework
3
4
5
Maintain (verb)
main - tain
To keep in good condition
"A large house costs a lot to maintain"
6
7
Maintainability
Maintainability is the ability of a program to be easily understood, updated, and modified.
It's important to ensure that code is maintainable so that other programmers can easily read, understand, and fix it.
8
Maintainabilty
Commenting
Code reviews
consistent naming conventions
modular design
Testing
Clear documentation
Copy pasting code
ignoring errors
outdated libraries
overly complex code
spaghetti code
9
Multiple Choice
We can make our code maintainable by...
10
Multiple Choice
We can add comments to our code which is ignored by python by using which symbol?
*
11
Categorize
Commenting
Testing
Organize these options into the right categories
12
Coding with a duck
13
14
15
Give them a name
Meet your duck
16
Word Cloud
My ducks name is...
17
18
Open Ended
What is the error in this code?
(speak to your duck)
19
Open Ended
What is the error in this code?
(speak to your duck)
20
21
22
23
24
25
26
27
Comparison of Syntax, Runtime, and Logic Errors
Aspect | Syntax Error | Runtime Error | Logic Error |
|---|---|---|---|
When it Occurs | Before the program runs (during parsing or compilation) | While the program is running | The program runs without crashing, but the output is incorrect or unexpected |
Nature of Error | Relates to incorrect structure or grammar in the code | Occurs when valid syntax encounters issues during execution | Relates to incorrect logic or algorithm that leads to incorrect behavior or results |
Can Program Run? | No, the program will not run until the syntax is corrected | Yes, the program starts running, but crashes at the point of error | Yes, the program runs to completion but produces the wrong result |
Example | Missing : after an if statement | Dividing by zero (e.g., 10 / 0) | Using if a < b: when intending if a > b: |
28
Multiple Choice
What type of error is this?
(Speak to your duck)
29
Multiple Choice
What type of error is this?
(Speak to your duck)
30
31
Activities in Teams
32
33
Show answer
Auto Play
Slide 1 / 33
SLIDE
Similar Resources on Wayground
23 questions
Operating Systems
Presentation
•
9th Grade
23 questions
Microsoft Excel
Presentation
•
10th Grade
25 questions
xbox 360
Presentation
•
KG
23 questions
World Religions
Presentation
•
10th Grade
27 questions
Delineating Argument and Claims Review
Presentation
•
9th - 10th Grade
25 questions
Secondary Storage #1
Presentation
•
9th - 10th Grade
24 questions
If, If Else & Relational Operators
Presentation
•
9th - 10th Grade
27 questions
INF X - LD. 11
Presentation
•
10th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade